[Mapserver-users] how to restrict layers based on location?
Dave McIlhagga
mcilhagga at dmsolutions.ca
Tue Feb 18 18:49:59 PST 2003
We haven't actually done this, but I have thought about this problem in
the past since it is relevant to us as well. I'd love to hear if anyone
has had any success solving this.
One thought would be to clip the low quality data to remove the region
of high quality and show this layer in addition to the high quality when
zoomed in but not the low quality where it intersects with the city.
If you want to use the low quality data all the time when you're zoomed
out -- you can just have this layer included twice and set visibility
scales such that the complete layer is shown at small scales, and the
one with the hole in it is shown at zommed in scales.
A thought.
Dave
Dana Quinn wrote:
>
> Hi - I have a problem I'm not sure how to solve
> within the mapfile. I received high quality
> data for one of the cities that display in our
> application often. I'd like to define a layer
> that uses this high quality data when displaying
> parts of this city, but uses the lower quality data
> when not displaying parts of the city.
>
> I guess getting the high quality data to NOT display
> outside of the city isn't a problem, since the data
> doesn't exist for locations outside of the city,
> but I don't want the low quality data to show up
> along with the high quality stuff in the city.
> Is there a way to restrict what displays in the
> way I've described in the mapfile? I couldn't
> really find any way to do this in the
> documentation.
>
> dana
>
More information about the MapServer-users
mailing list