UNPKG

node-red-contrib-tak-registration

Version:

A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK

22 lines (20 loc) 565 B
import AbstractPreparedPolygonContains from './AbstractPreparedPolygonContains' export default class PreparedPolygonContains extends AbstractPreparedPolygonContains { fullTopologicalPredicate (geom) { var isContained = this._prepPoly.getGeometry().contains(geom) return isContained } contains (geom) { return this.eval(geom) } interfaces_ () { return [] } getClass () { return PreparedPolygonContains } static contains (prep, geom) { var polyInt = new PreparedPolygonContains(prep) return polyInt.contains(geom) } }