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 <[email protected]> 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
>> [email protected]
>> 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
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

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

Reply via email to