-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
> getMethod("query", "ShapeFrame")
Object with tracing code, class "MethodDefinitionWithTrace"
Original definition:
Method Definition:
function (x, ...)
{
args <- list(...)
.check_bb(args)
df <- st_as_sf(data(x))
xy <- st_coordinates(df)
i <- xy[, 1] >= args$xmin & xy[, 1] <= args$xmax & xy[, 2] >=
args$ymin & xy[, 2] <= args$ymax
x@data <- data(x)[which(i), ]
return(x)
}
which(i) is in the xy world, data(x) is in general not ... this might work for POINT but not for POLYGON data
Metadata
Metadata
Assignees
Labels
No labels