draw similar layers
Adam Quiney
aquiney at REFRACTIONS.NET
Tue Jan 31 11:23:28 PST 2006
Hi Krishna,
While I'm not too familiar with PHP Mapscript, I know that the ability
to do something similar to this exists within mapserver itself, so I
would assume the same functionality can be carried out using PHP Mapscript.
The analogous means of doing this in a mapfile would be to create two
Layers, both using the same dataset, but with different classes for how
to style each layer.
The first layer would look like:
LAYER
<bunch of layer parameters go here>
...
CLASS
EXPRESSION "'[attrribute name]' eq 'name of your township'"
LABEL
<label parameters go here>
END
END
END
LAYER
<bunch of layer parameters go here>
...
CLASS
EXPRESSION "'[attribute name]' ne 'township name'"
<don't include a label definition>
<other styling parameters>
...
END
END
Looking briefly through the PHP Mapscript documentation (the new website
looks fabulous BTW Jeff, et al.), it appears that there is an analogous
means to do this using the PHP classes.
Hope that helps some,
--Adam
krishna S wrote:
> Hi all,
> i was wondering if we can draw similar layers twice with different
> properties set using php mapscript.
>
> for example if i want to draw a layer with just one township section using
> the township name and display other township sections with out any names on
> it.
>
> Any lead .....
>
> kris
>
--
Adam Quiney
Analyst
Refractions Research Inc.
(250) 383-3022
More information about the MapServer-users
mailing list