Polygons with large number of coordinates

Topics: Data Access, General Topics, SharpMap v0.9 / v1.x
Aug 1, 2013 at 8:19 PM
Hello everyone, I would like to know what is the best way to pass a huge number of coordinates(320.000) to sharpmap.
Currently, i have them stored in SQL server, but i have to read them and create the map all the time and it takes too much.
I had the idea to create a shapefile from them, but it was possible only with sharpmap 2.0.
ps:These coordinates belongs to 75 polygons, but they can be altered by the user, so its not only create the shapefiles i need to edit them as well.
Sorry if my english isn't perfect, i'm still learning, thanks!
Developer
Aug 6, 2013 at 1:19 AM
Is it really necessary to store and pass the coordinates individually ?

you may find it easier to store / retrieve / edit the polygons as is
Coordinator
Aug 6, 2013 at 6:03 AM
the amount of data does not sound huge. I you'll get the best performance there is by keeping your 75 polygons in Memory (FeatureDataSet) and render them from RAM.

Snippet:
var vl = new VectorLayer()
vl.DataSource = new GeometryProvider(polygons.ToArray())
Aug 6, 2013 at 6:38 PM
Yeah it was, the map took more than 5 minutes to be rendered, but i was able do solve this by saving the data in a kml file and opening it with QGIS in order to save it as shapefile, thanks !