Wiki » History » Version 28

Stefan Keller, 07/15/2013 02:55 PM

1 1 Anonymous
!http://a.tile.openstreetmap.org/14/8593/5747.png!
2 1 Anonymous
3 1 Anonymous
h1. OpenStreetMap-in-a-Box - Wiki
4 1 Anonymous
5 2 Anonymous
A ready-made map and geodata server including a highly configurable converter which synchronizes OpenStreetMap data (pure Java open source).  
6 1 Anonymous
 
7 1 Anonymous
Quick links:
8 1 Anonymous
* For feature requests and feedback see *>> [[Discussion]] <<*
9 22 Stefan Keller
* [[Performance improvement]]
10 21 Stefan Keller
* [[What is tested]]?
11 1 Anonymous
12 19 Stefan Keller
h2. Show cases
13 19 Stefan Keller
14 20 Stefan Keller
* *"Interactive map of Switzerland delivered by OpenStreetMap-in-a-Box":http://geometa.hsr.ch/map* 
15 19 Stefan Keller
* "WMS":http://geometa.hsr.ch/geoserver/wms?request=GetCapabilities, "WFS":http://geometa.hsr.ch/geoserver/wfs?request=GetCapabilities ("GWC/WMTS":http://geometa.hsr.ch/geoserver/gwc/service/wms?request=GetCapabilities)
16 20 Stefan Keller
* "OSM-in-a-Box 1.0 Differential Update Demo on Youtube":http://www.youtube.com/watch?v=GDTyRQrX_bQ
17 19 Stefan Keller
18 1 Anonymous
h2. About
19 3 Anonymous
20 1 Anonymous
OpenStreetMap-in-a-Box (short *OSM-in-a-Box* or osminabox) is a dedicated server software which imports semi-structured OpenStreetMap (OSM) data and stores it as geographic features (entities). In addition, it keeps its base data in sync with the original OSM hosts. It is scalable, offers well-known geographic web services and is based on proven software components. As of now this is a read-only database (see [[Discussion]]). Updates need to be fed through the usual OSM software and hosts. 
21 1 Anonymous
22 1 Anonymous
Often it’s important to have an own map server either because one needs reliable and fast webservices or because one wants to have individual map graphics (e.g. no buildings) and regionalized contents (e.g. local names). OpenStreetMap-in-a-Box (OSM-in-a-Box) delivers a software bundle which does this 'out-of-the-box' with an easy installer. Using OSM-in-a-box users get their map mashups with personalized styling which includes nice loooking background topographic maps which is something which you don't get with Google Maps & Co. Its written in Java and based on PostgreSQL/PostGIS and !GeoServer.
23 1 Anonymous
24 18 Stefan Keller
Features:
25 18 Stefan Keller
# Configures PostgreSQL/PostGIS server 
26 18 Stefan Keller
# Creates an empty database with geospatial features - keeps all attributes in hstore
27 18 Stefan Keller
# Configures GeoServer and tries to keep osm2gis-configuration consistent with GeoServer styling rules
28 18 Stefan Keller
# Loads OSM data into the database
29 18 Stefan Keller
# Incrementally updates the database
30 18 Stefan Keller
# Does nice maps (tiles and cached through GeoWebCache)
31 18 Stefan Keller
32 1 Anonymous
The OpenStreetMap-in-a-Box software consists of following parts:
33 14 Stefan Keller
* A converter (Java) called *osm2gis* which imports OSM data and stores the relevant part of it in the database (PostgreSQL/PostGIS) in a geospatial, relational database schema.
34 1 Anonymous
* A spatial information server with geographic web services (!GeoServer), like WMS, Tiling/Caching and WFS (read-only). 
35 1 Anonymous
* A web site to demonstrate the project (see showcase below).
36 1 Anonymous
37 17 Stefan Keller
h2. Similar software
38 17 Stefan Keller
39 17 Stefan Keller
...as we are aware of (as of Mai 2011) besides "osmosis":http://wiki.openstreetmap.org/wiki/Osmosis (Java, Open Source) which is the robust software directly used by OSM database. Therefore it's tied to the OSM schema (nodes, ways, relations, tags). Can create linestrings but no polygons. Can do bbox and some filtering.
40 16 Stefan Keller
41 1 Anonymous
* "osm2gis/OpenStreetMap-in-a-Box":http://wiki.openstreetmap.org/wiki/OpenStreetMap-in-a-Box (Java, Open Source) - Outputs relational geospatial entities (as opposed to OSM schema), like roads, railways, pois, buildings, etc. for regions (i.e. smaller than planet). Uses PostGIS and hstore. Can do differential update.
42 14 Stefan Keller
* "osm2pgsql":http://wiki.openstreetmap.org/wiki/Osm2pgsql (C++, Open Source) - mostly used by Mapnik renderer. Outputs a schema with osm_point, osm_line, osm_road and osm_polygon. Usage of hstore gives flexible tag access. Produces still osm_nodes, osm_ways and osm_rels which comes close to OSM schema. Does 'heavy' filtering (unless parametrized otherwise). Can do differential update.
43 24 Stefan Keller
* "Osm2postgresql":http://wiki.openstreetmap.org/wiki/Osm2postgresql (Bash, Open Source) - Sets up a PostGIS database, imports OSM data usinng osmosis (including multi-polygons with holes) and proposes a classification.
44 23 Stefan Keller
* "imposm":http://wiki.openstreetmap.org/wiki/Imposm (Python and uses C/C++ libraries like GEOS, Open Source) - Import tool similar to osm2pgsql with no diff functionality but support for custom database schemas with separate tables for each data type lie osm2gis.
45 14 Stefan Keller
* Not maintained anymore? 
46 14 Stefan Keller
** "OSM2PostGIS":http://osm2postgis.sourceforge.net/ (Java, Open Source) - a rather young project (from Finland? Schema conversion?)
47 1 Anonymous
48 14 Stefan Keller
49 1 Anonymous
h2. Current and Past Activities
50 3 Anonymous
51 1 Anonymous
Team leader: Prof. Stefan Keller, Institue for Software, Computer Science Department, "HSR Hochschule Rapperswil":http://www.hsr.ch/informatik  (Switzerland)
52 28 Stefan Keller
* Server still up and running (hopefully) - but data updates stopped end of march 2013 since node ID reached float value range! -- SK, 31. March 2013
53 28 Stefan Keller
* GIT repository updated -- SK, 15. July 2013
54 1 Anonymous
* Migration to new server; maintenance... -- SK, 15. Oct. 2010
55 1 Anonymous
56 25 Stefan Keller
h2. Articles, Press & Presentations
57 1 Anonymous
58 27 Stefan Keller
* strangeoptics-Blog about "Using OSM data in GeoServer: Part3 - GeoServer":http://strangeoptics.blogspot.de/search/label/GIS , October 14, 2011.
59 14 Stefan Keller
* Talk at GIScience Group Uni Heidelberg, December 2010 by S. Keller.
60 1 Anonymous
* Talk about "OpenStreetMap-in-a-box - A Ready-Made Highly Configurable Map Server" at "FOSS4G 2010":http://2010.foss4g.org/presentations_show.php?id=3877 Barcelona, Sep. 6th-9th by S. Keller.
61 1 Anonymous
* Vortrag "PostGIS/PostgreSQL für interaktive Karten" am "FrOSCamp 2010":http://wiki.froscamp.org/2010:Call_for_Talks#PostGIS.2FPostgreSQL_f.C3.BCr_interaktive_Karten , ETH Zürich, 17.-18. September 2010 von S. Keller.
62 1 Anonymous
63 1 Anonymous
h2. Project History
64 3 Anonymous
65 28 Stefan Keller
* OpenStreetMap-in-a-Box Version 1.1 (Server), march 2013
66 1 Anonymous
* "OpenStreetMapInABox Version 1.0 - freie Karten-Webservices" (Version Server 1.0, Mobile 0.2) - Bachelor Thesis of Andreas Meier and Joram Zimmermann, Autumn 2010 => "Bachelor Thesis' Vision":http://wiki.hsr.ch/StefanKeller/wiki.cgi?OpenStreetMapInABox2
67 1 Anonymous
* Project 2 (Version Server_0.3) - Semester Thesis of Andreas Meier and Joram Zimmermann, Fall 2009
68 1 Anonymous
* Project Teil B (Version Mobile_0.1)" - Diploma Thesis of Marco Busarello, Fall 2009 => "Diploma Thesis' Vision":http://wiki.hsr.ch/StefanKeller/wiki.cgi?OpenStreetMapInABoxTeilB => [[OpenIssues]]
69 1 Anonymous
* Project 1 (Version Server_0.2) - Bachelor Thesis from Roland Hof, Michael Huber and Fabio Renggli, Spring 2009 => "Bachelor Thesis' Vision":http://wiki.hsr.ch/StefanKeller/wiki.cgi?OpenStreetMapInABox ([[ emails]])
70 1 Anonymous
71 1 Anonymous
h2. Project Pages
72 1 Anonymous
73 1 Anonymous
* [[Discussion]] about OpenStreetMap-in-a-Box.
74 1 Anonymous
* Hardware/Deployment: [[Virtual Server Info]] ("Build Server (Intranet)":http://geometa.hsr.ch/hudson/job/OSM-in-a-box_1.0/)
75 28 Stefan Keller
* -Documentation Version 2: see source:Dokumentation/09_Installation_Usermanual-
76 28 Stefan Keller
* Documentation: see 'Download'
77 1 Anonymous
78 1 Anonymous
h2. Download/Releases/Code
79 1 Anonymous
80 28 Stefan Keller
Checkout (copy) anonymously from here:
81 28 Stefan Keller
82 28 Stefan Keller
  git clone https://git.hsr.ch/git/OSMInABox
83 28 Stefan Keller
84 28 Stefan Keller
Outdated:
85 28 Stefan Keller
* -Browse the source source: /Code/-
86 28 Stefan Keller
* -"GIT-Repository":http://dev.ifs.hsr.ch/git/OSMInABox.git-
87 28 Stefan Keller
* -"Windows": http://geometa.hsr.ch/hudson/job/OSM-in-a-box_1.0/lastSuccessfulBuild/artifact/Code/osm2gis/release/osminabox1.0_win.zip-
88 28 Stefan Keller
* -"Linux": http://geometa.hsr.ch/hudson/job/OSM-in-a-box_1.0/lastSuccessfulBuild/artifact/Code/osm2gis/release/osminabox1.0_unix.zip-
89 1 Anonymous
90 1 Anonymous
The software is released under the "New BSD License" (also known as "Modified BSD License" or "3-clause BSD license").
91 1 Anonymous
92 1 Anonymous
h2. Weblinks
93 3 Anonymous
94 1 Anonymous
* "GISpunkt HSR-Wiki":http://gis.hsr.ch/wiki/
95 1 Anonymous
* Used Technologies:
96 1 Anonymous
** "Openstreetmap":http://www.openstreetmap.org, "Openstreetmap Wiki":http://wiki.openstreetmap.org/wiki/Main_Page
97 1 Anonymous
** "Geoserver":http://geoserver.org/display/GEOS/Welcome, "GeoServer Styling/Rendering/Graphic Model Configuration/Portrayal":http://docs.geoserver.org/1.7.x/en/user/styling/
98 1 Anonymous
** "PostgreSQL/PostGIS":http://www.postgis.org
99 1 Anonymous
* Demo Videos:
100 1 Anonymous
** "OSM-in-a-Box 1.0 Differential Update Demo":http://www.youtube.com/watch?v=GDTyRQrX_bQ
101 1 Anonymous
102 1 Anonymous
h2. Notes
103 3 Anonymous
104 1 Anonymous
 * [[SQL_Statements]]