This package provides the precompiled GEOS library, built using Cpp.js, for seamless integration into JavaScript, WebAssembly, and React Native projects. It supports advanced geometry operations, including spatial analysis and topological calculations, de
npm install @cpp.js/package-geos-android-multithread``sh`
npm install @cpp.js/package-geos
To enable the library, modify the cppjs.config.js file as shown below.
`diff
+import geos from '@cpp.js/package-geos/cppjs.config.js';
export default {
dependencies: [
+ geos
]
paths: {
config: import.meta.url,
}
};
`
diff
+#include std::string Native::sample() {
+ return std::string(GEOSversion());
}
``GEOS Homepage: https://github.com/libgeos/geos