Tag: GIS

Adding Geoserver’s extensions to OpenGeo Suite in production

OpenGeo Suite is smoothly installed in Ubuntu Server as documented here below, except for the database component because each web application is deployed into a Tomcat container. Such deployment is performed by copying the necessary applications installed with the suite to the webapps directory of Tomcat usually located at the following path /var/lib/tomcat6/webapps/. Specifically they are located in these directories while the installation is performed:

Component Web Archive Path
GeoServer geoserver.war /usr/share/opengeo-geoserver/
Dashboard dashboard.war /usr/share/opengeo-suite/
GeoWebCache geowebcache.war /usr/share/opengeo-suite/
GeoEditor geoeditor.war /usr/share/opengeo-suite/
GeoExplorer geoexplorer.war /usr/share/opengeo-suite/
Recipes recipes.war /usr/share/opengeo-suite/

Tips: If you want to check if the web archives installed are those deployed into Tomcat, execute the md5sum command on each file

First of all, you have to check the Geoserver’s version currently installed by loading its default page available at http://localhost/geoserver. The extension to be downloaded has to correspond accordingly to the above-checked version.

Create a temporary directory in the user home:

For example you want to install the new data stores listed below by grabbing:

MySQL Data Store:

SQL Server Data Store:

Before performing all operations to take over the current installed Geoserver WAR with a more library extension, it is necessary to execute a backup of this version:

Then you can export the original web archive to a temporary directory:

Now it’s time to endorse the library directory with these new extensions:

At the end of this activity it is necessary to generate the new Web Archive as follows:

Then copy this new geoserver deployment into Tomcat:

Restart Tomcat and load GeoServer application again. A screen showing a new vector data store for SQL Server will be displayed!

Read more

OpenGeo Suite Linux Server Installation

In this post we want to explain how OpenGeo Suite can be easily and rapidly installed in a linux box. We assume to work on Linux but the same can be applied to Windows servers or Mac OS X machines equipped with a specific package.
However, given that we worked with several linux installations and that such installations are the most proper choice for the management in production environment, we now describe how it is easy to install it through an APT-GET repository.
Hereafter is our Ubuntu target server description [as VMware virtual machine on ESXi infrastructure]:

Server Value
OS Ubuntu 10.04 Linux 32-bit
Virtual Memory 2 GB
Virtual CPU 1

Run the following command shell as sudo.

First of all, import OpenGeo GPG key by executing:

Tip: Since sometime an error associated with “apt-key” command is displayed, check if some distro treats pipe differently and retype “sudo” or alternatively split that up.

Add the APT repository for OpenGeo Suite:

Update APT:

Execute a search for packages available:

Tip: The search has to return at least one result otherwise the repository hasn’t been added correctly.

Make OpenGeo Suite package (opengeo-suite) installed:

Post installation

Once the installation process is ended you can display the applications provided by the suite through an Apache Web Server.
To do this, enable a proxy into Apache. First of all, create a suitable configuration for it:

Then add a proxy-pass configuration for the local Tomcat container by setting:

Alternatively, use the script at this location here.

Finally, restart Apache by executing:

Read more

POAT MiBAC – Ministry of Cultural Heritage

Network governance for heritage policies


General design of the project was finalised in order to reach a common definition as well as to develop agreements on regional scale in terms of worth and benefit for the cultural heritage.
The first step achieved an analytical study based on a catalog, rules and methods in order to define a landscape geographical context. Areas of interest for this application model had to be those constrained by regulations: coastal bands and mountains.

The previous step ended with the definition of certain thematic layer related to the identified areas.
We were engaged with the second step to meet the requirement of an effective WebGIS able to provide best practices useful to render thematic maps based on sustainable resources such as Open Source software. A further requisite was the need to merge these layers with the existing ones provided by an unknown GIS infrastructure of the relevant SITAP website. Then we discovered it was based on MapServer.

The last requirement was particularly unbalanced compared to the possibility to create an integration and to the wish to realize a new GIS platform compatible with OGC in terms of services offered.
The reasonable choice for us was to deploy the OpenGeo Suite in the Debian Linux box (virtualized) provided by MiBAC as described in our installation and configuration procedures here.

This approach basically covers the requirements in order to pick up layers from heterogeneous sources, however it allows more flexibility and interoperability with reference to new data stores to be added. Indeed, just a few clicks are required to come up with new stuff or remove those no longer suitable for future purposes. As a result, we just added three new GeoServer datastores:

  • Connections to institutional services distributing several national cartographic layers available through OGC OWS (i.e. PCN Portal, Civil Protection SDI, IGM Portal)
  • OGC WMS available from SITAP whose capabilities URL is http://sitap.beniculturali.it/cgi-bin/sitap/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities
  • Shapefiles resulting from the previous analysis step

  • The selected layers were loaded as basic layers together with Bing imagery into GeoExplorer and exported to a WebGIS application embedded as iFrame into the CMS as follows at this link.

    Here below the final resulting mapping application:

    Read more