Thanks! I see, WMS are just images.<div><br></div><div>If I ever succeed getting the Canadien provinces geometry/features, I&#39;ll post the recipe.</div><div><br></div><div>Francois</div><div><br><br><div class="gmail_quote">
On Fri, Aug 20, 2010 at 8:13 AM, Arnd Wippermann <span dir="ltr">&lt;<a href="mailto:arnd.wippermann@web.de">arnd.wippermann@web.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Hi,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">if you use WMS you have no access to any features. You get 
only a picture. For a certain point you can request GetFeatureInfo. If you want 
features, you have to use WFS.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">But keep in mind. You get only that from the servers, what 
they want to publish (i.e attributes of GetFeatureInfo).</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial">Arnd</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" size="2" face="Arial"></font></span> </div>
<div dir="ltr" align="left">
<hr>
</div>
<div dir="ltr" align="left"><font size="2" face="Tahoma"><b>Von:</b> 
<a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a> [mailto:<a href="mailto:users-bounces@openlayers.org" target="_blank">users-bounces@openlayers.org</a>] <b>Im Auftrag 
von </b>Frank<br><b>Gesendet:</b> Donnerstag, 19. August 2010 
02:11<br><b>An:</b> <a href="mailto:users@openlayers.org" target="_blank">users@openlayers.org</a><br><b>Betreff:</b> [OpenLayers-Users] 
Looping through the features of a WMS layer<br></font><br></div><div><div></div><div class="h5">
<div></div><font size="2"><span style="font-family:arial,helvetica,sans-serif"></span></font>Hi,<br><br>I want 
to get the map of Canada then loop through all provinces, in order to color them 
differently (I&#39;m going to create a new Vector layer for each province and apply 
its own styleMap) :<br><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">var wmsLayer = new 
OpenLayers.Layer.WMS(&quot;Canada&quot;, &quot;<a href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap" target="_blank">http://www2.dmsolutions.ca/cgi-bin/mswms_gmap</a>&quot;,</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">{</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">   layers: 
&quot;bathymetry,land_fn,park,drain_fn,drainage,&quot; +</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">   
&quot;prov_bound,fedlimit,rail,road,popplace&quot;,</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">   transparent: &quot;true&quot;, 
format: &quot;image/png&quot;</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">});</span><br><br>So the question is 
how to loop through the WMS layer features or &quot;prov_bound&quot; to retrieve each 
province&#39;s geometry. <br><br>Thanks!<br>Francois<br><br><br><br></div></div></div>
</blockquote></div><br></div>