Skip to content

Instantly share code, notes, and snippets.

@aborruso
Last active July 25, 2017 16:45
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aborruso/9194d31ad5c460c66bda724ba8b85d49 to your computer and use it in GitHub Desktop.
curl "http://effis.jrc.ec.europa.eu/rest/2/burntareas/current/?limit=25&country=IT&ordering=-firedate&format=json" | jq '[.results[] | del(.centroid) | del(.bbox) | .geometry=.shape | del(.shape )] | {"type": "FeatureCollection", features:(map ( {"type": "Feature"}+{"properties": .}+{geometry:.geometry}))} | del(.features[].properties.geometry)' > output.geojson
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment