OpenJUMP
From OpenStreetMap
OpenJUMP is a desktop GIS application, written in Java.
Contents |
How to import OSM data
Initial instructions as given by User:JRA:
Preparations
- Install PostgreSQL and PostGIS and create a postgres user with the same name as your system username (the utility explained next connects always with the default user name)
- Get osm2pgsql
- Download OSM dump - See Planet.osm for mirrors and partial extracts
- Download OpenJUMP from http://www.openjump.org. Nightly build is recommended.
Import the data
- run osm2pgsql like this:
osm2pgsql -d osmdatabasename osmdumpname.osm
Everything will be automatic after that and the result is ready-to-use PostGIS tables '_point', '_line' and '_polygon' containing OSM data. With the Scandinavian dump this takes about 7 minutes with a 3 GHz Pentium.
Read the data into OpenJUMP
OpenJUMP has native support for PostGIS. All you need is to define the datastore, that is to give server, post, dbname etc. so that OpenJUMP knows how to connect. After that all PostGIS layers in that database are selectable. And not only that, they are queryable too. So you can tell OpenJUMP to read in line data WHERE highway='secondary' and you know what you will get :) Or from the point data WHERE shop='supermarket', and you will get the supermarkets which are never drawn in either Mapnik or Osmarender maps.

