On Feb 18, 2008 8:50 AM, Bruno Gendron - Consultant <[EMAIL PROTECTED]> wrote: > 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?
You could se your extents larger if you actually have data outside of your extents. Have you considered tried using EMPTY "some_page.html"? MapServer will display some_page.html when there are no results. Rich -- Richard Greenwood [EMAIL PROTECTED] www.greenwoodmap.com _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
