MapInfo Pro

 View Only
Expand all | Collapse all

Tool to auto-cluster, group by spatial adjacency, grouped by the intersection of sides and corners?

  • 1.  Tool to auto-cluster, group by spatial adjacency, grouped by the intersection of sides and corners?

    Posted 08-26-2021 00:10
    Edited by Mike Woodbury 08-26-2021 00:14

    Can anyone help with an automated process in MIP/Discover that can auto-cluster closed polygon features? 

    Examples below : closed polygons that are adjacent (intersecting on side or corner) which are then converted into a single cluster with an outline to the polygon (cluster). If a hole exists in the cluster the process still works (example below)

     

    Aim

    Automated process in MIP/Discover

    Have 100's to 1000's of graticule, in clusters, some have sides and corners which are common and some have holes (missing graticules). Outcome is a unique cluster from the polygon features with a spatial adjacency (grouped by the intersection of sides and corners)

    • Appreciate we can do manually using Spatial | Combine Selected Object however, as I have 100's to 1000's of graticules to clusters, the process takes forever when I do it manually (days, and errors can occur in naming the graticules)


    Please see example below, features are converted into a single polygon (right hand side) using Spatial | Combine Selected Object

    Cluster Fig examples - generated manualy


    ------------------------------
    Mike Woodbury
    Knowledge Community Shared Account
    ------------------------------


  • 2.  RE: Tool to auto-cluster, group by spatial adjacency, grouped by the intersection of sides and corners?

    Employee
    Posted 08-26-2021 01:28
    Here's one idea, Mike.

    Select all your objects, and use Combine to combine them all into one object.
    Now select that one object and use Disaggregate to split them into individual objects again.

    Objects that did intersect will stay connected as one object.

    You will have to update the attributes afterwards as they will have been set to the value of one of the records. You can do this using Update Column.

    ------------------------------
    Peter Horsbøll Møller
    Principal Presales Consultant | Distinguished Engineer
    Precisely | Trust in Data
    ------------------------------



  • 3.  RE: Tool to auto-cluster, group by spatial adjacency, grouped by the intersection of sides and corners?

    Posted 08-26-2021 01:57

    Hi Peter,

     

    This is fantastic! Worked, thank you from everyone here.

     

    Cheers, Mike