A WebAssembly wrapper for DGGRID, the C++ library for working with Discrete Global Grid Systems.
Please check tests folder for more examples.
in browser
const WebdggridLocal = await import("../dist/index.js").then(m => m.Webdggrid).catch(console.log);
import { Webdggrid as WebdggridExternal } from "https://cdn.jsdelivr.net/npm/webDggrid/dist/index.js";
const Webdggrid = WebdggridLocal ?? WebdggridExternal;
const webdggrid = await Webdggrid.load();
const seqNum = dggs.geoToSequenceNum([[0, 0]]);In nodejs
import { Webdggrid } from 'webdggrid'
const dggs = await Webdggrid.load();
const seqNum = dggs.geoToSequenceNum([[0, 0]]);setDggs · getResolution · setResolution · geoToSequenceNum · sequenceNumToGeo · sequenceNumToGrid · sequenceNumToGridFeatureCollection · geoToGeo · cellAreaKM · cellDistKM · nCells
See the full API reference for details and type signatures.
See CONTRIBUTING.md for setup instructions, project structure, and commit conventions.
See CHANGELOG.md for the full history.
