]> granicus.if.org Git - postgis/commitdiff
update faq for raster to bring it more up to line with new loading , QGIS support...
authorRegina Obe <lr@pcorp.us>
Mon, 19 Dec 2011 01:59:16 +0000 (01:59 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 19 Dec 2011 01:59:16 +0000 (01:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8458 b70326c6-7e19-0410-871a-916f4a2858ee

doc/faq_raster.xml
doc/reference_raster.xml
doc/using_raster_dataman.xml

index 15174b9cb26f37f6f7799d833e14ecf366267999..231724d5d8d507a26a0c25f4283b1fe602e9ae1b 100644 (file)
@@ -39,7 +39,7 @@
 
       <answer>
         <para>The easiest is to download binaries for PostGIS and Raster which are currently available for windows and latest versions of Mac OSX. 
-               First you need a working PostGIS 1.3.5 or above and be running PostgreSQL 8.3, 8.4, or 9.0. Note in PostGIS 2.0 PostGIS Raster is fully integrated, so it will be compiled when you compile PostGIS.</para>
+               First you need a working PostGIS 2.0.0 or above and be running PostgreSQL 8.4, 9.0, or 9.1. Note in PostGIS 2.0 PostGIS Raster is fully integrated, so it will be compiled when you compile PostGIS.</para>
                <para>Instructions for installing and running under windows are available at <ulink url="http://gis4free.wordpress.com/2011/03/10/how-to-install-and-configure-postgis-raster-on-windows/">How to Install and Configure PostGIS raster on windows</ulink></para>
         <para>
                        If you are on windows, you can compile yourself, or use the <ulink
@@ -47,7 +47,7 @@
             PostGIS Raster windows binaries</ulink>.
                        If you are on Mac OSX Leopard or Snow Leopard, there are binaries available at <ulink url="http://www.kyngchaos.com/software/postgres">Kyng Chaos Mac OSX PostgreSQL/GIS binaries</ulink>.
                </para>
-               <para>Then to enable raster support in your database, run the rtpostgis.sql file in your database.</para>
+               <para>Then to enable raster support in your database, run the rtpostgis.sql file in your database.  To upgrade an existing install use rtpostgis_upgrade_minor..sql instead of rtpostgis.sql</para>
                <para>For other platforms, you generally need to compile yourself. Dependencies are PostGIS and GDAL. For more details about compiling from source, please refer to <ulink url="http://trac.osgeo.org/postgis/wiki/WKTRaster/Documentation01#a2.3-CompilingandInstallingfromSources">Installing PostGIS Raster from source (in prior versions of PostGIS)</ulink></para>
       </answer>
     </qandaentry>
@@ -59,7 +59,7 @@
       </question>
 
       <answer>
-        <para>rtpostgis.so/dll is built with dependency on libgdal.dll/so. Make sure for Windows you have libgdal.dll in the bin folder of your PostgreSQL install.  
+        <para>rtpostgis.so/dll is built with dependency on libgdal.dll/so. Make sure for Windows you have libgdal-1.dll in the bin folder of your PostgreSQL install.  
         For Linux libgdal has to be in your path or bin folder.  </para>
                <para>You may also run into different errors if you don't have PostGIS installed in your database.  Make sure to install PostGIS first in your 
                database before trying to install the raster support.</para>
       </question>
 
       <answer>
-        <para>Currently you need <ulink url="http://www.gdal.org/">GDAL 1.6+</ulink> though later versions would be better since they have many memory leak fixes, <ulink url="http://www.python.org/download/releases/2.5/">Python 2.5</ulink> with <ulink url="http://pypi.python.org/pypi/GDAL/1.6.1">GDAL 1.6 or higher bindings</ulink>, 
-                       and <ulink url="http://pypi.python.org/pypi/numpy">NumPy</ulink>.</para>
-               <para>
-                       For windows users, installing these components from binary sources is documented in the 
-                       ReadMe.txt packaged with the <ulink
-            url="http://www.postgis.org/download/windows/experimental.php#wktraster">Windows
-            PostGIS Raster experimental builds</ulink>.</para>
-               <para>Once you have a functioning Python with GDAL and NumPy, you can
-        use the raster2pgsql.py script packaged with PostGIS Raster.</para>
-               <para>Please refer to <ulink url="http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html">raster2pgsql.py usage</ulink> and <xref linkend="RT_Loading_Rasters" /> for more details.</para>
+        <para>The latest version of PostGIS comes packaged with a <varname>raster2pgsql</varname> raster loader executable capable of loading many kinds of rasters and also generating lower resolution overviews without any additional software. Please refer to <xref linkend="RT_Raster_Loader" /> for more details. Pre-2.0 versions came with a <varname>raster2pgsql.py</varname> that required python with numpy and GDAL.  This is no longer needed.</para>
       </answer>
     </qandaentry>
        
@@ -93,7 +84,7 @@
       <answer>
         <para>Any that your GDAL library supports. GDAL supported formats are documented <ulink url="http://www.gdal.org/formats_list.html">GDAL File Formats</ulink>.</para>
                <para>Your particular GDAL install may not support all formats.  To verify the ones supported by your particular GDAL install, you can use</para> 
-               <programlisting>gdalinfo --formats</programlisting>
+               <programlisting>raster2pgsql -G</programlisting>
       </answer>
     </qandaentry>
     
     <qandaentry>
        <question><para>Are their binaries of GDAL available already compiled with PostGIS Raster suppport?</para></question>
        <answer>
-               <para>Yes. Check out the page <ulink url="http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries">GDAL Binaries</ulink> page.  Any compiled wiht PostgreSQL
+               <para>Yes. Check out the page <ulink url="http://trac.osgeo.org/gdal/wiki/DownloadingGdalBinaries">GDAL Binaries</ulink> page.  Any compiled with PostgreSQL
                support should have PostGIS Raster in them.  </para>
                <para>We know for sure the following windows binaries have PostGIS Raster built in.</para>
                <para><ulink url="http://fwtools.maptools.org/">FWTools latest stable version for Windows is compiled with Raster support</ulink>.</para>
       </question>
 
       <answer>
-        <para>You can use MapServer compiled with GDAL 1.7+ and PostGIS Raster driver support to view Raster data.  
-        In theory any tool that renders data using GDAL can support PostGIS raster data or 
+        <para>You can use MapServer compiled with GDAL 1.7+ and PostGIS Raster driver support to view Raster data. QuantumGIS (QGIS) now supports viewing of PostGIS Raster if you
+        have PostGIS raster driver installed.</para>
+        <para>In theory any tool that renders data using GDAL can support PostGIS raster data or 
         support it with fairly minimal effort. Again for Windows, Tamas' binaries <ulink url="http://vbkto.dyndns.org/sdk/">http://vbkto.dyndns.org/sdk/</ulink> are a good choice if you don't want the hassle of having to setup to compile your own.</para>
       </answer>
     </qandaentry>
index 8600dcae64ce4449ab4c63f83aac1770b75b6375..aace337434402a97ec2972651a1338624d1c95b0 100644 (file)
@@ -4784,16 +4784,16 @@ FROM dummy_rast WHERE rid=2;
        
        <sect1 id="Raster_Processing">
                <title>Raster Processing</title>
-               <refentry id="RT_Box2D">
+               <refentry id="RT_Box3D">
                        <refnamediv>
-                               <refname>Box2D</refname>
-                               <refpurpose>Returns the box 2d representation of the enclosing box of the raster</refpurpose>
+                               <refname>Box3D</refname>
+                               <refpurpose>Returns the box 3d representation of the enclosing box of the raster</refpurpose>
                        </refnamediv>
                
                        <refsynopsisdiv>
                                <funcsynopsis>
                                  <funcprototype>
-                                       <funcdef>box2d <function>Box2D</function></funcdef>
+                                       <funcdef>box3d <function>Box2D</function></funcdef>
                                        <paramdef><type>raster </type> <parameter>rast</parameter></paramdef>
                                  </funcprototype>
                                </funcsynopsis>
@@ -4806,18 +4806,20 @@ FROM dummy_rast WHERE rid=2;
                                <para>The polygon is defined by the corner points of the bounding box
                        ((<varname>MINX</varname>, <varname>MINY</varname>),
                        (<varname>MAXX</varname>, <varname>MAXY</varname>))</para>
+                       
+                               <para>Changed: 2.0.0 In pre-2.0 versions, there used to be a box2d instead of box3d.  Since box2d is a deprecated type, this was changed to box3d.</para>
                        </refsection>
                                
                        <refsection>
                                <title>Examples</title>
                        
-                               <programlisting>SELECT rid, Box2D(rast) As rastbox
+                               <programlisting>SELECT rid, Box3D(rast) As rastbox
 FROM dummy_rast;
 
 rid |        rastbox
 ----+-------------------------------------------------
-1   | BOX(0.5 0.5,20.5 60.5)
-2   | BOX(3427927.75 5793243.5,3427928 5793244)
+1   | BOX3D(0.5 0.5 0,20.5 60.5 0)
+2   | BOX3D(3427927.75 5793243.5 0,3427928 5793244 0)
                        </programlisting>
                        
                        </refsection>
index 157030098436969c9b0549b2273c5c8c7ad2656e..ef3a41a503ad176f84b9d31a64be3b9d549858e9 100644 (file)
@@ -14,7 +14,7 @@
        by the executable will be the same as those compiled in the GDAL dependency library.  To get a list of raster types your particular raster2pgsql supports use the <varname>-G</varname> switch.  These should be the same as those provided by your PostGIS install documented here  <xref linkend="RT_ST_GDALDrivers" /> if you are using the same gdal library for both.</para>
     <note>
        <para>The older version of this tool was a python script.  The executable has replaced the python script.  If you still find the need for the Python script
-        Examples of the pyhton one can be found at <ulink url="http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html">GDAL PostGIS Raster Driver Usage</ulink> 
+        Examples of the pyhton one can be found at <ulink url="http://trac.osgeo.org/gdal/wiki/frmts_wtkraster.html">GDAL PostGIS Raster Driver Usage</ulink>.  Pease note that the raster2pgsql python script may not work with future versions of PostGIS raster and is no longer supported.
         </para></note>
         
     <para>EXAMPLE USAGE: 
@@ -34,7 +34,7 @@
           <term>-G</term>
           <listitem>
             <para>
-             Print the supported GDAL raster formats.
+             Print the supported raster formats.
             </para>
           </listitem>
         </varlistentry>