[mapserver-users] msQueryByPoint(): Search returned no results

Mike Smith nospam at cnrit.tamu.edu
Thu Sep 26 11:48:43 PDT 2002


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!




More information about the MapServer-users mailing list