You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`slope`: Create degrees of slope from elevation dataset
11
+
-`slope`: Create degrees of slope from elevation dataset
12
12
-`terrarium`: [Mapzen's format]((https://github.com/tilezen/joerd/blob/master/docs/formats.md#terrarium)) to encode elevation value in RGB values `elevation = (red * 256 + green + blue / 256) - 32768`
13
13
-`terrainrgb`: [Mapbox](https://docs.mapbox.com/data/tilesets/guides/access-elevation-data/)/[Maptiler](https://docs.maptiler.com/guides/map-tilling-hosting/data-hosting/rgb-terrain-by-maptiler/)'s format to encode elevation value in RGB values `elevation = -10000 + ((red * 256 * 256 + green * 256 + blue) * 0.1)`
14
14
-`normalizedIndex`: Normalized Difference Index (e.g NDVI)
15
15
-`cast`: Cast data to integer
16
16
-`floor`: Round data to the smallest integer
17
17
-`ceil`: Round data to the largest integer
18
18
19
+
-`min`: Return **Min** values along the `bands` axis.
20
+
-`max`: Return **Max** values along the `bands` axis.
21
+
-`median`: Return **Median** values along the `bands` axis.
22
+
-`mean`: Return **Mean** values along the `bands` axis.
23
+
-`std`: Return the **Standard Deviation** along the `bands` axis.
24
+
-`var`: Return **Variance** along the `bands` axis.
Copy file name to clipboardExpand all lines: docs/src/user_guide/getting_started.md
+101-3Lines changed: 101 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ Static tiles are like pre-printed map pieces stored in folders. Once created, th
10
10
11
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.
12
12
13
+
More on [Dynamic Tiling](dynamic_tiling.md)
14
+
13
15
## Let's Get TiTiler Up and Running!
14
16
15
17
Now that we understand the advantage of TiTiler's dynamic approach, let's get it running on your local machine. Follow these steps:
@@ -102,7 +104,7 @@ uvicorn main:app --reload
102
104
```
103
105
You should see output similar to this:
104
106
105
-

107
+

106
108
107
109
> 💡 **The `--reload` flag** automatically restarts the server whenever you change your code - perfect for development!
108
110
@@ -112,11 +114,11 @@ Open your browser and go to:
112
114
113
115
``` http://127.0.0.1:8000/ ``` - See your welcome message
114
116
115
-

117
+

116
118
117
119
``` http://127.0.0.1:8000/docs ``` - Explore the interactive API documentation. The `/docs` page is your mission control center. It shows all the endpoints TiTiler created for you and lets you test them directly in your browser:
118
120
119
-

121
+

120
122
121
123
## Visualizing Your Geospatial Data
122
124
@@ -182,6 +184,8 @@ URL components explained:
182
184
- **`.png`**: Output format (alternatives: `.jpg`, `.webp`, `.tif`)
183
185
- **`?url=raster.tif`**: Source raster file
184
186
187
+
More on [Tiling Schemes](tile_matrix_sets.md)
188
+
185
189
### **Creating a Web Map with Leaflet**
186
190
187
191
[Leaflet](https://leafletjs.com/) is a lightweight, open-source JavaScript library for interactive maps. It lets you combine base maps (like OpenStreetMap) with overlays from custom tile servers such as TiTiler.
@@ -280,3 +284,97 @@ If your map loads but your tiles don't appear:
280
284
281
285
---
282
286
*Created by [Dimple Jain](https://jaiindimple.github.io)*
287
+
288
+
289
+
## Default Application
290
+
291
+
`TiTiler` comes with a default (complete) application with support for COG, STAC, and MosaicJSON. You can install and start the application locally by doing:
292
+
293
+
```bash
294
+
# Update pip
295
+
python -m pip install -U pip
296
+
297
+
# Install titiler packages
298
+
python -m pip install uvicorn titiler.application
299
+
300
+
# Start application using uvicorn
301
+
uvicorn titiler.application.main:app
302
+
303
+
> INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
The default application can be customized using environment variables defined in`titiler.application.settings.ApiSettings` class. Each variable needs to be prefixed with `TITILER_API_`.
318
+
319
+
- `NAME` (str): name of the application. Defaults to `titiler`.
320
+
- `CORS_ORIGINS` (str, `,` delimited origins): allowed CORS origin. Defaults to `*`.
321
+
- `CORS_ALLOW_METHODS` (str, `,` delimited methods): allowed CORS methods. Defaults to `GET`.
322
+
- `CACHECONTROL` (str): Cache control header to add to responses. Defaults to `"public, max-age=3600"`.
323
+
- `ROOT_PATH` (str): path behind proxy.
324
+
- `DEBUG` (str): adds `LoggerMiddleware` and `TotalTimeMiddleware`in the middleware stack.
- `LOWER_CASE_QUERY_PARAMETERS` (bool): transform all query-parameters to lower case (see https://github.com/developmentseed/titiler/pull/321).
329
+
- `GLOBAL_ACCESS_TOKEN` (str | None): a string which is required in the `?access_token=` query param with every request.
330
+
331
+
332
+
#### Extending TiTiler's app
333
+
334
+
If you want to include all of Titiler's built-in endpoints, but also include
335
+
customized endpoints, you can import and extend the app directly.
336
+
337
+
```bash
338
+
python -m pip install titiler.application uvicorn # also installs titiler.core and titiler.mosaic
0 commit comments