[mapserver-users] error in raster layer

Frank Warmerdam warmerdam at pobox.com
Fri Apr 8 10:42:36 EDT 2011


On 11-04-08 12:16 AM, morteza shabihkhani wrote:
> Hello all,
>
> I want to create a very simple raster layer, but I faced to this error:
>
> msDrawMap(): Image handling error. Failed to draw layer named 'elevation'.
> msDrawRaster(): Unable to access file. stcon using full path stcon
>
> this is my layer:
>
> LAYER
>    NAME elevation
>    TYPE raster
>    STATUS on
>    DATA stcon

Morteza,

I don't think you mentioned what binaries you are using.  Could you confirm
that the "mapserv -v" output includes "INPUT=GDAL"?  The error - particularly
the EPPL one, could mean you don't even have GDAL raster support built in.

In the above case, are you really really really sure the path is right?
You haven't provided any path so it ought to be evaluated relative to the
mapfile but to be very sure I'd suggest supplying a full path.  Also, does
your file really have no extension?  MapServer isn't going to guess an
extension!

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-users mailing list