boolean-jsts

v0.0.1
Boolean JSTS - Used for TurfJS boolean testing

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
npm i boolean-jsts

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 8/28/2017

Downloads

Maintainers