From: Regina Obe Date: Wed, 14 Dec 2011 14:25:41 +0000 (+0000) Subject: minor corrections / enhancements X-Git-Tag: 2.0.0alpha1~466 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da780f44055f5af902dd176fea6234c5865a2a7e;p=postgis minor corrections / enhancements git-svn-id: http://svn.osgeo.org/postgis/trunk@8407 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/using_raster_dataman.xml b/doc/using_raster_dataman.xml index 6971ba7ab..4d0bb9568 100644 --- a/doc/using_raster_dataman.xml +++ b/doc/using_raster_dataman.xml @@ -7,11 +7,14 @@ The raster2pgsql is a raster loader executable that loads GDAL supported raster formats into sql suitable for loading into a PostGIS raster table. - It is capable of loading folders of raster files as well as creating overviews of rasters. - - Note that the older version of this tool waas a python script. The executable has replaced the python script. If you still find the need for the Python script + It is capable of loading folders of raster files as well as creating overviews of rasters. + Since the raster2pgsql is compiled as part of PostGIS most often (unless you compile your own GDAL library), the raster types supported + by the executable will be the same as those compiled in the GDAL dependency library. To get a list of raster types your particular PostGIS install + supports, refer to . + + 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 GDAL PostGIS Raster Driver Usage - + EXAMPLE USAGE: raster2pgsql raster_options_go_here raster_file someschema.sometable > out.sql @@ -216,11 +219,11 @@ psql -d gisdb -f elev.sql Load rasters Massachusetts state plane meters aerial tiles into a schema called aerial and create a full view, 2 and 4 level overview tables and directly insert to database. Break up the rasters into 100x100 pixel tiles and apply raster constraints. Use copy mode instead of table insert. (-F) Include a field called filename to hold the name of the file the tiles were cut from. - raster2pgsql -I -C -Y -F -s 26986 -t 100x100 bostonaerials2008\*.jpg -l 2,4 aerials.boston | psql -U postgres -d gisdb -h localhost -p 5432 + raster2pgsql -I -C -Y -F -s 26986 -t 100x100 -l 2,4 bostonaerials2008\*.jpg aerials.boston | psql -U postgres -d gisdb -h localhost -p 5432 - Raster Catalog Views + Raster Catalogs There are two raster catalog views that come package with PostGIS. Both views utilize information embedded in the constraints of the raster tables. As a result the catalog views are always consistent with the raster data in the tables since the constraints are enforced.