w-gis 1.0.21 → 1.0.22
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 +1 -1
- package/dist/w-gis.umd.js +2 -2
- package/dist/w-gis.umd.js.map +1 -1
- package/docs/-_class.mjs.html +1 -1
- package/docs/convertCoordinate.mjs.html +1 -1
- package/docs/examples/ex-getCenterOfMassMultiPolygon.html +1 -1
- package/docs/examples/ex-getCentroidMultiPolygon.html +1 -1
- package/docs/fixCloseMultiPolygon.mjs.html +1 -1
- package/docs/getAreaMultiPolygon.mjs.html +1 -1
- package/docs/getAreaMultiPolygonSm.mjs.html +1 -1
- package/docs/getAreaPolygon.mjs.html +1 -1
- package/docs/getAreaRingString.mjs.html +1 -1
- package/docs/getCenterOfMassMultiPolygon.mjs.html +1 -1
- package/docs/getCentroidMultiPolygon.mjs.html +1 -1
- package/docs/importTurf.mjs.html +1 -1
- package/docs/index.html +1 -1
- package/docs/interp2.mjs.html +1 -1
- package/docs/interp2Kriging.mjs.html +1 -1
- package/docs/interp2NaturalNeighbor.mjs.html +11 -3
- package/docs/normalizeArray.mjs.html +1 -1
- package/docs/ptsXYZtoArr.mjs.html +1 -1
- package/docs/ptsXYtoArr.mjs.html +1 -1
- package/docs/toMultiPolygon.mjs.html +1 -1
- package/docs/toPolygon.mjs.html +1 -1
- package/docs/w-gis.html +1 -1
- package/package.json +1 -1
- package/src/interp2NaturalNeighbor.mjs +10 -2
package/docs/-_class.mjs.html
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<br class="clear">
|
|
60
60
|
|
|
61
61
|
<footer>
|
|
62
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
62
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
63
63
|
</footer>
|
|
64
64
|
|
|
65
65
|
<script>prettyPrint();</script>
|
|
@@ -213,7 +213,7 @@ export default convertCoordinate
|
|
|
213
213
|
<br class="clear">
|
|
214
214
|
|
|
215
215
|
<footer>
|
|
216
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
216
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
217
217
|
</footer>
|
|
218
218
|
|
|
219
219
|
<script>prettyPrint();</script>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.22/dist/w-gis.umd.js"></script>
|
|
14
14
|
|
|
15
15
|
</head>
|
|
16
16
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/wsemi/dist/wsemi.umd.js"></script>
|
|
12
12
|
|
|
13
|
-
<script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.
|
|
13
|
+
<script src="https://cdn.jsdelivr.net/npm/w-gis@1.0.22/dist/w-gis.umd.js"></script>
|
|
14
14
|
|
|
15
15
|
</head>
|
|
16
16
|
|
|
@@ -209,7 +209,7 @@ export default fixCloseMultiPolygon
|
|
|
209
209
|
<br class="clear">
|
|
210
210
|
|
|
211
211
|
<footer>
|
|
212
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
212
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
213
213
|
</footer>
|
|
214
214
|
|
|
215
215
|
<script>prettyPrint();</script>
|
|
@@ -200,7 +200,7 @@ export default getAreaMultiPolygon
|
|
|
200
200
|
<br class="clear">
|
|
201
201
|
|
|
202
202
|
<footer>
|
|
203
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
203
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
204
204
|
</footer>
|
|
205
205
|
|
|
206
206
|
<script>prettyPrint();</script>
|
|
@@ -202,7 +202,7 @@ export default getAreaMultiPolygonSm
|
|
|
202
202
|
<br class="clear">
|
|
203
203
|
|
|
204
204
|
<footer>
|
|
205
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
205
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
206
206
|
</footer>
|
|
207
207
|
|
|
208
208
|
<script>prettyPrint();</script>
|
|
@@ -203,7 +203,7 @@ export default getAreaPolygon
|
|
|
203
203
|
<br class="clear">
|
|
204
204
|
|
|
205
205
|
<footer>
|
|
206
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
206
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
207
207
|
</footer>
|
|
208
208
|
|
|
209
209
|
<script>prettyPrint();</script>
|
|
@@ -167,7 +167,7 @@ export default getAreaRingString
|
|
|
167
167
|
<br class="clear">
|
|
168
168
|
|
|
169
169
|
<footer>
|
|
170
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
170
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
171
171
|
</footer>
|
|
172
172
|
|
|
173
173
|
<script>prettyPrint();</script>
|
|
@@ -202,7 +202,7 @@ export default getCenterOfMassMultiPolygon
|
|
|
202
202
|
<br class="clear">
|
|
203
203
|
|
|
204
204
|
<footer>
|
|
205
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
205
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
206
206
|
</footer>
|
|
207
207
|
|
|
208
208
|
<script>prettyPrint();</script>
|
|
@@ -207,7 +207,7 @@ export default getCentroidMultiPolygon
|
|
|
207
207
|
<br class="clear">
|
|
208
208
|
|
|
209
209
|
<footer>
|
|
210
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
210
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
211
211
|
</footer>
|
|
212
212
|
|
|
213
213
|
<script>prettyPrint();</script>
|
package/docs/importTurf.mjs.html
CHANGED
|
@@ -106,7 +106,7 @@ export default turf
|
|
|
106
106
|
<br class="clear">
|
|
107
107
|
|
|
108
108
|
<footer>
|
|
109
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
109
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
110
110
|
</footer>
|
|
111
111
|
|
|
112
112
|
<script>prettyPrint();</script>
|
package/docs/index.html
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
<br class="clear">
|
|
69
69
|
|
|
70
70
|
<footer>
|
|
71
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
71
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
72
72
|
</footer>
|
|
73
73
|
|
|
74
74
|
<script>prettyPrint();</script>
|
package/docs/interp2.mjs.html
CHANGED
|
@@ -186,7 +186,7 @@ export default interp2
|
|
|
186
186
|
<br class="clear">
|
|
187
187
|
|
|
188
188
|
<footer>
|
|
189
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
189
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
190
190
|
</footer>
|
|
191
191
|
|
|
192
192
|
<script>prettyPrint();</script>
|
|
@@ -492,7 +492,7 @@ export default interp2Kriging
|
|
|
492
492
|
<br class="clear">
|
|
493
493
|
|
|
494
494
|
<footer>
|
|
495
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
495
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
496
496
|
</footer>
|
|
497
497
|
|
|
498
498
|
<script>prettyPrint();</script>
|
|
@@ -354,8 +354,16 @@ function interp2NaturalNeighbor(psSrc, psTar, opt = {}) {
|
|
|
354
354
|
// console.log('pgs1', pgs1, 'pgs2', pgs2)
|
|
355
355
|
|
|
356
356
|
//intersect
|
|
357
|
-
let ints =
|
|
358
|
-
|
|
357
|
+
let ints = []
|
|
358
|
+
try {
|
|
359
|
+
ints = intersectPolygon(pgs1, pgs2)
|
|
360
|
+
// console.log('ints', ints)
|
|
361
|
+
}
|
|
362
|
+
catch (err) {
|
|
363
|
+
console.log('pgs1', pgs1)
|
|
364
|
+
console.log('pgs2', pgs2)
|
|
365
|
+
console.log(err)
|
|
366
|
+
}
|
|
359
367
|
|
|
360
368
|
//intersectA
|
|
361
369
|
let intersectA = 0
|
|
@@ -509,7 +517,7 @@ export default interp2NaturalNeighbor
|
|
|
509
517
|
<br class="clear">
|
|
510
518
|
|
|
511
519
|
<footer>
|
|
512
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
520
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
513
521
|
</footer>
|
|
514
522
|
|
|
515
523
|
<script>prettyPrint();</script>
|
|
@@ -392,7 +392,7 @@ export default normalizeArray
|
|
|
392
392
|
<br class="clear">
|
|
393
393
|
|
|
394
394
|
<footer>
|
|
395
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
395
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
396
396
|
</footer>
|
|
397
397
|
|
|
398
398
|
<script>prettyPrint();</script>
|
|
@@ -167,7 +167,7 @@ export default ptsXYZtoArr
|
|
|
167
167
|
<br class="clear">
|
|
168
168
|
|
|
169
169
|
<footer>
|
|
170
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
170
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
171
171
|
</footer>
|
|
172
172
|
|
|
173
173
|
<script>prettyPrint();</script>
|
package/docs/ptsXYtoArr.mjs.html
CHANGED
|
@@ -143,7 +143,7 @@ export default ptsXYtoArr
|
|
|
143
143
|
<br class="clear">
|
|
144
144
|
|
|
145
145
|
<footer>
|
|
146
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
146
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
147
147
|
</footer>
|
|
148
148
|
|
|
149
149
|
<script>prettyPrint();</script>
|
|
@@ -212,7 +212,7 @@ export default toMultiPolygon
|
|
|
212
212
|
<br class="clear">
|
|
213
213
|
|
|
214
214
|
<footer>
|
|
215
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
215
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
216
216
|
</footer>
|
|
217
217
|
|
|
218
218
|
<script>prettyPrint();</script>
|
package/docs/toPolygon.mjs.html
CHANGED
|
@@ -175,7 +175,7 @@ export default toPolygon
|
|
|
175
175
|
<br class="clear">
|
|
176
176
|
|
|
177
177
|
<footer>
|
|
178
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
178
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
179
179
|
</footer>
|
|
180
180
|
|
|
181
181
|
<script>prettyPrint();</script>
|
package/docs/w-gis.html
CHANGED
|
@@ -5122,7 +5122,7 @@ https://github.com/mapbox/delaunator</p>
|
|
|
5122
5122
|
<br class="clear">
|
|
5123
5123
|
|
|
5124
5124
|
<footer>
|
|
5125
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:
|
|
5125
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.10</a> on Thu Aug 04 2022 16:57:46 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
5126
5126
|
</footer>
|
|
5127
5127
|
|
|
5128
5128
|
<script>prettyPrint();</script>
|
package/package.json
CHANGED
|
@@ -310,8 +310,16 @@ function interp2NaturalNeighbor(psSrc, psTar, opt = {}) {
|
|
|
310
310
|
// console.log('pgs1', pgs1, 'pgs2', pgs2)
|
|
311
311
|
|
|
312
312
|
//intersect
|
|
313
|
-
let ints =
|
|
314
|
-
|
|
313
|
+
let ints = []
|
|
314
|
+
try {
|
|
315
|
+
ints = intersectPolygon(pgs1, pgs2)
|
|
316
|
+
// console.log('ints', ints)
|
|
317
|
+
}
|
|
318
|
+
catch (err) {
|
|
319
|
+
console.log('pgs1', pgs1)
|
|
320
|
+
console.log('pgs2', pgs2)
|
|
321
|
+
console.log(err)
|
|
322
|
+
}
|
|
315
323
|
|
|
316
324
|
//intersectA
|
|
317
325
|
let intersectA = 0
|