Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

boolean-shapely

deniscarriere621MIT0.1.2TypeScript support: included

Boolean Shapely - Used for TurfJS boolean testing

readme

Boolean Shapely

Primarly used for TurfJS boolean testing.

Install

$ python --version
Python 2.7.10
$ pip install shapely
$ yarn add --dev boolean-shapely

Quickstart

const shapely = require('boolean-shapely');

const line1 = lineString([[-2, 2], [1, 1]]);
const line2 = lineString([[1, 1], [1, 2], [1, 3], [1, 4]]);

shapely.crosses(line1, line2);
    .then(result => console.log(result));
//= true/false

DE-9IM

  • <input checked="" disabled="" type="checkbox"> crosses
  • <input checked="" disabled="" type="checkbox"> contains
  • <input checked="" disabled="" type="checkbox"> within
  • <input checked="" disabled="" type="checkbox"> equals
  • <input checked="" disabled="" type="checkbox"> touches
  • <input checked="" disabled="" type="checkbox"> disjoint
  • <input checked="" disabled="" type="checkbox"> intersects
  • <input checked="" disabled="" type="checkbox"> overlaps
  • <input checked="" disabled="" type="checkbox"> covers