MapInfo Pro

Welcome to the MapInfo Pro community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Here are some useful links where you can find more information:

Product Announcements

Discussions

Members

Resources

Events

 View Only

"Spike Strip" Tool Suggestion

  • 1.  "Spike Strip" Tool Suggestion

    Posted 5 hours ago

    I imagine that if you have edited maps in MapInfo Pro long enough, you have gotten anomalies like this in your objects:

    You erased some objects and did not realize that some of the nodes did not line up and you are left an artifact I call a "spike" - a series of nodes with practically no area.

    I wrote some code decades ago to find and remove these spikes, looking for the following criteria:

    • Check through the region objects looking at three nodes at a time (n1, n2, n3).
    • Compute the area of a triangle with vertices [n1, n2, n3].
    • If area is less than the set threshold, remove node n2, print a note to the message window and continue processing.

    Has anyone else run into object processing issues like this?

    Any suggestions of a better method? Maybe even someone has written code??

    Thanks,

    -- Steve



    ------------------------------
    Steve Wallace
    Florida Farm Bureau Insurance
    ------------------------------