@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/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
- if (f && f.geometry && f.geometry.type === 'MultiPolygon' && f.geometry.coordinates)
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dra2020/baseclient",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "description": "Utility functions for Javascript projects.",
5
5
  "main": "dist/baseclient.js",
6
6
  "types": "./dist/all/all.d.ts",