We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 code:
import shapely.geometry x = shapely.geometry.asShape({'coordinates': [[1130.0, 1110.0]], 'type': 'LineString'}) assert x.is_valid x.wkb
First, is_valid returns True instead of False and I see this log when calling it:
is_valid
IllegalArgumentException: point array must contain 0 or >1 elements
Then, when asking for the wkb, my python process crashes which is even worse:
python3.5: geos_ts_c.cpp:5240: unsigned char* GEOSWKBWriter_write_r(GEOSContextHandle_t, geos::io::WKBWriter*, const geos::geom::Geometry*, std::size_t*): Assertion `0 != geom' failed. Aborted (core dumped)
import shapely.geometry x = shapely.geometry.asShape({'coordinates': ((1130.0, 1110.0),), 'type': 'LineString'}) assert not x.is_valid x.wkb
Ubuntu Xenial. python 3.5.2.
1.6.2 from pypi
The text was updated successfully, but these errors were encountered:
Thanks for the report @pvalsecc. Looks like it is related to #509.
Sorry, something went wrong.
Yep, indeed. I'm a bit surprised by how long it's been around, though.
Check for coordinates length
f9487eb
Resolves #546
Resolved. The fix will be in 1.6.3.
hi, i try with 1.7.0 and nothing. then return to 1.6.3 and its fixed..... its sad
No branches or pull requests
Expected behavior and actual behavior.
This code:
First,
is_valid
returns True instead of False and I see this log when calling it:Then, when asking for the wkb, my python process crashes which is even worse:
Steps to reproduce the problem.
Operating system
Ubuntu Xenial. python 3.5.2.
Shapely version and provenance
1.6.2 from pypi
The text was updated successfully, but these errors were encountered: