Crates.io | epsg |
lib.rs | epsg |
version | 11.1.2 |
source | src |
created_at | 2020-07-22 14:51:59.501572 |
updated_at | 2023-12-14 09:23:11.959866 |
description | EPSG Coordinate Reference System tools & data |
homepage | https://github.com/atcol/epsg |
repository | https://github.com/atcol/epsg |
max_upload_size | |
id | 268052 |
size | 4,064,872 |
EPSG reference data and common types for working with Coordinate Reference Systems.
The Rust structures in this library are generated from the EPSG Dataset version 10.033.
See the documentation for more information.
This project requires a PostgreSQL instance to export data to generate code.
database
dir & extract the archive thereprepare.sh
docker-compose up -d
PG_STR="host=localhost user=postgres password=postgres dbname=epsg" cargo build --release
.More detailed instructions are below.
This project follows the semantic versioning convention and uses the corresponding ESPG dataset version as its major and minor versions, reserving maintenance for non-breaking library changes.
The data is generated by reading the local PostgreSQL database and exporting it to src/references.rs
via build.rs
.
The steps to do so are as follows (or run prepare.sh
):
database
dir & extract the archive theredatabase
as follows:PostgreSQL_Table_Script.sql
to 01.sql
PostgreSQL_Data_Script.sql
to 02.sql
PostgreSQL_FKey_Script.sql
to 03.sql
docker-compose up -d
PG_STR="host=localhost user=postgres password=postgres dbname=epsg" cargo build --release
.Contributions are welcome. All submissions will be distributed under the MIT license if accepted.
See the terms of use for the EPSG Dataset.