MatchResult

class geodetic_engine.bingrid.matching.MatchResult[source]

Bases: object

The stored grids a dataset is on, best first.

dataset

The dataset’s corners.

crs

The dataset’s CRS.

tolerance

Half the smaller real spacing between the dataset’s loaded traces, in linear_unit: a grid matches if no corner is further than this from where the grid puts it.

linear_unit

Unit of crs, of tolerance and of the distances.

matches

The grids within tolerance, best first.

property best: BinGridMatch | None

The grid to assign to the dataset, or None to define a new one.

to_json_dict()[source]

Render the result as plain data.

Return type:

dict[str, Any]

__init__(dataset, crs, tolerance, linear_unit, matches)