-
Notifications
You must be signed in to change notification settings - Fork 211
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
would it be possible to have the CRS bounds in its original unit ? #809
Comments
To transform the boundary properly, would likely need a method similar to: |
PROJ does something similar: |
How to get projected bounds with #810: from pyproj import CRS, Transformer
crs = CRS("EPSG:3857")
transformer = Transformer.from_crs(crs.geodetic_crs, crs, always_xy=True)
transformer.transform_bounds(*crs.area_of_use.bounds) |
awesome ! thanks a lot I have edited my answer on GIS.Stackexchange: https://gis.stackexchange.com/questions/390517/getting-projected-bounds-information-in-pyproj/392407#392407 let me know when it will be released ! |
Release is coming soon. Hopefully by the end of the week 🤞 |
Let's assume I want to get the bounds of the projection 'EPSG:3857' in meters (unit of the 3857 projection)
In the current implementation of pyproj and with my little knowledge I would do the following :
that's a lot of steps just to extract the bounds in the original proj unit.
Would it be possible to add a method to retrieve the projection in its original unit ?
I would be happy to PR this very code in PR if you agree with this way of computing it.
The text was updated successfully, but these errors were encountered: