Skip to content

Boolean Shapely - Used for TurfJS boolean testing

License

Notifications You must be signed in to change notification settings

DenisCarriere/boolean-shapely

Repository files navigation

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

  • crosses
  • contains
  • within
  • equals
  • touches
  • disjoint
  • intersects
  • overlaps
  • covers

About

Boolean Shapely - Used for TurfJS boolean testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published