@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.
@@ -8786,22 +8786,7 @@ function ringsCancel(outerPoly, innerRing) {
8786
8786
  return true;
8787
8787
  }
8788
8788
  function correctGeometry(f) {
8789
- if (f && f.geometry && f.geometry.type === 'MultiPolygon' && f.geometry.coordinates) {
8790
- let multiPoly = f.geometry.coordinates;
8791
- // Convert degenerate MultiPolygon to Polygon
8792
- if (multiPoly.length == 1) {
8793
- f.geometry.type = 'Polygon';
8794
- f.geometry.coordinates = multiPoly[0];
8795
- }
8796
- }
8797
- if (f && f.geometry && f.geometry.type === 'Point' && f.geometry.coordinates) {
8798
- while (Array.isArray(f.geometry.coordinates[0]))
8799
- f.geometry.coordinates = f.geometry.coordinates[0];
8800
- }
8801
- else
8802
- // TopoJSON does not guarantee proper winding order which messes up later processing. Fix it.
8803
- P.featureRewind(f, { validateHoles: false });
8804
- return f;
8789
+ return P.featureRewind(f, { validateHoles: false });
8805
8790
  }
8806
8791
  function topoContiguity(topo) {
8807
8792
  let objects = Object.values(topo.objects);