Fix coordinate transformation in ogr-decode for GDAL>=3 as advised in GDAL migration guide (fixes #2318)
This commit is contained in:
parent
d3e2f4d717
commit
42f80efcf7
1 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue