Skip to content

Invalid GeoJSON: LineString with only 1 coordinate #27

@wazolab

Description

@wazolab

Problem

Some features have a LineString geometry with only 1 coordinate. GeoJSON specification requires a minimum of 2 coordinates for a LineString.

This crashes @turf/boolean-equal in the LoCha component when comparing geometries.

Examples

/api/0.1/projects/espana_navarra_castilla-y-leon_emergency/changes_logs.json:

  • entry [0], feature bw510592191: LineString, coordinates.length = 1
  • entry [0], feature aw510592191: LineString, coordinates.length = 1
  • entry [1], feature bw1342056540: LineString, coordinates.length = 1
  • entry [1], feature aw1342056540: LineString, coordinates.length = 1

Metadata

Metadata

Assignees

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