CityRiverSpaces / CRiSp

CRiSp (City River Spaces) provides tools to automate the morphological delineation of riverside urban areas.
https://cityriverspaces.github.io/CRiSp/
Apache License 2.0
0 stars 0 forks source link

Function to get UTM zone for a given sf object #25

Closed cforgaci closed 2 days ago

cforgaci commented 4 weeks ago

This utility function returns the UTM zone of a given sf object. The longitude of the centroid is used to get the UTM zone.

cforgaci commented 1 week ago

Maybe we can add a couple of tests to make sure it works fine for all the hemispheres (I guess no need to test edge cases such as geometries crossing the date line?).

I added two tests, one for each hemisphere. Will this do?

fnattino commented 2 days ago

Thanks @cforgaci , feel free to merge! Indeed we should fix the issue with osm_bb in a separate PR (also responsible for the lint action to fail).