Re: [opendatasicilia] Qgis ed api EFFIS

Posted by Giovan Battista Vitrano on
URL: http://opendatasicilia.195.s1.nabble.com/opendatasicilia-Qgis-ed-api-EFFIS-tp4926p4963.html

Si ho visto e letto l'articolo, appena completo la mappa degli incendi in Sicilia con i dati di copernicus, ci provo, cosi mi serve come esercizio sulla riga di comando :-)
che come ci hai fatto vedere tu, è una fonte inesauribile di dati, se si impara ad usarla :-)  :-)

Il giorno mercoledì 26 luglio 2017 08:23:42 UTC+2, Andrea Borruso ha scritto:

Caro Giovanni,

2017-07-20 9:50 GMT+02:00 Giovan Battista Vitrano <[hidden email]>:

@aborruso legendo il tuo articolo <a href="https://medium.com/tantotanto/informazioni-aggiornate-e-affidabili-sugli-incendi-in-europa-22f07afad899" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftantotanto%2Finformazioni-aggiornate-e-affidabili-sugli-incendi-in-europa-22f07afad899\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFhL2FrUz5CgSJ1Z1SIrTW-FtfZmA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftantotanto%2Finformazioni-aggiornate-e-affidabili-sugli-incendi-in-europa-22f07afad899\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFhL2FrUz5CgSJ1Z1SIrTW-FtfZmA&#39;;return true;">https://medium.com/tantotanto/informazioni-aggiornate-e-affidabili-sugli-incendi-in-europa-22f07afad899 sembra tutto facile :-)

Perdona l'ignoranza....ma come si può connettere qgis alle api di EFFIS per poter fare delle mappa?

ecco un tutorial a tema, con un piccolo esempio <a href="https://medium.com/tantotanto/modificare-la-struttura-di-un-file-json-e-creare-un-geojson-199a17e2e4a3" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftantotanto%2Fmodificare-la-struttura-di-un-file-json-e-creare-un-geojson-199a17e2e4a3\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRaE7LjXg_wl_zjVEtaajvLPK0ZA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftantotanto%2Fmodificare-la-struttura-di-un-file-json-e-creare-un-geojson-199a17e2e4a3\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGRaE7LjXg_wl_zjVEtaajvLPK0ZA&#39;;return true;">https://medium.com/tantotanto/modificare-la-struttura-di-un-file-json-e-creare-un-geojson-199a17e2e4a3

Mostro come si fa a riga di comando con <a href="https://github.com/pigreco/OpenData-da-riga-di-comando/issues/3" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpigreco%2FOpenData-da-riga-di-comando%2Fissues%2F3\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHlDPjZDxBEDe9wRdjeSvMTrbQtog&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fpigreco%2FOpenData-da-riga-di-comando%2Fissues%2F3\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHlDPjZDxBEDe9wRdjeSvMTrbQtog&#39;;return true;">jq:

curl "<a href="http://effis.jrc.ec.europa.eu/rest/2/burntareas/current/?limit=25&amp;country=IT&amp;ordering=-firedate&amp;format=json" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Feffis.jrc.ec.europa.eu%2Frest%2F2%2Fburntareas%2Fcurrent%2F%3Flimit%3D25%26country%3DIT%26ordering%3D-firedate%26format%3Djson\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-MF1CI7HWbqRnD7vimHu0K3CLCA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Feffis.jrc.ec.europa.eu%2Frest%2F2%2Fburntareas%2Fcurrent%2F%3Flimit%3D25%26country%3DIT%26ordering%3D-firedate%26format%3Djson\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE-MF1CI7HWbqRnD7vimHu0K3CLCA&#39;;return true;">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

Saluti

--
___________________

Andrea Borruso
website: <a href="https://medium.com/tantotanto" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftantotanto\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGZVxcQ3b_26Tt_tclvazQirNPHSA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fmedium.com%2Ftantotanto\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGZVxcQ3b_26Tt_tclvazQirNPHSA&#39;;return true;">https://medium.com/tantotanto
38° 7' 48" N, 13° 21' 9" E, EPSG:4326
___________________

"cercare e saper riconoscere chi e cosa,
 in mezzo all’inferno, non è inferno, 
e farlo durare, e dargli spazio"

Italo Calvino

--
Sito: http://opendatasicilia.it
Facebook: https://www.facebook.com/groups/opendatasicilia/
twitter: http://twitter.com/opendatasicilia
Slack: http://opendatasicilia.it/slack/
Newsletter http://opendatasicilia.it/newsletter/
---
Hai ricevuto questo messaggio perché sei iscritto al gruppo "opendatasicilia" di Google Gruppi.
Per annullare l'iscrizione a questo gruppo e non ricevere più le sue email, invia un'email a [hidden email].
Per postare in questo gruppo, invia un'email a [hidden email].
Visita questo gruppo all'indirizzo https://groups.google.com/group/opendatasicilia.
Per visualizzare questa discussione sul Web, visita https://groups.google.com/d/msgid/opendatasicilia/7a123d6b-a629-42bb-8e6f-9e6205252fe3%40googlegroups.com.
Per altre opzioni visita https://groups.google.com/d/optout.