@turf/interpolate
Advanced tools
Changelog
4.5.0
@turf/clusters
Takes a set of points and partition them into clusters using the k-means clustering algorithm.
(PR https://github.com/Turfjs/turf/pull/787 - Author @stebogit )
@turf/boolean-disjoint
Boolean-disjoint returns (TRUE) if the intersection of the two geometries is an empty set.
(PR https://github.com/Turfjs/turf/pull/805 - Author @rowanwins)
@turf/boolean-contains
Boolean-contains returns True if the second geometry is completely contained by the first geometry. The interiors of both geometries must intersect and, the interior and boundary of the secondary (geometry b) must not intersect the exterior of the primary (geometry a). Boolean-contains returns the exact opposite result of the @turf/boolean-within
.
(PR https://github.com/Turfjs/turf/pull/797 - Author @rowanwins)
@turf/boolean-crosses
Boolean-Crosses returns True if the intersection results in a geometry whose dimension is one less than the maximum dimension of the two source geometries and the intersection set is interior to both source geometries.
Boolean-Crosses returns t (TRUE) for only multipoint/polygon, multipoint/linestring, linestring/linestring, linestring/polygon, and linestring/multipolygon comparisons.
(PR https://github.com/Turfjs/turf/pull/796 - Author @rowanwins)
@turf/boolean-clockwise
Takes a ring and return true or false whether or not the ring is clockwise or counter-clockwise.
(PR https://github.com/Turfjs/turf/pull/789 - Authors @morganherlocker @stebogit)
@turf/clone
Prevents GeoJSON coordinates from being mutated, similar to JSON.parse(JSON.stringify(geojson))
.
Only cloning the coordinates can be 3x-20x faster than the parse + stringify approach.
(PR https://github.com/Turfjs/turf/pull/824 - Author @DenisCarriere)
convertArea
Converts a area to the requested unit. (PR https://github.com/Turfjs/turf/pull/821 - Author @wnordmann)@turf/point-grid
(PR https://github.com/Turfjs/turf/pull/791)@turf/idw
bad property name #774 (PR https://github.com/Turfjs/turf/pull/800)