You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
srs = get_ref(layer)
srs.SetAxisMappingStrategy(osr.OAMS_TRADITIONAL_GIS_ORDER)
# Get the body (planet or moon, Earth is a planet too ;-) from the projection definition
# removes the lock-in to EPSG:4326 (WGS84)
target = srs.CloneGeogCS()
target.SetAxisMappingStrategy(osr.OAMS_TRADITIONAL_GIS_ORDER)
The text was updated successfully, but these errors were encountered:
Tested for a few Mars GeoTIFFs and Shapefiles. Seems to fix it.
BTW, this could actually be more accurate for Earth datasets. Forcing all Earth calculations to WGS84 (as new definitions for Earth are released) could end up being bad.
To fix the calculation for planetary codes in the latest version, this code can likely be updated
from:
https://github.com/DOI-USGS/fort-pymdwizard/blob/225193692f9399b20d44905d7cf8e58441e428bd/pymdwizard/core/spatial_utils.py#L142C1-L143C32
to:
The text was updated successfully, but these errors were encountered: