Skip to content

Clarify contracts for writers and readers #134

@asinghvi17

Description

@asinghvi17

In general, users can expect writers (GeoJSON.write, Shapefile.write, GeoParquet.write, GeoDataFrames.write, etc) to accept either feature collections or table-like objects, as *.write(filename, obj). This is not always clear in the READMEs or package docs/docstrings.

Specifically, Package.write(filename/io, table/geometry; geometrycolumn, crs, force) should be the minimum standard, with extra kwargs where necessary, and perhaps dropping the IO requirement too.

This should be clarified in every README for these packages and in the docs as well, if those exist.

Similarly, readers should return a table-like object, possibly a feature collection. At least it should have some metadata. DataAPI.metadata functions should be included so we can propagate crs and geometry column info through e.g. DataFrame(GeoJSON.read(...)).

This is a good first issue to solve since it's mostly documentation modification!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    In Progress

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions