MapInfo Pro

Expand all | Collapse all

Distance Calculator - Polygon Center

  • 1.  Distance Calculator - Polygon Center

    Posted 19 days ago
    I need to calculate the distance of a point to centers of polygons. But the distance calculator calculates to the closest edge of the polygon. Are there solutions to calculate point to center of polygons?

    ------------------------------
    Bryce Dodge
    NWAP II INC
    Bellevue WA
    ------------------------------


  • 2.  RE: Distance Calculator - Polygon Center

    Posted 19 days ago
    Bryce,

    Couple of options :

    1) Use the Distance() function in SQL.  This will require some sort of join between the two datasets
    2) If you're on V19 you can use the new Select by Location tool.

    Happy to expand on either if needed.

    Nick

    ------------------------------
    Nick Hall
    Mapchester LTD
    nick.hall@mapchester.co.uk
    ------------------------------



  • 3.  RE: Distance Calculator - Polygon Center

    Posted 18 days ago

    Thank you Nick.

    I think we've got the SQL down from previous queries, but I'd love to know how to use the Select by Location tool to calculate distances between a point and center points of polygons.

    Thank you!

    -Bryce

     






  • 4.  RE: Distance Calculator - Polygon Center

    Posted 13 days ago
    Bryce,

    Sorry, my mistake. The new Select by Location options is a way of doing spatial joins and dynamic buffers only, you can't actually calculate distances with it.  I think I was just willing it to be part of the options!!!

    Back to the SQL I'm afraid.

    Nick

    ------------------------------
    Nick Hall
    Mapchester LTD
    nick.hall@mapchester.co.uk
    ------------------------------