[gdal-dev] Possible bug in gdal.TransformPoint() gdal 3.0.1

Even Rouault even.rouault at spatialys.com
Tue Jan 7 13:56:57 PST 2020


Benjamin,

> Not sure if this is a bug so posting here first...

This is an intented change of behaviour of GDAL 3. See
https://github.com/OSGeo/gdal/blob/release/3.0/gdal/MIGRATION_GUIDE.TXT#L10

> from osgeo import osr
> in_crs = osr.SpatialReference()
> in_crs.ImportFromEPSG(4326)

If you want to keep long lat ordering, add

in_crs.SetAxisMappingStrategy(ogr.OAMS_TRADITIONAL_GIS_ORDER)

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list