Changelog History
Page 2
-
v5.1.4
December 10, 2017 -
v5.1.3
December 08, 2017 -
v5.1.1
December 07, 2017 -
v5.1.0
December 07, 2017 -
v5.0.4
November 09, 2017 -
v5.0.0 Changes
โก๏ธ โญ๏ธ Major Updates
- ๐ TurfJS now supports ES Modules (Related PR's)
- Optional parameters are now defined as an
Object
.
๐ New Modules
[
@turf/voronoi
][voronoi]Takes a FeatureCollection of points, and a bounding box, and returns a FeatureCollection of Voronoi polygons. (PR https://github.com/Turfjs/turf/pull/1043 - Author @stevage)
โ [
@turf/shortest-path
][shortest-path]โ Returns the shortest path from start to end without colliding with any feature in obstacles (PR https://github.com/Turfjs/turf/pull/956 - Author @stebogit)
[
@turf/boolean-parallel
][boolean-parallel]Boolean-Parallel returns True if each segment of
line1
is parallel to the correspondent segment ofline2
(PR https://github.com/Turfjs/turf/pull/941 - Author @stebogit)[
@turf/nearest-point-on-line
][nearest-point-on-line]Takes a {@link Point} and a {@link LineString} and calculates the closest Point on the (Multi)LineString. (PR https://github.com/Turfjs/turf/pull/939 - Author @stebogit)
๐ New Features/Enhancements
โก๏ธ Updates [
@turf/unkink-polygon
][unkink-polygon] testing & addedflattenEach
instead of usingflatten
. (PR https://github.com/Turfjs/turf/pull/889)โ Add multi-geomtry support to [
@turf/line-split
](line-split) (PR https://github.com/Turfjs/turf/pull/1078)๐ Improve [
@turf/meta
](meta)lineEach
method to provide properties, id and bbox (PR https://github.com/Turfjs/turf/pull/1010)
๐ ๐ Bug Fixes
๐ Fixes [
@turf/helpers
](helpers) earth radius variable (PR https://github.com/Turfjs/turf/pull/1012)๐ Fixes [
@turf/polygon-tangents
](polygon-tangents) bug (PR https://github.com/Turfjs/turf/pull/1058)๐ Fixes [
@turf/line-chunk
](line-chunk) bug when the number of segments is integer (PR https://github.com/Turfjs/turf/pull/1046)๐ Fixes
segmentEach
andsegmentReduce
methods in [@turf/meta
](meta) to ensure something is returned (PR https://github.com/Turfjs/turf/pull/968)
โ ๏ธ Breaking Change
- Optional parameters are now defined as an
Object
:
Before
var from = [-75.343, 39.984]; var to = [-75.534, 39.123]; var units = 'miles'; var distance = turf.distance(from, to, units);
After
var from = [-75.343, 39.984]; var to = [-75.534, 39.123]; var options = {units: 'miles'}; var distance = turf.distance(from, to, options);
- Reworked
@turf/random
PR https://github.com/Turfjs/turf/issues/994 - ๐ Deprecate
@turf/idw
Issue https://github.com/Turfjs/turf/issues/887 - Reworked Grid modules
@turf/point-grid/hex/square/triangle
PR https://github.com/Turfjs/turf/pull/1029 - ๐ Renamed Modules/Methods
- [x]
@turf/inside
=>@turf/boolean-point-in-polygon
https://github.com/Turfjs/turf/issues/860#issuecomment-317216235 - [x]
@turf/within
=>@turf/points-within-polygon
https://github.com/Turfjs/turf/issues/860#issuecomment-317216235 - [x]
@turf/bezier
=>@turf/bezier-spline
Issue https://github.com/Turfjs/turf/issues/661 - [x]
@turf/nearest
=>@turf/nearest-point
https://github.com/Turfjs/turf/pull/858#issuecomment-317197295 - [x]
@turf/point-on-line
=>@turf/nearest-point-on-line
https://github.com/Turfjs/turf/pull/858#issuecomment-317197295 - [x]
@turf/lineDistance
=>@turf/length
https://github.com/Turfjs/turf/issues/860#issuecomment-317229869 - [x]
@turf/helpers
- [x]
radians2degrees
=>radiansToDegrees
- [x]
degrees2radians
=>degreesToRadians
- [x]
distanceToDegrees
=>lengthToDegrees
- [x]
distanceToRadians
=>lengthToRadians
- [x]
radiansToDistance
=>radiansToLength
- [x]
bearingToAngle
=>bearingToAzimuth
- [x]
convertDistance
=>convertLength
- [x]
-
v4.7.3
September 12, 2017 -
v4.7.2
September 07, 2017 -
v4.7.0 Changes
๐ New Modules
[
@turf/projection
][projection]- toMercator: Converts a WGS84 GeoJSON object into Mercator (EPSG:900913) projection
- toWgs84: Converts a Mercator (EPSG:900913) GeoJSON object into WGS84 projection
(PR https://github.com/Turfjs/turf/pull/927 - Author @stebogit)
[
@turf/point-to-line-distance
][point-to-line-distance]Returns the minimum distance between a {@link Point} and a {@link LineString}, being the distance from a line the minimum distance between the point and any segment of the
LineString
.(PR https://github.com/Turfjs/turf/pull/925 - Author @stebogit)
[
@turf/boolean-within
][boolean-within]Boolean-within returns true if the first geometry is completely within the second geometry. The interiors of both geometries must intersect and, the interior and boundary of the primary (geometry a) must not intersect the exterior of the secondary (geometry b). Boolean-within returns the exact opposite result of the [
@turf/boolean-contains
][boolean-contains].(PR https://github.com/Turfjs/turf/pull/924 - Author @rowanwins)
๐ New Features/Enhancements
- โก๏ธ Updates [
@turf/unkink-polygon
][unkink-polygon] testing & addedflattenEach
instead of usingflatten
. (PR https://github.com/Turfjs/turf/pull/889) - ๐จ [
@turf/concave
][concave] refactoring, replacing [@turf/union
][union] withgeojson-dissolve
to increase speed and added support tonull
geometries (PR https://github.com/Turfjs/turf/pull/907 - Contributor @stebogit @DenisCarriere) - โ Adds doc note on [
@turf/polygonize
][polygonize] about "Edges must be correctly noded" (PR https://github.com/Turfjs/turf/pull/898 - Contributor @stebogit @NickCis) - โ Adds support to foreign Members to [
@turf/clone
][clone] (PR https://github.com/Turfjs/turf/pull/904 - Contributor @DenisCarriere) - ๐ Extends support of any
GeoJSON
to [@turf/simplify
][simplify] (PR https://github.com/Turfjs/turf/pull/903 - Contributor @DenisCarriere @stebogit) - โ Adds new
isNumber
function and improves type checking for few [@turf/helpers
][helpers] methods (PR https://github.com/Turfjs/turf/pull/920 - Contributor @DenisCarriere @stebogit) - โ Adds throw errors to invalid
MultiPolygons
for [@turf/simplify
][simplify] (PR https://github.com/Turfjs/turf/pull/922 - Contributor @DenisCarriere)
๐ ๐ Bug Fixes
- ๐ Fixes [
@turf/bbox-clip
](bbox-clip) point intersection handling, adding sanity-checks the lineclip output (PR https://github.com/Turfjs/turf/pull/886) - ๐ Fixes [
@turf/line-split
][line-split] endpoint case handling applying [@turf/truncate
][truncate] onsplitter
(PR https://github.com/Turfjs/turf/pull/892 and https://github.com/Turfjs/turf/pull/855 - Contributor @stebogit) - ๐ Fixes [
@turf/intersect
][intersect] throwing "uncaught exception", adding [@turf/truncate
][truncate] to inputs and returningFeature<null>
if no geometry (PR https://github.com/Turfjs/turf/pull/890 - Contributor @stebogit @vicvolk) - ๐ Fixes [
@turf/hex-grid
][hex-grid] not properly cloning the last ring vertex (PR https://github.com/Turfjs/turf/pull/897 - Contributor @stebogit @DenisCarriere) - ๐ Fixes [
@turf/boolean-disjoint
][boolean-disjoint] incorrect behaviour where a poly was completely contained within another poly (PR https://github.com/Turfjs/turf/pull/908 - Contributor @rowanwins) - ๐ Fixes [
@turf/simplify
][simplify] process pending on particular geometries, applying [@turf/clean-coords
][clean-coords] to input. (PR https://github.com/Turfjs/turf/pull/903 - Contributor @stebogit @DenisCarriere) - ๐ Fixes
boolean
properties not being translated with [@turf/clone
][clone] (PR https://github.com/Turfjs/turf/pull/909 - Contributor @DenisCarriere) - ๐ Fixes [
@turf/boolean-contains
][boolean-contains] incorrect output when checking two polygons (PR https://github.com/Turfjs/turf/pull/923 - Contributor @rowanwins @DenisCarriere)
-
v4.6.1
August 02, 2017