[gdal-dev] Re: Ogr2ogr -flip_coordinates
Even Rouault
even.rouault at mines-paris.org
Thu Nov 3 16:28:54 EDT 2011
> I already thought that I could get a valid shapefile with ogr2ogr by
> replacing EPSG:3067 with EPSG:3047 everywhere in the XML document.
> However, ogr2ogr was creating a similar flipped shapefile. Is this a gdal
> bug? EPSG:3047 is definitely Northing-Easting
The EPSG:XXXX notation is ambiguous : we don't know if it means that the EPSG
axis convention must be applied or not, because it was the notation that was
used before OGC "clarifications" on EPSG axis ordering.
To have unambiguous SRS naming, use rather urn:ogc:def:crs:EPSG::3047 which
really means "use EPSG axis ordering" . Unfortunately I think it won't work
with the OGR GML driver because the EPSGTreatsAsLatLong() method in OSR is
only desinged to work with geographic SRS, and not projected ones :-( Would be
worth filing a ticket I guess
> -Jukka-
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list