@turf/sample 7.1.0-alpha.7 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -6
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -8,8 +8,8 @@ Takes a [FeatureCollection][1] and returns a FeatureCollection with given number
|
|
|
8
8
|
|
|
9
9
|
### Parameters
|
|
10
10
|
|
|
11
|
-
* `featurecollection` **[FeatureCollection][
|
|
12
|
-
* `num` **[number][
|
|
11
|
+
* `featurecollection` **[FeatureCollection][1]** set of input features
|
|
12
|
+
* `num` **[number][3]** number of features to select
|
|
13
13
|
|
|
14
14
|
### Examples
|
|
15
15
|
|
|
@@ -26,15 +26,13 @@ turf.featureEach(sample, function (currentFeature) {
|
|
|
26
26
|
});
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
Returns **[FeatureCollection][
|
|
29
|
+
Returns **[FeatureCollection][1]** a FeatureCollection with `n` features
|
|
30
30
|
|
|
31
31
|
[1]: https://tools.ietf.org/html/rfc7946#section-3.3
|
|
32
32
|
|
|
33
33
|
[2]: https://tools.ietf.org/html/rfc7946#section-3.2
|
|
34
34
|
|
|
35
|
-
[3]: https://
|
|
36
|
-
|
|
37
|
-
[4]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
|
|
35
|
+
[3]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number
|
|
38
36
|
|
|
39
37
|
<!-- This file is automatically generated. Please don't edit it directly. If you find an error, edit the source file of the module in question (likely index.js or index.ts), and re-run "yarn docs" from the root of the turf project. -->
|
|
40
38
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turf/sample",
|
|
3
|
-
"version": "7.1.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "turf sample module",
|
|
5
5
|
"author": "Turf Authors",
|
|
6
6
|
"license": "MIT",
|
|
@@ -61,8 +61,9 @@
|
|
|
61
61
|
"typescript": "^5.2.2"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@turf/helpers": "^7.1.0
|
|
64
|
+
"@turf/helpers": "^7.1.0",
|
|
65
|
+
"@types/geojson": "^7946.0.10",
|
|
65
66
|
"tslib": "^2.6.2"
|
|
66
67
|
},
|
|
67
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "68915eeebc9278bb40dec3f1034499698a0561ef"
|
|
68
69
|
}
|