Skip to content

Instantly share code, notes, and snippets.

@mdsumner
Last active December 20, 2025 17:17
Show Gist options
  • Select an option

  • Save mdsumner/cca99075bbc6ca61c842c39fb22cf9ea to your computer and use it in GitHub Desktop.

Select an option

Save mdsumner/cca99075bbc6ca61c842c39fb22cf9ea to your computer and use it in GitHub Desktop.
library(terra)
## crs changes where it is longitudinally, this is southern hemi range for UTM
r <- rast(ext(c(1e+05, 9e+05, 11e+05, 1e+07)), res = 1e5, crs = "EPSG:32755")
plot(project(densify(as.polygons(r), 5000), "EPSG:4326"))
maps::map(add= TRUE)
image
@mdsumner
Copy link
Author

here with the strictly-6 utm boundary zones overplotted

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment