"One of the great things about Turf.js is that you can create a collection of features and then
spatially analyze, modify (geoprocess), and simplify them, before using Leaflet to present the data." (Pepple, 2015)
Technology at a Glance
-
Turf is a JavaScript library for spatial analysis. It is mothing short than GIS for web maps. It helps you analyze, aggregate, and transform data in order to visualize it in new ways and answer advanced questions about it.
-
Any ArcToolbox tool you can name is very likely represented in the well-documented Turf API, which covers the majority of what GIS practitioners use in their daily work.
- Join methods use turf.within() to select points of interest located within a geographic area;
- Measurement methods use turf.distance() to calculate a great circle distance on the Earth;
- Classification methods use turf.jenks() to classify data according to the jenks algorithm.
-
Almost every function in Turf.js takes GeoJSON data as its input, and it performs all of its
geospatial analysis on the client-side, so there's no need for a server to perform fully-functioning Web GIS.
First-Look Prototypes