operations¶
- geodetic_engine.catalog.operations(*, authority=None, name=None, code=None, kind=None, source_crs=None, target_crs=None, either_direction=False, method=None, max_accuracy=None, grid_based=None, grids_available=None, superseded=None, area_of_interest=None, contains=False, area_name=None, deprecated=False, limit=None, offset=0)[source]¶
List the coordinate operations the active database holds.
What the registry publishes, as it publishes it: conversions, transformations and concatenated operations, including deprecated ones if asked. A transformation is found by the CRSs it was registered between; PROJ can also apply it between others, as a step of a chain. For what PROJ would apply between two given CRSs, use
available_operations()instead.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 forcrs().kind (
str|OperationKind|Iterable[str|OperationKind] |None, default:None) – Only these kinds, for example"transformation".source_crs (
Any, default:None) – Only operations registered from this CRS, or one of several: by code, entry, name, or anythingCoordinateReferenceSystemresolves, such as an OSDU record id. A bound CRS names the CRS it wraps.target_crs (
Any, default:None) – Only operations registered to this CRS, likewise.either_direction (
bool, default:False) – Also match an operation registered the other way round, fromtarget_crstosource_crs. PROJ applies transformations in either direction.method (
ReferenceFilter|None, default:None) – Only operations applying these methods, by code, entry or name, for example"NTv2"or"EPSG:9606".max_accuracy (
float|None, default:None) – Only operations stating an accuracy, in metres, no worse than this. One that states none is left out.grid_based (
bool|None, default:None) – True for only operations that read a grid file, False for none.grids_available (
bool|None, default:None) – True for only operations whose every grid is available now, False for those missing one; seeOperationEntry.grids(). An operation reading no grid, or only optional ones, counts as available.superseded (
bool|None, default:None) – True for only superseded operations, False for none.area_of_interest (
AreaFilter|None, default:None) –(west, south, east, north)in degrees, as forcrs().contains (
bool, default:False) – Witharea_of_interest, only operations whose area of use contains it entirely, rather than intersects it.area_name (
TextFilter|None, default:None) – Text the area of use’s description contains, or a pattern.deprecated (
bool|None, default:False) – False (default) leaves deprecated operations 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:
- Returns:
The operations, ordered by authority and code.
- Raises:
UnknownAuthorityError – If
authoritynames an authority the database does not hold.InvalidFilterError – If a filter is malformed, or a CRS or method names nothing of its kind.
Example
>>> from geodetic_engine import catalog >>> found = catalog.operations( ... source_crs="EPSG:4230", target_crs="EPSG:4326", ... max_accuracy=1.0, area_name="Norway", ... ) >>> [(entry.authority_code, entry.accuracy) for entry in found] [('EPSG:1612', 1.0), ('EPSG:1613', 1.0)]