@turf/collect
Advanced tools
Comparing version 6.5.0 to 7.0.0-alpha.0
@@ -35,3 +35,3 @@ import turfbbox from "@turf/bbox"; | ||
function collect(polygons, points, inProperty, outProperty) { | ||
var rtree = rbush(6); | ||
var rtree = new rbush(6); | ||
var treeItems = points.features.map(function (item) { | ||
@@ -38,0 +38,0 @@ var _a; |
@@ -1,2 +0,2 @@ | ||
import { FeatureCollection, Polygon, Point } from "@turf/helpers"; | ||
import { FeatureCollection, Polygon, Point } from "geojson"; | ||
/** | ||
@@ -3,0 +3,0 @@ * Merges a specified property from a FeatureCollection of points into a |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var bbox_1 = __importDefault(require("@turf/bbox")); | ||
var boolean_point_in_polygon_1 = __importDefault(require("@turf/boolean-point-in-polygon")); | ||
var rbush_1 = __importDefault(require("rbush")); | ||
const tslib_1 = require("tslib"); | ||
const bbox_1 = tslib_1.__importDefault(require("@turf/bbox")); | ||
const boolean_point_in_polygon_1 = tslib_1.__importDefault(require("@turf/boolean-point-in-polygon")); | ||
const rbush_1 = tslib_1.__importDefault(require("rbush")); | ||
/** | ||
@@ -40,3 +38,3 @@ * Merges a specified property from a FeatureCollection of points into a | ||
function collect(polygons, points, inProperty, outProperty) { | ||
var rtree = rbush_1.default(6); | ||
var rtree = new rbush_1.default(6); | ||
var treeItems = points.features.map(function (item) { | ||
@@ -43,0 +41,0 @@ var _a; |
{ | ||
"name": "@turf/collect", | ||
"version": "6.5.0", | ||
"version": "7.0.0-alpha.0", | ||
"description": "turf collect module", | ||
@@ -54,3 +54,3 @@ "author": "Turf Authors", | ||
"devDependencies": { | ||
"@types/rbush": "^2.0.3", | ||
"@types/rbush": "^3.0.0", | ||
"@types/tape": "*", | ||
@@ -65,8 +65,9 @@ "benchmark": "*", | ||
"dependencies": { | ||
"@turf/bbox": "^6.5.0", | ||
"@turf/boolean-point-in-polygon": "^6.5.0", | ||
"@turf/helpers": "^6.5.0", | ||
"rbush": "2.x" | ||
"@turf/bbox": "^7.0.0-alpha.0", | ||
"@turf/boolean-point-in-polygon": "^7.0.0-alpha.0", | ||
"@turf/helpers": "^7.0.0-alpha.0", | ||
"rbush": "^3.0.1", | ||
"tslib": "^2.3.0" | ||
}, | ||
"gitHead": "5375941072b90d489389db22b43bfe809d5e451e" | ||
"gitHead": "0edc4c491b999e5ace770a61e1cf549f7c004189" | ||
} |
@@ -13,10 +13,10 @@ # @turf/collect | ||
**Parameters** | ||
### Parameters | ||
- `polygons` **[FeatureCollection][1]<[Polygon][2]>** polygons with values on which to aggregate | ||
- `points` **[FeatureCollection][1]<[Point][3]>** points to be aggregated | ||
- `inProperty` **[string][4]** property to be nested from | ||
- `outProperty` **[string][4]** property to be nested into | ||
* `polygons` **[FeatureCollection][1]<[Polygon][2]>** polygons with values on which to aggregate | ||
* `points` **[FeatureCollection][1]<[Point][3]>** points to be aggregated | ||
* `inProperty` **[string][4]** property to be nested from | ||
* `outProperty` **[string][4]** property to be nested into | ||
**Examples** | ||
### Examples | ||
@@ -41,3 +41,3 @@ ```javascript | ||
Returns **[FeatureCollection][1]<[Polygon][2]>** polygons with properties listed based on `outField` | ||
Returns **[FeatureCollection][1]<[Polygon][2]>** polygons with properties listed based on `outField` | ||
@@ -44,0 +44,0 @@ [1]: https://tools.ietf.org/html/rfc7946#section-3.3 |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
12862
5
172
1
+ Addedtslib@^2.3.0
+ Added@turf/bbox@7.2.0(transitive)
+ Added@turf/boolean-point-in-polygon@7.2.0(transitive)
+ Added@turf/helpers@7.2.0(transitive)
+ Added@turf/invariant@7.2.0(transitive)
+ Added@turf/meta@7.2.0(transitive)
+ Added@types/geojson@7946.0.16(transitive)
+ Addedpoint-in-polygon-hao@1.2.4(transitive)
+ Addedquickselect@2.0.0(transitive)
+ Addedrbush@3.0.1(transitive)
+ Addedrobust-predicates@3.0.2(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@turf/bbox@6.5.0(transitive)
- Removed@turf/boolean-point-in-polygon@6.5.0(transitive)
- Removed@turf/helpers@6.5.0(transitive)
- Removed@turf/invariant@6.5.0(transitive)
- Removed@turf/meta@6.5.0(transitive)
- Removedquickselect@1.1.1(transitive)
- Removedrbush@2.0.2(transitive)
Updated@turf/bbox@^7.0.0-alpha.0
Updated@turf/helpers@^7.0.0-alpha.0
Updatedrbush@^3.0.1