[mapserver-users] queries
Stefan Stern
mail2stern at gmx.net
Mon Sep 16 08:22:22 PDT 2002
Hi,
Sorry, I missed the spot. ;-)
The dataset is very long and in order to cover all occurences (each
single id, each group) I'd had to write one mapfile for each id or one
layer per id.
Is there a way to make the mapfile more vital, e.g. by passing a
parameter that decides which filter or expression to use?
e.g.
####
EXPRESSION "T1"
###
could be used with a variable like :
##
EXPRESSION "$filter"
##
That's where I thought about letting PHP create a temporary mapfile
(with substituted filters in the EXPRESSION statement) and pass it to
mapserver.
Does anybody se an alternative way?
Regards,
Stefan
woodbri at swoodbridge.com wrote:
>Stefan,
>
>Yes, you can use CLASS EXPRESSIONS and I believe
>FILTER EXPRESSIONS. Check these out in the MapScript reference.
>
>-Steve W.
>
>On 16 Sep 2002 at 15:22, Stefan Stern wrote:
>
>>Hi all,
>>
>>I use a dataset of points (.shp) that looks similar to this:
>>
>>id | group | x_ccord | y_coord
>>T1 | T | 1234 | 12234
>>T2 | T | 4321 | 4321
>>F1 | F | 4566 | 3211
>>
>>I created a mapfile that displays all points.
>>
>>Now I want to display just certain points according to "id" or
>>"group". e.g. "display only T1" or "display all T".
>>
>>My first idea is to write a temporary mapfile with php on the
>>harddrive and point mapserver to it.
>>
>>Is there an other way (implemented) in mapserver? ANd if so, where can
>>I find some documentation about it?
>>
>>Regards,
>>Stefan
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
More information about the MapServer-users
mailing list