[gdal-dev] Motion: Adopt RFC 41 : Support for multiple geometry fields in OGR

Even Rouault even.rouault at mines-paris.org
Thu Aug 1 08:53:08 PDT 2013


Selon Andre Joost <andre+joost at nurfuerspam.de>:

> Am 01.08.2013 16:16, schrieb Even Rouault:
> >>>
> >>>> Hi,
> >>>>
> >>>> Motion: I move to adopt RFC 41 : Support for multiple geometry fields in
> >>>> OGR
> >>>>
> >>>>      http://trac.osgeo.org/gdal/wiki/rfc41_multiple_geometry_fields
> >>>>
> >>>> I've made a few changes in the last few days. See the history :
> >>>>
> >>>>
> >>
> http://trac.osgeo.org/gdal/wiki/rfc41_multiple_geometry_fields?action=history
> >>>>
> >>>> Starting with my +1
> >
> > Hi,
> >
> > no other voters ? (yes I know everybody must be laying on the sand ;-))
>
> +1 from me. Could the libkml driver be added to the "candidate drivers"
> as well?

My understanding of the KML specification is "no".
https://developers.google.com/kml/documentation/kmlreference#placemark mentions
"0 or one <Geometry> elements", and the
http://schemas.opengis.net/kml/2.2.0/ogckml22.xsd schema also confirms it :

<complexType name="PlacemarkType" final="#all">
<complexContent>
<extension base="kml:AbstractFeatureType">
<sequence>
<element ref="kml:AbstractGeometryGroup" minOccurs="0"/>
<element ref="kml:PlacemarkSimpleExtensionGroup" minOccurs="0"
maxOccurs="unbounded"/>
<element ref="kml:PlacemarkObjectExtensionGroup" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>

There's no explicit maxOccurs on <element ref="kml:AbstractGeometryGroup"
minOccurs="0"/>, so it means the max is 1.

Perhaps there are other KML feature elements that support several geometries.
I've no checked

>And maybe GPX driver too?

I don't see it possible either. The format defines waypoints, routes and tracks.
I can't see how to fit that into a multi geometry fields approach.

>
> Greetings,
> André Joost
>
> _______________________________________________
> 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