w-gis 1.0.78 → 1.0.79

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.
Files changed (73) hide show
  1. package/README.md +1 -1
  2. package/docs/-_class.mjs.html +1 -1
  3. package/docs/aggregatePoints.mjs.html +1 -1
  4. package/docs/bufferMultiPolygon.mjs.html +1 -1
  5. package/docs/buildFindPointInGeojson.mjs.html +1 -1
  6. package/docs/buildFindPointInKpBoxPolygons.mjs.html +1 -1
  7. package/docs/buildFindPointInKpPolygons.mjs.html +1 -1
  8. package/docs/buildFindPointInTiff.mjs.html +1 -1
  9. package/docs/calcContours.mjs.html +1 -1
  10. package/docs/calcDelaunay.mjs.html +1 -1
  11. package/docs/calcVoronoi.mjs.html +1 -1
  12. package/docs/clipMultiPolygon.mjs.html +1 -1
  13. package/docs/clipPolygon.mjs.html +1 -1
  14. package/docs/convertCoordinate.mjs.html +1 -1
  15. package/docs/distilMultiPolygon.mjs.html +1 -1
  16. package/docs/findPointInKpBoxPolygons.mjs.html +1 -1
  17. package/docs/findPointInKpFeature.mjs.html +1 -1
  18. package/docs/findPointInKpPolygons.mjs.html +1 -1
  19. package/docs/fixCloseMultiPolygon.mjs.html +1 -1
  20. package/docs/fixClosePolygon.mjs.html +1 -1
  21. package/docs/fixGeometryMultiPolygon.mjs.html +1 -1
  22. package/docs/flattenMultiPolygon.mjs.html +34 -9
  23. package/docs/getAreaMultiPolygon.mjs.html +1 -1
  24. package/docs/getAreaMultiPolygonSm.mjs.html +1 -1
  25. package/docs/getAreaPolygon.mjs.html +1 -1
  26. package/docs/getAreaRingString.mjs.html +1 -1
  27. package/docs/getBox.mjs.html +1 -1
  28. package/docs/getBoxFromGeojson.mjs.html +1 -1
  29. package/docs/getBoxPolygon.mjs.html +1 -1
  30. package/docs/getCenterOfMassMultiPolygon.mjs.html +1 -1
  31. package/docs/getCentroidMultiPolygon.mjs.html +1 -1
  32. package/docs/getKpFeatureFromGeojson.mjs.html +1 -1
  33. package/docs/getPointDepth.mjs.html +1 -1
  34. package/docs/importTurf.mjs.html +1 -1
  35. package/docs/index.html +1 -1
  36. package/docs/interp1.mjs.html +1 -1
  37. package/docs/interp2.mjs.html +1 -1
  38. package/docs/interp2Grid.mjs.html +1 -1
  39. package/docs/interp2Kriging.mjs.html +1 -1
  40. package/docs/interp2NaturalNeighbor.mjs.html +1 -1
  41. package/docs/interp2Normalize.mjs.html +1 -1
  42. package/docs/interp2Raster.mjs.html +1 -1
  43. package/docs/interp3.mjs.html +1 -1
  44. package/docs/intersectMultiPolygon.mjs.html +1 -1
  45. package/docs/intersectPolygon.mjs.html +1 -1
  46. package/docs/invCoordMultiPolygon.mjs.html +1 -1
  47. package/docs/invCoordMultiPolygonOrMultiPolyline.mjs.html +1 -1
  48. package/docs/invCoordMultiPolyline.mjs.html +1 -1
  49. package/docs/invCoordPolygon.mjs.html +1 -1
  50. package/docs/invCoordPolygonOrPolyline.mjs.html +1 -1
  51. package/docs/invCoordPolyline.mjs.html +1 -1
  52. package/docs/isPointInPolygons.mjs.html +1 -1
  53. package/docs/normalizeArray.mjs.html +1 -1
  54. package/docs/ptXYtoObj.mjs.html +1 -1
  55. package/docs/ptsXYZVtoArr.mjs.html +1 -1
  56. package/docs/ptsXYZtoArr.mjs.html +1 -1
  57. package/docs/ptsXYtoArr.mjs.html +1 -1
  58. package/docs/ptsXtoArr.mjs.html +1 -1
  59. package/docs/simplifyMultiPolygon.mjs.html +1 -1
  60. package/docs/splineMultiPolygon.mjs.html +1 -1
  61. package/docs/toMultiPoint.mjs.html +1 -1
  62. package/docs/toMultiPolygon.mjs.html +1 -1
  63. package/docs/toPolygon.mjs.html +1 -1
  64. package/docs/unionMultiPolygon.mjs.html +1 -1
  65. package/docs/unionPolygon.mjs.html +1 -1
  66. package/docs/w-gis.html +3 -3
  67. package/g_flattenMultiPolygon.mjs +8 -0
  68. package/package.json +1 -1
  69. package/src/flattenMultiPolygon.mjs +33 -8
  70. package/test/flattenMultiPolygon.test.mjs +16 -0
  71. package/docs/examples/ex-convertCoordinate.html +0 -168
  72. package/docs/examples/ex-getCenterOfMassMultiPolygon.html +0 -54
  73. package/docs/examples/ex-getCentroidMultiPolygon.html +0 -54
package/README.md CHANGED
@@ -40,6 +40,6 @@ npm i w-gis
40
40
 
41
41
  Add script for w-gis.
42
42
  ```alias
43
- <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.78/dist/w-gis.umd.js"></script>
43
+ <script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.79/dist/w-gis.umd.js"></script>
44
44
 
45
45
  ```
@@ -62,7 +62,7 @@
62
62
  <br class="clear">
63
63
 
64
64
  <footer>
65
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
65
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
66
66
  </footer>
67
67
 
68
68
  <script>prettyPrint();</script>
@@ -288,7 +288,7 @@ export default aggregatePoints
288
288
  <br class="clear">
289
289
 
290
290
  <footer>
291
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
291
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
292
292
  </footer>
293
293
 
294
294
  <script>prettyPrint();</script>
@@ -235,7 +235,7 @@ export default bufferMultiPolygon
235
235
  <br class="clear">
236
236
 
237
237
  <footer>
238
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
238
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
239
239
  </footer>
240
240
 
241
241
  <script>prettyPrint();</script>
@@ -188,7 +188,7 @@ export default Build
188
188
  <br class="clear">
189
189
 
190
190
  <footer>
191
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
191
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
192
192
  </footer>
193
193
 
194
194
  <script>prettyPrint();</script>
@@ -195,7 +195,7 @@ export default Build
195
195
  <br class="clear">
196
196
 
197
197
  <footer>
198
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
198
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
199
199
  </footer>
200
200
 
201
201
  <script>prettyPrint();</script>
@@ -154,7 +154,7 @@ export default Build
154
154
  <br class="clear">
155
155
 
156
156
  <footer>
157
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
157
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
158
158
  </footer>
159
159
 
160
160
  <script>prettyPrint();</script>
@@ -293,7 +293,7 @@ export default Build
293
293
  <br class="clear">
294
294
 
295
295
  <footer>
296
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
296
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
297
297
  </footer>
298
298
 
299
299
  <script>prettyPrint();</script>
@@ -1201,7 +1201,7 @@ export default calcContours
1201
1201
  <br class="clear">
1202
1202
 
1203
1203
  <footer>
1204
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1204
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1205
1205
  </footer>
1206
1206
 
1207
1207
  <script>prettyPrint();</script>
@@ -226,7 +226,7 @@ export default calcDelaunay
226
226
  <br class="clear">
227
227
 
228
228
  <footer>
229
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
229
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
230
230
  </footer>
231
231
 
232
232
  <script>prettyPrint();</script>
@@ -444,7 +444,7 @@ export default calcVoronoi
444
444
  <br class="clear">
445
445
 
446
446
  <footer>
447
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
447
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
448
448
  </footer>
449
449
 
450
450
  <script>prettyPrint();</script>
@@ -190,7 +190,7 @@ export default clipMultiPolygon
190
190
  <br class="clear">
191
191
 
192
192
  <footer>
193
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
193
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
194
194
  </footer>
195
195
 
196
196
  <script>prettyPrint();</script>
@@ -173,7 +173,7 @@ export default clipPolygon
173
173
  <br class="clear">
174
174
 
175
175
  <footer>
176
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
176
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
177
177
  </footer>
178
178
 
179
179
  <script>prettyPrint();</script>
@@ -336,7 +336,7 @@ export default convertCoordinate
336
336
  <br class="clear">
337
337
 
338
338
  <footer>
339
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
339
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
340
340
  </footer>
341
341
 
342
342
  <script>prettyPrint();</script>
@@ -182,7 +182,7 @@ export default distilMultiPolygon
182
182
  <br class="clear">
183
183
 
184
184
  <footer>
185
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
185
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
186
186
  </footer>
187
187
 
188
188
  <script>prettyPrint();</script>
@@ -235,7 +235,7 @@ export default findPointInKpBoxPolygons
235
235
  <br class="clear">
236
236
 
237
237
  <footer>
238
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
238
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
239
239
  </footer>
240
240
 
241
241
  <script>prettyPrint();</script>
@@ -248,7 +248,7 @@ export default findPointInKpFeature
248
248
  <br class="clear">
249
249
 
250
250
  <footer>
251
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
251
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
252
252
  </footer>
253
253
 
254
254
  <script>prettyPrint();</script>
@@ -216,7 +216,7 @@ export default findPointInKpPolygons
216
216
  <br class="clear">
217
217
 
218
218
  <footer>
219
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
219
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
220
220
  </footer>
221
221
 
222
222
  <script>prettyPrint();</script>
@@ -219,7 +219,7 @@ export default fixCloseMultiPolygon
219
219
  <br class="clear">
220
220
 
221
221
  <footer>
222
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
222
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
223
223
  </footer>
224
224
 
225
225
  <script>prettyPrint();</script>
@@ -104,7 +104,7 @@ export default fixClosePolygon
104
104
  <br class="clear">
105
105
 
106
106
  <footer>
107
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
107
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
108
108
  </footer>
109
109
 
110
110
  <script>prettyPrint();</script>
@@ -259,7 +259,7 @@ export default fixGeometryMultiPolygon
259
259
  <br class="clear">
260
260
 
261
261
  <footer>
262
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
262
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
263
263
  </footer>
264
264
 
265
265
  <script>prettyPrint();</script>
@@ -46,10 +46,10 @@
46
46
  <section>
47
47
  <article>
48
48
  <pre class="prettyprint source linenums"><code>import get from 'lodash-es/get.js'
49
- import map from 'lodash-es/map.js'
49
+ import each from 'lodash-es/each.js'
50
50
  import size from 'lodash-es/size.js'
51
51
  import isearr from 'wsemi/src/isearr.mjs'
52
- import fixClosePolygon from './fixClosePolygon.mjs'
52
+ import getPointDepth from './getPointDepth.mjs'
53
53
  import fixCloseMultiPolygon from './fixCloseMultiPolygon.mjs'
54
54
  import polybooljs from 'polybooljs'
55
55
  // import * as polyclip from 'polyclip-ts'
@@ -129,6 +129,14 @@ import polybooljs from 'polybooljs'
129
129
  * console.log(JSON.stringify(r))
130
130
  * // => [[[[0,4],[2,2],[0,0],[4,0],[4,4],[0,4]]]]
131
131
  *
132
+ * pgs = [[ //multiPolygon
133
+ * [[0, 0], [4, 0], [4, 4], [0, 4]],
134
+ * [[10, 0], [12, 2], [10, 4]],
135
+ * ]]
136
+ * r = flattenMultiPolygon(pgs, {})
137
+ * console.log(JSON.stringify(r))
138
+ * // => [[[[0,4],[0,0],[4,0],[4,4],[0,4]]],[[[10,4],[10,0],[12,2],[10,4]]]]
139
+ *
132
140
  */
133
141
  function flattenMultiPolygon(pgs, opt = {}) {
134
142
 
@@ -180,17 +188,34 @@ function flattenMultiPolygon(pgs, opt = {}) {
180
188
  let pgsNew = get(geojson, 'coordinates', [])
181
189
  // console.log('pgsNew', pgsNew)
182
190
 
183
- //fixClosePolygon
184
- pgsNew = fixClosePolygon(pgsNew, { supposeType })
185
- // console.log('fixClosePolygon pgs', JSON.stringify(pgs))
191
+ //d
192
+ let d = getPointDepth(pgsNew)
193
+ if (d === 2) {
194
+ //大半回傳polygon, 強制轉multiPolygon
195
+ pgsNew = [pgsNew]
196
+ }
197
+ else if (d === 3) {
198
+ //若回傳multiPolygon, 例如不相干的polygon做xor, 就直接回傳
199
+ }
200
+ else {
201
+ throw new Error(`invalid point depth[${d}]`)
202
+ }
203
+
204
+ //fixCloseMultiPolygon
205
+ pgs = fixCloseMultiPolygon(pgs, { supposeType })
206
+ // console.log('fixCloseMultiPolygon pgs', JSON.stringify(pgs))
186
207
 
187
208
  return pgsNew
188
209
  }
189
210
 
190
211
  //pgsNew
191
- let pgsNew = map(pgs, (v) => {
192
- let vv = xorPolygon(v)
193
- return vv
212
+ let pgsNew = []
213
+ each(pgs, (v) => {
214
+ let pgsTemp = xorPolygon(v)
215
+ pgsNew = [
216
+ ...pgsNew,
217
+ ...pgsTemp,
218
+ ]
194
219
  })
195
220
  // console.log('pgsNew', JSON.stringify(pgsNew))
196
221
 
@@ -213,7 +238,7 @@ export default flattenMultiPolygon
213
238
  <br class="clear">
214
239
 
215
240
  <footer>
216
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
241
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
217
242
  </footer>
218
243
 
219
244
  <script>prettyPrint();</script>
@@ -210,7 +210,7 @@ export default getAreaMultiPolygon
210
210
  <br class="clear">
211
211
 
212
212
  <footer>
213
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
213
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
214
214
  </footer>
215
215
 
216
216
  <script>prettyPrint();</script>
@@ -214,7 +214,7 @@ export default getAreaMultiPolygonSm
214
214
  <br class="clear">
215
215
 
216
216
  <footer>
217
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
217
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
218
218
  </footer>
219
219
 
220
220
  <script>prettyPrint();</script>
@@ -199,7 +199,7 @@ export default getAreaPolygon
199
199
  <br class="clear">
200
200
 
201
201
  <footer>
202
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
202
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
203
203
  </footer>
204
204
 
205
205
  <script>prettyPrint();</script>
@@ -170,7 +170,7 @@ export default getAreaRingString
170
170
  <br class="clear">
171
171
 
172
172
  <footer>
173
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
173
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
174
174
  </footer>
175
175
 
176
176
  <script>prettyPrint();</script>
@@ -213,7 +213,7 @@ export default getBox
213
213
  <br class="clear">
214
214
 
215
215
  <footer>
216
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
216
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
217
217
  </footer>
218
218
 
219
219
  <script>prettyPrint();</script>
@@ -260,7 +260,7 @@ export default getBoxFromGeojson
260
260
  <br class="clear">
261
261
 
262
262
  <footer>
263
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
263
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
264
264
  </footer>
265
265
 
266
266
  <script>prettyPrint();</script>
@@ -189,7 +189,7 @@ export default getBoxPolygon
189
189
  <br class="clear">
190
190
 
191
191
  <footer>
192
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
192
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
193
193
  </footer>
194
194
 
195
195
  <script>prettyPrint();</script>
@@ -214,7 +214,7 @@ export default getCenterOfMassMultiPolygon
214
214
  <br class="clear">
215
215
 
216
216
  <footer>
217
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
217
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
218
218
  </footer>
219
219
 
220
220
  <script>prettyPrint();</script>
@@ -216,7 +216,7 @@ export default getCentroidMultiPolygon
216
216
  <br class="clear">
217
217
 
218
218
  <footer>
219
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
219
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
220
220
  </footer>
221
221
 
222
222
  <script>prettyPrint();</script>
@@ -254,7 +254,7 @@ export default getKpFeatureFromGeojson
254
254
  <br class="clear">
255
255
 
256
256
  <footer>
257
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
257
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
258
258
  </footer>
259
259
 
260
260
  <script>prettyPrint();</script>
@@ -150,7 +150,7 @@ export default getPointDepth
150
150
  <br class="clear">
151
151
 
152
152
  <footer>
153
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
153
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
154
154
  </footer>
155
155
 
156
156
  <script>prettyPrint();</script>
@@ -109,7 +109,7 @@ export default turf
109
109
  <br class="clear">
110
110
 
111
111
  <footer>
112
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
112
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
113
113
  </footer>
114
114
 
115
115
  <script>prettyPrint();</script>
package/docs/index.html CHANGED
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
@@ -306,7 +306,7 @@ export default interp1
306
306
  <br class="clear">
307
307
 
308
308
  <footer>
309
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
309
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
310
310
  </footer>
311
311
 
312
312
  <script>prettyPrint();</script>
@@ -245,7 +245,7 @@ export default interp2
245
245
  <br class="clear">
246
246
 
247
247
  <footer>
248
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
248
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
249
249
  </footer>
250
250
 
251
251
  <script>prettyPrint();</script>
@@ -395,7 +395,7 @@ export default interp2Grid
395
395
  <br class="clear">
396
396
 
397
397
  <footer>
398
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
398
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
399
399
  </footer>
400
400
 
401
401
  <script>prettyPrint();</script>
@@ -500,7 +500,7 @@ export default interp2Kriging
500
500
  <br class="clear">
501
501
 
502
502
  <footer>
503
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
503
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
504
504
  </footer>
505
505
 
506
506
  <script>prettyPrint();</script>
@@ -673,7 +673,7 @@ export default interp2NaturalNeighbor
673
673
  <br class="clear">
674
674
 
675
675
  <footer>
676
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
676
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
677
677
  </footer>
678
678
 
679
679
  <script>prettyPrint();</script>
@@ -248,7 +248,7 @@ export default interp2Normalize
248
248
  <br class="clear">
249
249
 
250
250
  <footer>
251
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
251
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
252
252
  </footer>
253
253
 
254
254
  <script>prettyPrint();</script>
@@ -282,7 +282,7 @@ export default interp2Raster
282
282
  <br class="clear">
283
283
 
284
284
  <footer>
285
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
285
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
286
286
  </footer>
287
287
 
288
288
  <script>prettyPrint();</script>
@@ -315,7 +315,7 @@ export default interp3
315
315
  <br class="clear">
316
316
 
317
317
  <footer>
318
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
318
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
319
319
  </footer>
320
320
 
321
321
  <script>prettyPrint();</script>
@@ -204,7 +204,7 @@ export default intersectMultiPolygon
204
204
  <br class="clear">
205
205
 
206
206
  <footer>
207
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
207
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
208
208
  </footer>
209
209
 
210
210
  <script>prettyPrint();</script>
@@ -182,7 +182,7 @@ export default intersectPolygon
182
182
  <br class="clear">
183
183
 
184
184
  <footer>
185
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
185
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
186
186
  </footer>
187
187
 
188
188
  <script>prettyPrint();</script>
@@ -79,7 +79,7 @@ export default invCoordMultiPolygon
79
79
  <br class="clear">
80
80
 
81
81
  <footer>
82
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
82
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
83
83
  </footer>
84
84
 
85
85
  <script>prettyPrint();</script>
@@ -144,7 +144,7 @@ export default invCoordMultiPolygonOrMultiPolyline
144
144
  <br class="clear">
145
145
 
146
146
  <footer>
147
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
147
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
148
148
  </footer>
149
149
 
150
150
  <script>prettyPrint();</script>
@@ -79,7 +79,7 @@ export default invCoordMultiPolyline
79
79
  <br class="clear">
80
80
 
81
81
  <footer>
82
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
82
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
83
83
  </footer>
84
84
 
85
85
  <script>prettyPrint();</script>
@@ -79,7 +79,7 @@ export default invCoordPolygon
79
79
  <br class="clear">
80
80
 
81
81
  <footer>
82
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
82
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
83
83
  </footer>
84
84
 
85
85
  <script>prettyPrint();</script>
@@ -146,7 +146,7 @@ export default invCoordPolygonOrPolyline
146
146
  <br class="clear">
147
147
 
148
148
  <footer>
149
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 20:57:41 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
149
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 05 2026 21:33:39 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
150
150
  </footer>
151
151
 
152
152
  <script>prettyPrint();</script>