]> granicus.if.org Git - postgis/commitdiff
add back in example
authorRegina Obe <lr@pcorp.us>
Fri, 11 Feb 2011 22:45:57 +0000 (22:45 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 11 Feb 2011 22:45:57 +0000 (22:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6806 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference_raster.xml

index e70f59c23a7453cee40abee3aa1c311a4d41ab0b..9bcad3b58ed4d10ab3454ce4fc9eed72bcddfe6a 100644 (file)
         <para>
             The <varname>raster2pgsql.py</varname> is a raster loader python script that utilizes Python, PyGDAL, and NumPy to convert any GDAL supported raster format 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.
-        </para>  
+        </para>
+        
+        
+        <para>An example session using the loader to create an input file and uploading it might look like this:</para>
+        
+        <programlisting>python raster2pgsql.py -s 4269 -I -r *.tif -F myschema.demelevation -o elev.sql
+psql -d gisdb -f elev.sql</programlisting>
+        
+          <para>A conversion and upload can be done all in one step using UNIX pipes:</para>
+        
+          <programlisting>python raster2pgsql.py -s 4269 -I -r *.tif -F myschema.demelevation | psql -d gisdb</programlisting>
     </sect2>
     
     <sect2 id="Raster_Creation">