Skip to content

[Maps][File upload] Upload GeoJSON fails with message "Unable to parse file: Cannot read property 'bbox' of undefined" #43855

@cdmahoney

Description

@cdmahoney

Kibana version:
7.3

Elasticsearch version:
7.3

Server OS version:
Windows 10

Browser version:
Chrome Canary 78.0.3890.0

Browser OS version:
Windows 10

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug:
Attempting to upload a GeoJSON file containing a FeatureCollection with a bbox property fails with message

Unable to parse file: Cannot read property 'bbox' of undefined

The problem is caused by an error in the jsts library (jsts has an open issue bjornharrtell/jsts#390)

Steps to reproduce:

  1. In Maps, Add Layer, select "Upload GeoJSON vector file"
  2. Select a GeoJSON file containing a FeatureCollection instance, where the FeatureCollection has bbox property defined.
  3. Upload fails with message Unable to parse file: Cannot read property 'bbox' of undefined

Expected behavior:
Upload should succeed (file contains valid GeoJSON.)

Screenshots (if relevant):

Errors in browser console (if relevant):
None

Provide logs and/or server output (if relevant):

Any additional context:
Comarcas20190822.zip

Attached archive contains GeoJSON file that demonstrates error. If "bbox" property removed from FeatureCollection instance file uploads without problems.

Metadata

Metadata

Assignees

Labels

Feature:File UploadTeam:GeoFormer Team Label for Geo Team. Now use Team:Presentation

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions