units

geodetic_engine.catalog.units(*, authority=None, name=None, code=None, kind=None, conversion_factor=None, deprecated=False, limit=None, offset=0)[source]

List the units of measure the active database holds.

Read through pyproj.database.get_units_map(). Every filter given must hold.

Parameters:
  • authority (str | Iterable[str] | None, default: None) – Only these authorities, for example "EPSG".

  • name (TextFilter | None, default: None) – Text the name or an alias contains, without case, or a pattern.

  • code (ReferenceFilter | None, default: None) – Only these codes, as for crs().

  • kind (str | UnitKind | Iterable[str | UnitKind] | None, default: None) – Only these kinds, for example "linear".

  • conversion_factor (RangeFilter | None, default: None) – The factor to SI, exactly or as (low, high) with None for an open end. A unit with no factor never matches.

  • deprecated (bool | None, default: False) – False (default) leaves deprecated units out, True lists only them, None lists both.

  • limit (int | None, default: None) – At most this many entries.

  • offset (int, default: 0) – Skip this many entries first.

Return type:

Listing[UnitEntry]

Returns:

The units, ordered by authority and code.

Raises:

Example

>>> from geodetic_engine import catalog
>>> feet = catalog.units(authority="EPSG", kind="linear", name="foot")
>>> "US survey foot" in [unit.name for unit in feet]
True