ThinkGeo.com    |     Documentation    |     Premium Support

Dissolving shapefile with many polygons

I am looking to dissolve a large shapefile.  I have successfully implemented to code found on code.thinkgeo.com, however calling MultipolygonShape shp = PolygonShape.Union(areaShapeCollection) is very slow, sometimes taking up to a minute an a half.  I think the reason for this is my BaseAreaShapes are multipolygons, some of them containing tens of thousands of polygons, so there is a lot of processing to do.  I was just wondering if there was anything I can do on my end to make this process execute quicker?


Thanks for your time and help.


 


.Ryan.



Ryan, 
  
 How many area shapes are you going to merge? The core logic behind it lies in NTS which is an open source project which I think we can do litter about it. 
  
 If possible, can you shown me the data (wkt) and attached it in a text file, we can try to test it. 
  
 Let me know if any more questions. 
  
 Thanks. 
  
 Yale