Handedness

class geodetic_engine.bingrid.Handedness[source]

Bases: StrEnum

Which side of the J-axis the I-axis points to, seen from above.

Standing on a constant inline and looking towards increasing crosslines, the grid is right-handed if the next inline is to the right.

RIGHT = 'right'

The I-axis bearing is the J-axis bearing plus 90 degrees (EPSG 9666).

LEFT = 'left'

The I-axis bearing is the J-axis bearing minus 90 degrees (EPSG 1049).

property method_code: int

EPSG coordinate operation method code, 9666 or 1049.

property method_name: str

EPSG coordinate operation method name.

property sign: int

+1 for a right-handed grid, -1 for a left-handed one.

classmethod from_method_code(code)[source]

The handedness an EPSG P6 method code states.

Parameters:

code (int) – 9666 or 1049.

Return type:

Handedness

Returns:

The handedness.

Raises:

InvalidParameterError – If the code is not a P6 bin grid method.