@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/lib/poly/topo.ts
CHANGED
|
@@ -221,7 +221,7 @@ const DefaultSimplifyOptions: SimplifyOptions = { minArea: 500 };
|
|
|
221
221
|
|
|
222
222
|
function log(s: string): void
|
|
223
223
|
{
|
|
224
|
-
console.log(s);
|
|
224
|
+
//console.log(s);
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
//
|
|
@@ -323,10 +323,9 @@ export function topoSimplifyCollection(col: any, options?: SimplifyOptions): any
|
|
|
323
323
|
let {x,y} = intpt(f);
|
|
324
324
|
if (x && y && !polyContainsPoint(pp, x, y))
|
|
325
325
|
{
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
log(`topoSimplifyCollection: ${f.properties.id}: preserving full feature because of intpt problem`);
|
|
326
|
+
keepArcs(topo, oOld.arcs, keepweight);
|
|
327
|
+
nBad++;
|
|
328
|
+
log(`topoSimplifyCollection: ${f.properties.id}: increasing feature fidelity because of intpt problem`);
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
331
|
}
|