<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ItOpen - Soluzioni WebGIS Open Source &#187; WebGis</title>
	<atom:link href="http://www.itopen.it/category/programmazione/webgis/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itopen.it</link>
	<description>[lang_en]Open Web Solutions: WebGis, Open Source development[/lang_en][lang_it]Soluzioni WebGIS e sviluppo software Open Source[lang_it]</description>
	<lastBuildDate>Tue, 27 Jul 2010 19:07:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Linux Day 2007 a Cinisello Balsamo, GIS e WebGIS</title>
		<link>http://www.itopen.it/2007/10/31/gis-and-webgis-at-linux-day-2007/</link>
		<comments>http://www.itopen.it/2007/10/31/gis-and-webgis-at-linux-day-2007/#comments</comments>
		<pubDate>Wed, 31 Oct 2007 20:12:43 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/2007/10/31/gis-and-webgis-at-linux-day-2007/</guid>
		<description><![CDATA[Buona la partecipazione e ottimo il livello dei talk al Linux day 2007 organizzato a Cinisello Balsamo. Abbiamo partecipato direttamente come associazione GFOSS per l&#8217;informatica geografica libera all&#8217;incontro sui sistemi informativi territoriali con una presentazione sulle applicazioni di web mapping e sull&#8217;interoperabilità dei servizi webgis. Potete scaricare le slide del mio intervento a questo indirizzo: [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.itopen.it/wp-content/uploads/2007/10/logo_linuxdayd07.png" alt="Logo Linux Day 2007" align="right" />Buona la partecipazione e ottimo il livello dei talk al Linux day 2007 organizzato a Cinisello Balsamo.</p>
<p>Abbiamo partecipato direttamente come associazione <a href="http://www.gfoss.it" title="Associazione GFOSS per l'informatica geografica libera">GFOSS</a> per l&#8217;informatica geografica libera all&#8217;incontro sui sistemi informativi territoriali con una  presentazione sulle applicazioni di web mapping e sull&#8217;interoperabilità dei servizi webgis.</p>
<p>Potete scaricare le slide del mio intervento a questo indirizzo:</p>
<p><a href="http://www.itopen.it/wp-content/uploads/2007/10/liux-day-2007.pdf" title="Slide linux day 2007">Slide linux day 2007</a></p>
<p><a href="http://www.itopen.it/wp-content/uploads/2007/10/hpim4558_small.png" title="Presentazione WEBGIS Parco Nord Milano al Linux day 2007"><img src="http://www.itopen.it/wp-content/uploads/2007/10/hpim4558_small.thumbnail.png" alt="Presentazione WEBGIS Parco Nord Milano al Linux day 2007" align="left" /></a>Interessantissime novità anche dal punto di vista della certificazione, da poco, grazie al lavoro di Marina Cabrini e Andrea Giacomelli nonché di diversi membri della comunità GFOSS, è possibile ottenere al certificazione GIS ECDL riconosciuta a livello europeo utilizzando solo software libero. Un altro importante traguardo è stato raggiunto!</p>
<p>Maurizio Napolitano ha presentato l&#8217;esperienza <a href="http://webvalley.itc.it/content/view/19/45/" title="Web Valley">Web Valley</a> , una iniziativa decisamente interessante di didattica basata sull&#8217;informazione geografica e sul software libero.</p>
<p>Un sincero ringraziamento a tutti i relatori, gli organizzatori e  i partecipanti di questa bella giornata.</p>
<p>Arrivederci al Linux Day 2008!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/10/31/gis-and-webgis-at-linux-day-2007/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compressione JS in p.mapper</title>
		<link>http://www.itopen.it/2007/10/23/compressione-js-in-pmapper/</link>
		<comments>http://www.itopen.it/2007/10/23/compressione-js-in-pmapper/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 16:50:20 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/2007/10/23/compressione-js-in-pmapper/</guid>
		<description><![CDATA[
Questa breve nota (disponibile solo in inglese) descrive come migliorare significativamente i tempi di caricamento di p.mapper tramite la compressione dei file JavaScript di questo ottimo client WebGIS.

]]></description>
			<content:encoded><![CDATA[<p>Articolo disponibile solo in inglese: scegliere la lingua tramite le bandierine in alto.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/10/23/compressione-js-in-pmapper/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A restful service for mapfile configuration</title>
		<link>http://www.itopen.it/2007/10/05/a-restful-service-for-mapfile-configuration/</link>
		<comments>http://www.itopen.it/2007/10/05/a-restful-service-for-mapfile-configuration/#comments</comments>
		<pubDate>Fri, 05 Oct 2007 07:15:00 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/2007/10/05/a-restful-service-for-mapfile-configuration/</guid>
		<description><![CDATA[
Questo articolo è disponibile solo in inglese (fate clic sulla bandierina in alto per visualizzare il contenuto).
]]></description>
			<content:encoded><![CDATA[<p>Recently, we&#8217;ve been actively working on a restful mapfile configuration service.</p>
<p>The advantages of such a system are those of typical webservice:</p>
<ul>
<li>fully decoupled from the GUI, the GUI could be written in any language that talks REST</li>
<li>plain text mapfiles as the storage system</li>
</ul>
<p>The service is being written in PHP and the RESTFUL part is managed with PHP Tonic library.</p>
<p>A few examples of typical URLs:</p>
<ul>
<li>GET http://www.mymaps.com/maps &#8211; retrieve a list of mapfiles</li>
<li>POST http://www.mymaps.com/maps &#8211; creates a new mapfile with the JSON data passed on post</li>
<li>GET http://www.mymaps.com/maps/my_first_map.json &#8211; retrieve the map data as JSON</li>
<li>GET http://www.mymaps.com/maps/my_first_map.xml &#8211; retrieve the map data as XML</li>
<li>GET http://www.mymaps.com/maps/my_first_map.map &#8211; retrieve the map data as plain text mapfile</li>
<li>PUT http://www.mymaps.com/maps/my_first_map.json &#8211; alter the map with JSON data</li>
<li>PUT http://www.mymaps.com/maps/my_first_map.xml &#8211; alter the map with XML data</li>
<li>GET http://www.mymaps.com/maps/my_first_map.xml/layers &#8211; retrieve the map layers as XML</li>
<li>GET http://www.mymaps.com/maps/my_first_map.xml/layers/my_first_layer &#8211; retrieve the map layer data as XML</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/10/05/a-restful-service-for-mapfile-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rilasciato MapServer 5.0</title>
		<link>http://www.itopen.it/2007/09/19/mapserver-5-0-release/</link>
		<comments>http://www.itopen.it/2007/09/19/mapserver-5-0-release/#comments</comments>
		<pubDate>Wed, 19 Sep 2007 09:34:51 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/2007/09/19/mapserver-5-0-release/</guid>
		<description><![CDATA[
MapServer 5.0 è stato rilasciato ieri. Questa nuova versione porta con sé numerose correzioni e miglioramenti, ma purtroppo anche qualche problema di compatibilità con la sintassi dei mapfile esistenti. Una delle novità più significative è il supporto a un nuovo motore di rendering che migliora notevolmente la qualità delle mappe prodotte, è basato sulla libreria AGG che permette un antialiasing ottimale con  prestazioni elevate.]]></description>
			<content:encoded><![CDATA[<h2>Una qualità di rendering senza pari</h2>
<p>Il nuovo motore di rendering AGG permette di produrre immagini con una resa grafica eccezionale e un antialiasing perfetto.</p>
<p>Le due immagini che seguono sono state generate rispettivamente da MapServer 5 e da MapServer 4:</p>
<div style="text-align:center">
<img src='http://www.itopen.it/wp-content/uploads/2007/09/mapserver_antialias.png' alt='MapServer 5 antialias' /><br />
<img src='http://www.itopen.it/wp-content/uploads/2007/09/mapserver_no_antialias.png' alt='MapServer 4 no antialias' />
</div>
<p>Per saperne di più, date un&#8217;occhiata alle <a href="http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/HISTORY.TXT">note di rilascio</a>.</p>
<p>Per una guida alla migrazione dalle precedenti versioni, fate riferimento a <a href="http://mapserver.gis.umn.edu/download/current/MIGRATION_GUIDE.TXT/view">MapServer 5.0 migration guide</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/09/19/mapserver-5-0-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back to MapStorer</title>
		<link>http://www.itopen.it/2007/08/19/back-to-mapstorer/</link>
		<comments>http://www.itopen.it/2007/08/19/back-to-mapstorer/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 17:15:56 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/2007/08/19/back-to-mapstorer/</guid>
		<description><![CDATA[Recently, after exactly one year from the beginning of my flirt with this nice mapping application, I started to code on MapStorer again.
]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.itopen.it/wp-content/uploads/2007/08/logo_neu_klein.jpg" alt="MapStorer" align="right" />This time, I&#8217;ve been asked by the original authors to implement the long awaited mapfile import function. Because of me being the mind and the arm behind the new plugin system, I was the natural choice for the import plugin writing.</p>
<p>Talking about this import plugin, it is now almost complete in its first  step, mapfile parsing, while I&#8217;m in the process of writing the persistance layer. After a few unsuccessfull tests, I decided not ot use php_mapscript for mapfile parsing, both direct import into a map object and the tokenizer had too many drawbacks, so I went for writing another regular expression parser again.</p>
<p>We discussed several times about how to make MapStorer code more maintainable, the actual code is a real mess, no structure, no patterns (not even a simple front controller), no functions!!! A maintainance nightmare. Finally, after the MDB2 DB abstraction layer I introduced a few months ago, we decided to implement an ORM (Object Relational Mapping). We decided to use PEAR&#8217;s DB_DataObject since it plays well with  other PEAR packages and it&#8217;s very well documented and maintained. After a few troubles with the differences between MySQL and PostgreSQL versions, I&#8217;ve managed to implement this ORM almost completely, as usual I wrote several unit tests for the new code: I felt in love with test-driven programming long ago and never turned back.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/08/19/back-to-mapstorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Un ponte tra KML e mapserver</title>
		<link>http://www.itopen.it/2007/07/09/un-ponte-tra-kml-e-mapserver-kml-bridge/</link>
		<comments>http://www.itopen.it/2007/07/09/un-ponte-tra-kml-e-mapserver-kml-bridge/#comments</comments>
		<pubDate>Mon, 09 Jul 2007 16:41:47 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/2007/07/09/lang_itun-ponte-tra-kml-e-mapserverlang_itlang_ena-mapserver-kml-bridgelang_en/</guid>
		<description><![CDATA[
Sono rimasto affascinato dall'utilità di vedere in 3 dimensioni lo sviluppo degli itinerari escursionistci in montagna, infatti pur disponendo della cartografia migliore, non c'è nulla come una vista a "volo d'uccello" per rendersi conto dei dislivelli e della conformazione del territorio.

]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.itopen.it/wp-content/uploads/2007/07/google_earth_kml_raster.png" title="Serving Raster from MapServer WMS in Google Earth"><img src="http://www.itopen.it/wp-content/uploads/2007/07/google_earth_kml_raster.thumbnail.png" alt="Serving Raster from MapServer WMS in Google Earth" align="right" /></a></p>
<p style="text-align: left">L&#8217;idea che mi è venuta spontaneamente è stata quella di scrivere un connettore tra il motore di MapServer che utilizzo per tutti i miei progetti WebGIS e Google Earth, il visualizzatore gratuito di mappe in 3D.</p>
<p style="text-align: left">Il formato dati usato da Google Earth (KML) non è supportato al momento da MapServer, che invece supporta lo standard OGC denominato GML.</p>
<p style="text-align: left">Sembra che il supporto al formato KML arriverà anche in MapServer, ma per ora non è dato di sapere quando e se sarà rilasciato.</p>
<p style="text-align: left">Il formato KML consente inoltre di personalizzare parecchio la presentazione del dato, sia vettoriale che raster e quindi non anche se MapServer supportasse l&#8217;output vettoriale KML direttamente, rimarrebbero da risolvere numerosi problemi (primo tra tutti come servire le immagini raster) prima di avere un prodotto veramente utilizzabile.</p>
<p><a href="http://www.itopen.it/soluzioni/kml-map-server/">Scopri i dettagli &gt;&gt;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/07/09/un-ponte-tra-kml-e-mapserver-kml-bridge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A script to build the latest mapserver webgis from sources</title>
		<link>http://www.itopen.it/2007/04/24/a-script-to-build-the-latest-mapserver-webgis-from-sources/</link>
		<comments>http://www.itopen.it/2007/04/24/a-script-to-build-the-latest-mapserver-webgis-from-sources/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 07:48:31 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/?p=92</guid>
		<description><![CDATA[This is just a small script to download, configure and build mapserver and its main dependencies from sources under Linux. This HowTo assumes a basic knowledge of bash commands and the ability to edit the scripts itself and change a few configuration parameters.]]></description>
			<content:encoded><![CDATA[<p>The goal is to have latest versions of mapserver and its main dependencies.</p>
<p>The script will build:</p>
<ul>
<li>GDAL</li>
<li>PROJ</li>
<li>GEOS</li>
<li>MAPSERVER</li>
<postgis> </postgis></ul>
<h2>How it works</h2>
<p>First, all the libraries and mapserver will be downloaded from their official websites, then tey will be uncompressed and extracted on your disk, then they will be configured, built and installed one by one.</p>
<p><strong>Important note: after copying and pasting the script from this page to your PC, you will have to change “ and ″ in &#8221; in the script.</strong></p>
<p>Note that you don&#8217;t have to run the script as root, run it as a normal user, you will be prompted for a password when needed. If your distribution doesn&#8217;t use the &#8220;sudo&#8221; system, just change all &#8220;sudo&#8221; commands in the script into &#8220;su -c &#8220;.</p>
<h2>Prerequisites</h2>
<p>Building from sources means you already have installed the compiler, its tools and the header files of all the main shared libraries (zlib etc.) and have a working toolchain for compilation from sources.</p>
<p>This was tested on Linux KUbuntu, Ubuntu server and Debian.</p>
<h2>Configuration</h2>
<p>After copying the script on the disk and making it executable, you should open it with an editor and change some configuration variables.</p>
<p>More detailed instructions are in the script comments.</p>
<h2>If something goes wrong</h2>
<p>First uncomment WGET in the code if you don&#8217;t want to download all files again, then check your paths and those configured or hardcoded in the script.</p>
<p>Chek also the parameters passed to the &#8220;configure&#8221; commands in the script, maybe you don&#8217;t need all those options.</p>
<h2>Code</h2>
<p><code lang="bash"><br />
# Where to install: usually /usr or /usr/local<br />
PREFIX=/usr</p>
<p># Directory of PHP binary libs, in my case, was /usr/lib/php5/20051025/<br />
PHPLIBDIR=/usr/lib/php5/20051025/</p>
<p># Uncomment for a debug build of gdal library<br />
#DEBUG_GDAL=1</p>
<p># Activate download (deactivate if you have still downloaded)<br />
WGET=1</p>
<p># Libraries to fetch, configure, build and install<br />
# Adjust versions according to your needs<br />
GEOS="geos-3.0.0rc4"<br />
GDAL="gdal-1.4.1"<br />
PROJ="proj-4.5.0"<br />
MAPSERVER="mapserver-4.10.1"<br />
# Uncomment if you still have postgresql installed and want<br />
# to build postgis, adjust paths in the last code block of this file<br />
#POSTGIS="postgis-1.2.1"</p>
<p>if [ $GEOS ]; then<br />
if [ $WGET = 1 &amp;&amp; ! -f "$GEOS.tar.bz2" ]; then<br />
wget http://geos.refractions.net/$GEOS.tar.bz2<br />
tar -xjf $GEOS.tar.bz2<br />
fi</p>
<p>cd $GEOS<br />
./configure --prefix=$PREFIX<br />
make clean<br />
make<br />
sudo make install</p>
<p>cd ..<br />
fi</p>
<p>if [ $GDAL ]; then<br />
if [ $WGET = 1 ]; then<br />
wget http://download.osgeo.org/gdal/$GDAL.tar.gz<br />
tar -xzf $GDAL.tar.gz<br />
fi</p>
<p>cd $GDAL<br />
if [ $DEBUG_GDAL ]; then<br />
export CFG=debug<br />
fi<br />
./configure --prefix=$PREFIX --with-mysql<br />
make clean<br />
make<br />
sudo make install<br />
cd ..<br />
fi</p>
<p>if [ $PROJ ]; then<br />
if [ $WGET = 1 ]; then<br />
wget ftp://ftp.remotesensing.org/proj/$PROJ.tar.gz<br />
tar -xzf $PROJ.tar.gz<br />
fi</p>
<p>cd $PROJ<br />
./configure --prefix=$PREFIX<br />
make clean<br />
make<br />
sudo make install<br />
sudo cp $PREFIX/include/proj_api.h $PREFIX/lib<br />
cd ..<br />
fi</p>
<p>if [ $MAPSERVER ]; then<br />
if [ $WGET = 1 ]; then<br />
wget http://cvs.gis.umn.edu/dist/$MAPSERVER.tar.gz<br />
tar -xzf $MAPSERVER.tar.gz<br />
fi</p>
<p>cd $MAPSERVER<br />
./configure \<br />
--with-wfs \<br />
--with-wfsclient \<br />
--with-wmsclient \<br />
--with-proj=$PREFIX/lib \<br />
--with-geos=$PREFIX/bin/geos-config \<br />
--with-gdal=$PREFIX/bin/gdal-config \<br />
--with-ogr=$PREFIX/bin/gdal-config \<br />
--with-php=/usr/include/php5 \<br />
--with-mygis=yes \<br />
--with-postgis \<br />
--with-httpd=/usr/sbin/apache2 \<br />
--prefix=$PREFIX<br />
make clean<br />
make<br />
sudo cp mapserv /usr/lib/cgi-bin/<br />
sudo cp shp2img $PREFIX<br />
sudo cp shptree $PREFIX<br />
sudo cp tile4ms $PREFIX<br />
sudo cp mapscript/php3/php_mapscript.so $PHPLIBDIR<br />
cd ..<br />
fi</p>
<p>if [ $POSTGIS ]; then<br />
if [ $WGET = 1 &amp;&amp; ! -f "$POSTGIS.tar.gz" ]; then<br />
wget http://www.postgis.org/download/$POSTGIS.tar.gz<br />
tar -xzf $POSTGIS.tar.gz<br />
fi</p>
<p>cd $POSTGIS<br />
./configure --prefix=$PREFIX/lib/postgresql/8.1/<br />
make clean<br />
make<br />
sudo make install<br />
cd ..<br />
fi</p>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/04/24/a-script-to-build-the-latest-mapserver-webgis-from-sources/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Il nuovo WEBGis dei sentieri del Verbano Cusio Ossola</title>
		<link>http://www.itopen.it/2007/04/20/il-nuovo-webgis-dei-sentieri-del-verbano-cusio-ossola/</link>
		<comments>http://www.itopen.it/2007/04/20/il-nuovo-webgis-dei-sentieri-del-verbano-cusio-ossola/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 08:46:30 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[Varie]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/2007/04/20/il-nuovo-webgis-dei-sentieri-del-verbano-cusio-ossola/</guid>
		<description><![CDATA[Dopo parecchi mesi di gestazione è on line il nuovo sito dei sentieri del Verbano Cusio Ossola. Abbiamo realizzato l'applicazione usando solo prodotti open source integrando la cartografia con un potente CMS.]]></description>
			<content:encoded><![CDATA[<h2>Il progetto</h2>
<p><img align="right" src='http://www.itopen.it/wp-content/thumb-vco_webgis.png' alt='VCO WebGIS' /></p>
<p>Il progetto, finanziato tramite un programma INTERREG dell&#8217;Unione Europea comprende partner Italiani e Svizzeri per quanto riguarda il cantone Ticino e Vallese.</p>
<p>La cartografia si basa sul rilievo della rete sentieristica tramite GPS e sul catasto sentieri del Club Alpino Italiano.</p>
<p>Il database contiene diverse centinaia di itinerari, escursionistici e alpinistici, centinaia di punti di interesse con le relative schede di dettaglio e un gran numero di strutture ricettive escursionistiche (rifugi e bivacchi) e non.</p>
<h2>Le tecnologie utilizzate</h2>
</p>
<p>Abbiamo realizzato il portale utilizzando il top dei prodotti open source disponibili per la pubblicazione su web della cartografia digitale:</p>
<ul>
<li>Mapserver</li>
<li>POSTGIS</li>
<li>p.mapper</li>
<li>PHP5</li>
</ul>
<h2>Il sito web</h2>
</p>
<p>Il sito è raggiungibile all&#8217;indirizzo <a href="http://www.vcoapiedi.net">www.vcoapiedi.net</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/04/20/il-nuovo-webgis-dei-sentieri-del-verbano-cusio-ossola/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Producing tiles from a GEOTIFF Raster with PHP and gdal</title>
		<link>http://www.itopen.it/2007/03/19/producing-tiles-from-a-geotiff-raster-with-php-and-gdal/</link>
		<comments>http://www.itopen.it/2007/03/19/producing-tiles-from-a-geotiff-raster-with-php-and-gdal/#comments</comments>
		<pubDate>Mon, 19 Mar 2007 13:32:15 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>

		<guid isPermaLink="false">http://www.itopen.it/?p=84</guid>
		<description><![CDATA[How to slice a big GEOTIFF raster into smaller tiles using gdal and PHP]]></description>
			<content:encoded><![CDATA[<p>
This short script convert a single GEOTIFF raster file in smaller tiles, suitable for tileindex in MapServer.
</p>
<h2>Prerequisites</h2>
<p>
The script calls external programs such as gdalinfo and gdal_translate, hence you will need a working installation of gdal library and all the utilities that come with the library.</p>
<h2>Overviews</h2>
<p>If you also want to produce overviews at a given scale, comment out the exit line and add you desired scales to the &#8220;scales&#8221; array.</p>
<p><code lang="php"><br />
if($argc != 3){<br />
    die("Usage: {$argv[0]} filename desired_square_dimension_in_map_units\n");<br />
}</p>
<p>$file_name = $argv[1];<br />
$square    = $argv[2];</p>
<p>$info = `gdalinfo $file_name`;</p>
<p>foreach(split("\n", $info) as $i){<br />
    if(strpos($i, 'Lower Left') !== false){<br />
        preg_match_all('/\d+\.\d+/', $i, $res);<br />
        $ll_x = $res[0][0];<br />
        $ll_y = $res[0][1];<br />
    }<br />
    if(strpos($i, 'Upper Right') !== false){<br />
        preg_match_all('/\d+\.\d+/', $i, $res);<br />
        $ur_x = $res[0][0];<br />
        $ur_y = $res[0][1];<br />
    }<br />
}</p>
<p>// Extent<br />
$x_ext = $ur_x - $ll_x;<br />
$y_ext = $ur_y - $ll_y;</p>
<p>// Fit square<br />
$iter_x = floor($x_ext / $square);<br />
$iter_y = floor($y_ext / $square);</p>
<p>$square_x = floor($x_ext / $iter_x);<br />
$square_y = floor($y_ext / $iter_y);</p>
<p>// Iter<br />
$iter_x = floor($x_ext / $square_x);<br />
$iter_y = floor($y_ext / $square_y);</p>
<p>$tiles_number = $iter_x * $iter_y;</p>
<p>print "Coords ($ll_x, $ll_y) - ($ur_x, $ur_y)\n";<br />
print "Ext  ($x_ext) - ($y_ext)\n";<br />
print "Producing $iter_x x $iter_y = $tiles_number tiles for $square_x x $square_y\n";</p>
<p>for($ix = 0 ; $ix < $iter_x; $ix++){<br />
    $tile_llx = $ix * $square_x + $ll_x;<br />
    $tile_urx = $tile_llx + $square_x;<br />
    for($iy = 0 ; $iy < $iter_y; $iy++){<br />
        $tile_lly = $iy * $square_y + $ll_y;<br />
        $tile_ury = $tile_lly + $square_y;<br />
        print "Tiling \t($ix, $iy)\t($tile_llx, $tile_lly) - ($tile_urx, $tile_ury) \n";<br />
        // Tile filename<br />
        //$tilename = "$tile_llx-$tile_lly-$tile_urx-$tile_ury.tif"<br />
        // Proj wants UL LR<br />
        $tilename = "$tile_llx-$tile_ury-$tile_urx-$tile_lly.tif";<br />
        `gdal_translate -of GTiff -projwin $tile_llx $tile_ury $tile_urx $tile_lly $file_name $tilename`;<br />
    }<br />
}</p>
<p>// Remove exit and define scales if you want to produce overviews at defined scales<br />
exit();</p>
<p>// Build overviews<br />
$scales = array(1000000, 500000);</p>
<p>// Conversion<br />
$dpi = 72;<br />
// Screen resolution in meters: pixel/meter of screen<br />
$dpm = 0.0254 / $dpi;</p>
<p>$scale_pix = array();<br />
foreach($scales as $s){<br />
    $scale_pix[] = $s * $dpm;<br />
}</p>
<p>//var_dump($scale_pix);<br />
$i = 0;<br />
foreach($scale_pix as $sp){<br />
    $ovfile = 'OVV-' . $scales[$i++] . '-' . floor($sp) .'.tif';<br />
    `gdalwarp -of GTiff -rc -tr  $sp $sp $file_name $ovfile`;<br />
}</p>
<p></code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/03/19/producing-tiles-from-a-geotiff-raster-with-php-and-gdal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Masptorer &#8211; P.mapper webgis plugin released</title>
		<link>http://www.itopen.it/2007/03/07/masptorer-pmapper-webgis-plugin-released/</link>
		<comments>http://www.itopen.it/2007/03/07/masptorer-pmapper-webgis-plugin-released/#comments</comments>
		<pubDate>Wed, 07 Mar 2007 09:05:28 +0000</pubDate>
		<dc:creator>Alessandro Pasotti</dc:creator>
				<category><![CDATA[Mapserver e mapscript]]></category>
		<category><![CDATA[WebGis]]></category>

		<guid isPermaLink="false">http://www.itopen.it/?p=82</guid>
		<description><![CDATA[I've commited into mapstorer svn a new plugin that allows automatic 
configuration of p.mapper webgis 2.1.1 from mapstorer maps (an independent 
installation of p.mapper 2.1.1 is required).]]></description>
			<content:encoded><![CDATA[<p>
Although the current version of .pmapper use different configuration files, it<br />
should not be too difficult to update the plugin for the current p.mapper<br />
version.</p>
<h2>Features</h2>
</p>
<p>
This plugin adds the following features:</p>
<ul>
<li>Pmapper configuration</li>
<li>Automatic reference map</li>
</ul>
<p>
This plugin handles p.mapper 2.1.1 .ini configuration file. It also adds a<br />
trigger on mapstorer export mapfile function that will keep p.mapper .ini<br />
file and mapfile in sync.
</p>
<p>
Do not forget to export the mapfile and restart p.mapper to activate the new<br />
configuration.
</p>
<p>
Configuration files for p.mapper are saved on a mapfile base: the mapfile name<br />
({MAPFILE_NAME}) is used as a base for creating configuration directory<br />
(called &#8220;project&#8221; in p.mapper slang).
</p>
<p>
The p.mapper .ini file will be saved as config_{MAPFILE_NAME}.ini and the<br />
custom js and php files are saved in config/{MAPFILE_NAME}/ directory. These<br />
directories must be writeable by the web server user.</p>
<h2>Warnings</h2>
</p>
<p>
Warning: switching off layer queryability could provoke loss of data in case<br />
you have set up a &#8220;real&#8221; template file path for the layer, in such case, the<br />
content of the TEMPLATE field will be cancelled.
</p>
<p>
Warning: enabling automatic reference map creation, will overwrite existing<br />
reference maps whenever you update map object record.
</p>
<p>
Warning: this plugin is ALPHA quality code (works for me), and is not<br />
supported.
</p>
<h2>Download</h2>
<p>Find it in the latest MapStorer SVN: <a href="http://www.mapstorer.org/">www.mapstorer.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itopen.it/2007/03/07/masptorer-pmapper-webgis-plugin-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
