[gdal-dev] map selection -reg

Paul Meems bontepaarden at gmail.com
Mon Nov 26 23:50:38 PST 2012


Hi Nikhil,

This mailing list is about GDAL/OGR.

I think you have more luck in the DotSpatial forum asking these questions:
http://dotspatial.codeplex.com/discussions


--
Paul


2012/11/27 Nikhil Sai Parupalli <nikhil.parupalli at iictechnologies.com>

>  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
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121127/425f71a0/attachment.html>


More information about the gdal-dev mailing list