[gdal-dev] map selection -reg
Nikhil Sai Parupalli
nikhil.parupalli at iictechnologies.com
Mon Nov 26 21:43:12 PST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121127/747827d0/attachment-0001.html>
More information about the gdal-dev
mailing list