1.1.3 • Published 3 years ago

geo-biscuit v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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
1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago