Hi Casper, Tried to use the GDAL Clip, but it seems to be the ‘Cutline’ that miss a table name.
gdalwarp -ot Float32 -q -of GTiff -dstnodata 0 -cutline "PG:dbname='projekter' port=5432 user='postgres' password='xxxx' sslmode=disable" -crop_to_cutline -co COMPRESS=DEFLATE -co PREDICTOR=1 -co ZLEVEL=6 -wo OPTIMIZE_SIZE=TRUE C:/gis/bettedanmark/bettedanmark.vrt "[temporary file]" I try to open a bug report on this. Thanks for your help Lene Fischer Associate Professor University of Copenhagen Department of Geoscience and Natural Resource Management Forest and Landscape College Nødebovej 77a 3480 Fredensborg Denmark MOB +45 40115084 [email protected]<mailto:[email protected]> From: Qgis-user [mailto:[email protected]] On Behalf Of Casper Bertelsen Sent: 10. januar 2018 09:52 To: [email protected] Subject: Re: [Qgis-user] Clip raster with vectorlayer in Postgis Hi Lene, Using the Toolbox I get the option to use my vectorlayer from PostGIS. However I did not have any luck getting it to clip with the GDAL-clipper (Trying with a shape file there was no problem), but using the SAGA Clip raster with polygon works fine for me :) Mvh. / Best regards Casper Bertelsen Mail: [email protected]<mailto:[email protected]> On 10-01-2018 08:51, Lene Fischer wrote: Hi Just started to use PostGIS in QGIS. I only have vector data in postGIS When I try to clip a raster layer with a vector mask (PostGIS) the layer is not shown in the drop down meny. So I had to ‘Save As’ shape before clipping. Is this correct ? Regards Lene Fischer Associate Professor University of Copenhagen Department of Geoscience and Natural Resource Management Forest and Landscape College Nødebovej 77a 3480 Fredensborg Denmark MOB +45 40115084 [email protected]<mailto:[email protected]> _______________________________________________ Qgis-user mailing list [email protected]<mailto:[email protected]> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ Qgis-user mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
