[postgis-users] raster2pgsql

Bborie Park bkpark at ucdavis.edu
Mon Apr 2 10:29:32 PDT 2012

raster2psql -?

Also check the docs.


By the looks of it you were using the python-based loader, which was 
replaced by a C-based loader for 2.0.  As part of the replacement, the 
switches were changed to be in-line with those for shp2pgsql.


On 04/02/2012 10:19 AM, JamesH wrote:
> Hi all,
> I am trying to load a .img raster through raster2pgsql. Recently upgraded to
> version beta4 and I believe the commands have changed.
> Previously I have used something like (when in postgresql\9.1\bin)
> raster2pgsql -r C:\Users\james\height_newcastle.img -t public.height -s
> 27700 -o C:\Users\james\height/sql
> But this is now returning as "unable to read raster file: -o"
> Looking through the documentation I have recognised to change -r to -R and
> -s is still the same but the -t has changed and -o does not exist in the
> help.
> What should I be doing to produce the sql file?
> Kind Regards,
> James
> --
> View this message in context: http://postgis.17.n6.nabble.com/raster2pgsql-tp4679577p4679577.html
> Sent from the PostGIS - User mailing list archive at Nabble.com.
> _______________________________________________
> postgis-users mailing list
> postgis-users at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-users

Bborie Park
Center for Vectorborne Diseases
UC Davis
bkpark at ucdavis.edu

More information about the postgis-users mailing list