[gdal-dev] gdalwarp with cutline, sql and geopackage

Stefan Ziegler stefan.ziegler.de at gmail.com
Mon Oct 13 12:19:10 PDT 2014


Hi

I'm trying to clip a raster with a vector layer from a geopackage file. The
vector layer needs to be buffered before. The clipping works without
buffering:

gdalwarp -overwrite -wm 1024 -dstalpha -cutline
'administrative_grenzen.gpkg'  -csql 'SELECT geom FROM kantonsgrenzen WHERE
KANTONSNUM = 11' -co 'COMPRESS=LZW' -co 'TILED=YES'
/tmp/bpav5000f_1067-41_tmp.tif  /tmp/bpav5000f_1067-41.tif

When I try to buffer (ST_Buffer(geom)) the vector layer I get a "no such
function" error. Is there another way to achieve this? Or would it work
with a "dialect" option (like in ogr2ogr)?

best regards
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20141013/8e46cdc3/attachment.html>


More information about the gdal-dev mailing list