<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18939"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=500114821-20082010>if you interested to have your own dataset, then this 
is a good resource:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=500114821-20082010></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><A 
href="http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/">http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/</A></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 
face=Arial></FONT>&nbsp;</DIV>
<DIV><SPAN class=500114821-20082010><FONT color=#0000ff size=2 
face=Arial>Arnd</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> Frank [mailto:eucloid@gmail.com] 
<BR><B>Gesendet:</B> Freitag, 20. August 2010 18:02<BR><B>An:</B> Arnd 
Wippermann<BR><B>Cc:</B> users@openlayers.org<BR><B>Betreff:</B> Re: 
[OpenLayers-Users] Looping through the features of a WMS 
layer<BR></FONT><BR></DIV>
<DIV></DIV>Thanks! I see, WMS are just images.
<DIV><BR></DIV>
<DIV>If I ever succeed getting the Canadien provinces geometry/features, I'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 
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>
  <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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
  <DIV dir=ltr align=left><SPAN><FONT color=#0000ff size=2 
  face=Arial></FONT></SPAN>&nbsp;</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'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("Canada", "<A 
  href="http://www2.dmsolutions.ca/cgi-bin/mswms_gmap" 
  target=_blank>http://www2.dmsolutions.ca/cgi-bin/mswms_gmap</A>",</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">&nbsp;&nbsp; layers: 
  "bathymetry,land_fn,park,drain_fn,drainage," +</SPAN><BR 
  style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp; 
  "prov_bound,fedlimit,rail,road,popplace",</SPAN><BR 
  style="FONT-FAMILY: courier new,monospace"><SPAN 
  style="FONT-FAMILY: courier new,monospace">&nbsp;&nbsp; transparent: "true", 
  format: "image/png"</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 "prov_bound" to retrieve each 
  province's geometry. 
  <BR><BR>Thanks!<BR>Francois<BR><BR><BR><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>