[mapserver-users] Reading a custom GDAL raster format via MapServer...

Windows Live Mail ipammee at hotmail.com
Thu Aug 9 08:25:58 PDT 2012


Hello, yes. There's only one version/instance of gdal running on the machine. 

Thanks,
Shri

On Aug 9, 2012, at 11:00 AM, "Fawcett, David (MPCA)" <David.Fawcett at state.mn.us> wrote:

> Is MapServer using the same GDAL as the commandline GDAL that can successfully open the file?
>  
> From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Shri I
> Sent: Thursday, August 09, 2012 9:49 AM
> To: mapserver-users at lists.osgeo.org
> Subject: [mapserver-users] Reading a custom GDAL raster format via MapServer...
>  
> Hello All,
> 
> 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.  
> 
> Here are the errors in my log:
> 
> msDrawMap(): rendering using outputformat named png (AGG/PNG).
> msDrawMap(): WMS/WFS set-up and query, 0.000s
> msDrawRasterLayerLow(testLayer): entering.
> msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. 
> Image handling error. Failed to draw layer named 'testLayer'.
> msFreeMap(): freeing map at 0xf8b8f0.
> 
> 
> And here's the MapServer error included in the image or shown on the command prompt (when ran using mapserv command):
> 
> msDrawMap(): Image handling error. Failed to draw layer named 'testLayer'.
> msDrawRasterLayerLow(): Unable to access file. Corrupt, empty or missing file '/path/to/myfile.ext' for layer 'testLayer'. 
> GDAL: GDALDeregister_GTiff() called.
> 
> 
> 
> Here's how my layer definition looks like:
> 
> LAYER                                         
>     NAME "testLayer"
>     TYPE RASTER
>     DATA "/path/to/myfile.ext"   # <<-- Tested with realtive path from shapepath and also direct path, as in this case. 
>     STATUS ON
> END
> 
> 
> Thank you for your helpful pointers.
> 
> Regards,
> Shri.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120809/a942df8d/attachment.htm>


More information about the MapServer-users mailing list