Hi Nikhil,<br><br>This mailing list is about GDAL/OGR.<br><br>I think you have more luck in the DotSpatial forum asking these questions:<br><a href="http://dotspatial.codeplex.com/discussions">http://dotspatial.codeplex.com/discussions</a><br>

<br><br>--<br clear="all"><div class="gmail_extra">Paul<br>
<br><br><div class="gmail_quote">2012/11/27 Nikhil Sai Parupalli <span dir="ltr"><<a href="mailto:nikhil.parupalli@iictechnologies.com" target="_blank">nikhil.parupalli@iictechnologies.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi All,
<div><br>
</div>
<div>I am working on an application where I have used Dotspatail dll for display of map.</div>
<div>How do we get selected layer information.</div>
<div>I have tried implementing the same with following code but all is not well</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>   DotSpatial.Controls.IMapLayer laySelected = null;</div>
<div>            DotSpatial.Symbology.FeatureLayer fea = null;</div>
<div>            //string layerSelected = "";</div>
<div>        </div>
<div>            foreach (DotSpatial.Controls.IMapLayer lay in uxMap.GetFeatureLayers())</div>
<div>            {</div>
<div>                fea = (FeatureLayer)lay;</div>
<div>                ISelection sel = fea.Selection;</div>
<div>              // F = sel.ToFeatureSet();</div>
<div>                List<IFeature> ls1 = new List<IFeature>();</div>
<div>                </div>
<div>                ls1 = sel.ToFeatureList();</div>
<div>                if (ls1.Count > 0)</div>
<div>                {</div>
<div>                    laySelected = lay;</div>
<div>                    break;</div>
<div>                }</div>
<div>            }</div>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">Thanks and Regards<br>
Nikhil Sai Parupalli<br>
<br>
<br>
<br>
<span style="font-weight:bold">Note</span>: <span style="color:rgb(255,0,0)">Do not print this email until and unless it is really required. Save paper</span> ,
<span style="color:rgb(51,153,102);font-weight:bold">stay <span style="color:rgb(51,153,102)">
Gre</span>en</span><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div>