<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<div name="messageBodySection">
<div dir="auto">Hi list<br>
<br>
Is it possible to clip a PostGIS raster with a PostGIS vector poly using gdal_translate?<br>
<br>
I cannot find a working syntax to define the clipping table in the WHERE clause.<br>
Eg. this returns "<span style="color:#000000;font-family:Menlo;font-size: 11px">Error browsing database for PostGIS Raster properties : ERROR: syntax error at or near "FROM"</span><span style="font-size: 11px"><br>
</span><span style="font-size: 11px"><br>
</span>gdal_translate -of GTiff "PG:<connectinfo> schema=a table=rastertable WHERE='ST_Intersects(rast,c.geom) AND <a href="http://c.id" target="_blank">c.id</a> = 2 FROM a.vectortable c'" a.tif</div>
</div>
<div name="messageSignatureSection"><br>
<div class="matchFont">Best regards<br>
<br>
Andreas Oxenstierna<br>
T-Kartor Geospatial AB<br>
Olof Mohlins väg 12 Kristianstad<br>
mobile: +46 733 206831<br>
mailto: <a href="mailto:andreas.oxenstierna@t-kartor.com">andreas.oxenstierna@t-kartor.com</a><br>
<a href="http://www.t-kartor.com">www.t-kartor.com</a></div>
</div>
</body>
</html>