Function polylabel::polylabel_ffi

source ·
#[no_mangle]
pub extern "C" fn polylabel_ffi(
    outer: Array,
    inners: WrapperArray,
    tolerance: c_double
) -> Position
Expand description

FFI access to the polylabel function

Accepts three arguments:

  • an exterior ring representing a Polygon shell or closed LineString
  • zero or more interior rings representing Polygon holes
  • a tolerance c_double. If an error occurs while attempting to calculate the label position, the resulting point coordinates will be NaN, NaN.