diff --git a/src/Prep/OGRDecode/ogr-decode.cxx b/src/Prep/OGRDecode/ogr-decode.cxx index 14b31ff3..c9cb2eb3 100644 --- a/src/Prep/OGRDecode/ogr-decode.cxx +++ b/src/Prep/OGRDecode/ogr-decode.cxx @@ -432,6 +432,11 @@ void processLayer(OGRLayer* poLayer, tgChopper& results) oTargetSRS.SetWellKnownGeogCS("WGS84"); +#if GDAL_VERSION_MAJOR >= 3 + oSourceSRS->SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER); + oTargetSRS.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER); +#endif + auto poCT = OGRCreateCoordinateTransformation(oSourceSRS, &oTargetSRS); /* setup attribute and spatial queries */