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

Can't convert NOAA KML #15

Closed
jlubeck opened this issue Sep 19, 2019 · 4 comments
Closed

Can't convert NOAA KML #15

jlubeck opened this issue Sep 19, 2019 · 4 comments

Comments

@jlubeck
Copy link

jlubeck commented Sep 19, 2019

I'm trying to convert this file: https://www.nhc.noaa.gov/gis/kml/nhc_active.kml

But the conversion is just returning this Object:

Object {type: "FeatureCollection", features: Array(0)}

Any idea what is wrong and if it can be fixed?

Thanks!

@tmcw
Copy link
Collaborator

tmcw commented Sep 19, 2019

The issue is NetworkLinks - see the note in the readme about that limitation. https://github.com/tmcw/togeojson#why-doesnt-togeojson-support-networklinks

@tmcw tmcw closed this as completed Sep 19, 2019
@jlubeck
Copy link
Author

jlubeck commented Sep 19, 2019

Can't the network link be converted to a regular string (or something) and give us the option to then do the download and re-conversion manually? (without having the library have to handle this).

Wouldn't that be better than to just return an empty object?

Thanks for the ultra quick reply!

@tmcw
Copy link
Collaborator

tmcw commented Sep 19, 2019

There's no equivalent representation for a network link in GeoJSON, and I'd rather not invent one. If you'd like to extract the links, it's as easy as getElementsByTagName('NetworkLink') once you have an XML DOM.

@jlubeck
Copy link
Author

jlubeck commented Sep 19, 2019

Ok, thank you

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