[mapserver-users] Attribute query at geographic coordinate

Rahkonen Jukka Jukka.Rahkonen at mmmtike.fi
Sun Nov 13 21:05:38 PST 2011


Hi,

For me this sounds like being something for some mapscript variant http://mapserver.org/mapscript/index.html for doing the special server side queries and formatting the output.  WMS GetFeatureInfo is not the most natural way to do this even it might work by doing a little bit of tweaking.  WFS GetFeature with ogc:Contains filter should suit for doing the queries but formatting the output in a way you want could be difficult. The defaul format is GML.

Do all your layers have a similar schema (like being measurement data from different dates) or can they all be different? And do your users need to select which layers of those 500+ to query or would the service return always info about all the available layers?

-Jukka Rahkonen-

Peter Weilandt wrote:

> 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?



More information about the MapServer-users mailing list