Archive for the ‘Opensource’ Category

NPE Now Covers the Isle of Man

Friday, January 5th, 2007

The
NPE Map project combines the public domain information contained within out of copywrite maps, with a nice web interface with the aim of building a Free postcode database. The project has been picked up by various people on the Geodata scene: there is a JOSM plugin that allows people to derive vectors from the data and contribute them to Openstreetmap – though I cant get it to work at the moment.

The map collection has also been put onto a WMS by GetMapping, as this demo shows:

For those interested in hacking, the WMS connection string is:

http://www.getmapping.com/iedirectimage/getmappingwms.aspx

The most recent addition to the NPE mapset has been the Isle of Man, though its not currently served by the WMS:

More free than:

INSERT_MAP()

In places like the Isle of Man where nothing that drastic changes over 50 years or so (no Motorways or dual carrigeways for example), the NPE maps can offer a way to produce independent cartogaphy very quickly and easily. Exciting times!

The Incredible Generosity of Those Nice Guys at 94043

Monday, December 11th, 2006

Gaia is a project that started off as an attempt to reverse engineer Google Earth, that has now become focused on producing an open source 3D map viewer. The course of the project has been significantly steered by Google, who objected on various grounds to the project’s use of satellite and aerial photography outside of the bounds of Google’s own clients, which restrict access, impose copyright notices and so on. So now Gaia no longer shows Google’s data, but is restricted to free libre data sources. The project’s founder posts Google Earth’s Chief Technologist, Michael Jones’ letter of complaint on his site. My personal favourite was this line:

The kindness through which Google has made the wonder of our planet
available to more than 100 million users around the world is now threatened
– not by a menacing and fierce business competitor — but by you.

Oh, the overwhelming generosity of Google! All those developers working for free and the poor shareholders – how will they feed their childern? Jones has a valid point to make, but to try and play the “Google’s out to save the world” card belittles the intelligence and awareness of a community who are just waiting for the McDonalds arches to appear on every Google Map hack out there. Jones concludes:

We are like an iPod for Earth images.
If people could get the music out to play on other platforms then the music
companies would not allow Apple access to the music in the first place. This
is the situation.

Transparency anyone?

Wednesday, November 29th, 2006

If you were generous enough to donate to OpenStreetMap’s Month of OSM, or if you’ve ever wondered what someone looks like after 12 hours of hacking, check out the Month of OSM Webcam:

Importing VMAP0 into a useful format

Saturday, November 25th, 2006

As part of my involvment with the ever expanding OpenStreetMap project, I’ve been importing VMAP0 into shapefile format, so that we can use it to render the new Mapnik powered slippy map, which gets better each day.

The first step is to get hold of the VMAP0 data, which can be downloaded from here. The format is pretty strange and requires some special tools to deal with it.

OGR2OGR can import from vmap into into a variety of formats including shapfile and postgis. But, you need to have the OGDI library installed. Next, compile the OGDI library. I had to set my TOPDIR variable to allow compiling. To do this, add this line to .bashrc:

export TOPDIR=”/usr/src/ogdi-3.1.5/”

Where /usr/src/ogdi-3.1.5/ is the path to the extracted OGDI tarball that you just downloaded.

Now configure using:

./configure –with-zlib –with-proj

make

make install

Next, rebuild GDAL to include OGDI:

./configure –with-proj –with-zlib –with-expat

So now the necessery libraries are installed and we are ready to investigate the VMAP data.
Mikel blogged about this a while ago and there is quite a bit of documentation out there that I have linked to at the bottom of this post.

Use this command to extract information about the vmap0 data:

# ogrinfo gltp:/vrf/home/nick/vmap0/dl/v0sas/vmaplv0/sasaus

GLTP is the protocol used the access the data, “vrf” is the format of the data and the rest is the absoloute path to the data. You must use an absoloute path or dissaster will ensue.

ogrinfo should produce output like this:

# ogrinfo gltp:/vrf/home/nick/vmap0/dl/v0sas/vmaplv0/sasaus
ERROR 4: OGDI Driver doesn’t support update.
Had to open data source read-only.
INFO: Open of `gltp:/vrf/home/nick/vmap0/dl/v0sas/vmaplv0/sasaus’
using driver `OGDI’ successful.
1: libref@libref(*)_line (Line String)
2: libreft@libref(*)_text (Point)
3: tileref@tileref(*)_area (Polygon)
4: tilereft@tileref(*)_text (Point)
5: polbndp@bnd(*)_point (Point)
..
..

This is a listing of the availabel data sets. Now chose the required dataset and extract it into a shapefile using something like:

# ogr2ogr v0sas-coastl.shp gltp:/vrf/home/nick/vmap0/dl/v0sas/vmaplv0/sasaus ‘coastl@bnd(*)_line’

This command will extract the data from coastl@bnd(*)_line into a shapefile called v0sas-coastl.shp.

Some useful links:

OGDI
Mikel’s post about vmap
OGR’s page about this stuff

First Post

Wednesday, May 31st, 2006

This is the blog of my development of a mobile data collection device for OpenStreetMap. At the moment, I’m studying GIS at UCL, in London.