@turf/isobands 6.4.0 → 7.0.0-alpha.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 +9 -8
- package/dist/es/index.js +145 -3711
- package/dist/es/lib/grid-to-matrix.js +101 -0
- package/dist/es/lib/marchingsquares-isobands.js +3453 -0
- package/dist/js/index.d.ts +20 -0
- package/dist/js/index.js +149 -3716
- package/dist/js/lib/grid-to-matrix.d.ts +37 -0
- package/dist/js/lib/grid-to-matrix.js +104 -0
- package/dist/js/lib/marchingsquares-isobands.d.ts +1 -0
- package/dist/js/lib/marchingsquares-isobands.js +3456 -0
- package/package.json +26 -21
- package/index.d.ts +0 -19
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FeatureCollection, Point, GeoJsonProperties, MultiPolygon } from "geojson";
|
|
2
|
+
/**
|
|
3
|
+
* Takes a square or rectangular grid {@link FeatureCollection} of {@link Point} features with z-values and an array of
|
|
4
|
+
* value breaks and generates filled contour isobands.
|
|
5
|
+
*
|
|
6
|
+
* @name isobands
|
|
7
|
+
* @param {FeatureCollection<Point>} pointGrid input points - must be square or rectangular
|
|
8
|
+
* @param {Array<number>} breaks where to draw contours
|
|
9
|
+
* @param {Object} [options={}] options on output
|
|
10
|
+
* @param {string} [options.zProperty='elevation'] the property name in `points` from which z-values will be pulled
|
|
11
|
+
* @param {Object} [options.commonProperties={}] GeoJSON properties passed to ALL isobands
|
|
12
|
+
* @param {Array<Object>} [options.breaksProperties=[]] GeoJSON properties passed, in order, to the correspondent isoband (order defined by breaks)
|
|
13
|
+
* @returns {FeatureCollection<MultiPolygon>} a FeatureCollection of {@link MultiPolygon} features representing isobands
|
|
14
|
+
*/
|
|
15
|
+
declare function isobands(pointGrid: FeatureCollection<Point>, breaks: number[], options?: {
|
|
16
|
+
zProperty?: string;
|
|
17
|
+
commonProperties?: GeoJsonProperties;
|
|
18
|
+
breaksProperties?: GeoJsonProperties[];
|
|
19
|
+
}): FeatureCollection<MultiPolygon>;
|
|
20
|
+
export default isobands;
|