-
Notifications
You must be signed in to change notification settings - Fork 33
Description
Hi and I've been struggling to get titiler-pgstac (v1.8.0) to properly mosaic tiles at the north pole.
I am using a self-made TileMatrixSet definition for EPSG:3413 and, given everything, I am reasonably confident that this is correct.
This first image visually explains my original issue:
- Dateline is up and the to left with north pole near bottom right.
- (Also ignore the basemap and its alignment -- that's something separate)
To address it, the first thing I tried was using MultiPolygon geometries for any COGs that crossed the dateline in the STAC metadata I was bulk uploading. This worked well:

However, it still seems like some COGs near the dateline are getting dropped. You can see this a bit in the above image too, but zooming around and it's more pronounced:

I also still notice that if I use the map.html directly, I still see missing tiles along the dateline (scaled my browser way out to see it):
http://localhost:8888/titilerpgstac/collections/FrozonSentinel/EarthSeaIceNorthPolarOgraphic/map.html?assets=asset&resampling=nearest&exitwhenfull=false&skipcovered=false&rescale=[0,1024]&colormap_name=bone&items_limit=100000&scan_limit=100000000&time_limit=12

Actually, this is probably a different problem with how map.html handles projections -- it does not even attempt to query those tiles (they are not 204 no content's like in the first image)
FWIW, the collection does mosaic properly in WebMercatorQuad:

Any help would be much appreciated. Thanks! The third image is where I am stuck on.