Skip to content

Index name not preserved after read-write for points and shapes? #1126

@LucaMarconato

Description

@LucaMarconato

Looking at this notebook: https://helenalc.github.io/SpatialData.demo/code/csama.html (CC @HelenaLC), it looks like that when we write shapes, the name of an index is lost. Probably this happens also for points.

Helena wrote in Zulip#spatialdata-devel > `spatialdata-io` dropping column? @ 💬:

I think the issue in R is that we don't have a concept of .index – the closest would be a named vector, or array with dim. names; but, an sf table like that can't have row names afaik. So there should be a column with that name... which was usually the case; just not these data.

Therefore it's important to preserve the index name.

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