pub fn validate_compactness(
twice_area: &str,
perimeter: &str,
config: Option<JsValue>,
) -> Result<Option<String>, JsValue>Expand description
Boundary-level compactness check. Apply to a whole polygon’s outer boundary (single part, or the union boundary of a multipart polygon). NOT intended for individual parts of a multipart polygon — that would be stricter than on-chain and reject legitimate decompositions.