Tuesday, July 22, 2014

Imitating MapBox' Cloudless Atlas

Inspired by several posts which explain MapBox' marvellous Cloudless Atlas, I wanted to imitate a cloudless atlas by myself. Limited in time and computer power I had to do it much simpler of course. But using first class spatial Python libraries I could achieve quite nice results with a simple Python script.
The result: a cloudless Landsat 8 scene

Saturday, February 22, 2014

Building ZOO with Java on Ubuntu 12.04

I tried to build the ZOO WPS platform with Java support on Ubuntu 12.04 and it turned out to be not so easy. This is how I managed it with OpenJDK 7 (packages openjdk-7-jdk and openjdk-7-jre):
./configure LDFLAGS=-L/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server --with-java=/usr/lib/jvm/java-7-openjdk-amd64
For unknown reasons the configuration writes wrong JAVALDFLAGS to the Makefile, thus the Makefile needs to be altered as follows. Replace the line where the JAVALDFLAGS are defined:
JAVALDFLAGS=-L/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/client/ -ljvm -lpthread
with
JAVALDFLAGS=-L/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/ -ljvm -lpthread
then follow the normal instructions with
make

Thursday, December 19, 2013

GRASS GIS Web Map Service with Pyramid

Lately I explored the capabilities of the Python bindings in GRASS GIS. Since I'm quite familiar with Python web frameworks it was an easy task to wrap the d.mon module and create a Web Map Service based on a GRASS location.

Here I'll show how I implemented the WMS using the Pyramid framework in a single file.

Wednesday, November 28, 2012

New downloads available

I'm happy to announce additional Shapefile downloads on openstreetmap.la:
those include buildings, national parks, provincial and national boundaries for Laos and Cambodia.
Please find all files at openstreetmap.la/downloads.

Two villages close to Pakxan with buildings displayed in QGIS.
Data © OpenStreetMap contributors

Monday, November 19, 2012

Nam Ngum 2 dam three year ago

Yesterday I found by chance a picture that is exactly three years old. I took it when I flew from Phonsavan back to Vientiane and it shows the Nam Ngum 2 dam under construction.

Nam Ngum 2 dam under construction on 21. November 2009

Wednesday, November 7, 2012

Heat maps with Python

Heat maps are a quite often discussed topic on gis.stackexchange.com, probably because they are easy to understand and very appealing when showing spatial distributions of features. Working with a Python web framework, I looked for a Python way to create heat maps. Finally I came up with a script that uses OGR to read an input Shapefile and matplotlib to do the actual work.

Wednesday, May 23, 2012

Editing GPX files with Garmin extensions

During my outdoor activities I often (not to say always) carry a Garmin GPS device with me. Nowadays current Garmin devices record also heart rate, pedal cadence or even temperature and write these data into a GPX file as extensions.

After my last cycling trip I edited (like I normally do) my tracks in viking, when I realized that all the additional Garmin data are lost. I tried to find another workflow without losing the data in the GPX extensions. Finally OGR was once more my big saver. For the following workflow OGR is required at least in version 1.8.