morgan herlocker

about twitter github posts

turf vs JSTS

Whenever I get into a discussion about turf, one question always comes up:

"What about JSTS?"

JSTS [JavaScript Topology Suite] is an awesome project. turf may even depend on some of its code in the future. At the same time, it is far more complicated than turf, and the learning curve is much steeper than with turf. Here are the main things I would point to that distinguish turf from JSTS:

In summary, JSTS and turf have different goals. In some cases, it is an either/or, but in many cases they are complimentary libraries. Turf is first and foremost a spatial analysis utility belt focusing on the data contained in the attributes of geometries. JSTS is focused on geometric processing and topological manipulation.


11-27-13