Oh it seems the error was due to ownership being in the name of another user.
Driver: GTiff/GeoTIFF
Files: Quercus_acutifolia_raw.tif
Size is 3864, 1583
Coordinate System is:
GEOGCS["WGS 84",
DATUM["unknown",
SPHEROID["WGS84",6378137,298.257223563]],
PRIMEM["Greenwich",0],
UNIT["degree",0.0174532925199433]]
Origin = (-179.960724061474451,86.577964063072983)
Pixel Size = (0.093000000000000,-0.090400000000000)
Metadata:
AREA_OR_POINT=Area
Image Structure Metadata:
COMPRESSION=LZW
INTERLEAVE=BAND
Corner Coordinates:
Upper Left (-179.9607241, 86.5779641) (179d57'38.61"W, 86d34'40.67"N)
Lower Left (-179.9607241, -56.5252359) (179d57'38.61"W, 56d31'30.85"S)
Upper Right ( 179.3912759, 86.5779641) (179d23'28.59"E, 86d34'40.67"N)
Lower Right ( 179.3912759, -56.5252359) (179d23'28.59"E, 56d31'30.85"S)
Center ( -0.2847241, 15.0263641) ( 0d17' 5.01"W, 15d 1'34.91"N)
Band 1 Block=3864x1 Type=Float32, ColorInterp=Gray
Min=0.000 Max=0.923
Minimum=0.000, Maximum=0.923, Mean=0.000, StdDev=0.000
NoData Value=-3.39999999999999996e+38
Metadata:
STATISTICS_MAXIMUM=0.92262234256096
STATISTICS_MEAN=0
STATISTICS_MINIMUM=5.6834812171638e-19
STATISTICS_STDDEV=0
But when I execute,
raster2pgsql -c -s 4326 -I Quercus_acutifolia_raw.tif public.Quercus_acutifolia_raw | psql -h localhost -d dbname -U usr
I am still not able to create a Table? This is the output,
Processing 1/1: Quercus_acutifolia_raw.tif
Password for user postgres:
BEGIN
NOTICE: CREATE TABLE will create implicit sequence "quercus_acutifolia_raw_rid_seq" for serial column "quercus_acutifolia_raw.rid"
ERROR: type "raster" does not exist
LINE 1: ...us_acutifolia_raw" ("rid" serial PRIMARY KEY,"rast" raster);
^
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: current transaction is aborted, commands ignored until end of transaction block
ERROR: current transaction is aborted, commands ignored until end of transaction block
ROLLBACK
Thanks,
Smaran