Opened 14 years ago

Last modified 14 years ago

#3587 new enhancement

mode=map and query file

Reported by: assefa Owned by: sdlime
Priority: normal Milestone: 6.0 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

Currently when using mode=map and a query file, if the query fails, there is an error message returned.

Is this the most desired use?

In my case I usually have applications where a query is done at one point and the client interface uses the query file in mode=map and let the user navigates the map. If the query is valid, the elements are highlighted, but for example if the user has navigated outside the query extent and the query fails, I still want my map to draw and not fail with a an error on the query. Removing the error message and drawing the map seems to be more appropriate in my case.

Change History (3)

comment:1 by sdlime, 14 years ago

Hmmm... I do the same thing for a client application. I use query files liberally and allow pan/zoom. The query is drawn as an overlay layer in OpenLayers. I'll have to check and see how I worked around things. Since the overlay is an image I have to be returning a valid image at all times. It's possible I hacked the clients version of MapServer, but I know it can be done.

Steve

comment:2 by sdlime, 14 years ago

As an aside the app is at:

http://qpublic5.qpublic.net/qpmap3/map.php?county=fl_clay&layers=parcels

You can trigger queries a number of ways.

Anyway, what types of queries are you using? Do all give you trouble or just specific types?

Steve

comment:3 by assefa, 14 years ago

The query is this particular case was a query by shape

Isn't it true that if the map extents are changed and the query bbox fails outside the map extents, the query will fail? And this for all the query types?

Note: See TracTickets for help on using tickets.