[gdal-dev] Different results for osr.CoordinateTransformation() when using gdal 3.0.1 and 2.4.2 python bindings and transform to EPSG:4326
sean at mapbox.com
Thu Sep 19 08:26:02 PDT 2019
On Thu, Sep 19, 2019 at 8:31 AM Klaus Braun <
klaus.braun at geographie.uni-freiburg.de> wrote:
> on my SUSE box I compiled gdal 2.4.2 and 3.0.1 in the same way, enabling
> When I use osr.CoordinateTransformation() in my python script to do a
> transformation from a point to EPSG 4326 the resulting coordinates are
> swaped if
> I use gdal 3.0.1 python bindings.
> Any idea what might be the problem in this case?
GDAL 3 has a big change for coordinate transformations, See
The gist of it is you need to
call SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER) on your spatial
reference objects to preserve the behavior seen in GDAL 2.4.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev