Merge /u/tlesne/flightgear-terragear/ branch fix-coords-gdal3 into next
https://sourceforge.net/p/flightgear/terragear/merge-requests/23/
This commit is contained in:
commit
97b0678040
1 changed files with 5 additions and 0 deletions
|
@ -432,6 +432,11 @@ void processLayer(OGRLayer* poLayer, tgChopper& results)
|
||||||
|
|
||||||
oTargetSRS.SetWellKnownGeogCS("WGS84");
|
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);
|
auto poCT = OGRCreateCoordinateTransformation(oSourceSRS, &oTargetSRS);
|
||||||
|
|
||||||
/* setup attribute and spatial queries */
|
/* setup attribute and spatial queries */
|
||||||
|
|
Loading…
Reference in a new issue