geo-biscuit
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

geo-biscuit

what is this

Transform points to MultiPolygon by a shape.
geo-biscuit is named because it is similar to biscuit-cutter.

  • original points

  • transformed poylgons (star, scaler=100)

  • transformed poylgons (triangle, scaler=100)

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

Readme

Keywords

Package Sidebar

Install

npm i geo-biscuit

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

4.06 MB

Total Files

20

Last publish

Collaborators

  • kanahiro