nptscot / npt

Data processing code, also use this repo for issue tracking for the Network Planning Tool. See https://nptscot.github.io for development version
https://www.npt.scot/
GNU Affero General Public License v3.0
5 stars 0 forks source link

Issue with odjitter #445

Closed Robinlovelace closed 2 months ago

Robinlovelace commented 2 months ago

Hitting this:

✖ errored target od_shopping
✖ errored pipeline [16.423 seconds]
Warning message:
1 targets produced warnings. Run targets::tar_meta(fields = warnings, complete_only = TRUE) for the messages. 
Error:
! Error running targets::tar_make()
Error messages: targets::tar_meta(fields = error, complete_only = TRUE)
Debugging guide: https://books.ropensci.org/targets/debugging.html
How to ask for help: https://books.ropensci.org/targets/help.html
Last error message:
    attr(obj, "sf_column") does not point to a geometry column.
Did you rename it, without setting st_geometry(obj) <- "newname"?
Last error traceback:
    make_od_shopping(oas, os_pois, grid, trip_purposes, intermediate_zones, ...
    odjitter::jitter(od = od_adjusted, zones = zones_shopping, zones_d = sho...
    rbind(zones, zones_d)
    rbind(deparse.level, ...)
    chk_equal_crs(dots)
    vapply(dots[-1L], function(x) {     if (st_crs(x) != crs0)          stop...
    FUN(X[[i]], ...)
    st_crs(x)
    st_crs.sf(x)
    st_crs(st_geometry(x), ...)
    st_geometry(x)
    st_geometry.sf(x)
    stop("attr(obj, \"sf_column\") does not point to a geometry column.\nDid...
    .handleSimpleError(function (condition)  {     state$error <- build_mess...
    h(simpleError(msg, call))