User Tools

Site Tools


tecnica:gps_cartografia_gis:beyond_mapserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tecnica:gps_cartografia_gis:beyond_mapserver [2011/09/15 12:17] – [Configurazione] niccolotecnica:gps_cartografia_gis:beyond_mapserver [2012/03/22 11:54] (current) – [PyWPS] niccolo
Line 7: Line 7:
   * [[http://www.tinyows.org/]]   * [[http://www.tinyows.org/]]
  
-%%http://localhost/cgi-bin/tinyows?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities%%+Installazione versione 1.0.0:
  
-Il file di configurazione predefinito è **''/etc/tinyows/config.xml''**, per usarne uno diverso bisogna impostare la variabile d'ambiente **''TINYOWS_CONFIG_FILE''**. Un metodo per impostare la variabile è quello di creare uno script shell, ad esempio **''/usr/lib/cgi-bin/tinyows-demo''** che contiene:+<code> 
 +./configure 
 +make && make install 
 +</code> 
 + 
 +Viene creata la directory **''/usr/local/share/tinyows/''**, l'eseguibile **''tinyows''** deve essere copiato a mano in **''/usr/lib/cgi-bin/''**. Pare che la patch per risolvere il [[http://www.tinyows.org/trac/wiki/LibxmlSchemaGmlBug|bug di Libxml con GML 3.1.1]] sia già applicata nei sorgenti, contrariamente a quanto scritto nella pagina wiki. 
 + 
 +Il file di configurazione predefinito è **''/etc/tinyows.xml''**, ma conviene creare una directory **''/etc/tinyows/''** in modo da poterne avere più di uno. Per indicare il file di configurazione da usare bisogna impostare la variabile d'ambiente **''TINYOWS_CONFIG_FILE''**. Un metodo per impostare la variabile è quello di creare uno script shell, ad esempio **''/usr/lib/cgi-bin/tinyows-demo''** che contiene:
  
 <code bash> <code bash>
Line 28: Line 35:
 </file> </file>
  
 +Per testarne il funzionamento si può richiedere una ''GetCapabilities'':
 +
 +%%http://localhost/cgi-bin/tinyows?SERVICE=WFS&VERSION=1.1.0&REQUEST=GetCapabilities%%
 +
 +==== Debug ====
 +
 +Per avere un po' di logging da TinyOWS dovrebbe essere sufficiente aggiungere qualcosa del genere nel file di configurazione:
 +
 +<code xml>
 +<tinyows online_resource="http://127.0.0.1/cgi-bin/tinyows"
 +    schema_dir="/usr/share/tinyows/schema/"
 +    check_schema="0"
 +    log="/tmp/tows.log"
 +    log_level="1">
 +</code>
 ===== QGIS Server ===== ===== QGIS Server =====
  
Line 99: Line 121:
 ===== QGIS Web Client ===== ===== QGIS Web Client =====
  
 +  * Readme e download: [[https://github.com/qgis/qgis-web-client/]]
   * Demo: [[http://webgis.uster.ch/]]   * Demo: [[http://webgis.uster.ch/]]
   * Bugs: [[http://hub.qgis.org/projects/qgis-web-client]]   * Bugs: [[http://hub.qgis.org/projects/qgis-web-client]]
-  * Readme: [[https://github.com/qgis/qgis-web-client/blob/master/readme.txt]] 
  
 Come prelevare il codice aggiornato: Come prelevare il codice aggiornato:
Line 119: Line 141:
 var serverAndCGI = "http://www.faunalia.it/cgi-bin/qgis-ms-demo/qgis_mapserv.fcgi"; var serverAndCGI = "http://www.faunalia.it/cgi-bin/qgis-ms-demo/qgis_mapserv.fcgi";
 var epsgcode = 3003; var epsgcode = 3003;
-var overviewLayer = new OpenLayers.Layer.WMS(...); 
  
 var MapOptions = { var MapOptions = {
Line 136: Line 157:
     ...     ...
 } }
 +
 +var overviewLayer = new OpenLayers.Layer.WMS(...);
 </code> </code>
  
Line 240: Line 263:
 Nell'elenco dei layer a sinistra della pagina web, i layer vengono organizzati gerarchicamente come nel progetto QGIS (click destro su layers, //Add group//, che nel file del progetto si traduce in una sezione ''%%<qgis>%%'', ''%%<legend>%%'', ''%%<legendgroup>%%''. Nell'elenco dei layer a sinistra della pagina web, i layer vengono organizzati gerarchicamente come nel progetto QGIS (click destro su layers, //Add group//, che nel file del progetto si traduce in una sezione ''%%<qgis>%%'', ''%%<legend>%%'', ''%%<legendgroup>%%''.
  
 +===== Lizmap Web Client =====
 +
 +  * [[http://hub.qgis.org/projects/lizmapwebclient]]
 +
 +Lizmap Web Client is a complete web application dedicated to show dynamic maps created with Qgis.
 +
 +It is build with Jelix (a PHP framework), Jquery (a Javascript framework) and OpenLayers (a javascript set of tools to create and display maps in a web page).
 +
 +It uses QgisServer as the map server. Lizmap Web Client needs the Qgis projects data to be send to the server via Lizmap Plugin, a python plugin which help to configure and publish a web map from a project.
 +
 +===== PyWPS =====
 +
 +  * http://pywps.wald.intevation.org/
 +
 +==== Installazione ====
 +
 +L'installazione ufficiale (versione 3.2.1) prevede di scompattare l'archivio ed eseguire come root:
 +
 +<code>
 +python setup.py install
 +</code>
 +
 +Ma c'è un bug segnalato in questo [[http://lists.wald.intevation.org/pipermail/pywps-devel/2011-November/001243.html|messaggio]], bisogna patchare ''setup.py''.
 +
 +Vengono aggiunti questi file/directory in **''/usr/local/''**:
 +
 +<code>
 +./bin/wps.py
 +./lib/python2.6/dist-packages/pywps-3.2.1-py2.6.egg/
 +./lib/python2.6/dist-packages/easy-install.pth
 +</code>
 ===== Allestire una demo integrata ===== ===== Allestire una demo integrata =====
  
tecnica/gps_cartografia_gis/beyond_mapserver.1316081843.txt.gz · Last modified: 2011/09/15 12:17 by niccolo