<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Dear Bborie,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Many thanks for your response.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Date: Thu, 29 Dec 2011 11:51:13 -0800<o:p></o:p></p><p class=MsoNormal>From: Bborie Park <<a href="mailto:bkpark@ucdavis.edu">bkpark@ucdavis.edu</a>><o:p></o:p></p><p class=MsoNormal>“What version of GDAL are you using?  You'll want to be using what will<o:p></o:p></p><p class=MsoNormal>be 1.9 (currently beta 2).  But there is an additional question about<o:p></o:p></p><p class=MsoNormal>whether or not GDAL's PostGIS Raster driver has been updated to the<o:p></o:p></p><p class=MsoNormal>PostGIS Raster's current (and probably final) format for the<o:p></o:p></p><p class=MsoNormal>raster_columns view.”<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A quick check revealed I was using the commands built from GDAL1.8 which we use in our modelling programs to create GTiffs for matrix storage.  I downloaded prebuilt binaries for 1.9 from <a href="http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-x64-gdal-mapserver.zip">http://www.gisinternals.com/sdk/PackageList.aspx?file=release-1600-x64-gdal-mapserver.zip</a> . These include postgis raster support. Needless to say everything now works as intended.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>“You may be better off considering the use of ST_AsPNG, ST_AsJPEG and<o:p></o:p></p><p class=MsoNormal>ST_AsTIFF.  You should be able to glean the important bits needed from<o:p></o:p></p><p class=MsoNormal>the following links<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A ASP.NET based viewer<o:p></o:p></p><p class=MsoNormal><a href="http://www.bostongis.com/blog/index.php?/archives/174-Minimalist-Web-based-ASP.NET-PostGIS-2.0-Spatial-GeometryRaster-Viewer.html">http://www.bostongis.com/blog/index.php?/archives/174-Minimalist-Web-based-ASP.NET-PostGIS-2.0-Spatial-GeometryRaster-Viewer.html</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>A PHP based viewer<o:p></o:p></p><p class=MsoNormal><a href="http://www.bostongis.com/blog/index.php?/archives/175-Minimalist-Web-based-PHP-PostGIS-2.0-Spatial-GeometryRaster-Viewer.html">http://www.bostongis.com/blog/index.php?/archives/175-Minimalist-Web-based-PHP-PostGIS-2.0-Spatial-GeometryRaster-Viewer.html</a><o:p></o:p></p><p class=MsoNormal>“<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I will take a look at these when I have a little more time as it would be useful to be able to extract the images I need directly into a viewer (openJump/QGis and even Arc) for visualisation.  I have not yet been able to construct a query for rasters in openjump (I am new to SQL also!), albeit I have had no problem with vector data. I’m sure I will have more questions before I am done!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best wishes<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Darrel<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Prof Darrel Maddy<o:p></o:p></p><p class=MsoNormal>Chair of Quaternary Science<o:p></o:p></p><p class=MsoNormal>Newcastle University UK<o:p></o:p></p></div></body></html>