From: Regina Obe <lr@pcorp.us>
Date: Mon, 12 Apr 2010 20:58:39 +0000 (+0000)
Subject: Add quickie faq about exporting raster data from PostGIS
X-Git-Tag: 2.0.0alpha1~3042
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f0cf493a0ee3abc5f5c069c41364cd047d40d2a;p=postgis

Add quickie faq about exporting raster data from PostGIS

git-svn-id: http://svn.osgeo.org/postgis/trunk@5535 b70326c6-7e19-0410-871a-916f4a2858ee
---

diff --git a/doc/faq_wktraster.xml b/doc/faq_wktraster.xml
index a71d92a33..53f3d354d 100644
--- a/doc/faq_wktraster.xml
+++ b/doc/faq_wktraster.xml
@@ -53,6 +53,29 @@
 		<para>Your particular gdal install may not support all formats.  To verify the ones supported by your particular gdal install, you can use gdalinfo --formats</para> 
       </answer>
     </qandaentry>
+    
+    <qandaentry>
+      <question>
+        <para>Can I export my PostGIS WKT Raster data to other raster formats?</para>
+      </question>
+
+      <answer>
+        <para>Yes</para>
+		<para>GDAL 1.7+ has a PostGIS WKT Raster.  If you are compiling from source, you need to include in your configure 
+		 --enable-FEATURE=WKTRaster --with-pg=path/to/pg_config  to enable the driver.
+		 </para>
+		 <para>If you version of GDAL is compiled with the WKT Raster driver you should see PostGIS WKT Raster in list when you do
+		 		gdalinfo --formats</para>
+		 <para><ulink url="http://fwtools.maptools.org/">FWTools latest version for Windows is compiled with WKT Raster support</ulink>.</para>
+		 <para>To get a summary about your raster via gdal use gdalinfo:
+		 <programlisting>gdalinfo  "PG:host=localhost port=5432 dbname='mygisdb' user='postgres' password='whatever' schema='someschema' table=sometable"</programlisting>
+		 </para>
+		 <para>To export data to other raster formats, use gdal_translate the below will export all data into a table at 10% size.
+		  <programlisting>gdal_translate -of PNG -outsize 10% 10% "PG:host=localhost dbname='mygisdb' user='postgres' password=whatever' schema='someschema' table=sometable" C:\somefile.png</programlisting>
+		 </para>
+		 <para>Refer to <ulink url="http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html#a3.2-Readingdata">Reading Raster Data of PostGIS WKT Raster section</ulink></para>
+      </answer>
+    </qandaentry>
 	
 	<qandaentry>
       <question>