Skip to content

query for ShapeFrame unlikely to work? #111

@vjcitn

Description

@vjcitn
> 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions