Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/3liz/proj4wkt-rs
Parse WKT to Proj strings
https://github.com/3liz/proj4wkt-rs
Last synced: 3 months ago
JSON representation
Parse WKT to Proj strings
- Host: GitHub
- URL: https://github.com/3liz/proj4wkt-rs
- Owner: 3liz
- Created: 2023-06-08T14:37:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-13T15:18:51.000Z (12 months ago)
- Last Synced: 2024-07-01T19:34:35.859Z (4 months ago)
- Language: Rust
- Size: 35.2 KB
- Stars: 2
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-georust - Proj4wkt - Parse WKT to Proj strings (Watchlist)
README
# Proj4wkt
Convert WKT strings to proj4 strings.
Support both WKT1 and WKT2 formats.
This is a companion crate for `proj4rs`: because of this conversions are limited
to projection supported by `proj4rs`. As more projection will be supported in proj4rs, more conversions will be supported in `proj4wt.Documentation on [doc.rs](https://docs.rs/proj4wkt/)
## Compiling for WASM
Install [wasm-pack](https://rustwasm.github.io/wasm-pack/book/)
```
wasm-pack build --target web --no-default-features
```Or if you have installed [cargo-make](https://sagiegurari.github.io/cargo-make/), use the following
command:```
cargo make wasm
```### Running the WASM example
There is a [`index.html`] file for testing the WASM module in a navigator.
For security reason you need to run it from a server; you can pop up
a server from python with the following command:```
python3 -m http.server
```The server will automatically serve the `index.html` file in the current directory.