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

New Post: How to select lots of features and display them really fast ?

$
0
0
I need to select lots of features in a polygon layer (about 500 of 2000 features in a shapefile). I select them by index and it works, but it took around 1 minutes to display the selection. How can I speed this up ?
layer = map1.AddLayer(@"C:\Users\royeral\Desktop\becancour\physitel\uhrh.shp") as DotSpatial.Controls.MapPolygonLayer;

...

// this simple loop take about 1 minutes 
for (int index = 0; index < 500; ++index)
    layer.Select(index);

Viewing all articles
Browse latest Browse all 3973

Latest Images

Trending Articles



Latest Images

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