MethodEntry

class geodetic_engine.catalog.MethodEntry[source]

Bases: RegistryEntry

A coordinate operation method the active database holds.

Listed by methods(). proj.db records no deprecation of a method, so deprecated is always False.

kind

Whether its operations are conversions or transformations.

parameters

The parameters of the method, as PROJ states them for an operation that applies it; empty for a method only PROJ strings use.

operation_count

How many operations in the database apply it, deprecated ones included. The operations themselves are catalog.operations(method=entry).

property projjson_type: str

Always "OperationMethod".

to_json_dict()[source]

The method as PROJJSON: its name and id.

PROJ exports a method only inside an operation; this is the form it writes there, which PROJJSON’s method definition describes.

Return type:

dict[str, Any]

Example

>>> from geodetic_engine import catalog
>>> catalog.methods(code="EPSG:9615").one().to_json_dict()["name"]
'NTv2'
__init__(*, auth_name, code, name, deprecated, aliases=(), replaced_by=(), kind, parameters=(), operation_count=0)