<div dir="ltr">Hi<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 29, 2014 at 11:35 AM, Chris Smit <span dir="ltr"><<a href="mailto:gis@geostratics.co.za" target="_blank">gis@geostratics.co.za</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div 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 style="text-indent:0px;letter-spacing:normal;text-align:left;font-variant:normal;font-style:normal;display:block;font-weight:normal;padding:10px;line-height:normal;text-transform:none;overflow:auto;font-size:12px;white-space:pre-wrap;margin:0px;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New',Courier,monospace!important;word-wrap:break-word;word-spacing: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></div></blockquote><div><br></div><div>Have you checked if the raster support has been installed? Check if the raster_columns table exists in the public schema...</div><div><br></div><div>Regards</div><div><br>

</div><div>Tim</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF" text="#000000">
    <br>
    Thanks in advance<span><font color="#888888"><br>
    Chris<br>
  </font></span></div>

<br>_______________________________________________<br>
Africa mailing list<br>
<a href="mailto:Africa@lists.osgeo.org" target="_blank">Africa@lists.osgeo.org</a><br>
You can UNSUBSCRIBE at <a href="http://lists.osgeo.org/mailman/listinfo/africa" target="_blank">http://lists.osgeo.org/mailman/listinfo/africa</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">


Tim Sutton<div>-------------------------------------------------------------------------------------------<div><div><img src="http://linfiniti.com/theme/img/nav_logo.png"><br>Visit <a href="http://linfiniti.com" target="_blank">http://linfiniti.com</a> to find out about:<br>


 * QGIS programming services<br> * GeoDjango web development<div> * QGIS Training<br> * FOSS Consulting Services<br>Skype: timlinux Irc: timlinux on #qgis at <a href="http://freenode.net" target="_blank">freenode.net</a></div>


<div>Tim is a member of the QGIS Project Steering Committee<br>-------------------------------------------------------------------------------------------<br></div></div></div></div></div>
</div></div>