Precompiled gdal library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.
Start by installing these package with the following command:
npm install @cpp.js/package-gdal
To enable the library, modify the cppjs.config.js file as shown below.
+import gdal from '@cpp.js/package-gdal/cppjs.config.js';
export default {
dependencies: [
+ gdal
]
paths: {
config: import.meta.url,
}
};
Below are the steps to use the gdal in your C++ or JavaScript code.
+#include <gdal.h>
std::string Native::sample() {
+ return std::string(GDAL_RELEASE_NAME);
}
This project includes the precompiled GDAL library, which is distributed under the MIT License.
GDAL Homepage: https://gdal.org/