DEPRECATED - replaced with headlands
Modul zur automatischen Berechnung von Vorgewenden aus GeoJSON Teilflaechen / Module for automatic headland calculation from GeoJSON plots. Works in NodeJS and in the browser.
The script is still in beta phase, to install simply clone this repo. In future: Use npm to install.
npm install vorgewende --save
The script (will) contain the following API methods:
where
polygon
a GeoJSON feature (GeoJSON geometries need to be converted to features first)
angle
the maximal allowed turning angle in degrees, defaults to 30 deg
minDistance
the minimum distance in meters between two coordinates used for angle comparison, defaults to 10 m.
const vorgewende = require('vorgewende')
const fs = require('fs')
let plot = fs.readFileSync('somePlotPolygonFeature.geojson')
let headlands = vorgewende.lineString(plot) // will contain all headlands as GeoJSON lineString features
An array of GeoJSON lineString features representing each headland.
where
headlandWidth
Width of each headland in meters, typically equal to (half) the working width of the sprayer used.
else see lineString
parameter description.
An array of GeoJSON polygon features representing each headland.
MIT, see LICENSE.md for details.