<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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).<div><br></div><div>Best regards,</div><div>Bart</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>-- <br>Bart van den Eijnden<br>OpenGeo - <a href="http://opengeo.org/">http://opengeo.org</a><br>Expert service straight from the developers.</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br><div><div>On Nov 27, 2012, at 7:44 AM, Julien Cigar <<a href="mailto:jcigar@ulb.ac.be">jcigar@ulb.ac.be</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div 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>
  </div>

<span><jcigar.vcf></span>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/openlayers-users<br></blockquote></div><br></div></body></html>