@dra2020/baseclient 1.0.43 → 1.0.44
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/dist/baseclient.js +4 -5
- package/dist/baseclient.js.map +1 -1
- package/lib/poly/topo.ts +4 -5
- package/package.json +1 -1
package/dist/baseclient.js
CHANGED
|
@@ -8481,7 +8481,7 @@ function intpt(f) {
|
|
|
8481
8481
|
}
|
|
8482
8482
|
const DefaultSimplifyOptions = { minArea: 500 };
|
|
8483
8483
|
function log(s) {
|
|
8484
|
-
console.log(s);
|
|
8484
|
+
//console.log(s);
|
|
8485
8485
|
}
|
|
8486
8486
|
//
|
|
8487
8487
|
// topoSimplifyCollection:
|
|
@@ -8567,10 +8567,9 @@ function topoSimplifyCollection(col, options) {
|
|
|
8567
8567
|
else {
|
|
8568
8568
|
let { x, y } = intpt(f);
|
|
8569
8569
|
if (x && y && !pointinpoly_1.polyContainsPoint(pp, x, y)) {
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
log(`topoSimplifyCollection: ${f.properties.id}: preserving full feature because of intpt problem`);
|
|
8570
|
+
keepArcs(topo, oOld.arcs, keepweight);
|
|
8571
|
+
nBad++;
|
|
8572
|
+
log(`topoSimplifyCollection: ${f.properties.id}: increasing feature fidelity because of intpt problem`);
|
|
8574
8573
|
}
|
|
8575
8574
|
}
|
|
8576
8575
|
}
|