[Mapserver-users] RE: Problems with 3.7 and itemquery
David.Beard at ga.gov.au
David.Beard at ga.gov.au
Thu Jun 5 16:51:17 PDT 2003
David,
Check the extents of your COUNTY layer against the extents in the map file (14215.43 19342.38 18468.59 16607.16). Does your COUNTY layer fall within the map extents? I have received this same error (msQueryByAttributes(): Search returned no results. No matching record(s) found, layer and area of interest do not overlap). For me, the cause of the error was incorrect map extents in the map layer.
Other things to consider:
1. You don't have FILTER and FILTERITEM in your map file.
Dave
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of William
Taylor
Sent: Thursday, 5 June 2003 10:58 AM
To: mapserver-users at lists.gis.umn.edu
Subject: [Mapserver-users] Problems with 3.7 and itemquery
Group,
I am having problems getting itemquery function to work with MapServ
3.7.
My Url looks like this:
http://localhost/Scripts/mapservdemo.exe?map=C:\Inetpub\wwwroot\MapServI
temTest\test.map&mode=itemquerymap&qlayer=county&mapext=shapes&qitem=cty
_name&qstring=PB
And My Map File looks like this:
MAP
NAME test
STATUS ON
SIZE 600 450
EXTENT 14215.43 19342.38 18468.59 16607.16
UNITS FEET
SHAPEPATH "test"
IMAGECOLOR 255 255 255
PROJECTION
"init=epsg:26958"
END
WEB
IMAGEPATH "set in config.js"
IMAGEURL "set in config.js"
END
QUERYMAP
STATUS ON
STYLE HILITE
COLOR 255 255 0
END
LAYER
NAME county
DATA county
STATUS DEFAULT
TYPE POLYGON
CLASS
COLOR 212 212 212
OUTLINECOLOR 0 0 0
END
END
END
I get the error below:
msQueryByAttributes(): Search returned no results. No matching record(s)
found, layer and area of interest do not overlap.
The attribute table does contain the value.
Any help you can offer would be greatly appreciated.
Sincerely,
W. David Taylor
More information about the MapServer-users
mailing list