Skip to content
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

kml format is not supported #27

Closed
antonad opened this issue Mar 6, 2020 · 2 comments
Closed

kml format is not supported #27

antonad opened this issue Mar 6, 2020 · 2 comments

Comments

@antonad
Copy link

antonad commented Mar 6, 2020

Hello.
I have tried to use SharpKml for parsing this file.
There are 2 problems while parsing:

  1. import fails until I have removed kml tag and replaced Document with Document xmlns="http://www.opengis.net/kml/2.2"

  2. because of tabs in text file styles was parsed with bugs, for example color = ddff0000 was parsed as 0000000d

Geofences.zip

Can you comment first problem? Can without xmlns be used? Can be used?

Can you remove /tabs, blanks before parsing colors and similar fields?

Thanks.

@samcragg
Copy link
Owner

samcragg commented Mar 7, 2020

For the first problem you can use the Parser directly to ignore namespaces, see legacy files for an example.

For the second problem, I've just publised an updated package (v 5.1.1) that will now ignore the whitespace, sorry about that.

Thanks for opening the issue; if there are any other errors then please feel free to open a new one 🙂

@samcragg samcragg closed this as completed Mar 7, 2020
@antonad
Copy link
Author

antonad commented Mar 7, 2020

Thank you very much.
Working great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants