# distance between two points on different direction [closed]

I want to measure the distance between two points on the horizon and vertical axis. Is any function on GIS can achieve this?

## closed as unclear what you're asking by PolyGeo♦Jul 6 '16 at 20:12

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Welcome to GIS SE. As a new user, please take the Tour. You've left a lot of details out of this question, to the point that it can't be answered. Every GIS package has a way to measure distances; in fact, most probably have more than one way, plus programming interfaces to enable others. Please edit the question to specify the exact GIS software you intend to use, what you have tried, and what difficulty you have encountered. – Vince Jul 6 '16 at 14:48
• Are you trying to do what my answer assumes or are the two points located on the same plane? Similar answer exists either you have to calculate the angle of the line and then do a triangle solution, or create a 3rd point at the so the east-west and north-south lines can be calculated separately. – mkennedy Jul 6 '16 at 17:28

## 1 Answer

Note: many GIS distance calculators only calculate 2D distances either on the ellipsoid surface or a planar surface.

Subtract the first point's elevation (z) from the second point's and take the absolute value. That's your vertical distance.

Create a third point that has the elevation of point 1 but the xy (or lat-lon) coordinates of point 2.

Run a distance calculator on point 1 and point 3 to get the horizontal distance.