Skip to content

Instantly share code, notes, and snippets.

@aborruso
Last active January 10, 2021 21:09
Show Gist options
  • Save aborruso/e5d6b4e83be8830496ab72fa6769f70a to your computer and use it in GitHub Desktop.
Save aborruso/e5d6b4e83be8830496ab72fa6769f70a to your computer and use it in GitHub Desktop.

Intro

Due i servizi REST esposti:

Su entrambi è possibile fare query via interfacca web e anche aggiungerli in QGIS (non ho testato).

Download via OGR

# aree potenzialmente idonee individuate nella CNAPI
ogr2ogr out1.geojson -f GEOJson \
"https://services5.arcgis.com/w2I3gG4XWYA5Fa4M/ArcGIS/rest/services/API_service/FeatureServer/0/query?where=1%3D1&outfields=*&f=geojson" \
OGRGeoJSON -oo FEATURE_SERVER_PAGING="YES"

# La dashboard della sismicità del 2020
ogr2ogr out2.geojson -f GEOJson \
"https://services1.arcgis.com/z0Oh0igg7i25Y3AM/ArcGIS/rest/services/FS_2020_time/FeatureServer/0/query?where=1%3D1&outfields=*&f=geojson" \
OGRGeoJSON -oo FEATURE_SERVER_PAGING="YES"
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.
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