Filtering/displaying parts of a shapefile?
Stephen Woodbridge
woodbri at SWOODBRIDGE.COM
Fri Jan 14 07:49:12 PST 2005
Hi Jeff,
Here is a quick overview of what you need to do. I will leave most of
the details up to you.
1) Setup multiple Layers for your streets using MINSCALE/MAXSCALE to
differentiate the styling you want to use.
2) Use CLASSITEM "CFCC"
3) set up classes using EXPRESSION /^A1/ for all the "A*" CFCC records,
etc for the other CFCC's
4) specify your styling in each ot the classes
5) any street that does not fall in the expression is not rendered
-Steve
Jeff Portwine wrote:
> Can anybody tell me if it's possible to filter out or display only parts of
> a shapefile based on your zoom level, and if so point me in the right
> direction for how to do that?
>
> Right now I'm using tiger line data to show roads in an area and while
> zoomed out, I'd like to have it display only major freeways and highways...
> as I zoom in I'd like it to display more major roads and only show smaller
> roads when I'm zommed in close. I'd also if possible like to display
> those roads in different colors (for example red for highways, black for
> major roads, etc...).
>
> I'd imagine this can be done , but I'm not sure how difficult it is or how
> to go about it.
>
> Thanks,
> Jeff
>
More information about the MapServer-users
mailing list