I run the code in receiver-distance_analysis (code prepare_dataset.R) to calculate the distance between stations of the michimit project. To do so, this code is ran to load and process the shapefiles of the study area (code lines 380 - 408):
When I run the code to project the receivers on the shapefiles, I get an error (code line 659 - 666):
# for study area combined by two study areas made of polygons and lines
projections.locations.receivers <- find.projections.receivers(
shape.study.area = michimit,
receivers = locations.receivers,
projection = coordinate_epsg,
shape.study.area2 = ws_bpns,
shape.study.area_merged = study.area
)
The error:
Error in st_coordinates.sfc(st_geometry(x)) : not implemented for objects of class sfc_GEOMETRY
@damianooldoni any thoughts on this? Package inconsistency?
I run the code in
receiver-distance_analysis
(codeprepare_dataset.R
) to calculate the distance between stations of themichimit
project. To do so, this code is ran to load and process the shapefiles of the study area (code lines 380 - 408):Next, the stations are loaded (code line: 604 - 608):
When I run the code to project the receivers on the shapefiles, I get an error (code line 659 - 666):
The error:
Error in st_coordinates.sfc(st_geometry(x)) : not implemented for objects of class sfc_GEOMETRY
@damianooldoni any thoughts on this? Package inconsistency?