View Source Eegis.ClientExample.AppCarg539 (eegis v0.1.15)

Applicazione di esempio Agol(Arcgis On Line) che sfrutta le funzioni definite in Eegis.AgolApp

Link to this section Summary

Functions

Callback implementation for Eegis.AgolApp.app_name/0.

Crea un record per la legenda. (Ancora da implementare)

Cancella un record per objectid. (Ancora da implementare)

Estrae da config/*.exs per l'applicazione corrente(appname()) :features_usr_srv

Ottine una lista di record per una specifica features restiutendo

Usa get_features_desc per estrarre una "Singola" feature

Per tutte le feature crea una chiave:(nome_feature) porzione di esempio

Funzione utilizzata da

Get user servizo

Estrae le foramzioni della legenda da Agol(Arcgis On Line) per la feature :carg_539_legenda e i campi definiti in outFields_legenda()

Aggiorna una lista di features

Unisce l'ulr con i parametri &stringa_1=valore_1&stringa_2=valore_2

Link to this section Functions

Callback implementation for Eegis.AgolApp.app_name/0.

Link to this function

crea_legenda(attrs \\ %{})

View Source

Crea un record per la legenda. (Ancora da implementare)

Link to this function

delete_legenda(atom, objectid)

View Source

Cancella un record per objectid. (Ancora da implementare)

Estrae da config/*.exs per l'applicazione corrente(appname()) :features_usr_srv

%{
  {:alai, :arpas} => %{
    carg_539_campioni: %{nome: "MOGORO_539", numero: 1},
    carg_539_igm: %{nome: "MOGORO_539", numero: 3},
    carg_539_legenda: %{nome: "MOGORO_539", numero: 4}
  },
  {:guest, :esri_lab} => %{lsgv1: %{nome: "Live_Stream_Gauges_v1", numero: 0}}
}
Link to this function

get_a_feature(atom_name, attrs \\ %{})

View Source

Ottine una lista di record per una specifica features restiutendo:

{solo_attributi, fields}
Link to this function

get_a_feature_desc(atom_name)

View Source

Usa get_features_desc per estrarre una "Singola" feature

Per tutte le feature crea una chiave:(nome_feature) porzione di esempio:

%{
  carg_539_legenda: %{
    feature_srv: "https://servicesX.arcgis.com/yyyyyyyyyyyyyyyy/",
    nome: "MOGORO_539",
    numero: 2,
    usr_srv: {:alai, :arpas},
    attrs: %{
      "token=" => "molti caratteri 1YyrqfW4A.."
    }
  }
}
Link to this function

get_legenda_by(campo, valore)

View Source

Funzione utilizzata da

get_legenda_by_objectid
get_legenda_by_uclege
get_legenda_by_sigla

genera la clausula "where"

attrs = %{"where=" => nome_campo = il_valore}

e usa la funzione get_a_feature definita in Eegis.AgolApp

{records, _fields} = get_a_feature(:carg_539_legenda, attrs)
Link to this function

get_legenda_by_objectid(objectid)

View Source
Link to this function

get_legenda_by_sigla(sigla)

View Source
Link to this function

get_legenda_by_uclege(uc_lege)

View Source

Get user servizo

Link to this function

list_formazioni_legenda()

View Source

Estrae le foramzioni della legenda da Agol(Arcgis On Line) per la feature :carg_539_legenda e i campi definiti in outFields_legenda()

Link to this function

update_features(atom_name, features \\ [%{}])

View Source

Aggiorna una lista di features

Link to this function

update_legenda(features)

View Source

Unisce l'ulr con i parametri &stringa_1=valore_1&stringa_2=valore_2