[Mapserver-users] trouble with querymap

David Rafkind daver at umiacs.umd.edu
Tue Dec 17 18:58:43 EST 2002


hello all! a quasi-newbie question about mapserver 3.6.3:

I am trying to highlight point-selected features in a layer. I assume this
happens by setting the "mode" cgi variable to "querymap". This is the URL 
I am trying to use:

http://ironclad.umiacs.umd.edu:8000/cgi-bin/MapServer?mode=querymap&map=/ironclad/daver/lv/www/data/map-data/usa.map&layer=states&qlayer=states&slayer=states&mapsize=392+372&imgsize=392+372&mapext=-80.5194+38.22755141388174+-74.696+43.76184858611826&imgext=-80.5194+38.22755141388174+-74.696+43.76184858611826&img.x=196&img.y=186

It is quite long because I am shooting the moon and including lots of cgi
variables in the hopes that one will work.

The imgext and mapext are the same, the layer, qlayer, and slayer are the same.
I did notice that including img.x and img.y produces a different error than
including imgxy. The img.x and img.y are set to the middle of the image, which should
be pennsylvania. Here is the URL with the mode changed to "map", for reference:

http://ironclad.umiacs.umd.edu:8000/cgi-bin/MapServer?mode=map&map=/ironclad/daver/lv/www/data/map-data/usa.map&layer=states&qlayer=states&slayer=states&mapsize=392+372&imgsize=392+372&mapext=-80.5194+38.22755141388174+-74.696+43.76184858611826&imgext=-80.5194+38.22755141388174+-74.696+43.76184858611826&img.x=196&img.y=186

Can anyone tell me what I am doing wrong? I am sure it is something really obvious.
(I've seen other similar complaints in the mailing list archive but nothing
with the same particulars)

Here is my map file:
---

map

Name usa
ImageColor 0 0 32
ImageType png

ShapePath "."

QUERYMAP
    STATUS ON
    STYLE HILITE 
    COLOR 255 0 255
END

Layer
    ConnectionType postgis
    name "states"

    Connection "user=daver password=password dbname=testdb"

    Data "the_geom from states"

    Status on
    type polygon

    class
	outlinecolor 255 0 0
	color 64 64 128

    end


End

End



More information about the mapserver-users mailing list