Skip to content

Commit f10a223

Browse files
authored
Update default TiTiler endpoint (#1310)
1 parent 3f11e4a commit f10a223

13 files changed

Lines changed: 56 additions & 56 deletions

docs/maplibre/cloud_optimized_geotiff.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"\n",
1111
"**Visualize Cloud Optimized GeoTIFF (COG)**\n",
1212
"\n",
13-
"This notebook demonstrates how to visualize Cloud Optimized GeoTIFF (COG) files using the [TiTiler](https://github.com/developmentseed/titiler) demo endpoint ([giswqs-titiler-endpoint.hf.space](https://giswqs-titiler-endpoint.hf.space)). Please be gentle with the demo endpoint.\n",
13+
"This notebook demonstrates how to visualize Cloud Optimized GeoTIFF (COG) files using the [TiTiler](https://github.com/developmentseed/titiler) demo endpoint ([titiler.opengeos.org](https://titiler.opengeos.org)). Please be gentle with the demo endpoint.\n",
1414
"\n",
1515
"Uncomment the following line to install [leafmap](https://leafmap.org) if needed."
1616
]

docs/maplibre/google_earth.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
"metadata": {},
8383
"outputs": [],
8484
"source": [
85-
"os.environ[\"TITILER_ENDPOINT\"] = \"https://giswqs-titiler-endpoint.hf.space\""
85+
"os.environ[\"TITILER_ENDPOINT\"] = \"https://titiler.opengeos.org\""
8686
]
8787
},
8888
{

docs/maplibre/stac.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"\n",
1111
"**Visualize SpatioTemporal Asset Catalog (STAC)**\n",
1212
"\n",
13-
"This notebook demonstrates how to visualize SpatioTemporal Asset Catalog (STAC) items using the [TiTiler](https://github.com/developmentseed/titiler) demo endpoint ([giswqs-titiler-endpoint.hf.space](https://giswqs-titiler-endpoint.hf.space)). Please be gentle with the demo endpoint.\n",
13+
"This notebook demonstrates how to visualize SpatioTemporal Asset Catalog (STAC) items using the [TiTiler](https://github.com/developmentseed/titiler) demo endpoint ([titiler.opengeos.org](https://titiler.opengeos.org)). Please be gentle with the demo endpoint.\n",
1414
"\n",
1515
"\n",
1616
"Uncomment the following line to install [leafmap](https://leafmap.org) if needed."

docs/maplibre/time_slider.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"metadata": {},
4444
"outputs": [],
4545
"source": [
46-
"os.environ[\"TITILER_ENDPOINT\"] = \"https://giswqs-titiler-endpoint.hf.space\""
46+
"os.environ[\"TITILER_ENDPOINT\"] = \"https://titiler.opengeos.org\""
4747
]
4848
},
4949
{

docs/notebooks/03_cog_stac.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"outputs": [],
7373
"source": [
7474
"# Use the TiTiler demo endpoint. Replace this if needed.\n",
75-
"os.environ[\"TITILER_ENDPOINT\"] = \"https://giswqs-titiler-endpoint.hf.space\""
75+
"os.environ[\"TITILER_ENDPOINT\"] = \"https://titiler.opengeos.org\""
7676
]
7777
},
7878
{

docs/notebooks/04_cog_mosaic.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"metadata": {},
159159
"outputs": [],
160160
"source": [
161-
"pre_event_tile = \"https://giswqs-titiler-endpoint.hf.space/mosaicjson/anonymous.layer_pqmra/tiles/{z}/{x}/{y}@1x?\"\n",
161+
"pre_event_tile = \"https://titiler.opengeos.org/mosaicjson/anonymous.layer_pqmra/tiles/{z}/{x}/{y}@1x?\"\n",
162162
"m.add_tile_layer(pre_event_tile, name=\"Pre-event\", attribution=\"Maxar\")"
163163
]
164164
},
@@ -169,7 +169,7 @@
169169
"metadata": {},
170170
"outputs": [],
171171
"source": [
172-
"post_event_tile = \"https://giswqs-titiler-endpoint.hf.space/mosaicjson/anonymous.layer_qdano/tiles/{z}/{x}/{y}@1x?\"\n",
172+
"post_event_tile = \"https://titiler.opengeos.org/mosaicjson/anonymous.layer_qdano/tiles/{z}/{x}/{y}@1x?\"\n",
173173
"m.add_tile_layer(post_event_tile, name=\"Post-event\", attribution=\"Maxar\")"
174174
]
175175
},

leafmap/bokehmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def add_cog_layer(
187187
url (str): The URL of the COG tile layer.
188188
attribution (str, optional): The attribution to use. Defaults to ''.
189189
bands (list, optional): A list of bands to use for the layer. Defaults to None.
190-
titiler_endpoint (str, optional): TiTiler endpoint. Defaults to "https://giswqs-titiler-endpoint.hf.space".
190+
titiler_endpoint (str, optional): TiTiler endpoint. Defaults to "https://titiler.opengeos.org".
191191
cog_args (dict): Arbitrary keyword arguments, including bidx, expression, nodata, unscale, resampling, rescale,
192192
color_formula, colormap, colormap_name, return_mask. See https://developmentseed.org/titiler/endpoints/cog/
193193
and https://cogeotiff.github.io/rio-tiler/colormap/. To select a certain bands, use bidx=[1, 2, 3].
@@ -289,7 +289,7 @@ def add_stac_layer(
289289
item (str): The Microsoft Planetary Computer STAC item ID, e.g., LC08_L2SP_047027_20201204_02_T1.
290290
assets (str | list): The Microsoft Planetary Computer STAC asset ID, e.g., ["SR_B7", "SR_B5", "SR_B4"].
291291
bands (list): A list of band names, e.g., ["SR_B7", "SR_B5", "SR_B4"]
292-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space", "https://planetarycomputer.microsoft.com/api/data/v1", "planetary-computer", "pc". Defaults to None.
292+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org", "https://planetarycomputer.microsoft.com/api/data/v1", "planetary-computer", "pc". Defaults to None.
293293
attribution (str, optional): The attribution to use. Defaults to ''.
294294
fit_bounds (bool, optional): Whether to fit the map bounds to the raster bounds. Defaults to True.
295295
open_args: Arbitrary keyword arguments for get_local_tile_layer(). Defaults to {}.

leafmap/common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4774,7 +4774,7 @@ def mosaic_tile(url, titiler_endpoint=None, **kwargs: Any):
47744774

47754775
Args:
47764776
url (str): HTTP URL to a MosaicJSON.
4777-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space". Defaults to None.
4777+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org". Defaults to None.
47784778

47794779
Returns:
47804780
The tile URL.
@@ -4803,7 +4803,7 @@ def mosaic_bounds(url, titiler_endpoint=None, **kwargs: Any):
48034803

48044804
Args:
48054805
url (str): HTTP URL to a MosaicJSON.
4806-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space". Defaults to None.
4806+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org". Defaults to None.
48074807

48084808
Returns:
48094809
A list of values representing [left, bottom, right, top].
@@ -4832,7 +4832,7 @@ def mosaic_info(url, titiler_endpoint=None, **kwargs: Any):
48324832

48334833
Args:
48344834
url (str): HTTP URL to a MosaicJSON.
4835-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space". Defaults to None.
4835+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org". Defaults to None.
48364836

48374837
Returns:
48384838
A dictionary containing bounds, center, minzoom, maxzoom, and name as keys.
@@ -4861,7 +4861,7 @@ def mosaic_info_geojson(url, titiler_endpoint=None, **kwargs: Any):
48614861

48624862
Args:
48634863
url (str): HTTP URL to a MosaicJSON.
4864-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space". Defaults to None.
4864+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org". Defaults to None.
48654865

48664866
Returns:
48674867
A dictionary representing a dict of GeoJSON.
@@ -16999,7 +16999,7 @@ def d2s_tile(url: str, titiler_endpoint: str = None, **kwargs: Any) -> str:
1699916999

1700017000
if titiler_endpoint is None:
1700117001
titiler_endpoint = os.environ.get(
17002-
"TITILER_ENDPOINT", "https://giswqs-titiler-endpoint.hf.space"
17002+
"TITILER_ENDPOINT", "https://titiler.opengeos.org"
1700317003
)
1700417004

1700517005
stats = cog_stats(url, titiler_endpoint=titiler_endpoint, **kwargs)

leafmap/foliumap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ def add_cog_layer(
16101610
opacity (float, optional): The opacity of the layer. Defaults to 1.
16111611
shown (bool, optional): A flag indicating whether the layer should be on by default. Defaults to True.
16121612
bands (list, optional): A list of bands to use. Defaults to None.
1613-
titiler_endpoint (str, optional): TiTiler endpoint. Defaults to "https://giswqs-titiler-endpoint.hf.space".
1613+
titiler_endpoint (str, optional): TiTiler endpoint. Defaults to "https://titiler.opengeos.org".
16141614
zoom_to_layer (bool, optional): Whether to zoom to the layer extent. Defaults to True.
16151615
**kwargs: Arbitrary keyword arguments, including bidx, expression, nodata, unscale, resampling, rescale,
16161616
color_formula, colormap, colormap_name, return_mask. See https://developmentseed.org/titiler/endpoints/cog/
@@ -1680,7 +1680,7 @@ def add_stac_layer(
16801680
item (str): The Microsoft Planetary Computer STAC item ID, e.g., LC08_L2SP_047027_20201204_02_T1.
16811681
assets (str | list): The Microsoft Planetary Computer STAC asset ID, e.g., ["SR_B7", "SR_B5", "SR_B4"].
16821682
bands (list): A list of band names, e.g., ["SR_B7", "SR_B5", "SR_B4"]
1683-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space", "planetary-computer", "pc". Defaults to None.
1683+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org", "planetary-computer", "pc". Defaults to None.
16841684
name (str, optional): The layer name to use for the layer. Defaults to 'STAC Layer'.
16851685
attribution (str, optional): The attribution to use. Defaults to ''.
16861686
opacity (float, optional): The opacity of the layer. Defaults to 1.
@@ -1830,7 +1830,7 @@ def add_mosaic_layer(
18301830
18311831
Args:
18321832
url (str): HTTP URL to a MosaicJSON.
1833-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space". Defaults to None.
1833+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org". Defaults to None.
18341834
name (str, optional): The layer name to use for the layer. Defaults to 'Mosaic Layer'.
18351835
attribution (str, optional): The attribution to use. Defaults to ''.
18361836
opacity (float, optional): The opacity of the layer. Defaults to 1.

leafmap/leafmap.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ def add_cog_layer(
10251025
opacity (float, optional): The opacity of the layer. Defaults to 1.
10261026
shown (bool, optional): A flag indicating whether the layer should be on by default. Defaults to True.
10271027
bands (list, optional): A list of bands to use for the layer. Defaults to None.
1028-
titiler_endpoint (str, optional): TiTiler endpoint. Defaults to "https://giswqs-titiler-endpoint.hf.space".
1028+
titiler_endpoint (str, optional): TiTiler endpoint. Defaults to "https://titiler.opengeos.org".
10291029
zoom_to_layer (bool, optional): Whether to zoom to the layer extent. Defaults to True.
10301030
layer_index (int, optional): The index at which to add the layer. Defaults to None.
10311031
overwrite (bool, optional): Whether to overwrite the layer if it already exists. Defaults to False.
@@ -1158,7 +1158,7 @@ def add_stac_layer(
11581158
item (str): The Microsoft Planetary Computer STAC item ID, e.g., LC08_L2SP_047027_20201204_02_T1.
11591159
assets (str | list): The Microsoft Planetary Computer STAC asset ID, e.g., ["SR_B7", "SR_B5", "SR_B4"].
11601160
bands (list): A list of band names, e.g., ["SR_B7", "SR_B5", "SR_B4"]
1161-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space", "https://planetarycomputer.microsoft.com/api/data/v1", "planetary-computer", "pc". Defaults to None.
1161+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org", "https://planetarycomputer.microsoft.com/api/data/v1", "planetary-computer", "pc". Defaults to None.
11621162
name (str, optional): The layer name to use for the layer. Defaults to 'STAC Layer'.
11631163
attribution (str, optional): The attribution to use. Defaults to ''.
11641164
opacity (float, optional): The opacity of the layer. Defaults to 1.
@@ -1626,7 +1626,7 @@ def add_mosaic_layer(
16261626
16271627
Args:
16281628
url (str): HTTP URL to a MosaicJSON.
1629-
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://giswqs-titiler-endpoint.hf.space". Defaults to None.
1629+
titiler_endpoint (str, optional): TiTiler endpoint, e.g., "https://titiler.opengeos.org". Defaults to None.
16301630
name (str, optional): The layer name to use for the layer. Defaults to 'Mosaic Layer'.
16311631
attribution (str, optional): The attribution to use. Defaults to ''.
16321632
opacity (float, optional): The opacity of the layer. Defaults to 1.

0 commit comments

Comments
 (0)