Query map
Searle Ross
Ross.Searle at dnr.qld.gov.au
Wed Dec 1 00:15:58 PST 1999
Has anyone worked out how to get the querymap stuff working yet. I am using
V3.3 (downloaded today)
I have tried to copy the info at
http://arachnid.dnr.state.mn.us/ms_test/itemquery/test.html but I must be
missing something. My map file is attached below. When I query the map a
reference to an image is substituted into the returned template but no image
is actually created. I have no idea how this is meant to be setup so any
hints would be appreciated
On another topic, has anyone had any luck with relational joins. I can get a
join to work no worries (as per attached map file - the relevant section is
commented out) but it is only returning the first row of the joined table
(ie one to one) even though the type is set to multiple.
Thanks
Ross
#
# Start of map file
#
NAME NRmeta
STATUS ON
SIZE 600 600
SHADESET /data4/WWW/mapserver/symbols/shade.sym
MARKERSET /data4/WWW/mapserver/symbols/marker.sym
LINESET /data4/WWW/mapserver/symbols/line.sym
EXTENT 224000 7012000 445400 7310000
UNITS METERS
SHAPEPATH "/data4/WWW/develop/NRmeta/gis"
IMAGECOLOR 255 255 255
#
# Start of web interface definition
#
WEB
IMAGEPATH /data4/WWW/tmp/
IMAGEURL /tmp/
TEMPLATE nrmain.html
#LOG test.log
footer "sel.html"
END
QUERYMAP
status on
STYLE HILITE
COLOR 255 255 0
END
#
# Start of layer definitions
#
LAYER
NAME test2
TYPE POLYGON
STATUS DEFAULT
DATA test2
CLASS
SYMBOL 0
OUTLINECOLOR 0 0 0
COLOR 248 248 95
END
HEADER "qry_test_header.html"
FOOTER "qry_test_footer.html"
QUERY
TEMPLATE qry_test_main.html
#TEMPLATE jointest2.html
# JOIN
# type multiple
# from ID
# name test1
# table jointable.dbf
# TEMPLATE jointest.html
# to TEST
# END
end
# END
END
END
END
Ross Searle
Natural Resource Information Management Officer
Department of Natural Resources
PO Box 1143
Bundaberg QLD 4670. Australia
Ph : 0741 537 888 Fax : 0741 537 823
More information about the MapServer-users
mailing list