Skip to content
Back to skills

Geodesy Wgs84 Knowledge Patch

ASecurity

WGS 84

  • 25 stars
  • 0 votes
  • 0 copies
  • 13 views
  • Added May 27, 2026
developmentjavascriptgojavac++c#angulargitdatabase

Works with

  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill geodesy-wgs84-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Geodesy Wgs84 Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Geodesy Wgs84 Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-geodesy-wgs84-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-geodesy-wgs84-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geodesy-wgs84-knowledge-patch
description: WGS 84
version: null
license: MIT
metadata:
  author: Nevaberry
---


# WGS 84 and Geodesy

Load this skill for geodetic/ECEF/local-frame conversions, geodesics, datum and
reference-frame transformations, PROJ pipelines, pyproj, grid references, or
vertical datums. Use the topic references for complete formulas, examples,
library behavior, and product-specific requirements.

## Reference index

| Reference | Topics |
| --- | --- |
| [Cartesian and local coordinates](references/cartesian-and-local-coordinates.md) | Olson, Bowring, Ferrari, polar height, ENU/NED, topocentric conversion |
| [Ellipsoidal geodesics](references/ellipsoidal-geodesics.md) | Vincenty formulas, convergence, JavaScript surface calculations, PROJ direct geodesics |
| [Helmert and datum transformations](references/helmert-and-datum-transformations.md) | Scale, rotation conventions, NGS and ITRF parameters, regional fits, historical datums |
| [Library-specific behavior](references/library-specific-behavior.md) | GeographicLib, JavaScript parsing and spherical geometry, GEOTRANS requirements |
| [PROJ deployment and compatibility](references/proj-deployment-and-compatibility.md) | EPSG rollback, WKT2 parsing, cloning, headers, embedded resources, certificates |
| [PROJ pipelines and operations](references/proj-pipelines-and-operations.md) | Operation selection, time, compound CRS, vertical ordering, grids, bounds |
| [Projections and grid references](references/projections-and-grid-references.md) | Transverse Mercator, Krüger series, UTM, MGRS, GEOTRANS, regional grids |
| [pyproj CRS and transformers](references/pyproj-crs-and-transformers.md) | CRS inspection and export, dimensions, operation selection, arrays, bounds, threads |
| [Reference frames and datums](references/reference-frames-and-datums.md) | WGS 84 realizations, GNSS frames, ITRF station products, ETRS89, receiver output |
| [Vertical datums and geoids](references/vertical-datums-and-geoids.md) | EGM grids and coefficients, regional physical heights, tidal levels and epochs |

## Compatibility changes and deprecations

PROJ 9.8.1 restores EPSG 12.029 after the EPSG 12.049 snapshot in 9.8.0 disrupted
some ETRS89-to-national-CRS transformations. Check whether datum or CRS identifiers
introduced in 9.8.0 still resolve after the update.

The PROJ 9.7.0 WKT2 parser recognizes and discards `DEFININGTRANSFORMATION`.
Supply an explicit coordinate operation if the workflow depends on that transform.
When relying on `FORCE_OVER=YES` after `proj_clone()`, use PROJ 9.7.1 or later.

PROJ 5.2 and later reject `+transpose`. Set `+convention` for rotations or rotation
rates; changing conventions requires negating both. PROJ 6.0 removes `+t_obs`
from Helmert and deformation steps and adds `+dt` for an explicit deformation interval.
PROJ 7.0 rejects NTv2 grids whose `GS_TYPE` is not `SECONDS`.

Since PROJ 9.1, a compound source and 2D target skip the vertical transformation.
Use `--3d` to promote an otherwise 2D target when converting height.
Pyproj 2 ignores the pipeline `radians` argument; pyproj 3 honors it, so migrating
calls with `radians=True` can change their angular units.

Since pyproj 3.7, inspect `crs.is_deprecated` and the candidates returned by
`crs.get_non_deprecated()` before choosing a replacement.
In PROJ 9.4, include `proj.h` for declarations formerly in `proj_experimental.h`
and build with CMake 3.16 or later. PROJ 9.6 requires C++17 to build the library.

## Selecting operations and handling grids

In PROJ 9.2, `ONLY_BEST=YES` or `cs2cs --only-best` fails if the best operation
needs an unavailable grid. PROJ 9.2.1 restores older fallback behavior when strict
selection is disabled and reports `PROJ_ERR_COORD_TRANSFM_NO_OPERATION` on strict failure.

With pyproj 3.5 and PROJ 9.2 or later, pass `only_best=True` to
`Transformer.from_crs()` for strict selection. An explicit Boolean overrides
`PROJ_ONLY_BEST_DEFAULT` or `only_best_default` in `proj.ini`.
Use `authority="any"` to search without database authority preferences or
`authority="EPSG"` to restrict the search to EPSG operations.

`TransformerGroup` ranks operations with known accuracy by decreasing area overlap,
then smaller reported accuracy values. Unknown accuracy comes last regardless of overlap.
After transforming a point, inspect `get_last_used_operation()` with pyproj 3.4
and PROJ 9.1 or later to see the operation actually used.

In `+nadgrids`, the first covering grid wins, including overlaps. A missing file
is skipped only when prefixed with `@`. Put `null` last for zero shift outside
all available coverage; otherwise those points cause an error.
PROJ 8.2 lets `tinshift` use the closest triangle outside the network;
check coverage explicitly if extrapolated coordinates are unsuitable.

## Pipeline units, time, and vertical ordering

A pipeline needs a usable forward path. Applying `+inv` to a forward-only
operation such as `urm5` fails at construction. Since PROJ 5.1, adjacent steps
must agree on units; refer to nested pipelines through named init-file entries.

Convert GPS weeks with `+proj=unitconvert +t_in=gps_week +t_out=decimalyear`
before a time-dependent Helmert step. From PROJ 9.5, inspect
`proj_coordoperation_requires_per_coordinate_input_time()` and handle
`PROJ_ERR_COORD_TRANSFM_MISSING_TIME` when required time is absent.

When a vertical grid has a different interpolation CRS, save longitude and latitude
with `push`, run the horizontal shift before the vertical grid in either direction,
then restore them with `pop`, retaining the adjusted height. `+omit_fwd` and
`+omit_inv` skip a step in the forward and reverse traversal respectively.

For CRS definitions with `+geoidgrids`, PROJ 9.1 supports `+geoid_crs=horizontal_crs`
and `+geoid_crs=WGS84`. When transforming to WGS 84 with a horizontal shift from
`+towgs84` or `+nadgrids`, these place the vertical shift first and horizontal
shift first respectively. The default changed to WGS 84 in PROJ 6.

## Cartesian inverses and local frames

Olson's inverse takes ECEF metres and returns latitude/longitude in radians and
ellipsoidal height in metres. Choose the initial latitude branch by the squared
horizontal radius fraction against `0.3`, then correct both latitude and height.
Bowring's κ iteration usually needs one step near the ellipsoid; Ferrari's
algebraic κ solution is for the ordinary Earth-surface and exterior branch.

The C# `GpsUtils.EcefToGeodetic` height formula fails on the polar axis.
For `x = y = 0` and nonzero `z`, use latitude ±90° with the sign of `z`, arbitrary
longitude, and height `abs(z) - b`. This helper returns angles in degrees.

For Vision-RTK2 ENU0, reuse the origin's ECEF-to-ENU rotation for every sample.
Subtract the ECEF origin for position, rotate velocity directly, and interpret
the `FP_A-ODOMETRY` quaternion as scalar-first `[w, x, y, z]`, body-to-ECEF.
In PROJ 8.0 and later, `+proj=topocentric` maps ECEF metres to ENU metres;
precede it with `+proj=cart` for geographic input. Set `+ellps` explicitly for
WGS 84 because `topocentric` defaults to GRS80.

## Helmert conventions and coordinate epochs

Planar Helmert `+s` is a dimensionless multiplier: a two-ppm expansion is
`+s=1.000002`. Its `+theta` is in arcseconds, translations are in metres,
and height is untouched. For 3D Helmert rotations, `+exact` selects the full
trigonometric rotation;
for column vectors, `Rz @ Ry @ Rx` acts on x, then y, then z.

For published NGS ITRF/IGS-to-NAD83 tables, use `+convention=coordinate_frame`.
Divide rotations and rates by 1,000 for mas-to-arcseconds and scale and rate by
1,000 for ppb-to-ppm. IGS08-to-NAD83(2011) uses `+t_epoch=1997.0`; pass the
coordinate epoch in the fourth field. Propagate positions using station velocity
in the frame of propagation or an HTDP velocity model.

## Realizations, station products, and observation epochs

Aligned WGS 84 and ITRF realizations at the same coordinate epoch have seven
Helmert parameters zero by design, with alignment within 1 cm per Cartesian component.
Archived WGS 84 labels still matter: the original realization had 1–2 m absolute
accuracy, while G730 achieved about 10 cm RMS per component.

ITRF2020-u2024 has zero Helmert parameters and rates relative to ITRF2020.
Reuse ITRF2020 transforms and take station estimates from the update. Select the
station solution valid at the coordinate epoch using the matching discontinuity file.
Use seasonal coefficients for the intended XYZ/ENU axes and CM/CF origin.
Include the origin-rate bias in `ITRF2020-PMM.dat` for predicted horizontal velocity
and discard the vertical velocity resulting from that bias.

A `BESTUTMA` datum field can say `WGS84` for both an augmented ITRF2005 solution
and network RTK expected in ETRF2000. Confirm the realization with the correction provider.
In `latlon-ellipsoidal-referenceframe.js`, supply the actual observation epoch
as a decimal year; the constructor otherwise defaults to the chosen frame's reference epoch.

## Geodesic calculations and JavaScript behavior

Handle Vincenty's `sin_sigma = 0` before dividing: positive `cos_sigma` means
coincidence and negative means antipodes. Cap iterations even if `abs(lambda)`
stays below π. Use a Karney inverse solver for global coverage.

For `latlon-ellipsoidal-vincenty.js`, supply both inputs in the starting point's
datum and use zero ellipsoidal heights for a surface calculation. Its inverse
throws `RangeError` for either nonzero height. The three inverse wrappers return
`NaN` on `EvalError`, while `intermediatePointTo()` propagates convergence errors.
Very short nonzero baselines can report bearings of 0° and 180° when
`sin(sigma)**2 < Number.EPSILON`; coincidence has zero distance and `NaN` bearings.

In `geodesy/latlon-spherical.js`, constructors normalize latitude and longitude
independently. `LatLon.parse()` reads GeoJSON as `[longitude, latitude]` and discards height.
Give `Dms.parse()` separated fields; compact `0033709W` is read as `-33709` degrees.
For locale-matching decimal commas, apply `Dms.fromLocale()` separately to each coordinate.

## Projections and grid-cell semantics

For PROJ transverse Mercator and UTM, `+algo=auto|evenden_snyder|poder_engsager`
is available from 7.1. The default is `poder_engsager`; `+approx` selects
Evenden–Snyder and cannot be combined with `+algo`. Evenden–Snyder diverges beyond
3° from the central meridian. Bare transverse Mercator and UTM with a zone default to GRS80.

In `geodesy/utm.js`, Norway/Svalbard adjustments apply after `toUtm(zoneOverride)`
selects the requested zone. In the supplied `mgrs.js`, `Utm.toMgrs()` uses the
default WGS 84 datum even for input on another datum. Supply a known non-default
datum as the seventh argument of `new Mgrs(zone, band, column, row, easting, northing, datum)`.

`Mgrs.parse()` expects a two-digit zone. Validate equal axis digit counts because
an odd compact suffix loses its middle digit. `Mgrs.toUtm()` returns the southwest
cell corner. GEOTRANS 3.10 converts a 100 km MGRS square to its center; 3.8 already
used centers for finer cells. In `geodesy`, UTM formatting rounds, while MGRS
formatting truncates.

## pyproj dimensions, arrays, and threads

With PROJ 6 or later, pyproj 3.1's `to_3d()` promotes 2D endpoints when accounting
for ellipsoidal height. With pyproj 3.6 or later, use `to_2d()` before constructing a compound
CRS with a separate vertical datum. `itransform()` takes triples as `(x, y, z)`
unless `time_3rd=True` requests `(x, y, t)`.

For NumPy inputs to `transform(..., inplace=True)`, use writable, C-contiguous
`float64` arrays. For geographic bounds output in longitude–latitude order and
degrees, `right < left` indicates an antimeridian crossing: split into
`(left, bottom, 180, top)` and `(-180, bottom, right, top)`.

Pyproj 3.1 made `CRS` objects safe to share across threads. Create each
`TransformerGroup` in the thread using its results; its returned `Transformer`
and `CoordinateOperation` objects are unsafe to share across threads.

## Heights, geoids, and tidal references

Use `EPSG:3855` for EGM2008 gravity-related height, positive up in metres,
with geoid datum `EPSG:1027`. Preserve the CRS identifier or WKT because its
PROJ.4 export drops the datum. EGM2008 coefficient readers must handle degree/order
2159 plus terms through degree 2190 with order capped at 2159.

For NAD83 ellipsoidal height to NAVD 88, subtract the applicable regional
`GEOIDxx` undulation. NGVD 29-to-NAVD 88 needs a location-dependent correction surface.
IGLD 85 and NAVD 88 share benchmark geopotential numbers but report dynamic and
Helmert orthometric heights respectively; preserve the height type.

U.S. nautical chart depths typically use MLLW and bridge clearances typically use
MHW. Check each measurement's reference. The National Tidal Datum Epoch is a
19-year period. For a shorter station record, use simultaneous observations from
a control tide station to derive equivalent datum values for that epoch.

Files in this skill

  • SKILL.md6.9 KB
  • references/coordinate-conversions.md1.4 KB
  • references/proj-pipelines.md972 B
  • references/pyproj-patterns.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.