MapInfo Pro

 View Only
  • 1.  Distance Calculator - Polygon Center

    Posted 11-10-2020 18:40
    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 11-11-2020 04:41
    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 11-12-2020 14:19

    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 11-17-2020 06:46
    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
    ------------------------------