turf v4.6.0 Release Notes
-
๐ New Modules
- ๐ฆ
@turf/clean-coords
Removes redundant coordinates from any GeoJSON Geometry. (PR https://github.com/Turfjs/turf/pull/875 - Author @stebogit) @turf/interpolate
Takes a set of points and estimates their 'property' values on a grid using the Inverse Distance Weighting (IDW) method.. (PR https://github.com/Turfjs/turf/pull/832 - Author @stebogit)- ๐ฆ
@turf/clusters-dbscan
Takes a set of Points and partition them into clusters according to DBSCAN's data clustering algorithm. (PR https://github.com/Turfjs/turf/pull/812 and https://github.com/Turfjs/turf/pull/851 - Author @DenisCarriere) > special mention to this incredibly instructive and fun interactive map by @DenisCarriere ๐๐ - ๐ฆ
@turf/clusters
ProvidesgetCluster
,clusterEach
, andclusterReduce
functions. (PR https://github.com/Turfjs/turf/pull/847 - Author @DenisCarriere) - ๐ฆ
@turf/boolean-point-on-line
Returns true if a point is on a line. Accepts a optional parameter to ignore the start and end vertices of the linestring. (PR https://github.com/Turfjs/turf/pull/858 - Author @rowanwins) - ๐ฆ
@turf/boolean-overlap
Takes two features and returns true or false whether or not they overlap, i.e. whether any pair of edges on the two polygons intersect. If there are any edge intersections, the polygons overlap. (PR https://github.com/Turfjs/turf/pull/856 and https://github.com/Turfjs/turf/pull/868 - Author @stebogit @tcql) - ๐ฆ
@turf/boolean-equal
Determine whether two geometries of the same type have identical X,Y coordinate values. (PR https://github.com/Turfjs/turf/pull/869 - Author @stebogit @tcql)
๐ New Features/Enhancements
- ๐ฆ Sets
centered
param default totrue
in@turf/point-grid
(PR https://github.com/Turfjs/turf/pull/836 - Contributor @stebogit) - โ Adds
MultiLineString
support for@turf/point-on-line
(PR https://github.com/Turfjs/turf/pull/838 - Contributor @stebogit) - ๐ Renames
@turf/clusters
=>@turf/clusters-kmeans
, plus adds deprecated warning message to@turf/[email protected]
๐ (See Issue https://github.com/Turfjs/turf/issues/845) - ๐ Changes output type of
@turf/clusters-kmeans
๐ (See Issue https://github.com/Turfjs/turf/issues/850 - Contributor @DenisCarriere) - โ Adds
segmentEach
andsegmentReduce
functions to@turf/meta
๐ (See Issue https://github.com/Turfjs/turf/issues/850 - Contributor @DenisCarriere) - โ Adds tests and linting on JSDoc in TurfJS core from
turf-www
; see Issue https://github.com/Turfjs/turf/issues/859 (PR https://github.com/Turfjs/turf/issues/857 + https://github.com/Turfjs/turf/issues/864 + https://github.com/Turfjs/turf/issues/870 - Contributor @DenisCarriere @stebogit) - ๐ Introduces
null
Geometry support across TurfJS modules (See Issue https://github.com/Turfjs/turf/issues/853) (PR https://github.com/Turfjs/turf/issues/866 - Contributor @DenisCarriere) - Includes feature(Sub)Index in
coordEach
/coordReduce
(@turf/meta) ๐ (PR https://github.com/Turfjs/turf/issues/872 - Contributor @DenisCarriere) - โ Adds
bbox
andid
params plusgeometry
method to@turf/helpers
(PR https://github.com/Turfjs/turf/issues/877 - Contributor @DenisCarriere)
๐ ๐ Bug Fixes
- ๐ฆ Applies
@turf/truncate
to@turf/line-split
๐splitter
input to avoid approximation errors. Fixed #852 (PR https://github.com/Turfjs/turf/pull/855) - ๐ Fixes
@turf-mask
error (See Issue https://github.com/Turfjs/turf/issues/837) (PR https://github.com/Turfjs/turf/pull/865 - Contributor @thiagoxvo) - ๐ Fixes
create-new-module
script error onLICENSE
file creation (See Issue https://github.com/Turfjs/turf/issues/861) (commit df6986e) - ๐ Fixes
@turf/isobands
error oncommonProperties
(See Issue https://github.com/Turfjs/turf/issues/831) (commit 1663f07)
- ๐ฆ