[postgis-devel] [PostGIS] #1989: [raster] ST_Clip() does not clip properly in some cases

PostGIS trac at osgeo.org
Mon Sep 10 08:53:04 PDT 2012


#1989: [raster] ST_Clip() does not clip properly in some cases
---------------------+------------------------------------------------------
 Reporter:  pracine  |       Owner:  pracine      
     Type:  defect   |      Status:  new          
 Priority:  medium   |   Milestone:  PostGIS 2.0.2
Component:  raster   |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 This line, in rtpostgis.sql.in.c:

 geomrast := ST_AsRaster(geom, rast, ST_BandPixelType(rast, band), 1,
 newnodataval);

 Should look like this:

 geomrast := ST_AsRaster(ST_Intersection(geom, rast::geometry), rast,
 ST_BandPixelType(rast, band), 1, newnodataval);

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1989>
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-devel mailing list