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

Unexpected link to online shop in dist/lib #114

Closed
Dodje opened this issue Jul 13, 2023 · 1 comment
Closed

Unexpected link to online shop in dist/lib #114

Dodje opened this issue Jul 13, 2023 · 1 comment

Comments

@Dodje
Copy link

Dodje commented Jul 13, 2023

I'm wondering, why would the library parse the site

https://unpkg.com/@tmcw/togeojson@5.7.0/dist/togeojson.es.mjs?module

"http://www.garmin.com/xmlschemas/GpxExtensions/v3",

http://www.garmin.com/xmlschemas/GpxExtensions/v3

image

@tmcw
Copy link
Collaborator

tmcw commented Jul 13, 2023

The library isn't parsing that site: that's an XML namespace declaration for the gpxx namespace. It doesn't link to that or parse it - the URL is just a weird way to be specific about what gpxx means.

You can see that this is pretty standard, it's even on the example GPX on the Wikipedia page for GPX, and the documentation for gpxx extensions in Safe's docs.

Anyway, it's weird, but it's what all GPX files that use the gpxx extension do, and it's not a link and isn't being parsed or fetched in any way. This is just how XML namespaces work and the particular namespace used for that GPX extension.

@tmcw tmcw closed this as completed Jul 13, 2023
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