[OpenLayers-Users] WMS getfeatureinfo filtering

Julien Cigar jcigar at ulb.ac.be
Tue Nov 27 05:44:32 PST 2012


Also, what's the difference between using
1) Control.WMSGetFeatureInfo with an infoFormat : 
'application/vnd.ogc.gml', and
2) Control.GetFeature with a Protocol.WFS.fromWMSLayer(layer) ..?

On 11/27/2012 11:59, Julien Cigar wrote:
> 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
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users


-- 
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121127/6f085b20/attachment.html>
-------------- 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/6f085b20/attachment.vcf>


More information about the Users mailing list