poly-slice
v0.0.1
Published
PolySlice is a lightweight npm package designed to simplify the process of cutting and splitting GeoJSON polygon using a provided linestring. It offers a straightforward way to perform geometric operations on your spatial data.
Downloads
1
Maintainers
Readme
poly-slice
PolySlice is a lightweight npm package designed to simplify the process of cutting and splitting GeoJSON polygon using a provided linestring. It offers a straightforward way to perform geometric operations on your spatial data.
Installation
NPM
npm install poly-slice
Yarn
yarn add poly-slice
Usage
import polySlice from "poly-slice";
// Your GeoJSON polygon and linestring features
const polygon = /* your GeoJSON polygon feature */;
const linestring = /* your GeoJSON linestring feature */;
// Use PolySlice to cut the polygon
const slicedPolygons = polySlice(polygon, linestring);
Contributing
Feel free to contribute by opening issues or submitting pull requests. Contributions are always welcome!
License
This project is licensed under the ISC License - see the LICENSE file for details.