1.0.0 • Published 10 months ago

@cpp.js/package-spatialite v1.0.0

Weekly downloads
-
License
MPL tri-license
Repository
github
Last release
10 months ago

@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