From: Regina Obe Date: Sun, 8 Jan 2012 19:15:37 +0000 (+0000) Subject: Fix typo in manual and more description about schema. Evidentially some people do... X-Git-Tag: 2.0.0alpha1~170 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=056116c0faf92178b5df59c0c23d5a9a47d01ed0;p=postgis Fix typo in manual and more description about schema. Evidentially some people do try to read the manual and make sense of it as demonstrated here: http://gis.stackexchange.com/questions/18254/loading-a-raster-into-a-postgis-2-0-database-on-windows git-svn-id: http://svn.osgeo.org/postgis/trunk@8705 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/using_raster_dataman.xml b/doc/using_raster_dataman.xml index 2f439ac82..c6f6f421f 100644 --- a/doc/using_raster_dataman.xml +++ b/doc/using_raster_dataman.xml @@ -246,13 +246,15 @@ Specify version of output format. Default is 0. Only 0 is supported at this time. - An example session using the loader to create an input file and uploading it might look like this: - raster2pgsql -s 4236 -I -C -M *.tif -F -t myschema.demelevation > elev.sql + An example session using the loader to create an input file and uploading it chunked in 100x100 tiles might look like this: + You can leave the schema name out e.g demelevation instead of public.demelevation and + the raster table will be created in the default schema of the database or user + raster2pgsql -s 4236 -I -C -M *.tif -F -t 100x100 public.demelevation > elev.sql psql -d gisdb -f elev.sql A conversion and upload can be done all in one step using UNIX pipes: - raster2pgsql -s 4236 -I -C -M *.tif -F -t myschema.demelevation | psql -d gisdb + raster2pgsql -s 4236 -I -C -M *.tif -F -t 100x100 public.demelevation | psql -d gisdb Load rasters Massachusetts state plane meters aerial tiles into a schema called aerial and create a full view, 2 and 4 level overview tables, use copy mode for inserting (no intermediary file just straight to db), and -e don't force everything in a transaction (good if you want to see data in tables right away without waiting). Break up the rasters into 128x128 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.