Hi All,
I am working on an application where I have used Dotspatail dll for display of
map.
How do we get selected layer information.
I have tried implementing the same with following code but all is not well
DotSpatial.Controls.IMapLayer laySelected = null;
DotSpatial.Symbology.FeatureLayer fea = null;
//string layerSelected = "";
foreach (DotSpatial.Controls.IMapLayer lay in
uxMap.GetFeatureLayers())
{
fea = (FeatureLayer)lay;
ISelection sel = fea.Selection;
// F = sel.ToFeatureSet();
List<IFeature> ls1 = new List<IFeature>();
ls1 = sel.ToFeatureList();
if (ls1.Count > 0)
{
laySelected = lay;
break;
}
}
Thanks and Regards
Nikhil Sai Parupalli
Note: Do not print this email until and unless it is really required. Save
paper , stay Green
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev