Mosaic statistics in a custom projection #100
-
Hi, I would like to calculate statistics for a mosaic in a custom projection (e.g., an equal area projection like EPSG:6933). I suspect this is not possible without modifications similar to those suggested in #591? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @bmcandr In theory the mosaic backend titiler-pgstac/titiler/pgstac/mosaic.py Lines 344 to 345 in d29a324 but they are not surfaced at the API level titiler-pgstac/titiler/pgstac/factory.py Lines 874 to 914 in d29a324 2 solutions:
both are available in titiler.core https://github.com/developmentseed/titiler/blob/main/src/titiler/core/titiler/core/dependencies.py#L454-L479 you can find examples of how to extend MosaicTilerFactories in https://stac-utils.github.io/titiler-pgstac/advanced/geojson_crop/ (note: the doc is not up to date and might try to import old functions) |
Beta Was this translation helpful? Give feedback.
Hi @bmcandr
In theory the mosaic backend
feature()
method accept both dst-crs and shape-crs optionstitiler-pgstac/titiler/pgstac/mosaic.py
Lines 344 to 345 in d29a324
but they are not surfaced at the API level
titiler-pgstac/titiler/pgstac/factory.py
Lines 874 to 914 in d29a324