Instead of hard-wiring EPSG:4326, perhaps it can still be the default, but allow for other off-Earth bodies (e.g. "IAU" codes).
Recommendations:
-
to
def densify_reproject_simplify(
polygon: Polygon,
crs: CRS,
crs_deg: str = "EPSG:4326",
densification_factor: Optional[int] = None,
precision: int = DEFAULT_PRECISION,
simplify_tolerance: Optional[float] = None,
) -> Polygon:
|
polygon = shape(transform_geom(crs, "EPSG:4326", polygon, precision=precision)) |
to
polygon = shape(transform_geom(crs, crs_deg, polygon, precision=precision))
Instead of hard-wiring EPSG:4326, perhaps it can still be the default, but allow for other off-Earth bodies (e.g. "IAU" codes).
Recommendations:
stactools/src/stactools/core/utils/raster_footprint.py
Line 263 in ec65855
to
stactools/src/stactools/core/utils/raster_footprint.py
Line 305 in ec65855
to
polygon = shape(transform_geom(crs, crs_deg, polygon, precision=precision))