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

2012-08-09 Thread Shri I

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.

  ___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


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

2012-08-09 Thread Fawcett, David (MPCA)
Is MapServer using the same GDAL as the commandline GDAL that can successfully 
open the file?

From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Shri I
Sent: Thursday, August 09, 2012 9:49 AM
To: mapserver-users@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.
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users