Check waypoints against a geofence
Which waypoints of a mission fall outside a geofence drawn a set distance around an area, and by how far, with any that cross an inner warning fence.
Planning and education aid. Not for primary navigation. Full disclaimer
Experimental: not yet fully verified. How results are checked
2 of 4 waypoints are outside the geofence.
- Caution:Outside the geofence: waypoint 3 by 26.6 m, waypoint 4 by 27.3 m.
| Waypoint | Status | Beyond the fence |
|---|---|---|
| 3 | outside the geofence | 26.6 m |
| 4 | outside the geofence | 27.3 m |
- Waypoints checked
- Largest measured fence error
Provenance
- Computed by
- drone.mission.geofence-check 1.0.0, core 0.1.0
- Model
- The fence is the round geodesic buffer of the area (geometry.buffer.geodesic): every point within the distance of it. A waypoint is outside when its geodesic distance to the area exceeds the fence distance, and by exactly the difference (Karney 2013)
- Accuracy
- The fence is within 0.1% of the distance or 0.5 m, as measured; waypoint distances are exact geodesic distances to the area
- Notes
- 2 shown with the answer
- Cites
- Karney, C. F. F., Journal of Geodesy, Algorithms for geodesics
Something look off?
How we got thisFormula, worked example, sources, and proof
Model: The fence is the round geodesic buffer of the area (geometry.buffer.geodesic): every point within the distance of it. A waypoint is outside when its geodesic distance to the area exceeds the fence distance, and by exactly the difference (Karney 2013)
Accuracy: The fence is within 0.1% of the distance or 0.5 m, as measured; waypoint distances are exact geodesic distances to the area
When to use this: Use this before uploading a mission to confirm every waypoint is inside the fence you intend to set. Enter the area the fence is drawn around, the fence distance, and the mission's waypoints. The tool lists each waypoint that falls outside and how far beyond the fence it is. Add a warning distance to also list the ones past an inner warning fence.
Limitations: Only the waypoints are tested, not the path between them, so a leg that cuts a corner of the fence between two inside waypoints is not caught; add waypoints along long legs near the boundary. The fence here is the geometric one this tool draws, which your aircraft's own geofence may round or simplify differently. Position error in flight is not allowed for, so leave a margin.
Worked example: Four waypoints against a 40 m fence around a field. Source: add-drone-suite geofence requirement: waypoints flagged with their distance beyond the fence.
You enter
- Area, route, or point
- 41, -96 41, -95.997 41.002, -95.997 41.002, -96
- Fence distance
- 40 m
- Waypoints to check
- 41.001, -95.9985 41.0022, -95.9985 41.0026, -95.9985 41.001, -96.0008
You get
- Waypoints outside
- 2
- Waypoints checked
- 4
- Largest measured fence error
- 0.123 m
Review: Not yet independently reviewed by a Part 107 remote pilot.
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: 22 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.
Sources
- Algorithms for geodesics, Karney, C. F. F., Journal of Geodesy, Vol. 87, No. 1. pp. 43-55 (direct and inverse geodesic problems).
Experimental means this tool has not yet met the stable bar: at least 20 golden vectors, differential tests, and an independent worked example.