Compute
- async AsyncCogniteClient.geospatial.compute(
- output: dict[str, GeospatialComputeFunction],
-
- Parameters:
output (dict[str, GeospatialComputeFunction]) – No description.
- Returns:
Mapping of keys to computed items.
- Return type:
Examples
Compute the transformation of an ewkt geometry from one SRID to another:
>>> from cognite.client import CogniteClient >>> from cognite.client.data_classes.geospatial import ( ... GeospatialGeometryTransformComputeFunction, ... GeospatialGeometryValueComputeFunction, ... ) >>> client = CogniteClient() >>> # async_client = AsyncCogniteClient() # another option >>> compute_function = GeospatialGeometryTransformComputeFunction( ... GeospatialGeometryValueComputeFunction( ... "SRID=4326;POLYGON((0 0,10 0,10 10,0 10,0 0))" ... ), ... srid=23031, ... ) >>> compute_result = client.geospatial.compute(output={"output": compute_function})