[gdal-dev] GML / NAS code redundancy

Even Rouault even.rouault at mines-paris.org
Sat Apr 5 14:50:28 PDT 2014


> > Is there any way how to set names also for geometry tags? Similar to
> > properties, eg.
> > 
> >     <PropertyDefn>
> >     
> >       <Name>myname</Name>
> >       <ElementPath>tagname</ElementPath>
> >     
> >     </PropertyDefn>
> > 
> > I would like to name them without 'geometry|' part...
> 
> Hum, this isn't yet possible, but I can try to see if I can add support for
> that.

Done. See http://trac.osgeo.org/gdal/changeset/27132

The syntax is :

<GMLFeatureClassList>
  <GMLFeatureClass>
    <Name>LAYER</Name>
    <ElementPath>LAYER</ElementPath>
    <GeomPropertyDefn>
        <Name>geometry</Name> <-- OGR geometry name -->
        <ElementPath>geometry</ElementPath> <!-- XML element name possibly with '|' to specify the path -->
        <Type>MultiPolygon</Type>
    </GeomPropertyDefn>
    <GeomPropertyDefn>
        <Name>referencePoint</Name>
        <ElementPath>referencePoint</ElementPath>
        <Type>Point</Type>
    </GeomPropertyDefn>
  </GMLFeatureClass>
</GMLFeatureClassList>
Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140405/32af6c0b/attachment-0001.html>


More information about the gdal-dev mailing list