-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Earth InnerBoundary Nesting #4
Comments
Checking the schema (in both 2.2 and 2.3) and there should only be one LinearRing, so it's odd it's choosing to serialize it like that. My initial thoughts are to make I'll see if I have time over the weekend to look at it. |
It is a weird way to serialize it. I tried forcing the KML to contain multiple InnerBoundaries instead, loading it into Google Earth, and finally re-saving it. It consistently goes against the specs. I was looking at using the set'er for the LinearRing, but I ran into the problem that the InnerBoundary did not know its parent at the given time. |
Wouldn't it rather be |
That should be fixed now in version 3.0.2. You were right about the parent not being set - I divided element creation and population into two separate steps now so that the change was easier to implement. I added a unit test that hopefully shows the original problem, but if you have any issues let me know and I'll take another look at it. |
It would appears as if Google Earth consequently "breaks" the written standard for a Polygon with multiple InnerBoundaries.
Instead of having:
They serialize it as:
When parsing such a file with SharpKML, only the last InnerBoundary is attached to the Polygon.
Suggestion: Add the feature of parsing such a Google Earth file, but convert it to valid KML 2.2 notation, with multiple InnerBoundaries instead.
The text was updated successfully, but these errors were encountered: