]> granicus.if.org Git - postgis/commitdiff
Add quickie faq about exporting raster data from PostGIS
authorRegina Obe <lr@pcorp.us>
Mon, 12 Apr 2010 20:58:39 +0000 (20:58 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 12 Apr 2010 20:58:39 +0000 (20:58 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5535 b70326c6-7e19-0410-871a-916f4a2858ee

doc/faq_wktraster.xml

index a71d92a33da337122fa83db68c1b927b83910db5..53f3d354d28069673e45c7247caa5e6a6339d62f 100644 (file)
                <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>