[gdal-dev] Reading gml with schema

Even Rouault even.rouault at mines-paris.org
Fri Jul 5 15:29:49 PDT 2013


Le jeudi 30 mai 2013 12:01:04, Pekka Sarkola a écrit :
> Hi Folks,
> 
> Ari: thanks to raise my head. I'm now member of (also) this mailing list.
> 
> Yes, it seems that NLSFI has very unique way to create those GML's. However
> I have understood that they like pretty much follow INSPIRE guidelines.
> So, this kind of GML's could be common in Europe, soon.
> 
> I think there will few possibilities:
> - Ask NLSFI to change their GML specs more like OGC GML simple features.
> - Create NLSFI specific drivers for GDAL
> - Develop GDAL's driver format to better support "non-simple-features"
> GML/XML. - Make best practices how to use XSLT to convert
> "non-simple-features" GML to "simple features" GML - something else...
> 

As a follow-up to this topic, I wanted to inform that I've just committed in 
GDAL trunk an update of the GML driver so that it can read natively NLS 
Topographic data in this MTK GML format.

e.g: ogrinfo ~/gdal/data/gml/finland_gml/Q3334R.xml -al

INFO: Open of `/home/even/gdal/data/gml/finland_gml/Q3334R.xml'
      using driver `GML' successful.

Layer name: Autoliikennealue
Geometry: 3D Polygon
Feature Count: 19
Extent: (296500.277000, 7062000.000000) - (307306.219000, 7073355.258000)
Layer SRS WKT:
PROJCS["ETRS89 / TM35FIN(E,N)",
    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"]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",27],
    PARAMETER["scale_factor",0.9996],
    PARAMETER["false_easting",500000],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]],
    AXIS["Easting",EAST],
    AXIS["Northing",NORTH],
    AUTHORITY["EPSG","3067"]]
gid: String (0.0)
sijaintitarkkuus: Integer (0.0)
aineistolahde: Integer (0.0)
alkupvm: String (0.0)
kohderyhma: Integer (0.0)
kohdeluokka: Integer (0.0)
OGRFeature(Autoliikennealue):0
  gid (String) = 260092169
  sijaintitarkkuus (Integer) = 20000
  aineistolahde (Integer) = 1
  alkupvm (String) = 2008-12-11
  kohderyhma (Integer) = 64
  kohdeluokka (Integer) = 32421
  POLYGON ((307305.971 7071615.08899999969 15.817,307306.219 7071577.023 
15.817,307293.141 7071576.687 15.49,307264.592 7071583.809 15.163,307271.123 
7071616.96899999958 15.49,307305.971 7071615.08899999969 15.817))

[...]

Best regards,

Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list