<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi all,<br>
<br>
I am having difficulties with loading a DEM file to PostGIS via the
raster2pgsql tool. Could someone shed some light on how to do this?<br>
Some additional information, I have used the following syntax to add
the DEM to PostGIS:<br>
<br>
<pre id="code" class="plain-text" style="overflow: auto; padding: 10px; display: block; margin: 0px; white-space: pre-wrap; word-wrap: break-word; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace !important; color: rgb(0, 0, 0); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">raster2pgsql -s 2048 -f rast -I -C -Y C:\Users\GIS\Desktop\Project\DEM.tif > DEM.sql
psql -h localhost -U postgres -d Topography -f DEM.sql
</pre>
<br>
After running the above syntax in the command line, I receive
"COMMIT". This creates a new table in the default Public schema
(have tried to add it to another schema using the <i>someschema.sometable</i>
syntax, but this returns an error stating the schema does not
exist). In PostGIS, the table is created but does not seem to
contain information. Also, I am unable to open or view the DEM in
QGIS.<br>
<br>
Thanks in advance<br>
Chris<br>
</body>
</html>