From 0fa018df234cb6681bcd4a492b87b4ca9070cd02 Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Wed, 14 Apr 2010 11:48:04 +0000 Subject: [PATCH] try to get rid of really long lines git-svn-id: http://svn.osgeo.org/postgis/trunk@5544 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/faq_wktraster.xml | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/doc/faq_wktraster.xml b/doc/faq_wktraster.xml index fb24a0d5f..6cebd672c 100644 --- a/doc/faq_wktraster.xml +++ b/doc/faq_wktraster.xml @@ -62,18 +62,22 @@ Yes GDAL 1.7+ has a PostGIS WKT Raster driver, but is not compiled in by default. - The driver currently doesn't support irregularly blocked rasters, all though you can store irregularly blocked rasters in PostGIS raster data type. + The driver currently doesn't support irregularly blocked rasters, + although you can store irregularly blocked rasters in PostGIS raster data type. 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. - If your version of GDAL is compiled with the WKT Raster driver you should see PostGIS WKT Raster in list when you do + If your version of GDAL is compiled with the WKT Raster driver + you should see PostGIS WKT Raster in list when you do gdalinfo --formats FWTools latest version for Windows is compiled with WKT Raster support. To get a summary about your raster via gdal use gdalinfo: gdalinfo "PG:host=localhost port=5432 dbname='mygisdb' user='postgres' password='whatever' schema='someschema' table=sometable" - To export data to other raster formats, use gdal_translate the below will export all data from a table to a PNG file at 10% size. - Depending on your pixel band types, some translations may not work if the export format does not support that Pixel type. For example floating point band types and 32 bit unsigned ints + To export data to other raster formats, + use gdal_translate the below will export all data from a table to a PNG file at 10% size. + Depending on your pixel band types, some translations may not work if the export format does not support that Pixel type. + 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 @@ -99,9 +103,11 @@ - You can much like you can with any other raster. Refer to Mapserver Raster processing options + You can much like you can with any other raster. + Refer to Mapserver Raster processing options for list of various processing functions you can use with Mapserver raster layers. - What makes PostGIS raster data particularly interesting, is that since each tile can have various standard database columns, you can segment it in your data source + What makes PostGIS raster data particularly interesting, is that since + each tile can have various standard database columns, you can segment it in your data source Below is an example of how you would defined a PostGIS raster layer in Mapserver. -- displaying raster with standard raster options @@ -109,7 +115,8 @@ LAYER NAME coolwktraster TYPE raster STATUS ON - DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' schema='someschema' table='cooltable'" + DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' + schema='someschema' table='cooltable'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" #... other standard raster processing functions here @@ -138,7 +145,8 @@ LAYER NAME soil_survey2009 TYPE raster STATUS ON - DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' schema='someschema' table='cooltable' where='survey_year=2009'" + DATA "PG:host=localhost port=5432 dbname='somedb' user='someuser' password='whatever' + schema='someschema' table='cooltable' where='survey_year=2009'" PROCESSING "NODATA=0" PROCESSING "SCALE=AUTO" #... other standard raster processing functions here @@ -156,8 +164,10 @@ END - Refer to the list of documented raster functions. There are more, but this is still a work in progress. - Refer to the WKT Raster roadmap page for details of what you can expect in the future. + Refer to the list of documented raster functions. + There are more, but this is still a work in progress. + Refer to the WKT Raster roadmap page + for details of what you can expect in the future. -- 2.40.0