Skip to content

Polar Anti-Meridian Dropping Tiles and COGs #231

@tariqksoliman

Description

@tariqksoliman

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)
Image

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:
Image


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:
Image


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
Image

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:
Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions