Fw: raster layer
Frank Warmerdam
warmerdam at POBOX.COM
Thu Sep 28 08:53:53 PDT 2006
Alessandro MAZZELLA wrote:
> Hi list,
>
> i've got a very very very little problem ... i'm developing a very
> simple mapserver application for displaying a shape layer on a raster
> background image (jpeg).
>
> mapserver returns no error, but the raster image is not showed on
> the result !!!
...
> LAYER
> NAME "raster"
> TYPE RASTER
> STATUS ON
> DATA "/home/mapserver/data/shp/raster.jpeg"
> CLASS
> NAME "raster"
> END
> END
>
> END
Alessandro,
A few things to try:
1) set STATUS to DEFAULT if there is any chance you aren't explicitly
turning this layer on.
2) The path to the file is right, right? It isn't by any chance called
raster.jpg?
3) Is there a .jgw or .wld file associated with the raster.jpeg? It should
be in the same directory, and be called raster.jgw or raster.wld. The
safest worldfile name is raster.wld.
4) Turn on debugging (add the DEBUG ON line in your LAYER) and watch the
debug output for messages about failing to open files, etc.
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 | President OSGeo, http://osgeo.org
More information about the MapServer-users
mailing list