I am loading shapefile with multiple square polygon feature of size 100x100 m in R using st_read. I am able to create a grid of 10x10 m using st_make_grid, but how can I rotate each grid to match the orientation of polygon feature. Any suggestions on how to determine the orientation of every polygon and use that angle to rotate the grid associated with that polygon.

0

There are 0 best solutions below