Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
/ vorgewende Public archive

Deprecated: This module is now available in the fruchtfolge repo

License

Notifications You must be signed in to change notification settings

chrispahm/vorgewende

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DEPRECATED - replaced with headlands

vorgewende

experimental

Modul zur automatischen Berechnung von Vorgewenden aus GeoJSON Teilflaechen / Module for automatic headland calculation from GeoJSON plots. Works in NodeJS and in the browser.

Install

The script is still in beta phase, to install simply clone this repo. In future: Use npm to install.

npm install vorgewende --save

Usage

The script (will) contain the following API methods:

lineString(polygon, (angle), (minDistance))

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.

Example

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

Returns

An array of GeoJSON lineString features representing each headland.

polygons(polygon, headlandWidth, (angle), (minDistance))

where

headlandWidth Width of each headland in meters, typically equal to (half) the working width of the sprayer used.

else see lineString parameter description.

Returns

An array of GeoJSON polygon features representing each headland.

License

MIT, see LICENSE.md for details.

About

Deprecated: This module is now available in the fruchtfolge repo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published