Skip to content

Rendering Issue with Empty MultiLineString in GeoJSON #873

@DaanJG

Description

@DaanJG

When loading a GeoJSON with an empty MultiLineString geometry into geojson.io, subsequent valid geometries were not rendered. However, these geometries rendered correctly when the empty MultiLineString was removed. This behaviour seems inconsistent with the GeoJSON specification.

Relevant Standard Excerpt (RFC 7946, https://datatracker.ietf.org/doc/html/rfc7946):

"GeoJSON processors MAY interpret Geometry objects with empty 'coordinates' arrays as null objects."

What ever way they are interpreted, it's seems logical to just plot nothing and move on.

(An empty coordinates array arises naturally from code that doesn't yield certain results.)

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