@cpp.js/package-geos
v1.0.0-beta.22
Published
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
Downloads
250
Maintainers
Readme
@cpp.js/package-geos
Precompiled geos 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-geos
To enable the library, modify the cppjs.config.js file as shown below.
+import geos from '@cpp.js/package-geos/cppjs.config.js';
export default {
dependencies: [
+ geos
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the geos in your C++ or JavaScript code.
Usage in C++ Code
+#include <geos_c.h>
std::string Native::sample() {
+ return std::string(GEOSversion());
}
License
This project includes the precompiled geos library, which is distributed under the LGPL License.
GEOS Homepage: https://github.com/libgeos/geos