[mapserver-users] ITEMNQUERYMAP problem...

Bruno Gendron - Consultant bruno_gendron at yahoo.com
Mon Feb 18 10:50:14 EST 2008


Hi all,

We have an Mapserver-Google mashup application with an OpenLayers 
user-interface...

A problem arises when a user does a ITEMNQUERYMAP request on a feature 
that is outside the map extent.

For example:

The first request below works perfectly: the map gets drawn, with the 
"searched" feature highlited in red.

http://www.socioscope.qc.ca/wms/?map=nbcommalim_sr_01.map&layers=all&map_imagetype=png&QLAYER=nbcommalim_sr_01&QITEM=SRIDU&QSTRING=462032800&MODE=ITEMNQUERYMAP&mapext=-8244344+5679271+-8160264+5740420&map_size=840+675

The second request below DOES NOT WORK, because the "searched" feature 
is OUTSIDE the mapextent. The following message then gets returned : 
"msQueryByAttributes(): Search returned no results. No matching 
record(s) found."

http://www.socioscope.qc.ca/wms/?map=nbcommalim_sr_01.map&layers=all&map_imagetype=png&QLAYER=nbcommalim_sr_01&QITEM=SRIDU&QSTRING=462032800&MODE=ITEMNQUERYMAP&mapext=-8193972+5717126+-8161869+5742924&map_size=840+675

WHY? Couldn't Mapserver simply return a map even if the query result is 
empty? Am I missing something?

Thanks!

===============================================
Bruno Gendron
Consultant en TI et en géomatique / IT and GIS Consultant

685 40ème avenue
Lachine, Québec
Canada
H8T 2G2

Tél : +1 514 634 7024



More information about the mapserver-users mailing list