@dra2020/baseclient 1.0.62 → 1.0.63
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 +1 -16
- package/dist/baseclient.js.map +1 -1
- package/lib/poly/topo.ts +1 -22
- package/package.json +1 -1
package/lib/poly/topo.ts
CHANGED
|
@@ -65,28 +65,7 @@ function ringsCancel(outerPoly: any, innerRing: any): boolean
|
|
|
65
65
|
|
|
66
66
|
function correctGeometry(f: any): any
|
|
67
67
|
{
|
|
68
|
-
|
|
69
|
-
{
|
|
70
|
-
let multiPoly = f.geometry.coordinates;
|
|
71
|
-
|
|
72
|
-
// Convert degenerate MultiPolygon to Polygon
|
|
73
|
-
if (multiPoly.length == 1)
|
|
74
|
-
{
|
|
75
|
-
f.geometry.type = 'Polygon';
|
|
76
|
-
f.geometry.coordinates = multiPoly[0];
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (f && f.geometry && f.geometry.type === 'Point' && f.geometry.coordinates)
|
|
81
|
-
{
|
|
82
|
-
while (Array.isArray(f.geometry.coordinates[0]))
|
|
83
|
-
f.geometry.coordinates = f.geometry.coordinates[0];
|
|
84
|
-
}
|
|
85
|
-
else
|
|
86
|
-
// TopoJSON does not guarantee proper winding order which messes up later processing. Fix it.
|
|
87
|
-
P.featureRewind(f, { validateHoles: false } );
|
|
88
|
-
|
|
89
|
-
return f;
|
|
68
|
+
return P.featureRewind(f, { validateHoles: false } );
|
|
90
69
|
}
|
|
91
70
|
|
|
92
71
|
export function topoContiguity(topo: Topo): any
|