Skip to content

Problems with the "bru_fill_missing" command #200

Answered by finnlindgren
gpanunzi asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks. The last two show that while the "user input" parts of the crs of the converted objects are the same, they used different methods to construct the WKT (which is the actual information used) that generated equivalent but text-wise different representations. That's annoying...
I think one can work around this by transforming one of the objects into the version of the crs of the other object.
Please try this:

ips_sf <- sf::st_as_sf(ips)
covar_tr <- terra::rast(depth_SPDE_s)
ips_sf <- fm_transform(ips_sf, crs = fm_crs(covar_tr))
out <- bru_fill_missing(data = covar_tr, where = ips_sf, values = values)

Let me know if that works, and I can implement that workaround.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@finnlindgren
Comment options

@finnlindgren
Comment options

@gpanunzi
Comment options

@finnlindgren
Comment options

Answer selected by gpanunzi
@gpanunzi
Comment options

@finnlindgren
Comment options

@gpanunzi
Comment options

@finnlindgren
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants