Skip to content

Concatenating s2 vectors does not call new_s2_geography() #287

@tzakharko

Description

@tzakharko

Since s2 vectors inherit from wk_vctr and not vctrs_vctr, vec_restore() is never called on the concatenation result. The consequence is that the ALTREP class is not properly set up and the concatenated s2 geography vectors can't be serialized. In addition, c.wk_vctr sets additional attributes like crs and geodesic, creating an asymmetry with "regular" s2 vectors that don't have these attributes.

I am wondering whether the original idea was to make s2 geography vctrs vectors, but was then abandoned for some reason?

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