[postgis-tickets] [PostGIS] #3843: st_RemoveRepeatedPoints misses duplicate in polygon
PostGIS
trac at osgeo.org
Mon Sep 11 20:46:06 PDT 2017
#3843: st_RemoveRepeatedPoints misses duplicate in polygon
-------------------------------------+---------------------------
Reporter: crispond | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.3.4
Component: postgis | Version: 2.2.x
Keywords: st_RemoveRepeatedPoints |
-------------------------------------+---------------------------
Apologies if this has already been fixed. I couldn't find a reference to
it.
st_RemoveRepeatedPoints appears to be removing the first duplicate in a
polygon, but not the second. The function works correctly in a
linestring, and correctly if you add a third duplicate.
Perhaps, it is due to the small size of the geometry.
{{{
--Does not remove point (2 3):
select st_astext(st_RemoveRepeatedPoints('POLYGON((0 0,1 1,1 1,2 3,2 3,1
34,0 0))'::geometry));
--Works correctly:
select st_astext(st_RemoveRepeatedPoints('LINESTRING(0 0,1 1,1 1,2 3,2 3,1
34,0 0)'::geometry));
--Adding a third repetition also works correctly:
select st_astext(st_RemoveRepeatedPoints('POLYGON((0 0,1 1,1 1,2 3,2 3,1
34,1 34,0 0))'::geometry));
}}}
Thanks!
-cris
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3843>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list