0.0.1 • Published 7 years ago

boolean-jsts v0.0.1

Weekly downloads
4
License
MIT
Repository
-
Last release
7 years ago

Boolean JSTS

Primarly used for TurfJS boolean testing.

Install

$ npm install boolean-jsts --save-dev

Quickstart

const booleanJSTS = require('boolean-jsts');

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

var result = booleanJSTS('crosses', line1, line2);
//= true/false

DE-9IM

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