Skip to content

Box.shape is not implemented #72

@Kylotan

Description

@Kylotan

I am trying to perform a query and limit it to an area around a coordinate. Since I could not find a way to do it with a radius (around doesn't do intersections with Ways, apparently), I've tried to create a bounding box and pass that as a shape into an intersecting call.

Unfortunately, the docs here (https://docs.geodesk.com/python/Box#properties) seem to be wrong and Box.shape doesn't seem to exist.

import geodesk
my_box = geodesk.Box(1, 2, 3, 4)
its_shape = my_box.shape

This gives AttributeError: Attribute not found for shape.

I don't see any mention of 'shape' in PyBox.h so I'm unsure why it's in the docs. (Same goes for buffered - that doesn't appear anywhere either.)


(I would appreciate any sort of workaround that can find ways within N metres of a given longitude and latitude, e.g. by generating some other shape I can pass to intersecting)

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