Opened 15 years ago

Closed 14 years ago

#3035 closed enhancement (duplicate)

Mapfile conditionnal

Reported by: gimpycpu Owned by: sdlime
Priority: normal Milestone: 5.6 release
Component: MapServer CGI Version: unspecified
Severity: normal Keywords:
Cc:

Description

Hi, it would be interesting if we could do base conditionnal like if for an example.

LAYER NAME McGILLRDC_forbidden TYPE POLYGON STATUS DEFAULT DATA McGILLRDC_forbidden OPACITY 20 FILTERITEM MWShapeID IF %forbiddenFilter%

THEN

FILTER /%forbiddenFilter%/

ELSE

*Something else*

....

with this simple example I assume that if the url don't contains the parameter %param% something else will be done instead of substitution.

now the old way note that if I dont give any value for the forbiddenFilter parameter tue map won't be rendered.

NAME McGILLRDC_forbidden

TYPE POLYGON

STATUS DEFAULT

DATA McGILLRDC_forbidden

OPACITY 20

FILTERITEM MWShapeID

FILTER /%forbiddenFilter%/

....

That would be a nice addon in further version of mapserver CGI

thank you

Change History (1)

comment:1 by sdlime, 14 years ago

Milestone: 5.6 release
Resolution: duplicate
Status: newclosed

I'm pretty sure this is now address by the mechanism described in #3108 to set default values for substitutions... Marking as a duplicate.

Steve

Note: See TracTickets for help on using tickets.