hodgesse1 / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

gx:track and gx:MultiTrack elements not defined in google's kml22gx.xsd #350

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which products are affected?

gx:schema at http://code.google.com/apis/kml/schema/kml22gx.xsd

The gx:Track and gx:MultiTrack mentioned in the reference documentation do NOT 
exist in the schema so KML using those extensions violate the published XML 
schema.

Reference documentation:
http://code.google.com/apis/kml/documentation/kmlreference.html#gxtrack
http://code.google.com/apis/kml/documentation/kmlreference.html#gxmultitrack

What application versions (if any) are you using?

gx:Schema 090102 BETA as hosted at 
http://code.google.com/apis/kml/schema/kml22gx.xsd

Please provide any additional information (code snippets/links) below.

Useful examples using gx:track found in this article:
http://www.gearthblog.com/blog/archives/2010/06/using_the_track_feature_in_googl
e_e.html

Original issue reported on code.google.com by gjmath...@gmail.com on 2 Jul 2010 at 7:48

GoogleCodeExporter commented 8 years ago
Likewise the following elements: gx:SimpleArrayData, gx:coord, gx:angles, and 
gx:interpolate non of which are defined.

Looks like Google Earth 5.2 has a lot of new features that haven't been fully 
documented yet.

Original comment by gjmath...@gmail.com on 2 Jul 2010 at 9:19

GoogleCodeExporter commented 8 years ago
This is really important for e.g. the JAK libary. The Java API for KML is 
great, and makes usage of JAXB - an updated version of the XSD is key in order 
to maintain this great API. Please update the schema! 

These guys spend a lot of time in providing a generic but great KML API:

If you are interested in the API: http://labs.micromata.de/display/jak/Home

Original comment by steffen....@gmail.com on 6 Jul 2010 at 9:55

GoogleCodeExporter commented 8 years ago
Almost there... kml22gx.xsd has recently been updated.

However, from the KML reference gx:Track and gx:MultiTrack include altitudeMode 
which is NOT reflected in the published XML kml22gx.xsd schema file.

Track extends AbstractGeometryType and the latter does not include 
altitudeModeGroup so it must explictly be added to the Track and MultiTrack 
definitions.
<gx:Track id="ID">
<!-- specific to Track -->
<altitudeMode>clampToGround</altitudeMode>
<when>...</when> <!-- kml:dateTime -->
...
</gx:Track>

Changes required are following:

  <complexType name="TrackType">
    <complexContent>
      <extension base="kml:AbstractGeometryType">
        <sequence>
          <element ref="kml:extrude" minOccurs="0"/>
          <element ref="kml:tessellate" minOccurs="0"/>
          <element ref="kml:altitudeModeGroup" minOccurs="0"/>
          <element ref="kml:when" minOccurs="0" maxOccurs="unbounded"/>
...

  <complexType name="MultiTrackType">
    <complexContent>
      <extension base="kml:AbstractGeometryType">
        <sequence>
          <element ref="kml:altitudeModeGroup" minOccurs="0"/>
          <element ref="gx:interpolate" minOccurs="0"/>
...

Original comment by gjmath...@gmail.com on 11 Aug 2010 at 5:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks for your careful detective work.  I'm trying to resolve this issue and 
will update the KML Reference as soon as possible.

Original comment by jos...@google.com on 21 Aug 2010 at 3:12

GoogleCodeExporter commented 8 years ago
The KML reference is correct. The Track and MultiTrack need an altitude mode as 
does a Line or Point geometry.

Only the published kml22gx.xsd needs updating...

Original comment by gjmath...@gmail.com on 21 Aug 2010 at 4:46

GoogleCodeExporter commented 8 years ago
kml22gx.xsd has been updated. thanks

Original comment by gjmath...@gmail.com on 26 Aug 2010 at 1:30

GoogleCodeExporter commented 8 years ago
This is closed and fixed.

Original comment by manomark...@gtempaccount.com on 26 Aug 2010 at 8:42