turf.js difference计算面差
Finds the difference between two polygons by clipping the second polygon from the first.
如图示计算的是属于面1不属于面2的部分;千万不要理解错了。
Arguments参数
Argument | Type | Description |
---|---|---|
polygon1 | Feature <(Polygon、MultiPolygon)> | input Polygon feature |
polygon2 | Feature <(Polygon、MultiPolygon)> | Polygon feature to difference from polygon1 |
翻译如下
参数 | 类型 | 描述 |
---|---|---|
面1 | 特征对象 <(面、多面)> | 输入面 |
面2 | 特征对象 <(面、多面)> | 相对于面1用于做差的面2 |