Skip to content

R-tree serializer false error #865

@maliberty

Description

@maliberty

In the attached program I try to serialize/deserialize a tree with a single element. It fails on deserialize in:

    if ( elements_count < parameters.get_min_elements() || parameters.get_max_elements() < elements_count )
        BOOST_THROW_EXCEPTION(std::runtime_error("rtree loading error"));

since there is just one element the root node must violate the min_elements rule (min of 4 in this case). This shouldn't be an error. I expect this is easy to fix but I don't know the internals.
test.cpp.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions