spatialdata icon indicating copy to clipboard operation
spatialdata copied to clipboard

`ShapesModel.parse()`, for `.geojson` files, ignores non-geometry colums.

Open LucaMarconato opened this issue 2 months ago • 0 comments

The spatialdata_io.visium_hd() SpaceRanger 4.0 reader needs to read non-geometry columns from a .geojson file and store them to a GeoDataFrame. Since ShapesModel.parse() ignores such non-geometry columns, @stephenwilliams22 has to write a custom function spatialdata_io.readers.visium_hd._extract_geometries_from_geojson().

It would be convenient to extend ShapesModel.parse() to make it read non-geometry columns, so that visium_hd() can be simplified.

LucaMarconato avatar Oct 27 '25 21:10 LucaMarconato