Antwort: [mapserver-users] msQueryByPoint(): Search returned no results
David Boggio
sig at manobi.sn
Fri Sep 27 07:07:59 PDT 2002
Hi Mike,
I think the problem is in your map file, because the query occures, and
returns no result.
You should try to set up a very simple map file, and see if your query
works.
Something like this is very basic and should work :
LAYER
NAME "Ethiopia_Adminlevel1"
TYPE POLYGON
STATUS ON
DATA "ethiopia_adminlevel1"
CLASS
NAME "Ethiopia"
OUTLINECOLOR 128 0 0
TEMPLATE "ethiopia_adminlevel1_query.html"
END
HEADER 'ethiopia_adminlevel1_header.html'
FOOTER 'ethiopia_adminlevel1_footer.html'
TOLERANCE 5
END
What happens then?
David Boggio
-----Message d'origine-----
De : Mike Smith [mailto:nospam at cnrit.tamu.edu]
Envoyé : vendredi 27 septembre 2002 13:29
À : Gunter.Rieth at stadt.mainz.de; sig at manobi.sn
Cc : mapserver-users at lists.gis.umn.edu
Objet : Re: Antwort: [mapserver-users] msQueryByPoint(): Search returned
no results
Thank you two very much for the response, but I have tried this just now
and it doesn't change a thing. If anybody's curious to see the page an
view what I'm talking about it can be found at:
HYPERLINK
"http://cnrit.tamu.edu/maps/map_init.html"http://cnrit.tamu.edu/maps/map
_init.html
When you get to that page, click on the very bottom button...the one
that says "(FRAMES VERSION)" on it.
And yes, I'm running mapserver in a "frames" web page, but I'm not using
mapscript, just the regular CGI binary. I AM, however, using plenty of
Javascript to control my page and that may be where the problem lies.
I'm just trying to figure out what I'm not setting properly that's
killing my querying ability!
Thanks for the help!
HYPERLINK
"mailto:Gunter.Rieth at stadt.mainz.de"Gunter.Rieth at stadt.mainz.de wrote:
How about setting STATUS off to STATUS ON or DEFAULT ???
Gunter
Mike Smith HYPERLINK
"mailto:nospam at cnrit.tamu.edu"<nospam at cnrit.tamu.edu>
Gesendet von: HYPERLINK
"mailto:owner-mapserver-users at lists.gis.umn.edu"owner-mapserver-users at li
sts.gis.umn.edu
26.09.2002 20:48
An: mapserver-users at lists.gis.umn.edu
Kopie:
Thema: [mapserver-users] msQueryByPoint(): Search
returned no results
Can somebody please enlighten me as to all the pieces required in order
to make a query happen? I've got one simple mapserver page that allows
queries, but my more advanced page gives me the following error every
time I try to query (or "nquery") anything:
msQueryByPoint(): Search returned no results. No matching record(s)
found
I've got the following code in my map file:
# Web Object
WEB
HEADER 'frames_header.html'
TEMPLATE 'frames.html'
FOOTER 'frames_footer.html'
.
.
.
END
# Query Map Object
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 51 102 255
END
# Layer I'm trying to query
LAYER
NAME "Ethiopia_Adminlevel1"
TYPE Polygon
STATUS off
GROUP Ethiopia
DATA "ethiopia_adminlevel1"
LABELITEM 'Name'
HEADER 'ethiopia_adminlevel1_header.html'
FOOTER 'ethiopia_adminlevel1_footer.html'
TOLERANCEUNITS kilometers
TOLERANCE 5
DUMP TRUE
CLASSITEM 'Name'
CLASS
EXPRESSION 'Addis Ababa'
COLOR 210 210 210
OUTLINECOLOR 0 0 0
TEMPLATE 'ethiopia_adminlevel1_query.html'
END # CLASS
.
.
.
END
All the header, footer, and query HTML files exist and have good
variables in them based on what's actually in my shape files, the shapes
show up fine in my map, but I cannot query ANYTHING! Any ideas?!
Thanks in advance!
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.391 / Virus Database: 222 - Release Date: 19/09/2002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20020927/fe412c9b/attachment.htm>
More information about the MapServer-users
mailing list