ThinkGeo.com    |     Documentation    |     Premium Support

How to split polygon by line

Hello,

I'm evaluating Map Suite 3.0 and have a question regarding split function.


In Map Suite 2.0 I could split polygon by line using code below:


splitPolygon = sourcePolygon.Split(CType(Shape, LineShape))


In new version Split function requires 2 area parameters:

Public Shared Function Split(ByVal areaToSplit As ThinkGeo.MapSuite.Core.Feature, 

                                                     ByVal areaToSplitBy As ThinkGeo.MapSuite.Core.Feature) 

                                           As System.Collections.ObjectModel.Collection(Of ThinkGeo.MapSuite.Core.Feature)


Public Shared Function Split(ByVal areaToSplit As ThinkGeo.MapSuite.Core.AreaBaseShape, 

                                                     ByVal areaToSplitBy As ThinkGeo.MapSuite.Core.AreaBaseShape) 

                                            As System.Collections.ObjectModel.Collection(Of ThinkGeo.MapSuite.Core.MultipolygonShape)


How I can accomplish polygon split by line?


Thanks.



Sergei, 
  
 In MapSuite 3.0 , we did not have this functionality built in up to now, I have added this feature to our working item, hopefully we can get it in future. 
  
 Thanks for your interests and sorry for the inconvenience now! 
  
 Any more questions feel free to let me know. 
  
 Thanks. 
  
 Yale 


Thanks Yale, 
 I’ll wait… 
  
 When next release is coming up? 
  
 Thanks. 
  
 Sergei.

Sergei, 
  
 We are probably going to have a new public release in next week or so, but I am not sure we will have this functionality built in. I have added this item to our working track system, and will be always keeping an eye on it. 
  
 Any more questions please feel free to let me know. 
  
 Thanks. 
  
 Yale