@cpp.js/package-gdal
v1.0.0-beta.22
Published
This package provides the precompiled GDAL, built using Cpp.js, for seamless integration into JavaScript, WebAssembly, and React Native projects. It enables advanced geospatial data processing, including raster and vector data manipulation, format convers
Downloads
219
Maintainers
Readme
@cpp.js/package-gdal
Precompiled gdal 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-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,
}
};
Usage
Below are the steps to use the gdal in your C++ or JavaScript code.
Usage in C++ Code
+#include <gdal.h>
std::string Native::sample() {
+ return std::string(GDAL_RELEASE_NAME);
}
License
This project includes the precompiled GDAL library, which is distributed under the MIT License.
GDAL Homepage: https://gdal.org/