Skip to content

Empty coordinates #169

@vincentsarago

Description

@vincentsarago

Null coordinates, right not geojson geometries are defined as arrays of Position

https://github.com/developmentseed/geojson-pydantic/blob/main/geojson_pydantic/geometries.py#L112

but looking at the spec it seems that we should allow empty coordinates 😬

o A GeoJSON Geometry object of any type other than
"GeometryCollection" has a member with the name "coordinates".
The value of the "coordinates" member is an array. The structure
of the elements in this array is determined by the type of
geometry. GeoJSON processors MAY interpret Geometry objects with
empty "coordinates" arrays as null objects.

https://datatracker.ietf.org/doc/html/rfc7946#section-3.1

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