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

this.parseError is not a function #92

Closed
hbarrameda opened this issue Jan 2, 2023 · 2 comments · Fixed by #104
Closed

this.parseError is not a function #92

hbarrameda opened this issue Jan 2, 2023 · 2 comments · Fixed by #104
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@hbarrameda
Copy link

The function wktToGeoJSON of package @terraformer/wkt version 2.1.2 fails with error:
Unable to parse: TypeError: this.parseError is not a function
when the wkt is invalid.

To reproduce it just do
wkt.wktToGeoJSON("POINT(0,0)")

@jgravois
Copy link
Member

jgravois commented Jan 2, 2023

a PR to catch the error and return a more informative message would be welcome.

@jgravois jgravois added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jun 13, 2023
mpalmerlee added a commit to mpalmerlee/terraformer that referenced this issue May 11, 2024
@mpalmerlee
Copy link
Contributor

Thank you for maintaining this useful library @jgravois, I just started using it for a GIS project and hit this error also, the linked PR seems to address it 🙌

jgravois added a commit that referenced this issue May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants