<html><head></head><body bgcolor="#FFFFFF"><div>Hello, yes. There's only one version/instance of gdal running on the machine. </div><div><br></div><div>Thanks,</div><div>Shri<br><br>On Aug 9, 2012, at 11:00 AM, "Fawcett, David (MPCA)" <<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
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
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Is MapServer using the same GDAL as the commandline GDAL that can successfully open the file?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:mapserver-users-bounces@lists.osgeo.org">mapserver-users-bounces@lists.osgeo.org</a> [mailto:mapserver-users-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Shri I<br>
<b>Sent:</b> Thursday, August 09, 2012 9:49 AM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] Reading a custom GDAL raster format via MapServer...<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Hello All,<br>
<br>
I have been trying to read a custom GDAL raster format via MapServer. (Unfortunately, I'm unable to share the file itself here, as it is a proprietary format). MapServer is unable to read the raster and display it. However, GDAL is able to read (gdalinfo,
etc), translate (gdal_translate), transform (gdalwarp) the raster. Any ideas how to solve this? MapServer is compiled with GDAL support and everything looks OK. The "gdalinfo --formats " command shows the format is supported.
<br>
<br>
Here are the errors in my log:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">msDrawMap(): rendering using outputformat named png (AGG/PNG).<br>
msDrawMap(): WMS/WFS set-up and query, 0.000s<br>
msDrawRasterLayerLow(testLayer): entering.<br>
msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'.
<br>
Image handling error. Failed to draw layer named 'testLayer'.<br>
msFreeMap(): freeing map at 0xf8b8f0.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>
<br>
And here's the MapServer error included in the image or shown on the command prompt (when ran using mapserv command):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">msDrawMap(): Image handling error. Failed to draw layer named 'testLayer'.<br>
msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'.
<br>
GDAL: GDALDeregister_GTiff() called.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>
<br>
<br>
Here's how my layer definition looks like:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">LAYER
<br>
NAME "testLayer"<br>
TYPE RASTER<br>
DATA "/path/to/myfile.ext" # <<-- Tested with realtive path from shapepath and also direct path, as in this case.
<br>
STATUS ON<br>
END <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>
<br>
Thank you for your helpful pointers.<br>
<br>
Regards,<br>
Shri.<o:p></o:p></span></p>
</div>
</div>
</div></blockquote></body></html>