[Mapserver-users] Always returning first record in DBF on itemquery

Steve Lehr lehrs at erau.edu
Thu Aug 21 13:23:35 EDT 2003


Group:

I'm using mapserver 4.0Beta and just tried the 4.0 release, when I query a
layer, I'm always getting the first record in the .dbf file, no matter what
the parameter is that I pass.  I pretty sure I'm sending it the right data,
but I always get the first record?

I call it with:

<A
href="http://127.0.0.1/cgi-bin/mapserv?map=/maps/aerial_lookup.map&qitem=qpi
d&qstring=000098804447&qlayer=parcels&mode=itemquery">000098804447 </A><BR>

I'm querying the lookup map below.  Yet when it forwards to the aerial.map
it always passes the first record in the parcels.dbf, which is not the
correct QPID.

--- lookup.map -- snip--
MAP
  LAYER
    NAME "parcels"
    DATA parcels
    STATUS DEFAULT
    TYPE POLYGON
    CLASS
      TEMPLATE
"http://127.0.0.1/cgi-bin/mapserv?map=/maps/aerial.map&mapxy=[shpmidx]+[shpm
idy]&buffer=500&parcel_id=[QPID]"
    END
  END
END
---end snip --


Anyone seen symptoms of this behavior before.  (**Wild reason thoughts:
layer name can not be the same as the data file name?  Or qpid and QPID are
reserved syntax?)  The thing that is messing me up, is that I have the same
syntax working for another application, except the layer name is doqindex
and the qitem=location and instead of passing along QPID, I pass along
LOCATION.

Thanks for the thoughts..

Steven Lehr
Visiting Professor
Embry-Riddle Aeronautical University (LB159)
600 S. Clyde Morris Blvd.
Daytona Beach, FL 32114-3900
386-226-7740




More information about the mapserver-users mailing list