Fieldeng
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

NameUnit
Easting Pm
Northing Pm
Easting Am
Northing Am
Easting Bm
Northing Bm

Outputs

NameUnit
Perpendicular distance (hero result)m
Along-line t1
Along-track distancem

Diagnose

Observations are context. They do not pass or fail a structure. See Diagnose.

WhenObservationSeverity
Along-line t < 0Projection is before Ainfo
Along-line t > 1Projection is past Binfo

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.

On this page