[gdal-dev] GDAL 3.0.0 / Proj 6.1.0 Shapefile import coordinates X/Y transposed?

Even Rouault even.rouault at spatialys.com
Fri May 24 14:21:22 PDT 2019


On vendredi 24 mai 2019 15:00:40 CEST Sean Gillies wrote:
> Even,
> 
> To be clear, would replacing
> 
>     sr->importFromEPSG(4326);
> 
> with
> 
>     sr->SetFromUserInput("urn:ogc:def:crs:OGC:1.3:CRS84");
> 
> also restore the old behavior? CRS84 is the formally correct identifier for
> what we've been calling EPSG:4326, right?

Could indeed work for that particular case, but for all other EPSG geographic 
CRS, or some EPSG projected CRS with northing,easting axis order, you need 
either to comply with the EPSG axis order, or revert to the "GIS friendly 
order" with SetAxisMappingStrategy(OAMS_TRADITIONAL_GIS_ORDER)

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list