1
0
Fork 0

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:
xDraconian 2020-12-23 21:49:39 +00:00
commit 97b0678040

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