Geospatial & Survey
Point-to-Line Distance
Perpendicular distance from P to line AB in local easting/northing. t < 0 is before A; t > 1 is past B.
Geospatial & Survey
Perpendicular distance from P to line AB in local easting/northing. t < 0 is before A; t > 1 is past B.
App id: GEO-16. Reference version 1.0.
How to fill it
Fill the inputs. The tool shows the outputs.
On the tool screen, Calc is the working sheet. Presets stores values you reuse. Reference is the formula, assumptions, and provenance below.
Formula
t = (P−A)·(B−A) / |B−A|²Inputs
| Name | Unit |
|---|---|
| Easting P | m |
| Northing P | m |
| Easting A | m |
| Northing A | m |
| Easting B | m |
| Northing B | m |
Outputs
| Name | Unit |
|---|---|
| Perpendicular distance (hero result) | m |
| Along-line t | 1 |
| Along-track distance | m |
Diagnose
Observations are context. They do not pass or fail a structure. See Diagnose.
| When | Observation | Severity |
|---|---|---|
Along-line t < 0 | Projection is before A | info |
Along-line t > 1 | Projection is past B | info |
Assumptions
- Local plane coordinates. Not a geodesic cross-track on the sphere.
Provenance
- Infinite line. t in [0, 1] means the foot lies on segment AB.