inbo / fish-tracking

🐟 Collection of scripts for processing and analysing fish tracking data
3 stars 0 forks source link

Error while calculating distances among receivers for river Mondego #65

Closed damianooldoni closed 3 years ago

damianooldoni commented 3 years ago

From @PieterjanVerhelst 's https://github.com/inbo/fish-tracking/issues/62#issuecomment-721046437:

for the River Mondego I get an error:


cst.dst.frame <- get.distance.matrix(study.area.binary.extended,
locations.receivers)
Error in costDist[] <- shortestPaths[index, index] : 
replacement has length zero
In addition: Warning message:
In .cd2(x, fromCoords) :
Show Traceback

Rerun with Debug Error in costDist[] <- shortestPaths[index, index] : replacement has length zero



> However, [..] I had to create the line-shapefile myself. [..] for the River Mondego I didn't have a proper shapefile, so created it myself. These generated shapefiles only have an 'ID' number. @damianooldoni any thoughts on how to proceed with this? The line-shapefiles from other rivers also need manual additions in GIS.
PieterjanVerhelst commented 3 years ago

Issue solved in #69 .