From bbd833a02468504cd1c024b952934c105ff04814 Mon Sep 17 00:00:00 2001 From: Daniel Mannarino Date: Tue, 17 Dec 2024 12:26:01 -0500 Subject: [PATCH] Improve note about coords in tiles.geojson --- batch/python/tiles_geojson.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/batch/python/tiles_geojson.py b/batch/python/tiles_geojson.py index 653da89e..ed35360a 100644 --- a/batch/python/tiles_geojson.py +++ b/batch/python/tiles_geojson.py @@ -55,9 +55,10 @@ def extract_metadata_from_gdalinfo(gdalinfo_json: Dict[str, Any]) -> Dict[str, A crs: CRS = CRS.from_string(gdalinfo_json["coordinateSystem"]["wkt"]) metadata = { # NOTE: pixetl seems to always write features in tiles.geojson in - # epsg:4326 coordinates (even when the tiles themselves are - # epsg:3857). Reproduce that behavior for compatibility. If that - # ever changes, remove the call to to_4326 here. + # degrees (when the tiles themselves are epsg:3857 I think + # the units should be meters). Reproduce that behavior for + # backwards compatibility. If it ever changes, remove the call to + # to_4326 here. "extent": [ *to_4326(crs, *corner_coordinates["lowerLeft"]), *to_4326(crs, *corner_coordinates["upperRight"]),