geo-biscuit
what is this
Transform points to MultiPolygon by a shape.
geo-biscuit
is named because it is similar to biscuit-cutter.
usage
JavaScript/TypeScript
npm install geo-biscuit
import { getBiscuitCutter } from './index';
// get cutter function
const biscuitCutter = getBiscuitCutter('star', {
scaler: 100, // size-multiplier
});
const biscuits = biscuitCutter(geojson); // geojson = FeatureCollection
console.log(biscuits); // MultiPolygon-FeatureCollection
CLI
npm install -g geo-biscuit
geo-biscuit --input ./example/input.geojson --output ./example/output.geojson --shape triangle --scaler 100