Opened 12 years ago

Closed 12 years ago

#1989 closed defect (fixed)

[raster] ST_Clip() does not clip properly in some cases

Reported by: pracine Owned by: pracine
Priority: high Milestone: PostGIS 2.0.2
Component: raster Version: 2.0.x
Keywords: history Cc:

Description

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);

Change History (2)

comment:1 by pracine, 12 years ago

Priority: mediumhigh

comment:2 by dustymugs, 12 years ago

Keywords: history added
Resolution: fixed
Status: newclosed

Fixed for 2.0 in r10549. Fixed for -trunk in r10551

Note: See TracTickets for help on using tickets.