STATUS in LAYER object
Gregory Yetman
gyetman at CIESIN.COLUMBIA.EDU
Fri Sep 9 06:05:46 PDT 2005
Hi,
Thanks to David Fawcett pointed out my problem -- that I needed to pass
the layer name in as part of the URL.
Rather than changing the flag, I think that perhaps the documentation
just needs some additional info. It's not obvious from the definition of
STATUS when you should use ON vs. DEFAULT.
Greg
Gerry Creager wrote:
> 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
>> --------------------------------------------------------------------
>
>
--
--------------------------------------------------------------------
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
--------------------------------------------------------------------
More information about the MapServer-users
mailing list