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

Add FlipCoordinates #386

Open
peterstace opened this issue Jul 18, 2021 · 0 comments
Open

Add FlipCoordinates #386

peterstace opened this issue Jul 18, 2021 · 0 comments
Labels
algorithm These are the fun tickets :-) feature New feature or request good first issue Good for newcomers

Comments

@peterstace
Copy link
Owner

peterstace commented Jul 18, 2021

  • Add a new method to all geometry types FlipCoordinates() T. Here, T is a pseudo type that's the same as the type the method is defined on. So when implemented on Point, it should be FlipCoordinates() Point.
  • It should use TransformXY internally. Note that TransformXY can return an error.
  • Because geometries cannot become invalid by flipping their coordinates, we can panic on the error, and disable geometry validation via the ctor option for performance.
@peterstace peterstace added feature New feature or request good first issue Good for newcomers algorithm These are the fun tickets :-) labels Jul 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
algorithm These are the fun tickets :-) feature New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant