Split a polygon with polygons

617 views
Skip to first unread message

eva Houdalaki

unread,
May 17, 2017, 12:16:27 PM5/17/17
to MapInfo-L
Hi

I was wondering if there is a way to split a polygon using several polygons. The polygon to be split is overlapping the others, and i want to use the smaller polygons much like a cookie cutter, also keeping the leftover bits.

The blue is my target that I want to cut based on the purple selected polygons.

I tried converting the smaller polygons to polylines to use the split function but nothing happens even though it seems that mapinfo is processing it. I also tried the disaggregate tool but I keep getting this warning : Operation did not produce a result. No errors detected.

Is there a reason why it wouldn't complete the  process?

I am using MapInfo Pro 15.2

Thank you for any help!

Eva

Tony Pilkington

unread,
May 17, 2017, 12:22:49 PM5/17/17
to mapi...@googlegroups.com
Look at the objects split function under the MI Objects menu. Select the large polygon, set it as the target; select the remaining polygons and use the split command. You may want/need to disaggregate the results.
 
Tony
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Virus-free. www.avg.com

Cliff B

unread,
May 17, 2017, 7:17:59 PM5/17/17
to MapInfo-L, a.j.pil...@talk21.com
Assuming you want one row for each split part you could have a simple mapbasic script that use the overlap function which would return and object of the sections of two polygons that overlap.
its be something like

Dim MySplitPart as Object
Fetch First From CutterTable
Fetch Rec n from SourcePolyTable  '(where n is the row of your source object)'
While not EOT(CutterTable)
   
MySplitPart = Overlap(CutterTable.obj, SourcePolyTable.obj)
   
Insert into TargetTableforNewRows (Colums for data, obj) Values ( data, MySplitPart)
   
Fetch Next from CutterTable
Wend



Reply all
Reply to author
Forward
0 new messages