[Mapserver-users] how to restrict layers based on location?

Dana Quinn dana at nextbus.com
Wed Feb 19 09:42:55 PST 2003


Upon further reflection, I think editing the shapefiles
directly to merge the data is the way to go, at least
in my case.  This new data I've received is just more
accurate than my existing data set - not higher resolution -
so replacing the existing data with the new data is the
best way to go, I think.  We will probably need to do
some matching up at the boundaries between the two datasets
anyway, so it seems to just make more sense to edit the
two shapefiles together.

dana


Dave McIlhagga wrote:
> 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
>>
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users


-- 

Dana Quinn, dana at nextbus.com
NextBus Information Systems
(510) 420-3117




More information about the MapServer-users mailing list