spatiasql.js
JavaScript (emscripten) port of SpatiaLite 5.0.0-beta (including SQLite 3.24.0, proj 5.1.0, geos 3.6.2)
Demo
A demo (WebAssembly required) is available from here: http://jvail.github.io/spatiasql.js/
(be patient, loading the js and database file takes some time).
Usage
spatiasql.js (SpatiaLite) is an extension of sql.js (SQLite) and implements the same (for node), but async API for the browser, exept:
- loading shapefiles in node:
const fs = ;const spatiasql = ; spatiasql;
- loading shapefiles in the browser:
; const db = ; const files = await Promiseall ; const loaded = await db; if loaded db ;