Skip to content

[Contribution] Serialization support for s2_geography #281

Closed
@tzakharko

Description

@tzakharko

In the current implementation, s2_geography objects are wrappers over external pointers. This means that serializing and unserializing the data (e.g. when doing saveRDS()) will result in a segfault (see also #259). While s2 data is originally intended to be an intermediate format for processing, the ability to store and load s2 objects would make the package more useful and prevent confusing bugs.

I would like to implement an initial implementation of serialization support and wanted to inquire whether the maintainers would be interesting in accepting such a contribution. The idea would be to wrap s2_geography as a shallow ALTREP class implementing serialization methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions