[mapserver-users] Attribute query at geographic coordinate
Robert Sanson
Robert.Sanson at asurequality.com
Sun Nov 13 16:33:34 PST 2011
Hi Peter
You will have to write some of the server-side code for saving the results into a list, but the spatial query is called a GetFeatureInfo request, which is part of the WMS spec, which Mapserver can do well. Here is the format of a request:
http://<myserver>/cgi-bin/mapserve.exe?service=WMS&version=1.1.1&request=GetFeatureInfo&LAYERS=mapsheet&QUERY_LAYERS=mapsheet&INFO_FORMAT=text/plain&SRS=EPSG:27200&BBOX=2435500,5843425,2437500,5845425&WIDTH=256&HEIGHT=256&X=128&Y=128
Kind regards,
Robert Sanson
>>> Peter Weilandt <PeterWeilandt at shaw.ca> 14/11/2011 1:07 p.m. >>>
I stumbled across MapServer in my search for a tool to use in a website. I want to develop a website that will use a coordinate (lat & long), which is easily obtained from a user on the client side by clicking on a Google map, and then transferring this coordinate to the server side where it will be used to sequentially query many (500+) shapefile polygon layers, extracting the values from 2 fields from each layer at this coordinate, saving these values in a list (Excel, textfile?), and then using this list to return values to the user on the client side. This sounds simple in concept, but is MapServer a tool that can accomplish this and, if so, are there any examples showing the code to use for such a query?
This email and any attachments are confidential and intended solely for the addressee(s). If you are not the intended recipient, please notify us immediately and then delete this email from your system.
This message has been scanned for Malware and Viruses by Websense Hosted Security.
www.websense.com
More information about the MapServer-users
mailing list