-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Licenza Creative Commons" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">python-gis-workshop</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/elpaso/python-gis-workshop" property="cc:attributionName" rel="cc:attributionURL">Paolo Corti e Alessandro Pasotti</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribuzione - Condividi allo stesso modo 3.0 Unported License</a>. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,251 @@ | ||
.. title:: GeoDjango + PGRouting + GeoExt = Gis Fun! | ||
.. footer:: GFOSS Day, Foligno - 18/19 November 2010 | ||
|
||
=========================================================== | ||
GeoDjango + PGRouting + GeoExt Studio di un caso: GeoRouter | ||
=========================================================== | ||
|
||
|
||
--------------------------------------- | ||
Alessandro Pasotti ([email protected]) | ||
--------------------------------------- | ||
|
||
|
||
Licenza: Creative Commons Attribuzione - Condividi allo stesso modo 3.0 | ||
|
||
|
||
Premesse | ||
========================= | ||
|
||
* Il cliente esegue rilievi in campo di sentieri e percorsi con finalità di turismo "dolce" e "sostenibile" | ||
* Committenti: APT, Ministero, altre PPAA | ||
* I rilievi sono corredati da: | ||
|
||
* immagini georeferenziate, | ||
* descrizione di tutti i nodi in entrambe le direzioni | ||
* tempi di percorrenza a piedi e in bicicletta | ||
* caratteristiche del fondo stradale | ||
* percentuale di percorribilità in bicicletta | ||
* relazioni sul percorso | ||
|
||
Obbiettivo: | ||
|
||
Realizzare un gruppo di siti per visualizzare i percorsi e le risorse turistiche del territorio | ||
|
||
|
||
Caratteristiche | ||
=================== | ||
|
||
|
||
|
||
|
||
* Oltre ai percorsi, il portale deve gestire altre risorse, eventualmente georeferenziate: | ||
|
||
* Blog | ||
* POI | ||
* News | ||
* Strutture ricettive | ||
* Viaggi a tappe | ||
* Diari di viaggio | ||
* Foto | ||
* ... | ||
* Mappa *embeddable* | ||
* Interoperabile tramite *WS* | ||
|
||
Altre caratteristiche | ||
===================== | ||
|
||
|
||
|
||
* Accessibilità (non completato) | ||
* Multisito (un solo DB, N siti), possibilità di pubblicare un contenuto su più siti | ||
* Attivazione di nuovi siti (domini) da pannello di controllo | ||
* Multilingua | ||
* Rivendibile: pannello di controllo cliente, con accesso limitato | ||
* Routing (inizialmente anche ibrido) | ||
* Versioni *Mobile* | ||
* Output in diversi formati GIS: | ||
|
||
* GML | ||
* KML | ||
* GPX | ||
* GDB (Garmin) | ||
|
||
Tecnologie | ||
========== | ||
|
||
.. image:: images/django-logo.png | ||
:align: right | ||
|
||
|
||
.. image:: images/postgis_elephant.png | ||
:align: right | ||
|
||
|
||
|
||
.. image:: images/geoext-logo.png | ||
:align: right | ||
|
||
|
||
|
||
|
||
* GeoDjango | ||
|
||
* RPC4Django | ||
* PostGIS | ||
* PG-Routing | ||
* GeoExt | ||
|
||
Multisito | ||
=========== | ||
|
||
|
||
|
||
* Django non supporta multisito in una singola istanza! | ||
* Middleware per modificare **SITE_ID** e altri parametri di configurazione dipendenti dal sito | ||
* Middleware per la *cache* sito-specifica | ||
* Modifiche al pannello di controllo per (applicazione *admin*) per l'accesso *staff* con amministrazione di un singolo canale | ||
* Custom manager per mostrare solo le risorse pubblicate sul sito | ||
|
||
Multilingua | ||
============ | ||
|
||
|
||
|
||
* Django non supporta contenuti multilingua | ||
* Applicazione **transmeta**, modificata per avere *setter* e *getter* e default nullo su campi obbligatori | ||
* Custom manager su tutte le applicazioni per mostrare solo le risorse tradotte nella lingua desiderata (controllo sui campi obbligatori) | ||
|
||
Routing | ||
======= | ||
|
||
|
||
|
||
|
||
* Routing sulla rete interna (arco-nodo) | ||
* Guida virtuale con POI e altre risorse | ||
* Generazione *roadbook* | ||
* Routing ibrido con dati Google e interni | ||
* Creazione itinerari | ||
|
||
|
||
Applicazioni Django utilizzate | ||
============================== | ||
|
||
====================== ========================== ================================= | ||
Applicazione Uso Mod. ? | ||
====================== ========================== ================================= | ||
Photologue gestione gallerie di foto Si | ||
OlWidget widget openlayers Si | ||
LocaleURL localizzazione Si | ||
Transmeta traduzione contenuto Si | ||
RPC4Django WS XML-RPC / JSON-RPC No | ||
Avatar avatar No | ||
Tagging tags No | ||
Profiles profili utente No | ||
Registration registrazione utenti No | ||
Gatekeeper moderazione Si | ||
TinyMCE e FileEditor GUI No | ||
Treemenus menu Si | ||
MPTT albero di categorie No | ||
====================== ========================== ================================= | ||
|
||
Applicazioni Django sviluppate | ||
============================== | ||
|
||
====================== ========================== | ||
Applicazione Uso | ||
====================== ========================== | ||
GeoExt GUI mappa front-end | ||
ItFTS Full Text Search | ||
ItCMS Funzioni CMS | ||
ItSites Gestione multisito | ||
Routing Routing | ||
====================== ========================== | ||
|
||
|
||
|
||
Mappe: OlWidget | ||
================== | ||
|
||
http://olwidget.org/ | ||
olwidget is a javascript library that makes it easy to add editable maps to forms. It operates by replacing a textarea with an editable map, and writes WKT data back to the textarea for processing. | ||
|
||
.. image:: images/olwidget.png | ||
|
||
Mappe: OlWidget admin | ||
===================== | ||
|
||
|
||
.. image:: images/olwidget_admin.png | ||
|
||
|
||
Mappe: OlWidget admin 2 | ||
======================= | ||
|
||
|
||
.. image:: images/olwidget_admin_detail.png | ||
|
||
Mappe: GeoExt | ||
============= | ||
|
||
http://www.geoext.org/ | ||
JavaScript Toolkit for Rich Web Mapping Applications | ||
|
||
.. image:: images/geoext.png | ||
|
||
|
||
Il routing | ||
========== | ||
|
||
|
||
|
||
* Calcolo dei tempi di percorrenza (a piedi e in bici) | ||
* Routing tramite PG-Routing | ||
* Routing ibrido tramite Google | ||
* Roadbook | ||
* Profilo altimetrico con Google Charts | ||
|
||
RPC WS: RPC4Django | ||
================== | ||
|
||
.. image:: images/rpc4django.png | ||
|
||
|
||
Mobile | ||
===================== | ||
|
||
.. image:: images/mobile.png | ||
|
||
Mobile | ||
===================== | ||
|
||
.. image:: images/mobile-detail.png | ||
|
||
Deployment | ||
========== | ||
|
||
.. image:: images/wsgi_deployment.png | ||
|
||
* slice su VM XEN USA | ||
* GIT | ||
* nginx proxy per la parte statica | ||
* mod_wsgi | ||
* memcached | ||
|
||
Problemi | ||
========= | ||
|
||
* Deployment complesso | ||
* WSGI thread singolo, multiprocesso | ||
* Occupazione di memoria | ||
* Caching essenziale! | ||
* Dati vettoriali nella mappa | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|