[gdal-dev] Axes order issue in GML file

peifer peifer at gmx.eu
Fri Jan 31 00:38:46 PST 2014


Hi,

ogrinfo tells me that the SRS in my GML file (0) is EPSG:4258 and that its
extent is somewhere around Belgium, see (1).

However, as the coordinates for the features (that are indeed from Belgium)
come in lon,lat (rather than lat,lon as defined by EPSG:4258): shouldn't the
extent be reported as (49.496840, 2.543250) - (51.505070, 6.408180) and the
features be (mis-)positioned somewhere near the Somalian coastline?

If I change the srsName attribute value to another representation of
EPSG:4258 (2), the mis-positioning happens, as expected.

Can someone tell me if this is a feature or rather a limitation or a bug?

Thanks in advance, Hermann

(0) http://tinyurl.com/oqpzfck

(1) ogrinfo -so -ro B_BE_2014-prelim.gml AQD_Zone

Layer name: AQD_Zone
Geometry: Multi Polygon
Feature Count: 22
Extent: (2.543250, 49.496840) - (6.408180, 51.505070)
Layer SRS WKT:
GEOGCS["ETRS89",
    DATUM["European_Terrestrial_Reference_System_1989",
        SPHEROID["GRS 1980",6378137,298.257222101,
            AUTHORITY["EPSG","7019"]],
        TOWGS84[0,0,0,0,0,0,0],
        AUTHORITY["EPSG","6258"]],
    PRIMEM["Greenwich",0,
        AUTHORITY["EPSG","8901"]],
    UNIT["degree",0.0174532925199433,
        AUTHORITY["EPSG","9122"]],
    AUTHORITY["EPSG","4258"]]
...

(2) changes to srsName attribute value

before: <gml:MultiSurface gml:id="BEW17S"
srsName="http://www.opengis.net/gml/srs/epsg.xml#4258">
  after: <gml:MultiSurface gml:id="BEW17S"
srsName="urn:ogc:def:crs:EPSG::4258">



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Axes-order-issue-in-GML-file-tp5101124.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list