[OpenLayers-Users] WMS getfeatureinfo filtering

Bart van den Eijnden bartvde at opengeo.org
Tue Nov 27 07:04:33 PST 2012


The difference is that the first one uses the WMS (Web Map Service) interface (GetFeatureInfo request), the second one uses the WFS (Web Feature Service) interface (GetFeature request).

Best regards,
Bart

-- 
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.



On Nov 27, 2012, at 7:44 AM, Julien Cigar <jcigar at ulb.ac.be> wrote:

> 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.
> <jcigar.vcf>_______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121127/9644a10f/attachment.html>


More information about the Users mailing list