@dra2020/baseclient 1.0.63 → 1.0.64

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.
@@ -1565,21 +1565,7 @@ function geoEnsureID(col, options) {
1565
1565
  exports.geoEnsureID = geoEnsureID;
1566
1566
  function geoNormalizeFeature(f, options) {
1567
1567
  options = Util.shallowAssignImmutable({}, options);
1568
- if (f && f.geometry && f.geometry.type === 'MultiPolygon' && f.geometry.coordinates) {
1569
- let multiPoly = f.geometry.coordinates;
1570
- // Convert degenerate MultiPolygon to Polygon
1571
- if (multiPoly.length == 1) {
1572
- f.geometry.type = 'Polygon';
1573
- f.geometry.coordinates = multiPoly[0];
1574
- }
1575
- }
1576
- else if (f && f.geometry && f.geometry.type === 'Point' && f.geometry.coordinates) {
1577
- while (Array.isArray(f.geometry.coordinates[0]))
1578
- f.geometry.coordinates = f.geometry.coordinates[0];
1579
- }
1580
- else if (options.checkRewind)
1581
- // Various tools do not guarantee valid GeoJSON winding rules. Verify it since internal processing
1582
- // assumes it is correct.
1568
+ if (options.checkRewind)
1583
1569
  Poly.featureRewind(f);
1584
1570
  return f;
1585
1571
  }