[mapserver-users] QUERY vs DRAW Question
Stephen Woodbridge
woodbri at swoodbridge.com
Fri Mar 29 09:08:16 PST 2002
Daniel,
Thanks for the suggestion. The first thing I tried was cloning the
mapfile and deleting the non-essential layer for the query and removing
the MIN/MAX-SCALES and this seemed to do the trip very nicely.
-Steve
Daniel Morissette wrote:
>
> Steve,
>
> I'm not aware of any flag to bypass the minscale/maxscale in queries
> (but there may be one). Have you considered drawing the map first, and
> then looping through all the layers to reset the minscale/maxscale in
> each of them to -1 before performing the query?
>
> That would seem like the simplest solution to me.
>
> Daniel
>
> Stephen Woodbridge wrote:
> >
> > Hi all,
> >
> > Does anyone have any ideas on the best way to handle this problem:
> >
> > I am generating a map and have the layers working great, but I also want
> > to do a query every time to in effect reverse geocode the the center of
> > the map. I have six layers that I always want to query with a small
> > extents that is independent of the zoom scale of the map so I can update
> > some fields on the map like STATE, COUNTY, CITY, and STREET say (yeah I
> > know I only listed 4 but I have 6 :)
> >
> > The problem is that the layers have minscale/maxscale to turn them
> > on/off but I want always be able to query these layers.
> >
> > I'm using PHP/Mapscript.
> >
> > Do I just clone the layers and have the script turn the layers on and
> > off?
> > - this seems like a real pain.
> >
> > Do I make a second query only mapfile?
> >
> > Did I get stupid and overlook some feature already in
> > mapserver/mapscript just for this purpose?
> >
> > An thoughts would be appreciated.
> >
> > Thanks,
> > Steve Woodbridge
More information about the MapServer-users
mailing list