geo-polygonize-core 0.4.2

A native Rust port of the JTS/GEOS polygonization algorithm. Reconstruct valid polygons from a set of lines.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

#[derive(Error, Debug)]
pub enum PolygonizerError {
    #[error("Topology error: {0}")]
    TopologyError(String),

    #[error("Invalid geometry: {0}")]
    InvalidGeometry(String),

    #[error("Noding failed: {0}")]
    NodingError(String),
}

pub type Result<T> = std::result::Result<T, PolygonizerError>;