![]() I don't know the correct one for Switzerland, but I found this SO answer and used that. One thing I didn't mention is that you will want to transform to an appropriate equal-area projection that uses metres so that you can buffer by 100m and be confident that the areas calculated across your study are equivalent. Return a data frame where each row (polygon) contains the area covered by the circles.īonus points if this can be done in Simple Features.Įssentially what I mentioned in my comment. mean_lat = "Ticino")Ĭreate circles with a 100m radius in the dat_sim, to overlay onto the shapefile dat_ticino_sf or dat_ticino_sp files.įor each polygon in the shapefile, calculate how much of that polygon is covered by circles. Here I create some simulated data points. Ideally return back a dataframe where each row contains the area covered by all circles for each polygon. ![]() Calculate the area of each of these polygons that are covered by these circles.Create circles that have a 100m radius, from a ame of long/lat points.Specifically, I want to do the following: My use case is related to calculating the area of a polygon in a shapefile that is covered by another polygon.
0 Comments
Leave a Reply. |