node-red-contrib-turf 1.0.0

Node Red integration for TurfJS

npm install node-red-contrib-turf

A node which exposes all the awesome features of the Turf Library for spatial analysis.

About Turf:

Turf includes traditional spatial operations, helper functions for creating GeoJSON data, and data classification and statistics tools. Turf uses GeoJSON for all geographic data. Turf expects the data to be standard WGS84 longitude, latitude coordinates. Check out geojson.io for a tool to easily create this data. Most Turf functions work with GeoJSON features. These are are pieces of data that represent a collection of properties (ie: population, elevation, zipcode, etc.) along with a geometry. GeoJSON has several geometry types such as:

  • Point
  • LineString
  • Polygon

How to use the node:

The input message must contain a msg.topic which sets the turf function (Turf Functions). The msg.payload must be an array of input parameters.

Example: Input-msg for generating 100 random points within a given bounding box (example from the docs):

msg.topic = "randomPoint";
msg.payload = [100, {bbox: [-5, 55, -3, 49]}];

Node Info

Version: 1.0.0
Updated 2 years, 9 months ago
License: MIT
Rating: 4.0 4

Actions

Rate:

Downloads

2 in the last week

Nodes

  • turf

Keywords

  • node-red
  • turf

Maintainers