MapInfo Pro Developers User Group

 View Only
Expand all | Collapse all

Objects Clean Overlap - "Smallest object wins" instead of "biggest object wins"?

  • 1.  Objects Clean Overlap - "Smallest object wins" instead of "biggest object wins"?

    Posted 12-22-2017 13:00

    Hi all, came across this issue recently. The code:

     

    Objects Clean From Selection Overlap

     

    prioritises the bigger object. Quoting from the reference:

     

    The portion of the overlap will be removed from all overlapping regions except the one with the largest area.

     

    Is there an easy way for us to reverse this? So the portion of the overlap will be removed from all overlapping regions except the one with the smallest area?



  • 2.  RE: Objects Clean Overlap - "Smallest object wins" instead of "biggest object wins"?

    Posted 12-27-2017 05:36

    Hello Sancarn,

    This can be done by using the Create object as intersect statement which is a part of the much larger create object statement.

     

    Specify Intersect to create an object representing the intersection of other objects (for example, if two regions overlap, the intersection is the area covered by both objects).

    Regards

    Martin