Author Archives: admin

Creare un lanciatore sulla scrivania di Linux mintCreate a desktop launcher on Linux mint

Ecco una piccola guida per creare un lanciatore  sulla scrivania:

1. Installare il pacchetto gnome-panel usando il seguente comando da terminale:

sudo apt-get install --no-install-recommends gnome-panel

2. eseguire il seguente comando da terminale

gnome-desktop-item-edit ~/Desktop/ --create-new



(font: http://www.ubuntugeek.com/)Here a little procedure to create a desktop launcher:

1. Install gnome-panel package using the following command from your terminal

sudo apt-get install --no-install-recommends gnome-panel

Create new launcher:

2. open the terminal and run the following command

gnome-desktop-item-edit ~/Desktop/ --create-new

(font: http://www.ubuntugeek.com/)

Installing Adobe Air 2.6 on Linux Mint 13 ‘Maya’ (64 bit)

Hi all,

here you are a useful “how to” to install Adobe Air on linux mint ‘Maya’ 64 bit:

  1. Download the Adobe Air 2.6 runtime installer for Linux which can be found here.
  2. install a few things, by typing in “sudo apt-get install libhal-storage1 libgnome-keyring0 lib32nss-mdns“  <— lib32nss-mdns was the only file i didn’t have installed. It might be different for you.
  3. make sure libgnome-keyring0:i386 is installed with “sudo apt-get install libgnome-keyring0:i386
  4. link your 32bit libgnome-keyring.so.0 to your /usr/bin with this command. “sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0″
  5. make the AdobeAIRInstaller.bin executable with “sudo chmod +x AdobeAIRInstaller.bin
  6. run the installer with “sudo ./AdobeAIRInstaller.bin

This should start the installer and install it with no problems.

Thank you Chuck….

(font: http://orkultus.wordpress.com)

“Istant HTML5 geolocation” un grande ‘how to’“Istant HTML5 geolocation” a great how to……

Ciao a tutti,

Ho appena finito di leggere un bel ‘how to’ sulla “geolocalizzazione” dal titol “HTML5 Geolocation Istant how to” scritto da Ben Werdmuller

Di seguito la mia recensione:

Questo manuale, pur essendo diretto agli sviluppatori, può essere molto utile anche ad altre categorie di professionisti, compresi quelli che hanno a che fare con il mondo del GIS e quindi con il concetto di georeferenziazione. Questo libro descrive quali potrebbero essere le interazioni tra utenti e applicazioni web; personalmente sono stato in grado di capire le significative e profonde implicazioni tra i temi trattati nel manuale e le applicazioni pratiche del GIS. Anche se non sono uno sviluppatore, il grande Ben Werdmuller ha saputo guidarmi attraverso i linguaggi Java-script e php a connetterli, in modo semplice ed intuitivo, ad oggetti più vicino a me come ad esempio un file KML o GPS .

Un altro aspetto particolarmente importante è l’approccio molto chiaro ed efficace relativo al tematica della sicurezza delle informazioni personali e la tutela della loro privacy.

Come è mia abitudine, al fine di verificare l’efficacia dei processi, ho eseguito passo passo tutte le procedure operativce testando tutto il codice nel manuale; anche in questo caso ho trovato molta chiarezza di esposizione e dei contenuti esposti dall’autore. In particolare, l’autore affronta a fondo e in modo esauriente tutti gli argomenti, con la conseguenza che il lettore trova una risposta a (quasi) tutte le possibile domande; questo conferma ancora una volta la professionalità dell’autore, che è già ben noto al pubblico settore. Infine, è da sottolineare l’eccellente modello utilizzato dalla casa editrice Packt (già adottato in molte delle sue altre pubblicazioni) per organizzare e presentare i temi trattati a vantaggio di immediatezza e chiarezza, che aiuta in maniera importante il lettore nella comprensione del contenuti esposti.

il libro lo si può trovare quiHi all,

I’ve already read a great how to on “geolocation” named “Istant HTML5 geolocation how to” written by Ben Werdmuller

Below my review:

This manual, while being more directed to professional profiles web-developing oriented, can also be very helpful for other categories of professionals, including those who have to manage with the world of GIS and then of georeferencing. Reading this book you will understand which could be the interactions between users and web applications; personally, since I’m a GIS technologist, I have been able to achieve significant and deep implications among the topics treated in the manual and the practical applications of GIS. Even if he is not a developer, the great Ben Werdmuller has been able to guide me through the ​​java-script and php languages to connect them, in a simple and intuitive way, to objects closer to me such as a KML or GPS.

Another particularly important aspect carried out with a very clear and effective approach in the manual is that relating to the security of users information and the protection of their privacy.

As is my habit, in order to check the effectiveness of the procedures explained, I have played step by step all the procedures and have tested all the code in the manual; even in this case I found the clarity of exposition and the thickness of the contents exposed by the author. In particular, the author faces thoroughly and exhaustively all the topics, with the consequence that the reader finds an answer to all his questions on the matter, and this once again confirms the professionalism of the author, which is already well known to the public sector. Finally, the excellent model used by the publishing house Packt (already adopted in many of his other publications) to organize and present the topics covered must be underlined, to the advantage of immediacy and clarity that help in an important way the reader in understanding the content exposed .

you can find it here

GeoServer Beginner’s Guide (not only for novice)

Let’w talk about a new book on Geoserver: a useful manual for everyone.Here’s my review:

“Who has had the idea of entitling this book “Beginner’s guide”? This manual is much much more! Actually, besides supplying beginners with the basics of GIS and Geoserver, it can well work as an operational manual at a more specialized level. Since several years I’ve been working with this software (Geoserver) for job, and therefore I have matured a certain experience; in the book I found some information on Geoserver that previously I could obtain only through several researches in websites and thematic forum. I’ve appreciated very much the “practical” sections and the multi-choices quiz that invite the reader to think again to what he has previously read and, possibly, to read it once more.

The section on GIS basics is very important because the given notions help in understanding and fully exploiting the potential of Geoserver; I’ve enjoyed very much to successfully execute on an ubuntu-like system the detailed and precise procedure for installing Geoserver and all necessary software. Chapters 3, 4 and 5 gradually introduce the reader into the secrets of the management interface and to the way of accessing and loading spatial data. Also in this case I’ve tried to execute the described procedures by following the tips of the authors: surprise! I’ve found myself perfectly comfortable both as an “absolute beginner” and as a GIS expert. The descriptions and the observations on the “WMS reflector” functionality are very useful, since this tool helps the user to publish spatial data according to his own needs.

Also in chapter 6 the approach is very “soft”, since it introduces the reader to the basics of the largely applied OGC standard; but then, gradually, the book checks the reader’s abilities with the practical section “time for action”, sums up the notions he has just learned with “What just happened?” and finally brings him to dare with the section “Have a go hero”.

In my opinion, from chapter 7 on, topics switch to an intermediate level: implementation of simple webgis applications, configuration of geowebcache software to enhance performances, description of REST interface to automatize tasks, up to the very important topic of security are treated. Nevertheless, the confidential tone, the numerous references to examples and practical procedures, together with the concepts learned in the previous chapters, allow even the less expert reader to try to implement and manage a simple spatial data infrastructure.

Chapters 11 e 12 are really appreciable: they list and describe the basics (and not only) for tuning Geoserver and enhancing its performances in enterprise environments, and how to manage “troubleshooting” also by means of several active “mailing lists”. I’ve been impressed by finding in about 30 well organized pages all the useful references, which makes this book resemble a real, easy-to-use and complete “practical handbook” To sum up, I think that this book is suitable and complete both for those who approach Geoserver for the first time and for those who work daily with this software.”

That’s all!  Good job!

You can find more informations and buy the book  here

Installing postgis 2.x as extension on Ubuntu 12.04 LTSInstallare postgis 2.x come estensione su Ubuntu 12.04 LTS

This is the procedure that I follow to implement postgis (vers.2.0) as extension:

  1. Installation of the  postgis 2.x packages  from the Ubuntu official repository;
  2. creation of a new fresh postgreSQL database “mydb” without any postgis function;
  3. creation  of the extension with pgAdminIII:
CREATE EXTENSION "postgis";
CREATE EXTENSION "postgis_topology";
CREATE SCHEMA postgis;
ALTER DATABASE mydb SET search_path="$user", public, postgis,topology;
GRANT ALL ON SCHEMA postgis TO public;
ALTER EXTENSION postgis SET SCHEMA postgis;

Questa è la procedura che ho seguito per implementare postgis (vers.2.0) come estensione:

  1. installazione del pacchetto postgis 2.x dal repository uffciale di Ubuntu;
  2. creazione di un nuovo database postgreSQL “mydb” senza installare nessuna funzione postgis;
  3. creazione dell’estensione attraverso i seguenti comandi eseguiti con pgadminIII:
CREATE EXTENSION "postgis";
CREATE EXTENSION "postgis_topology";
CREATE SCHEMA postgis;
ALTER DATABASE mydb SET search_path="$user", public, postgis,topology;
GRANT ALL ON SCHEMA postgis TO public;
ALTER EXTENSION postgis SET SCHEMA postgis;

Postgis 2.0.0 installation from sourceInstallazione di postgis 2.0.0 da sorgenti

Here you are the procedure I follow to install postgis 2.0.0 from source:

  • compile and install  updating GEOS library  from source;
  • execute “ldconfig” command;
  • execute the command a posted here:
tar xvfz postgis-2.0.0.tar.gz
cd postgis-2.0.0
./configure --with-raster --with-topology --with-gui
make
make install
createdb yourdatabase
createlang plpgsql yourdatabase
psql -d yourdatabase -f postgis.sql
psql -d yourdatabase -f postgis_comments.sql
psql -d yourdatabase -f spatial_ref_sys.sql
psql -d yourdatabase -f rtpostgis.sql
psql -d yourdatabase -f raster_comments.sql
psql -d yourdatabase -f topology/topology.sql
psql -d yourdatabase -f doc/topology_comments.sql

SO: Ubuntu 11.10

Ho appena terminato con successo l’installazione di postgis 2.0.0 da codice sorgente scaricato da qui con la seguente procedura:

  • installazione  delle librerie GEOS aggiornate compilandole dai sorgenti scaricati da qui;
  • esecuzione del comando “ldconfig”;
  • esecuzione della procedura pubblicata qui;
tar xvfz postgis-2.0.0.tar.gz
cd postgis-2.0.0
./configure --with-raster --with-topology --with-gui
make
make install
createdb yourdatabase
createlang plpgsql yourdatabase
psql -d yourdatabase -f postgis.sql
psql -d yourdatabase -f postgis_comments.sql
psql -d yourdatabase -f spatial_ref_sys.sql
psql -d yourdatabase -f rtpostgis.sql
psql -d yourdatabase -f raster_comments.sql
psql -d yourdatabase -f topology/topology.sql
psql -d yourdatabase -f doc/topology_comments.sql

SO: Ubuntu 11.10

Installation and configuration of a geodatabase Installazione e configurazione di un database geografico

Procedure:

  1. repository and software installation:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install -y postgresql-9.0 postgresql-server-dev-9.0 postgresql-contrib-9.0 projlibgeos-3.2.2 libgeos-c1 libgeos-dev libgdal1-1.8.0 libgdal1-dev build-essential libxml2 libxml2-dev checkinstall
wget http://postgis.refractions.net/download/postgis-1.5.3.tar.gztar zxvf postgis-1.5.3.tar.gz && cd postgis-1.5.3/
sudo ./configure && sudo make && sudo checkinstall --pkgname postgis-1.5.3 --pkgversion 1.5.3-src --default

2. creation of the geodatabase template

sudo su postgrescreatedb --template template0 template_giscreatelang plpgsql template_gis
psql -U postgres -d template_gis -f /usr/share/postgresql/9.0/contrib/postgis-1.5/postgis.sql
psql -U postgres -d postgis -f /usr/share/postgresql/9.0/contrib/postgis-1.5/spatial_ref_sys.sql
psql -U postgres -d postgis -c"select postgis_lib_version();"

4. Creation of the geodatabase and optionally his admin user:

CREATE USER dbuser PASSWORD 'secret';
CREATE DATABASE dbname OWNER dbuser TEMPLATE template_gis
\connect dbname
GRANT ALL ON geometry_columns TO dbuser;
GRANT SELECT ON spatial_ref_sys TO dbuser;

SO: Ubuntu 12.04 LTS 64 bit
Fonts: (Nicolo Rigacci, Simon Tokumine)

1. Installazione software e repository:

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install -y postgresql-9.0 postgresql-server-dev-9.0 postgresql-contrib-9.0 projlibgeos-3.2.2 libgeos-c1 libgeos-dev libgdal1-1.8.0 libgdal1-dev build-essential libxml2 libxml2-dev checkinstall
wget http://postgis.refractions.net/download/postgis-1.5.3.tar.gztar zxvf postgis-1.5.3.tar.gz && cd postgis-1.5.3/
sudo ./configure && sudo make && sudo checkinstall --pkgname postgis-1.5.3 --pkgversion 1.5.3-src --default

2. creazione template Database geografico

sudo su postgrescreatedb --template template0 template_giscreatelang plpgsql template_gis
psql -U postgres -d template_gis -f /usr/share/postgresql/9.0/contrib/postgis-1.5/postgis.sql
psql -U postgres -d postgis -f /usr/share/postgresql/9.0/contrib/postgis-1.5/spatial_ref_sys.sql
psql -U postgres -d postgis -c"select postgis_lib_version();"

3. creazione_di_un_database_geografico

A partire dal template creato si crea un database geografico. Per semplicità di amministrazione si crea un utente che sarà proprietario del database:

CREATE USER dbuser PASSWORD 'secret';
CREATE DATABASE dbname OWNER dbuser TEMPLATE template_gis
\connect dbname
GRANT ALL ON geometry_columns TO dbuser;
GRANT SELECT ON spatial_ref_sys TO dbuser;

SO: Ubuntu 12.04 LTS 64 bit
Fonti: (Nicolo Rigacci, Simon Tokumine)

Installazione di spatialite 2.4 (Release Candidate 4)

Questa è la procedura seguendo le istruzioni di installazione ho personalizzato con l’aiuto di Alessandro Furieri.

  • http://www.gaia-gis.it/spatialite/
  • http://www.gaia-gis.it/spatialite-2.4.0-4/sources.html

Sistema operativo e librerie : Linux ubuntu 10.10; geos 3.2.2-CAPI 1.6.2 ; proj 4.7.1.
SPATIALITE(2.4RC4):

procedura:

Installazione da repository Ubuntu 10.10 di “spatialite-bin_2.4-RC4”

SPATIALITE-gui (1.4.0):

Procedura:

1.Tutti i sorgenti sono stati installati con la seguente sintassi:

@CFLAGS=”-I/usr/include/geotiff” ./configure \
–with-geos-include=/usr/include/geos \
–with-geos-lib=/usr/lib \
@make
@make install

2.Installazione da sorgenti di Spatial-gui-1.4.0 (spatialite_gui-1.4.0.tar.gz);

3.Installazione da sorgenti delle librerie “libgaiagraphics” (libgaiagraphics-0.4.tar.gz);

4.Installazione da repository Ubuntu 10.10 delle librerie “libcairo2-dev”;

5.Installazione dei “wxWidgets” seguendo la procedura http://wiki.wxpython.org/InstallingOnUbuntuOrDebian;