STATUS in LAYER object
Gerry Creager
gerry.creager at TAMU.EDU
Thu Sep 8 15:41:31 PDT 2005
Following on the heels of this note, might we consider a change to the
STATUS flag in layers, changing 'ON' to something else, such as
'SELECTABLE'?
Gerry
Gregory Yetman wrote:
> Hi,
>
> I'm new to both mapserver and the list, hopefully this question isn't
> too 'newbie'.
>
> I have a map file that works fine:
>
> MAP
> IMAGETYPE JPEG
> EXTENT -180 -90 180 0
> SIZE 320 320
> SHAPEPATH "data"
> PROJECTION
> "proj=latlong"
> "ellps=WGS84"
> END
>
> LAYER # sample jpeg LDEO layer
> NAME relief
> STATUS DEFAULT
> TYPE RASTER
> TileIndex 'i_512/i_512.shp'
> TileItem "Location"
>
> PROJECTION
> "proj=merc"
> "ellps=WGS84"
> END
> END # Raster layer ends here
> END # end of map file
>
> However, if I change STATUS from DEFAULT to ON the layer does not
> appear, the image produced is empty. According to the manual (definition
> below), ON is what should be used in 'normal use'. So is something wrong
> with my map file or is there an issue with the use of STATUS?
>
> Thanks,
>
> Greg
>
> STATUS [on|off|default]
>
> Sets the current status of the layer. Often modified by MapServer
> itself. Default turns the layer on permanently.
>
> Some notes regarding the STATUS values:
>
> *
>
> In CGI mode, layers with STATUS DEFAULT cannot be turned off
> using normal mechanisms. It is recommended to set layers to
> STATUS DEFAULT while debugging a problem, but set them back to
> ON/OFF in normal use.
>
> *
>
> For WMS, layers in the server mapfile with STATUS DEFAULT are
> always sent to the client.
>
>
> --
> --------------------------------------------------------------------
> Gregory Yetman
> Center for International Earth Science Information Network (CIESIN)
> Columbia University
> URL: http://www.ciesin.columbia.edu/
> e-mail: gyetman (at) ciesin.columbia.edu
> tel: (845) 365-8982
> --------------------------------------------------------------------
--
Gerry Creager -- gerry.creager at tamu.edu
Texas Mesonet -- AATLT, Texas A&M University
Cell: 979.229.5301 Office: 979.458.4020
FAX: 979.847.8578 Pager: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843
More information about the MapServer-users
mailing list