[Mapserver-users] Offsite

kenboss kenboss at dilbert.dnr.state.mn.us
Tue Oct 28 13:00:22 EST 2003


> From: "Jan Vietmeier" <jan at vietmeier.de>
> Subject: [Mapserver-users] Offsite
> Date: Tue, 28 Oct 2003 17:57:35 +0100
> 
> Hi Mapserver users,
> I have a Problem regarding the OFFSITE property of mapserver. If I set an
> OFFSITE value mapserver have the error:
> 
> [MapServer Error]: getInteger(): Parsing error near (STATUS):(line 36)
> 
> The layer section looks like this:
> 
>    LAYER
>         NAME "Tiff-Image"
>         TYPE RASTER
>         MINSCALE 25001
>         OFFSITE 0               # THIS IS LINE 35
>         STATUS ON               # LINE 36
> 
>         DATA "../raster/raster.tif"
> 
>         PROJECTION
>            "init=epsg:31468"
>         END
>     END # Layer
> 
> My Computer:  WIN2K
> My Webserver: Apache
> My Mapserver: Version 4.0 with php/mapscipt pre-compiled by dm-solutions
> 
> Everythink is working fine on mapserver using php/mapscript instead the
> OFFSITE property. I can display, zoom-in, zoom-out, query the map ... is
> there any other property I have to set if I whant to use the OFFSITE
> property (e.g. the imagetype must be a png or gif)?
> 
> regards
> 
> Jan

Jan--

You need to pass your OFFSITE value as an RGB value, even if your raster is a 
single thematic band.  So try

OFFSITE 0 0 0

instead, it ought to work.

--Ken Boss
  Minnesota DNR Forestry Resource Assessment




More information about the mapserver-users mailing list