mdalkiran / kml-library

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

Effects #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Prepare KML 2.2 file with <altitudeMode>clampToGround</altitudeMode>
2. Try to deserialize document using var kml = KMLRoot.Load(fileName);

What is the expected output? What do you see instead?
Load fails informing on invalid altitudeMode enumerator.

What version of the product are you using? On what operating system?
Windows 7 x64

Please provide any additional information below.
The problem is invalid string in enums etc.cs line 9.
The first enumeration value should be 'clampToGround' instead of 
'clampedToGround' - compare with ogckml22.xsd:
    <simpleType name="altitudeModeEnumType">
        <restriction base="string">
            <enumeration value="clampToGround"/>
            <enumeration value="relativeToGround"/>
            <enumeration value="absolute"/>
        </restriction>
    </simpleType>

Original issue reported on code.google.com by pczekal...@gmail.com on 22 Mar 2012 at 8:23