[OpenLayers-Users] WMS getfeatureinfo filtering
Julien Cigar
jcigar at ulb.ac.be
Tue Nov 27 02:59:40 PST 2012
Hello,
I'm using Mapserver with the following PostGIS layer:
http://pastie.org/5441655
To give an example, here is what my data looks like:
site_id site_name occurence_id occurence_name
10 sitea 123 occurenceA
10 sitea 456 occurenceB
10 sitea 789 occurenceC
10 sitea 101 occurenceD
(an occurence is linked to a site, so in this case 4 occurrences are
linked to "sitea".)
When I click on a point on the map I would like to display all (and
only) the sites name. I use a WMS getfeatureinfo for this. The problem
is that I need to group data coming from the getfeatureinfo by site,
otherwise the same site is displayed multiple times.
I wondered if there is an easy way to do that in OpenLayers, other than
returning GML, parsing it and build the DOM by hand .. .?
Thank you,
Julien
--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jcigar.vcf
Type: text/x-vcard
Size: 292 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121127/d58198c4/attachment-0001.vcf>
More information about the Users
mailing list