[mapserver-users] Attribute query at geographic coordinate

Smith, Michael ERDC-CRREL-NH Michael.Smith at usace.army.mil
Mon Nov 14 17:37:07 EST 2011


In mapserver 6, you can use any ogr outputformat, including geojson,
without having to setup a template.

Mike

-- 
Michael Smith

US Army Corps
Remote Sensing GIS/Center



On 11/14/11 2:50 PM, "Fawcett, David (MPCA)" <David.Fawcett at state.mn.us>
wrote:

>If you didn't need to use WFS and just wanted to do MapServer queries,
>you could put together a template that would build you a list.  Take a
>look at the examples on this page:
>http://mapserver.org/output/template_output.html
>
>The JSON example is probably the most applicable.
>
>Like others have mentioned, 500 data layers won't be efficient, so you
>may want to explore other data organization ideas.
>
>David.
>
>
>
>-----Original Message-----
>From: mapserver-users-bounces at lists.osgeo.org
>[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Robert
>Sanson
>Sent: Sunday, November 13, 2011 6:34 PM
>To: mapserver-users at lists.osgeo.org; Peter Weilandt
>Subject: Re: [mapserver-users] Attribute query at geographic coordinate
>
>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=G
>etFeatureInfo&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
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>_______________________________________________
>mapserver-users mailing list
>mapserver-users at lists.osgeo.org
>http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list