proj4wkt

Crates.ioproj4wkt
lib.rsproj4wkt
version0.1.0
sourcesrc
created_at2023-06-08 14:42:51.549998
updated_at2023-06-08 14:42:51.549998
descriptionParse WKT to Proj strings
homepagehttps://github.com/3liz/proj4wkt/
repositoryhttps://github.com/3liz/proj4wkt/
max_upload_size
id885537
size67,387
David Marteau (dmarteau)

documentation

https://docs.rs/proj4wkt/

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

Compiling for WASM

Install wasm-pack

wasm-pack build --target web --no-default-features

Or if you have installed 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.

Commit count: 0

cargo fmt