Skip to content

Commit ccb5c0e

Browse files
authored
Some grammar correction and text improvements in the docs (#1201)
1 parent ca34df0 commit ccb5c0e

11 files changed

Lines changed: 41 additions & 38 deletions

File tree

RELEASING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
This is a checklist for releasing a new version of **titiler**.
44

55
1. Determine the next version
6+
67
We currently do not have published versioning guidelines. We usually use `minor` version update when pushing breaking changes and `patch` for every other updates
8+
79
2. Create a release branch named `release/vX.Y.Z`, where `X.Y.Z` is the new version
810
3. Search and replace all instances of the current version number with the new version
911

@@ -16,7 +18,10 @@ This is a checklist for releasing a new version of **titiler**.
1618
5. Update [CHANGES.md](./CHANGES.md) for the new version
1719
6. Push your release branch, create a PR, and get approval
1820
7. Once the PR is merged, create a new (annotated, signed) tag on the appropriate commit
21+
1922
Name the tag `X.Y.Z`, and include `vX.Y.Z` as its annotation message
23+
2024
8. Push your tag to Github, which will kick off the publishing workflow
2125
9. Create a [new release](https://github.com/stac-utils/stac-fastapi/releases/new) targeting the new tag, and use the "Generate release notes" feature to populate the description.
22-
Publish the release and mark it as the latest.
26+
27+
Publish the release and mark it as the latest.

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Reporting a Vulnerability
44

5-
If there are any vulnerabilities in `titiler`, don't hesitate to _report them_.
5+
If you find any vulnerabilities in `titiler`, don't hesitate to _report them_.
66

7-
1. Use Github's security reporting tools.
7+
1. Use GitHub's security reporting tools.
88

99
see https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability
1010

deployment/azure/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
TiTiler is built on top of [FastAPI](https://github.com/tiangolo/fastapi), a modern, fast, Python web framework for building APIs. We can make our FastAPI application work as an Azure Function by wrapping it within the [Azure Function Python worker](https://github.com/Azure/azure-functions-python-worker).
44

5-
If you are not familiar with **Azure functions** we recommend checking https://docs.microsoft.com/en-us/azure/azure-functions/ first.
5+
If you are not familiar with **Azure functions**, we recommend checking https://docs.microsoft.com/en-us/azure/azure-functions/ first.
66

77
Minimal TiTiler Azure function code:
88
```python

deployment/k8s/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## k8s / Helm Deployment
22

3-
Try locally
3+
Try locally:
44

55
```
66
minikube start
@@ -11,4 +11,4 @@ helm init --wait
1111
helm install -f titiler/Chart.yaml titiler
1212
```
1313

14-
For more info about K8S cluster and node configuration please see: https://github.com/developmentseed/titiler/issues/212
14+
For more info about K8S cluster and node configuration, please see: https://github.com/developmentseed/titiler/issues/212

docs/src/advanced/customization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
`TiTiler` is designed to help user customize input/output for each endpoint. This section goes over some simple customization examples.
2+
`TiTiler` is designed to help users customize input/output for each endpoint. This section goes over some simple customization examples.
33

44
### Custom Colormap
55

docs/src/advanced/performance_tuning.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Overview
22

3-
Titiler makes use of several great underlying libraries, including [GDAL][gdal]
3+
TiTiler makes use of several great underlying libraries, including [GDAL][gdal]
44
and [Python bindings to GDAL][rasterio]. An effective deployment of titiler
55
generally requires tweaking GDAL configuration settings. This document provides
66
an overview of relevant settings. Full documentation from GDAL is available
@@ -15,7 +15,7 @@ an overview of relevant settings. Full documentation from GDAL is available
1515
### Setting a config variable
1616

1717
GDAL configuration is modified using environment variables. Thus in order to
18-
change a setting you'll need to set environment variables through your
18+
change a setting, you'll need to set environment variables through your
1919
deployment mechanism. For example, in order to test locally you'd set an
2020
environment variable in bash:
2121

@@ -66,10 +66,10 @@ files, so if you wished to read this data, you'd want
6666

6767
#### `GDAL_INGESTED_BYTES_AT_OPEN`
6868

69-
Gives the number of initial bytes GDAL should read when opening a file and
69+
Defines the number of initial bytes GDAL should read when opening a file and
7070
inspecting its metadata.
7171

72-
Titiler works best with Cloud-Optimized GeoTIFFs (COGs) because they have a
72+
TiTiler works best with Cloud-Optimized GeoTIFFs (COGs) because they have a
7373
tiled internal structure that supports efficient random reads. These files have
7474
an initial metadata section that describes the location (byte range) within the
7575
file of each internal tile. The more internal tiles the COG has, the more data

docs/src/user_guide/algorithms.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ This base class defines that algorithm:
9090

9191
- can have`parameters` (enabled by `extra = "allow"` pydantic config)
9292

93-
Here is a simple example of a custom Algorithm:
93+
Here is a simple example of a custom algorithm:
9494

9595
```python
9696
from titiler.core.algorithm import BaseAlgorithm
@@ -121,7 +121,7 @@ class Multiply(BaseAlgorithm):
121121

122122
Using a Pydantic's `BaseModel` class to construct the custom algorithm enables two things **parametrization** and **type casting/validation**.
123123

124-
If we look at the `Multiply` algorithm, we can see it needs a `factor` parameter. In Titiler (in the post_process dependency) we will pass this parameter via query string (e.g `/preview.png?algo=multiply&algo_parameter={"factor":3}`) and pydantic will make sure we use the right types/values.
124+
If we look at the `Multiply` algorithm, we can see it needs a `factor` parameter. In TiTiler (in the post_process dependency) we will pass this parameter via query string (e.g `/preview.png?algo=multiply&algo_parameter={"factor":3}`) and pydantic will make sure we use the right types/values.
125125

126126
```python
127127
# Available algorithm
@@ -143,7 +143,7 @@ def post_process_dependency(
143143

144144
## Dependency
145145

146-
To be able to use your own algorithm in titiler's endpoint you need to create a `Dependency` to tell the application what algorithm are available.
146+
To be able to use your own algorithm in TiTiler's endpoint, you need to create a `Dependency` to tell the application which algorithms are available.
147147

148148
To ease the dependency creation, we added a `dependency` property in the `titiler.core.algorithm.Algorithms` class, which will return a FastAPI dependency to be added to the endpoints.
149149

@@ -166,7 +166,7 @@ endpoints = TilerFactory(process_dependency=PostProcessParams)
166166

167167
### Order of operation
168168

169-
When creating a map tile (or other images), we will fist apply the `algorithm` then the `rescaling` and finally the `color_formula`.
169+
When creating a map tile (or other images), we will first apply the `algorithm`, then the `rescaling`, and finally the `color_formula`.
170170

171171
```python
172172
with reader(url as src_dst:

docs/src/user_guide/dynamic_tiling.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
TiTiler's first goal is to create a lightweight but performant dynamic tile server... but what do we mean by this?
77

8-
When you zoom/pan on a web map, you are visualizing either vector or raster data that is loaded by your web client (e.g Chrome). Vector Tiles are rendered **On the Fly**, meaning the map library (e.g MapboxGL) will apply styling on the vector it receives to create a visual representation on the map. This is possible because vector data can be encoded and compressed very efficiently and result in each tile being only couple of kilo octets.
8+
When you zoom/pan on a web map, you are visualizing either vector or raster data that is loaded by your web client (e.g Chrome). Vector Tiles are rendered **On the Fly**, meaning the map library (e.g Mapbox GL-JS) will apply the styling on the vector it receives to create a visual representation on the map. This is possible because vector data can be encoded and compressed very efficiently and result in each tile being only a couple of kilo octets.
99

10-
On the other side, raster data is a really dense format, a `256 x 256 x 3` tile (True color image) needs to encode `196 608` values, and depending on the data type (Integer, Float, Complex), a raster tile can be really heavy. Depending on the dataset data type, some operations might be needed in order to obtain a visual representation (e.g. rescaling, colormap, ... ). Map library will almost only accept Uint8 RGB(A) tile encoded as PNG, JPEG or Webp.
10+
On the other side, raster data is a really dense format, a `256 x 256 x 3` tile (True color image) needs to encode `196 608` values, and depending on the data type (Integer, Float, Complex), a raster tile can be really heavy. Depending on the dataset data type, some operations might be needed in order to obtain a visual representation (e.g. rescaling, colormap, ... ). The map library will almost only accept Uint8 RGB(A) tile encoded as PNG, JPEG or Webp.
1111

1212
## **Static tiling**
1313

@@ -68,9 +68,9 @@ The goal of the `Dynamic Tiling` process is to get rid of all the pre-processing
6868

6969
## Summary
7070

71-
With `Static` tile generation you are often limited because you are visualizing data that is fixed and stored somewhere on a disk. With `Dynamic tiling`, users have the possibility to apply their own choice of processing (e.g rescaling, masking) before creating the `image`.
71+
With `Static` tile generation, you are often limited because you are visualizing data that is fixed and stored somewhere on a disk. With `Dynamic tiling`, users have the possibility to apply their own choice of processing (e.g rescaling, masking) before creating the `image`.
7272

73-
Static tiling will always be faster than dynamic tiling, but a cache layer can be set up in front of the dynamic tiler, but using a dynamic tiler often means that same tile won't be serve twice (because users can set multiple options).
73+
Static tiling will always be faster to load than dynamic tiling, but a cache layer can be set up in front of the dynamic tiler. Using a dynamic tiler often means that the same tile won't be served twice (because users can set multiple options).
7474

7575
## Links
7676
[https://medium.com/devseed/cog-talk-part-1-whats-new-941facbcd3d1](https://medium.com/devseed/cog-talk-part-1-whats-new-941facbcd3d1)

docs/src/user_guide/getting_started.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ In the past, putting maps on websites was a real pain. Developers had to use bul
66

77
## Dynamic vs. Static Tiles: What's the Difference?
88

9-
Static tiles are like pre-printed map pieces stored in folders. Once created, they're locked—changing anything means starting over. They use lots of storage but load quickly.
9+
Static tiles are like pre-printed map pieces stored in folders. Once created, they're locked—changing anything means starting over. They use lots of storage, but load quickly.
1010

11-
TiTiler's dynamic tiles work like a chef cooking to order. When someone views your map, TiTiler grabs just the data needed and creates tiles on the spot. This lets you instantly change colors, adjust contrast, or highlight different features. Your map becomes flexible and responsive, adapting to what users need right now rather than being stuck with choices made earlier.
11+
TiTiler's dynamic tiles work like a chef cooking to order. When someone views your map, TiTiler grabs just the data needed and creates tiles on the spot. This lets you instantly change colors, adjust contrast, or highlight different features. Your map becomes flexible and responsive, adapting to what users need right now, rather than being stuck with choices made earlier.
1212

1313
More on [Dynamic Tiling](dynamic_tiling.md)
1414

@@ -102,7 +102,7 @@ Run the following command to start the server:
102102
```bash
103103
uvicorn main:app --reload
104104
```
105-
You should see output similar to this:
105+
You should see an output similar to this:
106106
107107
![server logs](../img/server_logs.png)
108108
@@ -303,7 +303,7 @@ uvicorn titiler.application.main:app
303303
> INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
304304
```
305305
306-
See default endpoints documentation pages:
306+
See the default endpoints documentation pages:
307307
308308
* [`/cog` - Cloud Optimized GeoTIFF](../endpoints/cog.md)
309309
* [`/mosaicjson` - MosaicJSON](../endpoints/mosaic.md)
@@ -340,7 +340,6 @@ python -m pip install titiler.application uvicorn # also installs titiler.core a
340340
341341
These can then be used like:
342342
343-
344343
```py
345344
# Add private COG endpoints requiring token validation
346345
from fastapi import APIRouter, Depends, HTTPException, Security

docs/src/user_guide/output_format.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
`TiTiler` supports the common output format for map tiles: JPEG, PNG and WEBP.
33

44
While some formats (e.g PNG) are able to encode Uint16 or Float datatypes, most web browsers only supports 8 bit data (meaning that it has to be between 0 and 255).
5-
It's on the user to know what datatype is the input source (COG), and what kind of `post processing` there is to do to create a valid web map tile.
5+
It's on the user to know what datatype is the input source (COG), and what kind of `post processing` is required to create a valid web map tile.
66

77
`TiTiler` also has support for more complex output data formats, such as JPEG2000 or GeoTIFF. While it might not be useful for FrontEnd display (most browsers can't decode GeoTIFF natively), some users could want to transmit the data as `raw` values to some applications (non-web display).
88

0 commit comments

Comments
 (0)