1
0
Fork 0

Fix coordinate transformation in ogr-decode for GDAL>=3 as advised in GDAL migration guide (fixes #2318)

This commit is contained in:
Thomas LESNE 2020-07-27 21:21:37 +02:00
parent d3e2f4d717
commit 42f80efcf7

View file

@ -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 */