<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Also, what's the difference between using<br>
1) Control.WMSGetFeatureInfo with an infoFormat :
'application/vnd.ogc.gml', and<br>
2) Control.GetFeature with a Protocol.WFS.fromWMSLayer(layer) ..?<br>
<br>
On 11/27/2012 11:59, Julien Cigar wrote:
<blockquote cite="mid:50B49D1C.60409@ulb.ac.be" type="cite">Hello,
<br>
<br>
I'm using Mapserver with the following PostGIS layer:
<a class="moz-txt-link-freetext" href="http://pastie.org/5441655">http://pastie.org/5441655</a>
<br>
<br>
To give an example, here is what my data looks like:
<br>
<br>
site_id site_name occurence_id occurence_name
<br>
<br>
10 sitea 123 occurenceA
<br>
10 sitea 456 occurenceB
<br>
10 sitea 789 occurenceC
<br>
10 sitea 101 occurenceD
<br>
<br>
(an occurence is linked to a site, so in this case 4 occurrences
are linked to "sitea".)
<br>
<br>
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.
<br>
<br>
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 .. .?
<br>
<br>
Thank you,
<br>
Julien
<br>
<br>
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/openlayers-users">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
</pre>
</body>
</html>