TURF-RS
A Rust library for advanced geospatial analysis, providing powerful tools for manipulating and optimizing geometric data.
Features
- Dissolve: Union multiple polygons into a single, unified geometry. This is useful for merging adjacent or overlapping areas into a single feature.
- Clear Polygons: Clean and simplify polygon geometries by removing redundant vertices, such as duplicate and collinear points. This helps to optimize storage and improve rendering performance.
Requirements
On Debian-based systems, you need to install the libgeos-dev package:
&&
**For others systems like mac or windows on official website of Geos
Usage
Dissolve
The dissolve function takes a vector of polygons and an optional buffer_size parameter,
and returns a single, merged polygon. If buffer_size is not provided, it defaults to 0.000000001.

use Polygon;
use dissolve;
Clear Polygons
The clear_polygons function simplifies polygon geometries by removing
duplicate and collinear points.

use Polygon;
use clean_coords;
How to use?
Add the following to your Cargo.toml file:
[]
= "0.1.0"
Contributing
We welcome contributions from the community! If you have an idea for a new feature, a bug fix, or an improvement to the documentation, please open an issue or submit a pull request on our GitHub repository.
Together, we can make turf-rs the best geospatial library for Rust!
License
This project is licensed under the terms of the MIT license or the Apache License 2.0.