[postgis-users] ST_Clip

Paolo Cavallini cavallini at faunalia.it
Wed Jul 25 15:42:29 PDT 2012


Hi all.
I may well be tired, but I cannot understand why:

CREATE TABLE clip2
  AS SELECT rid, ST_Clip(rast, 1,ST_Buffer(ST_Centroid(ST_Envelope
(rast)),5000))
  AS rast from hdr            
 WHERE rid = 4;

does not result in a circle, but in a square, contained in the buffer
but smaller.
See attached pictures, with the buffer in green, and the clipped raster
inside.

Any hint?
Thanks.

-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Schermata del 2012-07-26 00:41:55.png
Type: image/png
Size: 7563 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20120726/2cc595f1/attachment.png>


More information about the postgis-users mailing list