[mapserver-users] need help with query

Steve Lime Steve.Lime at dnr.state.mn.us
Thu Jun 25 00:48:14 EDT 2009


I'll start with the obvious questions:

  1) are the layers queryable (e.g. is a TEMPLATE set?)
  2) do the layers have a projection block? OR
  3) are they all EPSG:3395?

I've had good luck with this approach so I know it can work.

Steve

>>> Wendell Turner <wendell at enflight.com> 06/24/09 9:02 PM >>>
I can't seem to get queries to work.  I'm trying to query
mapserver from Openlayers.  I started with a query function
posted by Arnd Wippermann here:
  http://openlayers.org/pipermail/users/2008-November/008942.html

It sends a query like this:
  http://myserver.com/cgi-bin/mapserv?
   map=/home/mydir/ms/mymap.map&
   mode=nquery&
   layers=layer1+layer2+layer3&
   map_projection=init=EPSG:3395&
   mapext=-8782565.0796543+4678491.6689236+-8551269.8497526+4909786.8988253&
   imgext=-8782565.0796543+4678491.6689236+-8551269.8497526+4909786.8988253&
   map_size=1000+1000&
   imgxy=1000+1000&
   imgbox=0+0+1000+1000

I've guessed at lots of the parameters, but always get:
  msQueryByRect(): Search returned no results. No matching record(s) found.

Is there something wrong with the query?  Does there need to
be a qlayers parameter?  I tried that and it had no effect.
(Is it qlayer or qlayers?) The mapserver docs don't mention
a map_projection cgi parameter.

Thanks,
Wendell

MapServer version 5.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=GEOS
INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list