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

Issue with togpx method when trying to convert geojson object to gpx #18

Open
NevenD opened this issue Dec 19, 2021 · 2 comments
Open

Comments

@NevenD
Copy link

NevenD commented Dec 19, 2021

I have an issue when trying to convert from geojson to gpx

This is my geojson object that I'm trying to convert

{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"name":"Testna ruta","desc":"Testna ruta aplikacije"},"geometry":{"type":"LineString","coordinates":[[15.807662,46.172293,241],[15.736605,46.156474,178],[15.713765,46.121305,214],[15.754369,46.117787,240],[15.794973,46.140651,178],[15.833039,46.142409,244],[15.825426,46.107231,227]]}}]}

And this is an error that I'm getting
1

and basically I'm passing above object into togpx method.
const gpxData = togpx(geojson);

Can someone explain me what I'm doing wrong?

@jolgau
Copy link

jolgau commented Feb 6, 2022

Same for me.
Any news here yet?

@rvillanueva
Copy link

This error happened to me when I started transforming CJS to ESM, since apparently the prior setup was fine with the togpx script's several undefined variables.

I fixed the module here, albeit with webkit tests removed due to outdated dependencies:
https://github.com/rvillanueva/togpx

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

3 participants