MCPcopy Create free account
hub / github.com/microsoft/SandDance / validateGeometry

Function validateGeometry

docs/app/js/sanddance-app.js:104830–104835  ·  view source on GitHub ↗
(type, coordinates)

Source from the content-addressed store, hash-verified

104828 MultiPolygon: 4
104829};
104830function validateGeometry(type, coordinates) {
104831 var nestLevel = COORDINATE_NEST_LEVEL[type];
104832 (0, _core.log).assert(nestLevel, "Unknown GeoJSON type ".concat(type));
104833 while(coordinates && --nestLevel > 0)coordinates = coordinates[0];
104834 return coordinates && Number.isFinite(coordinates[0]);
104835}
104836
104837},{"@deck.gl/core":"gu68g","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"k0z96":[function(require,module,exports) {
104838var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers 1

separateGeometryFunction · 0.70

Calls 1

assertMethod · 0.45

Tested by

no test coverage detected