[postgis-tickets] [PostGIS] #3108: ST_SubDivide leaves pockets
PostGIS
trac at osgeo.org
Thu May 7 06:46:02 PDT 2015
#3108: ST_SubDivide leaves pockets
----------------------+---------------------------
Reporter: robe | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.2.0
Component: postgis | Version: trunk
Resolution: | Keywords:
----------------------+---------------------------
Comment (by robe):
At strk's urging, I tried a similar exercise with ST_ClipByBox and can't
get it to fail despite tweaking my cuts.
{{{
WITH grid As (
SELECT ST_Tile(
ST_MakeEmptyRaster(
ceiling( (ST_XMax(ext) - ST_Xmin(ext))/10 )::integer,
ceiling((ST_YMax(ext) - ST_Ymin(ext))/10)::integer,
ST_XMin(ext), ST_YMax(ext), 10, -10,0,0, 26986), 700,800
)::geometry As b
FROM (SELECT ST_Extent(geom) As ext from subdivide_test) As f )
SELECT t.town, ST_Multi(ST_ClipByBox2D(t.geom, grid.b::box2d) )
FROM subdivide_test AS t INNER JOIN grid ON ST_Intersects(t.geom, grid.b)
;
}}}
See attached image.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/3108#comment:4>
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