You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a column with NA values the error message is provided:
Error in `add_polygon_layer()`:
! Failed to create layer
Caused by error in `validate_get_elevation.default()`:
! Assertion failed: is.numeric(accessor_data) && all_finite(accessor_data)
✖ Column `frequency` is invalid for accessor `get_elevation`; it must be a <numeric> vector
The main part of the error message says "it must be a vector". I only just now noticed it said "all_finite(accessor_data)". The error message should indicate the true cause of the error. In this case the presence of NA values.
I've attached a shapefile you can use to repro the issue.
This looks overly strict. NaN, NA, Inf should all render as 0 elevation.
As a temporary workaround, use get_elevation = scale_identity(frequency), or remove the validation rule entirely (hack!) validate_get_elevation.Layer <- function(...) NULL
Repro:
Using a column with NA values the error message is provided:
The main part of the error message says "it must be a vector". I only just now noticed it said "all_finite(accessor_data)". The error message should indicate the true cause of the error. In this case the presence of NA values.
I've attached a shapefile you can use to repro the issue.
deck-df.zip
The text was updated successfully, but these errors were encountered: