Support for TMS/XYZ inputs - not only COGs #640
-
Hey there, probably a bad idea, if so please disregard and close the request!
At the moment, I can reproduce this in TiTiler for an input COG using the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
@jo-chemla there is no such thing as bad idea! It's already possible 😅, instead of passing a simple url (e.g see #555 (comment) |
Beta Was this translation helpful? Give feedback.
-
Hi again, For standard TMS servers:: URL-encode this XML string: https://titiler.xyz/cog/crop/-110,-70,110,70.png?url=<GDAL_WMS><Service name='TMS'><ServerUrl>http://example.com/tileset1/${z}/${x}/${y}</ServerUrl></Service><DataWindow><UpperLeftX>-20037508.34</UpperLeftX><UpperLeftY>20037508.34</UpperLeftY><LowerRightX>20037508.34</LowerRightX><LowerRightY>-20037508.34</LowerRightY><TileLevel>18</TileLevel><TileCountX>1</TileCountX><TileCountY>1</TileCountY><YOrigin>top</YOrigin></DataWindow><Projection>EPSG:3857</Projection><BlockSizeX>256</BlockSizeX><BlockSizeY>256</BlockSizeY><BandsCount>3</BandsCount><Cache /></GDAL_WMS> Similar than for a WMS compliant server: |
Beta Was this translation helpful? Give feedback.
-
Hey there, another following quick question: using the
Is it possible to modify the output CRS of the /cog/crop/ image in titiler? Tried using the Error seems to be: Edit: url tested |
Beta Was this translation helpful? Give feedback.
@jo-chemla there is no such thing as bad idea!
It's already possible 😅, instead of passing a simple url (e.g
{endpoint}/tilejson.json?url=cog.tif
) you can pass a GDALwmts
string: https://titiler.xyz/cog/crop/-69.99510242702613,41.85313673098173,-69.99038118408833,41.857529724573766.png?url=WMTS%3Ahttp%3A%2F%2Ftitiler.xyz%2Fcog%2FWMTSCapabilities.xml%3Furl%3Dhttps%3A%2F%2Fnoaa-eri-pds.s3.amazonaws.com%2F2022_Pre_Event%2FEC2201a_OB_N_RGB%2FEC2201a_OB_N_C0700000w415145n.tif%26bidx%3D1%26bidx%3D2%26bidx%3D3%26tile_format%3Dpng&unscale=false&resampling=nearest&max_size=128&return_mask=truesee #555 (comment)