[mapserver-users] Raster ESRI GRID path error

Frank Warmerdam warmerdam at pobox.com
Wed Jan 28 08:38:53 PST 2009


simone.frigerio wrote:
> Hi,
> I inserted a raster GRID in my mapfile but in map appears this kind of 
> error:
> 
> Message : Mapserver error: Error in msDrawRaster() : /asci_co2 using 
> full path /asci_co2
> 
> Probably I did an error in the path, but I don't know what is it really!
>  GRID is inside DATA folder (SHAPEPATH) and it is represented by a 
> folder "asci_co2"" and a folder "info". The layer parameters are:
> 
>   LAYER
>     NAME "asci_co2"
>     TYPE RASTER
>     DATA "/asci_co2"
>     TEMPLATE "ttt"
>     TRANSPARENCY 100
>     METADATA
>       "force_imagetype" "jpeg"
>     END
>   END

Simo,

If you include a slash at the beginning of the filename it is assumed
to be an absolute path from root.  I think you just want to use:

   DATA "asci_co2"

Good luck,
-- 
---------------------------------------+--------------------------------------
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