Turf – A modular GIS engine written in JavaScript
turfjs.org
turfjs.org
My only complaint would be that some of those modules do not really need to be "turf" specific. For example, "turf-is-clockwise" would be more Unixy if it was just "is-clockwise" or "is-polygon-clockwise". This would help improve discoverability and make them nicer to use alongside other generic npm modules, like:
simplify-path, delaunay-triangulate, triangulate-contours, chaikin-smooth, convex-hull
etc.
I also think the turf modules would appeal to other uses than just GIS. They are generic enough to be useful in games, interactive apps, etc. :)
Performance will vary widely depending on which functions you are calling and characteristics of the data. Some types of analysis will quickly process 500 MB, and others you will probably want to use some sort of indexing strategy.
For pure javascript indexers, check out rbush[2] (R-Tree indexes) and tile-cover[3] (map tile indexes), both of which are as fast or faster than the C++ indexers used in most mainstream spatial databases.
Expect these benchmarks to improve in the coming months as we push the limits with new, faster algorithms as well.
[1] https://gist.github.com/morganherlocker/a9041f2491c63b541cb2
"This request has been blacklisted for sending too much traffic to rawgit.com. Please contact the owner of the site that sent you here and ask them to use cdn.rawgit.com instead, which has no traffic limit."
I'm curious if this supports Leaflet too?
We currently support npm, bower, and a CDN build on Mapbox. Additional package managers can be added if there is a community need.
> I'm curious if this supports Leaflet too?
Turf is not tied to any visualization framework. GeoJSON in - GeoJSON out; display it where you want (or don't display it at all).
(jsts mentions coordinates systems in comments, but I don't where it ever does anything about them)