[postgis-tickets] [PostGIS] #4077: st_removerepeatedpoints regression

PostGIS trac at osgeo.org
Mon Jun 11 06:25:23 PDT 2018


#4077: st_removerepeatedpoints regression
----------------------+---------------------------
  Reporter:  nicklas  |      Owner:  pramsey
      Type:  defect   |     Status:  reopened
  Priority:  blocker  |  Milestone:  PostGIS 2.5.0
 Component:  postgis  |    Version:  trunk
Resolution:           |   Keywords:
----------------------+---------------------------

Comment (by pramsey):

 So the problem seems to be with an empty input:
 {{{
 postgis25=# select st_removerepeatedpoints(st_snaptogrid('multipolygon(((1
 1, 1 2, 2 2,1 1)))'::geometry, 10));
 ERROR:  Unknown geometry type: 40 - Invalid type
 postgis25=# select st_removerepeatedpoints('multipolygon(((1 1, 1 2, 2 2,1
 1)))'::geometry);
 st_removerepeatedpoints
 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 01060000000100000001030000000100000004000000000000000000F03F000000000000F03F000000000000F03F000000000000004000000000000000400000000000000040000000000000F03F000000000000F03F
 (1 row)

 postgis25=# select st_astext(st_snaptogrid('multipolygon(((1 1, 1 2, 2 2,1
 1)))'::geometry, 10));
      st_astext
 --------------------
  MULTIPOLYGON EMPTY
 (1 row)

 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4077#comment:6>
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