msmitherdc / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

KML testdata violates gx schema constaints #162

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Invalid values in provided test KML sample files.

http://libkml.googlecode.com/svn/trunk/testdata/gx/all-gx.kml
http://libkml.googlecode.com/svn/trunk/testdata/gx/all-gx-golden.kml

Last element of samples have floating point values for the gx: x,y,w,h elements 
-- all of which are intergers not floats.

          <Icon>
            <gx:x>3.2</gx:x>
            <gx:y>4.3</gx:y>
            <gx:w>1.0</gx:w>
            <gx:h>2.1</gx:h>
          </Icon>

Need to change values to something like this:

          <Icon>
            <gx:x>32</gx:x>
            <gx:y>64</gx:y>
            <gx:w>32</gx:w>
            <gx:h>32</gx:h>
          </Icon>

Please provide any additional information below.

  <element name="x" type="integer" default="0" substitutionGroup="kml:BasicLinkSimpleExtensionGroup" /> 
  <element name="y" type="integer" default="0" substitutionGroup="kml:BasicLinkSimpleExtensionGroup" /> 
  <element name="w" type="integer" default="-1" substitutionGroup="kml:BasicLinkSimpleExtensionGroup" /> 
  <element name="h" type="integer" default="-1" substitutionGroup="kml:BasicLinkSimpleExtensionGroup" /> 

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

Original issue reported on code.google.com by gjmath...@gmail.com on 6 Dec 2010 at 3:02