Sunday, May 24, 2026

Village names in southern Laos

Following a discussion about an old changeset on OpenStreetMap, I’m posting a few photos here that I took during mapping trips. All pictures are taken back in Oct 2011.

Overview map with geotagged pictures: 

Sunday, December 18, 2022

Unzip Processing Algorithm for QGIS

 While there is the handy QGIS processing algorithm Download file, often publicly availabe (geo-)data are compressed in a ZIP archive. That's why I've started to develop a "Unzip Archive" processing algorithm for use in the QGIS processing toolbox. Thanks to the already available class QgsZipUtils it was not that difficult.

Monday, December 13, 2021

Updates in 2021

Apart from updating and rerun the scripts for the cloudless atlas, unfortunately no updates ... :(

Tuesday, December 22, 2020

Cloudless Atlas Laos 2020

To track down new hydro power reservoir and schemes I've downloaded most 2020 Landsat 8 scenes of northern Laos and applied my cloudless script.

Cloudless Atlas Laos 2020
Northern Laos


Friday, December 20, 2019

The Nam Ngiep Hydropower Scheme

Just recently I continued mapping the Nam Ngiep hydropower scheme, see also my previous post about Nam Ngiep 1.

So far my findings:




Nam Ngiep1

Friday, December 7, 2018

Yet Another Hydropower Dam: Nam Ngiep 1

Meanwhile Nam Ngiep 1 dam has been completed and the reservoir has been filled during rainy season in 2018. I.e., it's high time to put in on the map!
Nam Ngiep 1 reservoir area in January 2018

Wednesday, November 1, 2017

New hydropower dam: Nam Phay

Just recently I've put the Nam Phay hydropower reservoir on the map!

During Lao New Year 2014 I had the chance to visite this area, see pictures below:
The Nam Phay reservoir area in Januar 2015


Saturday, November 26, 2016

Another Hydropower dam: Xekaman 1

Just recently I've found by chance the Xekaman 1 hydropower reservoir on Landsat 8 imagery. Time to put it on the map!

The Xekaman river area recorded on 24th January 2015, just before water storage started

Sunday, November 29, 2015

Raster math in GRASS GIS using numpy

Houay Lamphan Gnai, yet another hydropower plant just started commercial operations recently with a reservoir area of seven square kilometers as reported by local media. Time to put it on OpenStreetMap using up-to-date Landsat 8 imagery and the new GRASS GIS 7 plugin for QGIS 2.12. To get familiar with GRASS GIS' interface to numpy, I've decided to extract the reservoir using numpy.

Houay Lamphan Gnai on Landsat 8 image
Houay Lamphan Gnai on Landsat 8 image taken on the 23rd Oct, 2015

Thursday, August 14, 2014

Web Map Service with PyCairo and Pyramid

From time to time I have the chance to work with PyCairo, the Python bindings to the cairo graphic library. I appreciate this library because it allows to draw graphics primitives so super fast and thus it is very suitable to use it in web projects.
After my trials with GRASS GIS as WMS backend I thought I could create a raster web map service with improved performance by using PyCairo instead of GRASS GIS as renderer.

Zoom in - it is a super fast WMS!

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.

Wednesday, April 18, 2012

Native SLD support in QGIS

The current Quantum GIS master (i.e. the latest development version) supports now loading and saving of Styled Layer Descriptor (SLD) styles in the layer properties dialog.

The QGIS API has been extended by the new methods saveSldStyle and loadSldStyle in QgsMapLayer and writeSld and loadSld in QgsVectorLayer. Currently these methods are not yet available in the Python API, but it is simple to add them in the corresponding SIP files.

Wednesday, April 4, 2012

Line extraction with GRASS GIS

This post presents another way how to use Landsat imagery to map features for OpenStreetMap in an easy way with free and open source software only. After remapping the Nam Ngum 1, Nam Leuk reservoir and other lakes using a similar approach, I wanted to improve the Nam Ngum river. The second largest river in Laos and an important tributary to the Mekong was in OpenStreetMap only mapped as a single line instead of an area, although it's more than hundred metre wide downstream of the Nam Ngum 1 reservoir.

Sunday, February 19, 2012

Armchair mapping using GRASS GIS

After reading my previous post a friend asked me why I didn't use just GRASS GIS. That's really a valid question. Since the GDAL/OGR utilities are some of my daily tools, I'm more familiar with them than with GRASS. Out of interest I developed a workflow how to extract and vectorize waterbodies from Landsat images using (almost solely) GRASS GIS. The resulting features I wanted to upload to OpenStreetMap.
This time the Nam Ngum 1 hydro power reservoir in Laos was my test area. Like Nam Leuk last time it was only roughly digitized and some of its islands needed to be remapped.