Polyline Split malfunction

57 views
Skip to first unread message

Sergi Gàmiz Ribelles

unread,
Apr 11, 2022, 8:01:32 AM4/11/22
to MapInfo-L
The algorithm for Polyline Split operation makes some mistakes, such as in the picture below: the total region has been splitted by red polyline and the result is the blue and green regions, obviously wrong because the trimmer has been projected to close itself.
Have latest versions fixed this malfunction?
Has anybody some piece of code to deal with this problem?
Thank you .
Capture2.PNG

Sergi Gàmiz Ribelles

unread,
Apr 15, 2022, 10:02:11 AM4/15/22
to MapInfo-L
SOLVED. you can ignore this post.
I have corrected this malfunction after it is made with a large snippet of code. 

El dia dilluns, 11 d’abril de 2022 a les 14:01:32 UTC+2, Sergi Gàmiz Ribelles va escriure:

Peter Horsbøll Møller

unread,
Apr 19, 2022, 1:16:38 AM4/19/22
to mapi...@googlegroups.com

I think the tool works as it has been designed.

Let me tell you about that and you will be able to get around these issues.

 

When you drawn a line through the polygon, MapInfo Pro extents this line – or the two end segments of the polyline – until they intersect the MBR of the polygon.

The MBR, or Minimum Bounding Rectangle, is similar to the red rectangle drawn around your polygon below.

 

To guide MapInfo Pro, you can set the direction of the first and last segment of the cutter polyline in such a way that they point towards the MBR without intersecting the polygon you want to cut.

You can also start and end drawing outside the MBR so that MapInfo Pro doesn’t extent the cutter polyline at all.

 

In your example, you just need to make the vertical segment horizontal so that I points to the right.

 

I hope this helps

 

Peter Horsbøll Møller

www.precisely.com

 

Peter Horsbøll Møller
Principal Sales Engineer - Distinguished Engineer

 

From: mapi...@googlegroups.com <mapi...@googlegroups.com> On Behalf Of Sergi Gàmiz Ribelles
Sent: 11. april 2022 14:02
To: MapInfo-L <mapi...@googlegroups.com>
Subject: [MI-L] Polyline Split malfunction

 

This message originated Externally. Use proper judgement and caution with attachments, links, or responses.

 

Thank you .

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mapinfo-l/d9c990b4-52c0-42c2-b74e-ff6cf736cb4bn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages