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
AFAIK, wk_meta() (which should generally be faster?) cannot currently be used for this purpose, since it doesn't read any coordinates. wk_meta() gives a correct size for POINT EMPTY, MULTIPOINT EMPTY etc, but not for geometry collections.
# if wk_meta is modified to read at least one non-empty coordwk_is_empty2<-function(handleable) {
size<-wk::wk_meta(handleable)$size!is.na(size) &size==0L
}
Could we add an "is empty" handler or utility wrapper over
wk_count()
? The following works, but may be inefficient, particularly for WKT.AFAIK,
wk_meta()
(which should generally be faster?) cannot currently be used for this purpose, since it doesn't read any coordinates.wk_meta()
gives a correct size forPOINT EMPTY
,MULTIPOINT EMPTY
etc, but not for geometry collections.Created on 2023-10-03 with reprex v2.0.2
edit: clarity
The text was updated successfully, but these errors were encountered: