[gdal-dev] does OGR GML support multiple geometries

Even Rouault even.rouault at spatialys.com
Tue Nov 24 05:54:30 PST 2015


Luc,

> 
>   <xsd:element
>     name="MyDualGeomFeature"
>     type="test:MyDualGeomFeature"

==> This should by type="test:MyDualGeomFeatureType"

Once corrected, with GDAL 1.11 or above :

$ ogrinfo ../../trunk/gdal/test.gml -al
Had to open data source read-only.
INFO: Open of `../../trunk/gdal/test.gml'
      using driver `GML' successful.

Layer name: MyDualGeomFeature
Geometry (centerline): Line String
Geometry (centerOf): Point
Feature Count: 1
Extent (centerline): (30.095473, -96.079963) - (30.095473, -96.079963)
Extent (centerOf): (30.095473, -96.079963) - (30.095473, -96.079963)
SRS WKT (centerline):
(unknown)
SRS WKT (centerOf):
(unknown)
Geometry Column 1 = centerline
Geometry Column 2 = centerOf
gml_id: String (0.0)
componentID: String (0.0)
OGRFeature(MyDualGeomFeature):1
  gml_id (String) = myMyDualGeomFeature1
  componentID (String) = test1
  centerline = POINT (30.095472861000079 -96.079962906)
  centerOf = POINT (30.095472861000079 -96.079962906)

Even

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


More information about the gdal-dev mailing list