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

parseWKT gives Segmentation fault #20

Closed
OmriTreidel opened this issue Sep 2, 2016 · 3 comments
Closed

parseWKT gives Segmentation fault #20

OmriTreidel opened this issue Sep 2, 2016 · 3 comments
Labels

Comments

@OmriTreidel
Copy link
Contributor

I'm trying to create a polygon from a WKT string which has additional content which makes julia crash.

wkt = "SRID=32756; POLYGON ((481676.5592297933180816 7207446.6192339314147830, 481670.9812610360677354 7207436.6032548164948821, 481656.8734335989574902 7207443.3182328715920448, 481661.5463352609076537 7207453.9481827337294817, 481676.5592297933180816 7207446.6192339314147830))"

p=parseWKT(s)

gives:

signal (11): Segmentation fault
unknown function (ip: (nil))
Segmentation fault

@OmriTreidel OmriTreidel added the bug label Sep 2, 2016
@yeesian
Copy link
Member

yeesian commented Sep 4, 2016

I don't think LibGEOS supports the parsing of the Extended WKT format, but it will be nice for us to fail more gracefully. You might want to output standard WKT from PostGIS/databases for now. Seems related: https://trac.osgeo.org/gdal/ticket/1230

@OmriTreidel
Copy link
Contributor Author

OmriTreidel commented Nov 4, 2016

Are you happy with some simple string validation in geomFromWKT? That can also solev #22

@yeesian
Copy link
Member

yeesian commented Nov 4, 2016

I'd rather we move towards the new reader and writer functions mentioned in #21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants