[postgis-tickets] [PostGIS] #3522: ST_Subdivide() returns 0 rows on point geometries

PostGIS trac at osgeo.org
Tue Apr 12 13:30:10 PDT 2016


#3522: ST_Subdivide() returns 0 rows on point geometries
--------------------------+---------------------------
  Reporter:  snorris      |      Owner:  pramsey
      Type:  enhancement  |     Status:  new
  Priority:  medium       |  Milestone:  PostGIS 2.2.3
 Component:  postgis      |    Version:  2.2.x
Resolution:               |   Keywords:
--------------------------+---------------------------
Changes (by pramsey):

 * milestone:   => PostGIS 2.2.3


Comment:

 Hm, a simple fix to preserve points opens a new can of worms: how to
 handle multipoints correctly.
 {{{
 with mp as (
   select st_collectionhomogenize(st_collect(pt)) as geom
   from (
     select st_makepoint(random(), random()) as pt
     from generate_series(1,100)
     ) as foo
   )
 select st_subdivide(geom,16)
 from mp;
 }}}

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