Skip to content

Commit

Permalink
Merge pull request #179 from wri/gtc-3033/integrated-alerts-titiler
Browse files Browse the repository at this point in the history
switch from lambda to titiler tiling for integrated alerts
  • Loading branch information
jterry64 authored Dec 9, 2024
2 parents 8d79ee7 + 3726ab5 commit 6021ddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions app/routes/titiler/gfw_integrated_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,8 @@ class GfwIntegratdAlertsVersions(str, Enum):
extend_enum(GfwIntegratdAlertsVersions, _version, _version)


# will turn this on when we're ready to replace tile cache service
# @router.get(
# f"/{dataset}/{{version}}/dynamic/{{z}}/{{x}}/{{y}}.png",
# response_class=Response,
# tags=["Raster Tiles"],
# response_description="PNG Raster Tile",
# )
@router.get(
f"/{dataset}/{{version}}/titiler/{{z}}/{{x}}/{{y}}.png",
f"/{dataset}/{{version}}/dynamic/{{z}}/{{x}}/{{y}}.png",
response_class=Response,
tags=["Raster Tiles"],
response_description="PNG Raster Tile",
Expand Down
2 changes: 1 addition & 1 deletion tests/routes/test_cog_dynamic_tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async def test_tile_for_data_api_dataset(client):
@pytest.mark.asyncio
async def test_tiling_with_custom_rendering(client):
"""Test Integrated Alerts Tile Rendering."""
response = client.get("/gfw_integrated_alerts/v20201012/titiler/14/5305/8879.png")
response = client.get("/gfw_integrated_alerts/v20201012/dynamic/14/5305/8879.png")
response.status_code == 200

assert response.headers["content-type"] == "image/png"
Expand Down

0 comments on commit 6021ddc

Please sign in to comment.