Skip to content

Instantly share code, notes, and snippets.

@aborruso
Last active August 30, 2017 21:43
Show Gist options
  • Save aborruso/7b99b8ba8e63a5b7a4e112db97976da9 to your computer and use it in GitHub Desktop.
Save aborruso/7b99b8ba8e63a5b7a4e112db97976da9 to your computer and use it in GitHub Desktop.

Con la query di sotto si ottengono le aree boscate bruciate archiviate in EFFIS

curl "http://gwis.jrc.ec.europa.eu/rest/2/burntareas/historical/?area_ha__gt=&area_ha__gte=&area_ha__lt=&area_ha__lte=&country=it&eu_noneu=&firedate=&firedate__gt=&firedate__gte=2012-01-01&firedate__lt=&firedate__lte=&fireid=&format=json&limit=3000&offset=0&province=&yearseason=&yearseason__gt=&yearseason__gte=&yearseason__lt=&yearseason__lte=" |  \
jq -c '[.results[] | del(.centroid) | del(.bbox) | .geometry=.shape | del(.shape )] | {"type": "FeatureCollection", features:(map ( {"type": "Feature"}+{"properties": .}+{geometry:.geometry}))} | del(.features[].properties.geometry)'
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