Opened 9 years ago
Closed 9 years ago
#3388 closed defect (fixed)
ST_RemoveRepeatedPoints can change endpoint
Reported by: | strk | Owned by: | pramsey |
---|---|---|---|
Priority: | critical | Milestone: | PostGIS 2.2.1 |
Component: | postgis | Version: | 2.2.x |
Keywords: | Cc: |
Description
I don't think ST_RemoveRepeatedPoints should move endpoints. The last point can instead disappear:
=$ select ST_AsText(ST_RemoveRepeatedPoints('LINESTRING(10 0,10 9,10 10)', 2)); st_astext ----------------------- LINESTRING(10 0,10 9) (1 row)
Change History (8)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Indeed the last point is retained IFF the line is a 2 vertices line:
select ST_AsText(ST_RemoveRepeatedPoints('LINESTRING(10 0,10 1)', 2)); st_astext ----------------------- LINESTRING(10 0,10 1) (1 row)
comment:3 by , 9 years ago
This is even worst on polygon, where the function returns invalid ones. Paul, I think this is important to fix.
Note:
See TracTickets
for help on using tickets.
Ok, this is debatable, maybe better discussed on mailing list