#1135 closed defect (fixed)
setPrecision crashes when collapsing linearring
Reported by: | caspervdw | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 3.10.1 |
Component: | Default | Version: | main |
Severity: | Significant | Keywords: | |
Cc: |
Description
The following command (through pygeos) results in a segmentation fault:
pygeos.set_precision(pygeos.Geometry("LINEARRING (0 0, 0.1 0, 0.1 0.1, 0 0.1, 0 0)"), 1.0, flags="make_valid")
It is just the linearrings, linestrings and polygons with the same coordinates give correct results (empty geometries).
Change History (6)
comment:1 by , 3 years ago
comment:5 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Yep, the algorithm feels that a valid linestring is "better" than a collapsed zero-area (self-intersecting) ring. Angels dance.
Note:
See TracTickets
for help on using tickets.
The same geometry with KEEP_COLLAPSED gives the surprising result LINESTRING (0 0, 0 0, 0 0)