<div dir="ltr"><span id="result_box" class="" lang="en"><span class="">Hi</span> a<span class="">ll</span><span>,</span> <br><br><span class="">I have</span> <span class="">on my mac</span> (Mavericks OS) <span class="">Mapserver</span> <span class="">6.2.1</span> <span class="">and</span> <span class="">PostGIS</span> <span class="">2.1.2</span> <span class="">installed via</span> <span class="">homebrew</span> <span class="">and my</span> <span class="">version of</span> <span class="">GDAL</span> <span class="">is</span> <span class="">1.10.1_1</span><span>.</span> <span class="">Apparently</span> <span class="">everything works fine</span> <span class="">...</span> <br>
<br><span class="">When I try to</span> <span class="">display a</span> <span class="">raster</span> <span class="">layer</span> <span class="">from</span> <span class="">PostGIS</span><span>,</span> <span class="">got the following message</span><span>:</span> <br>
<br></span><span style="font-family:courier new,monospace">msDrawMap(): Image handling error. Failed to draw layer named 'srtm'. msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file 'PG: dbname=raster_test host=localhost user=gis password=123 port=5432 mode=2 schema=public table=srtm' for layer 'srtm'.</span><span id="result_box" class="" lang="en"><br>
<br></span><br><span id="result_box" class="" lang="en"><span id="result_box" class="" lang="en"><span class="">Here</span> <span class="">is my</span> <span class="">mapfile layer:<br><br><span style="font-family:courier new,monospace">LAYER<br>
NAME "srtm"<br> TYPE RASTER<br> STATUS DEFAULT<br> DATA "PG: dbname=raster_test host=localhost user=gis password=123 port=5432 mode=2 schema=public table=srtm"<br> PROCESSING "NODATA=0"<br>
PROCESSING "SCALE=AUTO"<br><br> METADATA<br> "ows_title" "srtm"<br> END # METADATA<br><br> PROJECTION<br> "init=epsg:4326"<br> END # PROJECTION<br><br> END # LAYER<br>
</span><br><br></span></span><span class="">Could anyone</span> <span class="">suggest a solution</span><span>?</span> <span class="">I think</span> <span class="">I should</span> <span class="">reinstall</span> <span class="">PostGIS</span> <span class="">and</span> <span class="">mapserver</span><span>,</span> <span class="">enabling</span> some<span class=""> flags to PostGIS support GDAL</span><span> (?),</span> <span class="">but do not know</span> <span class="">how to do</span><span>.</span> <br>
<br><span class="">thanks</span> <span class="">in advance</span></span>,<br clear="all"><br>-- <br><b>Marcello Benigno B. de Barros Filho</b><br><font size="1">Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB<br>
Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE</font><div><font size="1">Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE</font><font size="1"><br></font><font size="1"><a href="http://profmarcello.blogspot.com" target="_blank">http://profmarcello.blogspot.com</a></font><div>
<a href="http://about.me/marcello.benigno" target="_blank"><font size="1">http://about.me/marcello.benigno</font></a></div></div>
</div>