turf v4.7.0 Release Notes

  • ๐Ÿš€ 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

    ๐Ÿ›  ๐Ÿ› Bug Fixes