Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a 'crs' crate? #29

Open
frewsxcv opened this issue Mar 3, 2022 · 2 comments
Open

Create a 'crs' crate? #29

frewsxcv opened this issue Mar 3, 2022 · 2 comments

Comments

@frewsxcv
Copy link
Member

frewsxcv commented Mar 3, 2022

It would be a crate for looking up CRS information. Something like Crs::from_str("EPSG:4326").proj_string().

We would need to populate the crate with CRS information, potentially from:

@urschrei
Copy link
Member

urschrei commented Mar 3, 2022

Is there a specific reason you need the proj string, when libproj (as of v5? I think) can create transforms using EPSG codes (see e.g. https://github.com/georust/proj#convert-from-nad-83-us-survey-feet-to-nad-83-meters-using-epsg-codes) or is this intended to be a totally separate concern from proj functionality?

@urschrei
Copy link
Member

urschrei commented Mar 3, 2022

That aside, it could be built using a build script and a phf hashmap populated from either a JSON or SQLite source. We'd also have to ensure that the source matched the current libproj version in use by the proj crate, as I believe there is a little bit of EPSG code churn between versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants