Hardware-accelerated geospatial data plotting in the browser
Github | Tutorial | API docs | NPM
Lots of meteorological data web sites have a model where the data live on a central server, get plotted on the server, and then the server serves static images to the client. This creates a bottleneck where adding fields and view sectors takes exponentially more processing power for the server. One way around this is to offload the plotting to the client and to have the browser plot the data on a pan-and-zoomable map. Unfortunately, in the past, this has required developing low-level plotting code, and depending on the mapping library, the performance may be poor.
autumnplot-gl provides a solution to this problem by making hardware-accelerated data plotting in the browser easy. This was designed with meteorological data in mind, but anyone wanting to contour geospatial data on a map can use autumnplot-gl.
Check out the tutorial for installation and usage information.
To work on autumnplot-gl itself, it takes a few steps to set up
- Install node.js if you don't have it already
- Install emscripten and source the relevant SDK environment for your shell
- Clone the autumnplot-gl git repo (
git clone https://github.com/tsupinie/autumnplot-gl ; cd autumnplot-gl) - Install the dependencies (
npm install) - Build the WASM module (
cd src/cpp ; make js ; cd -) - Start the dev server (
npm run start)