Code: Select all
OGRCoordinateTransformation *Transformation;
OGRSpatialReference poLocal, poGlobal;
poLocal.importFromEPSG(epsg_local);
poGlobal.importFromEPSG(WGS84);
poGlobal.SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER);
OGRCoordinateTransformationOptions options;
options.SetAreaOfInterest(-4.0, 40.0, -2.0, 41.0);
Transformation = OGRCreateCoordinateTransformation(&poLocal, &poGlobal, options);
Transformation->Transform(n, y, x, z);
< /code>
epsg_local
< /code>
to make sure it gives me the coordinates over there. However, that doesn't stop it from giving me the wrong ones.
What could be the reason for this behavior?
My version of GDAL is 3.4.1+dfsg-1build4 and PROJ is 8.2.1-1. These were chosen because they were needed for some other libraries.