</listitem>
</varlistentry>
+ <varlistentry>
+ <term>-Y</term>
+ <listitem>
+ <para>
+ Use copy statements instead of insert statements.</para>
+ </listitem>
+ </varlistentry>
+
</variablelist>
</para>
</listitem>
<para>A conversion and upload can be done all in one step using UNIX pipes:</para>
<programlisting>raster2pgsql -s 4236 -I -C -M *.tif -F -t myschema.demelevation | psql -d gisdb</programlisting>
+
+ <para>Load rasters Massachusetts state plane feet aerial tiles
+ into a schema called <varname>aerial</varname> 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</para>
+ <programlisting>raster2pgsql -I -C -s 26986 -t 100x100 bostonaerials2008\*.jpg -l 2,4 aerials.boston | psql -U postgres -d gisdb -h localhost -p 5432</programlisting>
</sect1>
</chapter>