geoprimsField-grade geospatial math

Points every set distance along a line

Points at a fixed interval along a line, from a start offset, measured on the UTM plane as GIS tools do, with the line's plane and geodesic lengths side by side.

Experimental: not yet fully verified. How results are checked

4

4 points along a line of 99.891 m on the plane (99.931 m on the ground).

Points
Distance alongLatitudeLongitude
0.000 m40.0000000 deg-105.0000000 deg
30.000 m40.0002703 deg-105.0000000 deg
60.000 m40.0005406 deg-105.0000000 deg
90.000 m40.0008109 deg-105.0000000 deg
Plane length
Ground length
Plane
Provenance
Computed by
geometry.sampling.points-along-line 1.0.0, core 0.1.0
Model
The line carried to its UTM zone's plane; points at start + i × interval of plane length, kept while within the line (QGIS Points along geometry); geodesic length from Karney's inverse on each segment
Accuracy
Exact along the plane line; the plane and ground lengths differ by the zone's scale, shown side by side
Notes
1 shown with the answer
Cites
QGIS project (vendor documentation), QGIS Processing algorithm: Points along geometry; Karney, C. F. F., Journal of Geodesy, Algorithms for geodesics (area of geodesic polygons, section 6)

Something look off?

Your values

Showing an example. Change anything.
KML, KMZ, GPX, GeoJSON, CSV, WKT, or WKB — or drop it on the box. Read on this device.
More options 1
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: The line carried to its UTM zone's plane; points at start + i × interval of plane length, kept while within the line (QGIS Points along geometry); geodesic length from Karney's inverse on each segment

Show your work

  1. Line length

    sum of segment lengths on the UTM plane

    1 segments on UTM zone 13N (WGS 84); 99.931 m on the ground = 99.891 m

  2. Points

    at start + i × interval while within the line

    99.891 m line on the plane, every 30 m from 0 m = 4

The same steps an agent gets from the MCP server with explain: true.

Accuracy: Exact along the plane line; the plane and ground lengths differ by the zone's scale, shown side by side

When to use this: Use this to set stations or sample points every so many meters along a route, a stream, a fence, or a transect, the way GIS tools do it. The last point is kept only if it falls on the line.

Limitations: Distances are measured on the UTM plane, as GIS tools do, so they run short or long of the ground by the zone's scale (up to about 0.1%); the ground length is shown beside it. At most 100,000 points; the line may span 500 km.

Worked example: Every 30 m along a 100 m line. Source: Points at 0, 30, 60, and 90 m; none at 120 m.

You enter

Interval
30 m
Line
40, -105 40.0009, -105

You get

Points
4
Plane length
99.891 m
Ground length
99.931 m
Plane
UTM zone 13N (WGS 84)

Review: Not yet independently reviewed by a GIS professional.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Checked against: 21 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Experimental means this tool has not yet met the stable bar: at least 20 golden vectors, differential tests, and an independent worked example.