A modular geospatial engine written in JavaScript
##Installation
In Node.js:
npm install turf
In browser:
Download the minified file, and include it in a script tag. This will expose a global variable named "turf".
<script src="turf.min.js" charset="utf-8"></script>
Browserify:
All of Turf's functions can also be installed as seperate modules. This works well with tools like browserify where you only want to install only the code you need. It also allows you to mix and match modules as needed. This is the recommended usage pattern for most production environments. For example, to install the point and buffer modules use:
npm install turf-point
npm install turf-buffer
##Features
####geometry
point
linestring
polygon
featurecollection
####joins
inside
within
tag
####data
remove
filter
sample
####measurement
distance
nearest
bboxPolygon
envelope
extent
square
size
center
centroid
point-on-surface
midpoint
bearing
destination
####interpolation
tin
grid
hex
planepoint
isolines
isobands
####classification
quantile
jenks
reclass
####aggregation
average
median
sum
min
max
count
deviation
variance
aggregate
####transformation
buffer
bezier
simplify
union
merge
intersect
erase
donuts
convex
concave
####misc
flip
explode
combine
isClockwise
kinks