Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single feature geojson not displaying - Read File Failed #157

Open
dreadedhamish opened this issue Jan 27, 2024 · 0 comments
Open

Single feature geojson not displaying - Read File Failed #157

dreadedhamish opened this issue Jan 27, 2024 · 0 comments

Comments

@dreadedhamish
Copy link

dreadedhamish commented Jan 27, 2024

Currently a geoJSON with a single Feature will fail to load, throwing the Read File Failed error. Wrapping the Feature in a FeatureCollection works.

Single Features are supported by kepler-gl - https://github.com/keplergl/kepler.gl/blob/master/docs/user-guides/b-kepler-gl-workflow/a-add-data-to-the-map.md#geojson

To recreate put the example code from the kepler supported file formats section into a .geojson file:

  {
    "type": "Feature",
    "geometry": {
      "type": "Polygon",
      "coordinates": [
        [
          [-10.0, -10.0],
          [10.0, -10.0],
          [10.0, 10.0],
          [-10.0, -10.0]
        ]
      ]
    },
    "properties": {
      "name": "foo"
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant