Opened 7 years ago

Closed 7 years ago

#3969 closed defect (fixed)

ST_RemoveRepeatedPoints regression

Reported by: Algunenano Owned by: strk
Priority: high Milestone: PostGIS 2.5.0
Component: liblwgeom Version: master
Keywords: Cc:

Description

Trunk removes too many points in the following query:

# SELECT 18, ST_AsText( ST_RemoveRepeatedPoints('POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))'::geometry, 10));
 ?column? |   st_astext   
----------+---------------
       18 | POLYGON EMPTY
(1 row)

POLYGON((0 0,1 1,1 0,0 0)) is the expected result.

GH PR: https://github.com/postgis/postgis/pull/182

Change History (1)

comment:1 by komzpa, 7 years ago

Resolution: fixed
Status: newclosed

In 16221:

Fix ST_RemoveRepeatedPoints dropping one extra point in certain ptarrays

Patch by Raúl Marín Rodríguez.

Closes #3969
Closes https://github.com/postgis/postgis/pull/182

Note: See TracTickets for help on using tickets.