chiropterist / kml-samples

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

trackexample in kml Reference violates KML Schema with several errors #364

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Which products are affected?
KML reference example

Track example violates the KML schema.
http://code.google.com/apis/kml/documentation/kmlreference.html#trackexample

The example should be rewritten as attached file which was reordered to conform 
to the KML 2.2 specification.

What is the expected output or behavior? What do you see instead?

 KML example is valid KML file.

What application versions (if any) are you using?

 Validate example with http://www.kmlvalidator.com/home.htm

Which operating systems (and/or relevant web browsers) are affected?

 Windows XP

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

The error is also discussed here:
http://groups.google.com/group/kml-support-getting-started/browse_thread/thread/
29d4a39ae2c8b742/5089f248ae121b52#5089f248ae121b52

The example should be rewritten as attached file which was reordered to conform 
to the specification.

Original issue reported on code.google.com by gjmath...@gmail.com on 17 Oct 2010 at 10:49

Attachments:

GoogleCodeExporter commented 9 years ago
For example, the "Schema" element must be after the Style elements in
a Document.

And second, the order of style in wrong: IconStyle preceeds
LabelStyle.

    <Style id="track_n">
      <LabelStyle>
        <scale>0</scale>
      </LabelStyle>
      <IconStyle>
        <scale>.5</scale>
        <Icon>
          <href>http://earth.google.com/images/kml-icons/track-
directional/track-none.png</href>
        </Icon>
      </IconStyle>
    </Style>

must be reordered:

    <Style id="track_n">
      <IconStyle>
        <scale>.5</scale>
        <Icon>
          <href>http://earth.google.com/images/kml-icons/track-
directional/track-none.png</href>
        </Icon>
      </IconStyle>
      <LabelStyle>
        <scale>0</scale>
      </LabelStyle>
    </Style>

There are a few similar errors in the file.

Example must be reordered as following:

<kml>
  <Document>
    <LookAt>...</LookAt>
    <Style id="track_n">
...
    </Style>
  <Schema>.../Schema>
  <Folder>..</Folder>
  </Document>
</kml> 

Original comment by gjmath...@gmail.com on 17 Oct 2010 at 10:52

GoogleCodeExporter commented 9 years ago
This issue needs to be changed from Defect to 'Documentation error'.

Original comment by gjmath...@gmail.com on 1 Dec 2010 at 2:37

GoogleCodeExporter commented 9 years ago
The example in documentation has been fixed. This issue can be closed.

Original comment by gjmath...@gmail.com on 21 Feb 2012 at 7:00

GoogleCodeExporter commented 9 years ago

Original comment by jli...@google.com on 21 Feb 2012 at 7:33