From: Regina Obe Date: Fri, 1 Feb 2013 20:13:28 +0000 (+0000) Subject: fix gdal_translate examples (port now required) and have typos in syntax X-Git-Tag: 2.1.0beta2~226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2b39d7672422be9baf5a7299a206926e12113a8;p=postgis fix gdal_translate examples (port now required) and have typos in syntax git-svn-id: http://svn.osgeo.org/postgis/trunk@11074 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/faq_raster.xml b/doc/faq_raster.xml index 62533fbd9..f1d200b70 100644 --- a/doc/faq_raster.xml +++ b/doc/faq_raster.xml @@ -117,11 +117,11 @@ For example floating point band types and 32 bit unsigned ints will not translate easily to JPG or some others. Here is an example simple translation - gdal_translate -of PNG -outsize 10% 10% "PG:host=localhost dbname='mygisdb' user='postgres' password=whatever' schema='someschema' table=sometable" C:\somefile.png + gdal_translate -of PNG -outsize 10% 10% "PG:host=localhost port=5432 dbname='mygisdb' user='postgres' password='whatever' schema='someschema' table=sometable" C:\somefile.png You can also use SQL where clauses in your export using the where=... in your driver connection string. Below are some using a where clause - gdal_translate -of PNG -outsize 10% 10% "PG:host=localhost dbname='mygisdb' user='postgres' password=whatever' schema='someschema' table=sometable where="owner='jimmy'" " C:\somefile.png - gdal_translate -of PNG -outsize 10% 10% "PG:host=localhost dbname='mygisdb' user='postgres' password=whatever' schema='someschema' table=sometable where='ST_Intersects(rast, ST_SetSRID(ST_Point(-71.032,42.3793),4326) )' " C:\intersectregion.png + gdal_translate -of PNG -outsize 10% 10% "PG:host=localhost port=5432 dbname='mygisdb' user='postgres' password='whatever' schema='someschema' table=sometable where='filename=\'abcd.sid\''" " C:\somefile.png + gdal_translate -of PNG -outsize 10% 10% "PG:host=localhost port=5432 dbname='mygisdb' user='postgres' password='whatever' schema='someschema' table=sometable where='ST_Intersects(rast, ST_SetSRID(ST_Point(-71.032,42.3793),4326) )' " C:\intersectregion.png To see more examples and syntax refer to Reading Raster Data of PostGIS Raster section