@cpp.js/package-geotiff
v1.0.0-beta.22
Published
This package provides the precompiled geotiff library, built using cpp.js, for easy integration into JavaScript, WebAssembly and React Native projects. Designed for working with GeoTIFF files, offering robust support for geospatial metadata handling, ensu
Downloads
233
Maintainers
Readme
@cpp.js/package-geotiff
Precompiled geotiff 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-geotiff
To enable the library, modify the cppjs.config.js file as shown below.
+import geotiff from '@cpp.js/package-geotiff/cppjs.config.js';
export default {
dependencies: [
+ geotiff
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the geotiff in your C++ or JavaScript code.
Usage in C++ Code
+#include <geotiff.h>
std::string Native::sample() {
+ return to_string(LIBGEOTIFF_VERSION);
}
License
This project includes the precompiled libgeotiff library, which is distributed under the MIT License.
GeoTiff Homepage: https://github.com/OSGeo/libgeotiff