Skip to content

Instantly share code, notes, and snippets.

View richpsharp's full-sized avatar

Richard Sharp richpsharp

View GitHub Profile
@richpsharp
richpsharp / axis_map_test.py
Created February 25, 2020 17:31
example of axis mapping strategy effects on GDAL 3.0
from osgeo import osr
wgs84 = osr.SpatialReference()
wgs84.ImportFromEPSG(4326)
utm10 = osr.SpatialReference()
utm10.ImportFromEPSG(26910)
# Play with these settings, you'll find the utm10 strategey makes no difference bu
# the wgs84 one needs traditional order
wgs84.SetAxisMappingStrategy(osr.OAMS_TRADITIONAL_GIS_ORDER)