GeoDa WASM is a WebAssembly module that provides spatial data analysis capabilities from the GeoDa C++ library for use in web browsers and Node.js applications.
@geoda/core
- 🗺️ Mapping
- 📊 Data Exploration
- ⚖️ Spatial Weights
- ⚡ Spatial Operations
@geoda/lisa
- 📐 Spatial Autocorrelation Analysis
@geoda/regression
- 📈 Spatial Regression
@geoda/clustering (WIP)
- 📍 Spatial Clustering
Dive deeper in our API Overview!
Get started in a flash with your favorite package manager:
npm install @geoda/core
Each package works independently, so you can install only the packages you need.
Here is a quick example of using GeoDaLib to apply Local Moran statistics on some example data:
import {localMoran} from '@geoda/lisa';
// exmaple data
const data = [3.0, 3.0, 0.0, 9.0, 8.0, 8.5];
const neighbors = [[1], [0], [], [4, 5], [3, 5], [3, 4]];
const permutation = 99;
// call local moran
const result = await localMoran({data, neighbors, permutation});
- CMake (3.5 or higher)
- Emscripten
- Node.js (22.11.0 recommended)
- Yarn (4.0.0 recommended)
- Clone the repository
- Build the WASM module:
cd js
yarn install
yarn wasm
- Build the JavaScript wrapper:
yarn build
- Run the tests:
yarn test
This project is licensed under the MIT License. Authors: Luc Anselin and Xun Li.
Contributions are welcome! Please feel free to submit a Pull Request.