ArrayTransformationResult

class geodetic_engine.geodesy.ArrayTransformationResult[source]

Bases: object

A numeric batch with provenance, without Python objects per point.

columns contains one contiguous, writable float64 array per output axis, in coordinate value order. These buffers belong to this result: inputs are never modified, and later batches do not overwrite them. The dataclass is frozen, but its arrays can be modified by the caller.

Provenance fields have the same meaning as on TransformationResult. Use to_result() only when the tuple-based API or JSON export is needed.

property count: int

Number of points in this batch.

to_numpy()[source]

Allocate a row-oriented array of shape (count, output_axes).

Return type:

FloatArray

metadata_json_dict()[source]

Export provenance only, without allocating coordinate rows.

A streaming adapter can encode this once before sending numeric batches with the same CRS pair, operation and epoch.

Return type:

dict[str, Any]

to_result()[source]

Materialise Python coordinate tuples and retain all provenance.

Return type:

TransformationResult

__init__(columns, source_crs, target_crs, operation, grids, coordinate_epoch, coordinate_order='xy', pipeline=None, database_fingerprints=())