Skip to content

geo.crs

2 functions / 0 types

Index

FunctionDescription
describeDescribe a supported CRS and its coordinate units without creating a map or loading a service.
registerRegister one coordinate reference system, or one coordinate operation, under the identifier its definition names, and answer that identifier, such as IAU_2015:49900.

describe

def describe(
    *,
    crs: types.geo.CrsId,
    _transaction_id: str | None = None
) -> types.geo.CrsDescriptor

Describe a supported CRS and its coordinate units without creating a map or loading a service.

Returns CrsDescriptor.

crs : CrsId

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

register

def register(
    *,
    definition: str,
    _transaction_id: str | None = None
) -> types.geo.CrsId

Register one coordinate reference system, or one coordinate operation, under the identifier its definition names, and answer that identifier, such as IAU_2015:49900.

definition is WKT2 or PROJJSON with a top-level identifier, as projinfo prints a registry entry, or a WKT2 coordinate operation with a Helmert method. A system defined on a datum the registry holds, by identifier or by name, converts with that datum’s operations. Registering the same definition again does nothing. Fails with InvalidArgument for a definition with no identifier, one the engine cannot represent, such as longitude counted west, and one that differs from what the registry holds under its identifier.

Returns CrsId.

definition : str

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.