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

Use consistent ordering of x and y when transforming coordinates #511

Open
charparr opened this issue Jan 13, 2025 · 0 comments
Open

Use consistent ordering of x and y when transforming coordinates #511

charparr opened this issue Jan 13, 2025 · 0 comments

Comments

@charparr
Copy link
Member

charparr commented Jan 13, 2025

For our collective sanity, consider using always_xy=True everywhere we call a pyproj transformer.

https://pyproj4.github.io/pyproj/stable/api/transformer.html

always_xy ([bool](https://docs.python.org/3/library/functions.html#bool), default=False) – If true, the transform method will accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitude for geographic CRS and easting, northing for most projected CRS.

To implement, we'd just run a find and replace on those pyproj API calls and watch to see what breaks.

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

1 participant