Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: How to get separate Centroid with my Map control using Existing FeatureSet

$
0
0
You cannot cast selectedlayer directly into a featureset. Try this out:
            IMapFeatureLayer layer = Map1.Layers.SelectedLayer;
            IFeatureSet fset= layer.DataSet;
            generate.Execute(fset, fs, null);
Oscar

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>