-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add .prj file to new_known_crs
doc
#216
Comments
Did you pass in the file name or contents? |
The full contents of the file. The whole string provided there. |
That's called WKT and it's a very popular representation of projections. We call |
Oh, that's really useful! I would suggest adding WKT to that bulleted list, with an example, and also providing that link instead of pointing to |
I'd prefer reproducing (more or less exactly) the list from the |
OK, that's fine. Would you like to put the full list in |
Yeah, sounds good. The other one calls https://proj.org/en/stable/development/reference/functions.html#c.proj_create_crs_to_crs, you can use that. |
The docs for
new()
andnew_known_crs()
describe several different string formats accepted for creating a new projection pipeline. These are the options listed innew_known_crs()
:new()
actually lists fewer options, and nothing beyond the bulleted list above.I had a set of Shapefile files that I wanted to grab the projection from, but all I had was the
.prj
file. I didn't see that format listed in the docs, but I had nothing to lose so I tried just passing that tonew_known_crs()
and… it worked! For clarity, here's what my.prj
looks like:I think this is a pretty common thing that people would want to do. Just checking that this behavior is expected, and if you'd accept a PR to add this to the docs as another bullet point in
new_known_crs()
.The text was updated successfully, but these errors were encountered: