Friday, 10 July 2015

Install GeoServer on Ubuntu 15.04 (localhost)

It's quite easy to find installation instructions for most Ubuntu versions but it's nice to check they still apply to the most recent release (15.04 at the time writing). I tested this yesterday and it still works for me. My thanks to Hongru Hou (link at the end of the article for full details).

Install Apache2 (if not installed):-
 
sudo apt-get install apache2  

sudo apt-get update

Test Apache2 web server is working:-

sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart


Install Java 7 using the 'Webupd8team' repository:-

sudo add-apt-repository ppa:webupd8team/java

then:-

sudo apt-get install oracle-java7-installer
 

(takes about 10 minutes to download)

Install Tomcat7 (because it is GeoServer Web archive this replaces the missing Java Servlet of this edition)
 
sudo apt-get install tomcat7


then in order for tomcat7 to find JDK we need to open and amend one line:-

sudo vi /etc/default/tomcat7 

JAVA_HOME=/usr/lib/jvm/java-7-oracle

restart tomcat7:-

sudo /etc/init.d/tomcat7 restart

Download GeoServer 2.4.0 archive from:-

http://sourceforge.net/projects/geoserver/files/GeoServer/2.4.0/geoserver-2.4.0-war.zip/download

Extract the .war file somewhere convenient then:-

gksudo nautilus  (password required)

and manually copy/paste the .war file into:-

/var/lib/tomcat7/webapps/

then restart apache2 again:-

/etc/init.d/apache2 restart

Now you should get your GeoServer login page:-

http://localhost:8080/geoserver
















with some nice demo data included to get you started.













My thanks to Hongru Hou for his original blog:-
http://hongru.hou.io/blog/2013/01/07/How-to-install-GeoServer-on-Ubuntu-12.04/

Thursday, 9 July 2015

Landsat 8 getting data the easy way

My thanks to Gregor Maclennan on the PPGIS forum for this link. I've been using Earth Explorer for years but this is simple, clean and no nonsense.

http://libra.developmentseed.org/


Wednesday, 8 July 2015

European Space Agency - Sentinel-2A/2B and the Copernicus Programme

Briefly

The Sentinel-2 mission comprises ‘twin polar-orbiting’ satellites in the same orbit phased at 180 degrees to each other. The purpose of the mission is to detect variabilities in land surface conditions with a high revisit of 10 days with one satellite (2A), (5 days with two constellation)(2B). The coverage limits are between latitudes 56 degrees south and 84 degrees north.

Sentinel-2 will sample 13 spectral bands including 4 bands at 10m spatial resolution, these are B2 (490nm), B3 (560nm), B4 (665nm) and B8 (842nm), 6 bands at 20m spatial resolution, these are B5 (705nm), B6 (740nm), B7 (783nm), B8a (865nm), B11 (1610nm), B12 (2190nm) and finally 3 bands at 60m spatial resolution, these are B1 (443nm), B9 (945nm) and B10 (1375nm). 

These twin satellites will provide continuity of SPOT and LANDSAT type images for applications which include Land Management, Agriculture, Forestry, Disaster Control, Humanitarian Relief Operations, Risk Mapping and Security Operations in support of the ‘Copernicus’ Programme.

The products are available to users in SENTINEL-SAFE format, including images in georeferenced GML/ JPEG2000 format, quality indicators (defective pixels mask) and auxiliary data (XML/GIPPs) and metadata (XML). Images are available between 3 and 24 hours after sensing via online access.

Where Sentinel-2 fits in with other missions

The narrow width of the spectral bands limit the influences of water vapour which heavily contaminated the Landsat (NIR) band (760-900nm) range not sensitive enough to soil iron oxide content.
I will hopefully get the chance to obtain some of the data for South Wales in the UK and experiment with the bands using Grass 7. I will provide further feedback and a tutorial.

More importantly the data is free and the supporting software included is Open Source.
More information is available:-

Friday, 22 May 2015

How to install Postgresql-9.3.5/9.4 and PostGIS-2.1 on Ubuntu 15.04 in six easy steps.

Install Ubuntu 15.04 (Vivid Vervet)


1. check your Ubuntu version:-

lsb_release -a

Install Postgresql


2. On the server or your PC (Terminal):-

sudo apt-get update
sudo apt-get install -y postgresql postgresql-contrib

Create a database and a user for access


Replace DATABASE_NAME_HERE and USER_NAME_HERE with the values you want to use.
# this will prompt you for a database password...also note the capital letter 'O' not number '0' (zero) below:-

3. sudo -u postgres createuser -P USER_NAME_HERE
sudo -u postgres createdb -O USER_NAME_HERE DATABASE_NAME_HERE

Test Connection to Postgresql


4. psql -h localhost -U USER_NAME_HERE DATABASE_NAME_HERE

Postgresql will ask you for your password. Then you should see the following:

psql (9.3.5)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type "help" for help.

DATABASE_NAME_HERE=>

To exit type:-

\q

To add PostGIS-2.1 support to the database


5. sudo apt-get install -y postgis postgresql-9.4-postgis-2.1
# typing 'postgresql-9.3' instead of postgresql-9.4 above will fail.

sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" DATABASE_NAME_HERE

6. Finally... install PgAdmin3 and set your 'service' connections

My thanks to Jon Saints for his original post dated from 13th August 2014 (for Ubuntu 14.04)
http://www.saintsjd.com/2014/08/13/howto-install-postgis-on-ubuntu-trusty.html
http://www.github.com/saintsjd
http://facebook.com/saintsjd

Saturday, 31 January 2015

Google Earth Pro is (according to slashgeo) about to be free.

'Slashgeo.org' have just posted a new entry siting the following:-

"The Google Earth Blog (independent from Google) found out that Google Earth Pro is now free, it was formerly $400 per year.

There hasn’t been an official announcement yet, but as pointed out by a GEB reader, “the Google Earth licence support page for languages other than English states that from January 20th, 2015 the licence is free.” 

The GEB languages other than English list some features available in the Pro version not available in the Free version: “Although many of the extra features found in Google Earth Pro will only be useful to GIS users, a few features that our readers have expressed interest in using are: the built in movie maker, area and perimeter measurements and the ability to turn off terrain completely.” 

You’ll find more details about what the Pro version has to offer on the Google Earth Pro official webpage. Wikipedia lists GIS data importation and advanced printing modules part of its features".