@cpp.js/package-spatialite
v1.0.0-beta.23
Published
This package provides SpatiaLite, a spatial extension to SQLite, compiled with Cpp.js for seamless integration in JavaScript, WebAssembly and React Native environments. By using Cpp.js, this package enables high-performance spatial database operations bot
Downloads
233
Maintainers
Readme
@cpp.js/package-spatialite
Precompiled spatialite library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.
Integration
Start by installing these package with the following command:
npm install @cpp.js/package-spatialite
To enable the library, modify the cppjs.config.js file as shown below.
+import spatialite from '@cpp.js/package-spatialite/cppjs.config.js';
export default {
dependencies: [
+ spatialite
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the spatialite in your C++ or JavaScript code.
Usage in C++ Code
+#include <spatialite.h>
std::string Native::sample() {
+ return std::string(spatialite_version());
}
License
This project includes the precompiled spatialite library, which is distributed under the MPL tri-license.
Spatialite Homepage: https://www.gaia-gis.it/fossil/libspatialite/index