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.

<<attachment: jcigar.vcf>>

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to