@cpp.js/package-proj
v1.0.0-beta.23
Published
This package provides the precompiled proj library, built using cpp.js, for easy integration into JavaScript, WebAssembly and React Native projects. It allows users to perform geodetic computations such as projections and coordinate transformations, ensur
Downloads
354
Maintainers
Readme
@cpp.js/package-proj
Precompiled proj 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-proj
To enable the library, modify the cppjs.config.js file as shown below.
+import proj from '@cpp.js/package-proj/cppjs.config.js';
export default {
dependencies: [
+ proj
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the proj in your C++ or JavaScript code.
Usage in C++ Code
+#include <proj.h>
double Native::sample() {
+ return proj_torad(15.6);
}
License
This project includes the precompiled proj library, which is distributed under the MIT License.
Proj Homepage: https://proj.org/