derive_p6¶
- geodetic_engine.bingrid.derive_p6(corners, *, scale_factor=1.0, increment_i=1, increment_j=1)[source]¶
Derive the P6 parameters of the SDU note’s rectangle through four corners.
- Parameters:
corners (
BinGridCorners) – The corners.scale_factor (
float, default:1.0) – Bin grid scale factor of the grid; the derived bin widths are ground distances at this scale.increment_i (
int, default:1) – Change of inline number between adjacent bin nodes.increment_j (
int, default:1) – Change of crossline number between adjacent bin nodes.
- Return type:
- Returns:
The parameters, with the centre of the corners as origin.
- Raises:
InvalidCornersError – If the corners’ inline or crossline span is not a multiple of the node increment, so that they cannot all be nodes.
DegenerateBinGridError – If the corners coincide, or their outline A-B-D-C is not convex.
InvalidParameterError – If the scale factor or an increment is out of range.