When I do
editFeatures(franconia[1:5, ]) %>%
mapview()
and in that session both delete a feature and edit another one, I get the error:
Error in CPL_get_bbox(obj, 3) : Not a matrix.
traceback:
22.
stop(structure(list(message = "Not a matrix.", call = CPL_get_bbox(obj,
3), cppstack = NULL), .Names = c("message", "call", "cppstack"
), class = c("Rcpp::not_a_matrix", "C++Error", "error", "condition"
)))
21.
CPL_get_bbox(obj, 3)
20.
structure(CPL_get_bbox(obj, 3), names = c("xmin", "ymin", "xmax",
"ymax"))
19.
bbox.MtrxSetSetSet(obj)
18.
structure(bb, class = "bbox", crs = st_crs(x))
17.
bb_wrap(bbox.MtrxSetSetSet(obj), obj)
16.
st_bbox.sfc_MULTIPOLYGON(x)
15.
st_bbox(x)
14.
`[.sfc`(geom, i)
13.
geom[i]
12.
`[.sf`(orig, which(!(orig_ids %in% del_ids)), ) at merge.R#72
11.
orig[which(!(orig_ids %in% del_ids)), ] at merge.R#72
10.
merge_delete(structure(list(NUTS_ID = c("DE241", "DE242", "DE243",
"DE244", "DE245"), SHAPE_AREA = c(0.00673601232111, 0.00842446859281,
0.00598234136934, 0.00732948035553, 0.146698316001), SHAPE_LEN = c(0.392622499474,
0.624726298357, 0.518547080489, 0.456981511253, 3.4819699025), ...
9.
eval(call(paste0("merge_", op), left_sf, sf_merge, c(edit_id = "layerId")))
8.
eval(call(paste0("merge_", op), left_sf, sf_merge, c(edit_id = "layerId"))) at edit.R#199
7.
f(init, x[[i]])
6.
Reduce(function(left_sf, op) {
op <- tolower(op)
if (op == "add")
sf_merge <- crud$finished ... at edit.R#172
5.
editFeatures.sf(franconia[1:5, ]) at edit.R#119
4.
editFeatures(franconia[1:5, ])
3.
eval(lhs, parent, parent)
2.
eval(lhs, parent, parent)
1.
editFeatures(franconia[1:5, ]) %>% mapview()
When I do
and in that session both delete a feature and edit another one, I get the error:
traceback: