[postgis-users] Adding raster to PostGIS database

Bborie Park bkpark at ucdavis.edu
Mon Nov 26 13:27:00 PST 2012


-D is not a valid flag recognized by raster2pgsql.  Remove the flag as
raster2pgsql is assuming that -D is a file.

-bborie

On 11/26/2012 01:23 PM, Smaran Harihar wrote:
> Hi Guys,
> 
> I am trying to add a raster to PostGIS database using,
> 
> raster2pgsql -c -D -s 4326 -I Quercus_acutifolia_raw.tif
> public.Quercus_acutifolia_raw | psql -h localhost -d dbnm -U usr
> 
> But I am getting this error,
> 
> ERROR: Unable to read raster file: -D
> 
> Any idea what is wrong? The database already has numerous point and polygon
> shapefiles. Is that a problem that I cannot add rasters to the same
> database having shapefiles?
> 
> 
> 
> _______________________________________________
> postgis-users mailing list
> postgis-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users
> 

-- 
Bborie Park
Programmer
Center for Vectorborne Diseases
UC Davis
530-752-8380
bkpark at ucdavis.edu


More information about the postgis-users mailing list