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

Example of buggy LineString conversion #1

Open
migurski opened this issue Jun 13, 2020 · 0 comments · May be fixed by #2
Open

Example of buggy LineString conversion #1

migurski opened this issue Jun 13, 2020 · 0 comments · May be fixed by #2

Comments

@migurski
Copy link

Hi, thanks for this very useful package! I’ve found a bug in LineString conversion:

>>> wkt = 'LINESTRING (-58.6120605 -34.64203155822248,-58.6132713 -34.6409059)'
>>> convert.wkt_to_geojson(wkt)
'{"type": "LineString", "coordinates": [-93.25409205822248, -93.2541772]}'

Somehow the lats & lons are being summed into coordinates:

-93.25 = -58.61 + -34.64

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

Successfully merging a pull request may close this issue.

1 participant