-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Description
To fix the calculation for planetary codes in the latest version, this code can likely be updated
from:
srs = get_ref(layer)
srs.SetAxisMappingStrategy(osr.OAMS_TRADITIONAL_GIS_ORDER)
target = osr.SpatialReference()
target.ImportFromEPSG(4326)
target.SetAxisMappingStrategy(osr.OAMS_TRADITIONAL_GIS_ORDER)
to:
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)
Metadata
Metadata
Assignees
Labels
No labels