Thanks for the reply bborie,<div><br></div><div>I ran this command,</div><div><br></div><div><div>raster2pgsql -c -s 4326 -I Quercus_acutifolia_raw.tif public.Quercus_acutifolia_raw | psql -h localhost -d rasterdb -U postgres</div>
<div><br></div><div>But this is the new error,</div><div><br></div><div><font color="#ff0000">ERROR: Unable to read raster file: Quercus_acutifolia_raw.tif</font></div><div><br></div><div>Thanks,</div><div>Smaran</div><br>
<div class="gmail_quote">On Mon, Nov 26, 2012 at 2:27 PM, Bborie Park <span dir="ltr"><<a href="mailto:bkpark@ucdavis.edu" target="_blank">bkpark@ucdavis.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-D is not a valid flag recognized by raster2pgsql. Remove the flag as<br>
raster2pgsql is assuming that -D is a file.<br>
<br>
-bborie<br>
<div><div class="h5"><br>
On 11/26/2012 01:23 PM, Smaran Harihar wrote:<br>
> Hi Guys,<br>
><br>
> I am trying to add a raster to PostGIS database using,<br>
><br>
> raster2pgsql -c -D -s 4326 -I Quercus_acutifolia_raw.tif<br>
> public.Quercus_acutifolia_raw | psql -h localhost -d dbnm -U usr<br>
><br>
> But I am getting this error,<br>
><br>
> ERROR: Unable to read raster file: -D<br>
><br>
> Any idea what is wrong? The database already has numerous point and polygon<br>
> shapefiles. Is that a problem that I cannot add rasters to the same<br>
> database having shapefiles?<br>
><br>
><br>
><br>
</div></div>> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Bborie Park<br>
Programmer<br>
Center for Vectorborne Diseases<br>
UC Davis<br>
<a href="tel:530-752-8380" value="+15307528380">530-752-8380</a><br>
<a href="mailto:bkpark@ucdavis.edu">bkpark@ucdavis.edu</a><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thanks & Regards<div>Smaran Harihar</div><br>
</div>