Find out more about OpenStreetMap's upcoming license change (translations) (discussion)

OSM-3D

From OpenStreetMap Wiki

Jump to: navigation, search
Help
Available languages
DeutschEnglishFrançais


Prague in OSM-3D Online Viewer

The OSM-3D project aims at providing an interactive 3D view on OpenStreetMap data. It is currently maintained by the University of Heidelberg, GIScience Group. It is used as a show case to demonstrate the potential of 3D maps as well as how visualization-centric Spatial Data Infrastructures (SDI) can be set up using standardized and open interfaces. The map display goes beyond simply rendering cached tiles that are somehow distorted in order to create a perspective effect. It is based on a scene graph model that incorporates an elevation model and as many OSM features that we could process. This scene graph can be explored using the online viewer XNavigator. Preparing OSM data to be viewed in OSM-3D requires a lot of preprocessing steps which are done on GIScience's servers. The software components are currently not open source, but GIScience provides a documentation of the server interface and a Java applet with an External Authoring Interface.

Project home page: http://www.osm-3d.org


Contents

Data Availability

Spatial extent of the OSM-3D data set. On the lower part the Alps can be seen, upper left: the North Sea

As the name implies, all of the map features are imported from OSM. We tried to extract all significant features that can be incorporated into a generic all-purpose 3D map. Since OSM does not provide a landscape model, the height information was imported from another source. The elevation model is derived from SRTM (Shuttle Radar Topography Mission) data kindly provided by CGIAR. CGIAR closed many no-data voids that occured in mountaineous regions and on water surfaces using interpolation techniques. The original SRTM data set was not usable for our terrain triangulation package since it relies on homogenously distributed point. The spatial extent of available data is limited to central Europe (Germany, the Alps, parts of Italy, France, the Netherlands, Switzerland, Austria etc.). However, if hardware resources permit, we will extent the coverage. The combined OSM and SRTM data set is redistributed as Web 3D Service (W3DS). The W3DS is a 3D portrayal service is currently discussed at the Open Geospatial Consortium (OGC) as component for distributing geospatial data encoded in X3D, Collada, KML and other 3D internet standards. It is designed for providing landscape and city models as well as information layers such as POIs and labels. The W3DS for the OSM-3D project has been made available as reference implementation for the OGC standardization process. More information, a test client, and the interface documentation can be found on

http://www.w3ds.org/doku.php?id=osm-3d_w3ds

Map Features

Land coverage and traffic

All landuse, natural, vegetaion and other areas are displayed together with the Digital Elevation Model (DEM). The DEM is computed by the OSM3D DEMTileGenerator process and stored as multiple tile sets in the W3DS data base. Due to the complexity of the DEM computation, the tiles are not generated on demand, but always retrieved from the W3DS data base, which is updated periodically. The sizes of the DEM tiles correspond with the tile sizes as defined by the OSM tile cache. That is, level 0 is covering the whole world, a level 16 tile represents just a small portion of approx. 611x611 meters, which can be shown at larger scales. With each level, the tile size is divided by 2 and the number is quadrupled. Currently, level 7 through level 16 are being processed. All map features that represent physical structures of the earth surface and that can be described by a distinctive surface structure, are rendered as part of the DEM. This applies also to linear features such as the road network, paths, railways, waterways, and such. In this case, a geometrical buffer (Hausdorff distance around the lines) is applied to them in order to display them as part of the DEM. The buffer width increases with the tile size, since otherwise, these features would quickly disappear in the distance if only the "original", i.e. estimated real width would be taken.

The following table summarizes all land coverage, natural, and road features that are currently extracted from OSM and served by the W3DS. The values in the Buffer / Tile Level columns indicate whether or not the feature is selected for the specific tile level. Zero values mean that the feature is selected although no buffer is applied, since it's a polygon feature. Positive values describe the buffer width in meters (to both sides of the line, thus the actual feature width is twice this value).


Key Value Element Color Buffer / Tile Level
16 15 14 13 12 11 10 9 8 7
Natural
natural coastline Mf area.png 0 0 0 0 0 0 0 0 0 0
natural beach Mf area.png 0 0 0 0 0 0
natural cliff Mf area.png 0 0 0 0 0 0
natural wetland Mf area.png 0 0 0 0 0 0
natural marsh Mf area.png 0 0 0 0 0 0
natural mud Mf area.png 0 0 0 0 0 0
natural scree Mf area.png 0 0 0 0 0 0
natural fell Mf area.png 0 0 0 0 0 0 0 0 0 0
natural glacier Mf area.png 0 0 0 0 0 0 0 0 0 0
natural heath Mf area.png 0 0 0 0 0 0 0 0 0 0
natural scrub Mf area.png 0 0 0 0 0 0 0 0 0 0
natural water Mf area.png 0 0 0 0 0 0 0 0
natural land Mf area.png 0 0 0 0 0
Landuse
landuse allotments Mf area.png 0 0 0
landuse cemetery Mf area.png 0 0 0 0 0
landuse commercial Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse farm Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse farmland Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse farmyard Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse grass Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse greenfield Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse recreation_ground Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse vineyard Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse forest Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse industrial Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse meadow Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse quarry Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse residential Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse retail Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse village_green Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse wood Mf area.png 0 0 0 0 0 0 0 0 0 0
landuse railway Mf area.png 0 0 0 0 0 0
landuse construction Mf area.png 0 0 0 0 0
landuse landfill Mf area.png 0 0 0 0 0
landuse brownfield Mf area.png 0 0 0 0 0
Leisure
leisure park Mf area.png 0 0 0 0 0 0 0 0 0 0
leisure water_park Mf area.png 0 0 0 0
Waterway
waterway riverbank Mf area.png 0 0 0 0 0 0 0 0
waterway river Mf way.png 10 15 22,5 33,75 50,625 75,9375 113,90625 170,859375 256,2890625
waterway canal Mf way.png 15 22,5 33,75 50,625 75,9375 113,90625 170,859375
waterway stream Mf way.png 5 7,5 11,25 16,875
Place
place island Mf area.png 0 0 0 0 0 0 0
Aeroway
aeroway taxiway Mf area.png 18,5 18,5 18,5 18,5 18,5
aeroway runway Mf area.png 30 30 30 30 30 30
Highway
highway motorway Mf way.png 9,5 14,25 21,375 32,0625 48,09375 72,140625 108,2109375 162,3164063 243,4746094
highway motorway_link Mf way.png 4,025 6,0375 9,05625 13,584375 20,3765625 30,56484375
highway trunk Mf way.png 7,5 11,25 16,875 25,3125 37,96875 56,953125 85,4296875 128,1445313 192,2167969
highway trunk_link Mf way.png 4,025 6,0375 9,05625 13,584375 20,3765625 30,56484375
highway primary Mf way.png 6,4 9,6 14,4 21,6 32,4
highway primary_link Mf way.png 2,6 3,9 5,85 8,775
highway secondary Mf way.png 4 6 9 13,5
highway secondary_link Mf way.png 2,5 3,75 5,625 8,4375
highway tertiary Mf way.png 3,75 5,625 8,4375
highway unclassified Mf way.png 3 4,5
highway residential Mf way.png 3,75 5,625 8,4375
highway living_street Mf way.png 3 4,5
highway service Mf way.png 3 4,5
highway track Mf way.png 3 4,5
highway pedestrian Mf way.png 4 6
highway path Mf way.png 3 4,5
highway cycleway Mf way.png 2 3
highway footway Mf way.png 1,5 2,25
Railway
railway rail Mf way.png 3 4,5 6,75 10,125 15,1875

This table is a wiki template with a default description in English. Editable here.

Buildings

Frankfurt am Main downtown with skyscrapers

Buildings are rendered as polyherda, extruded footprints with flat roofs. The base height is interpolated from the DEM. In OSM, buildings are stored as relations, with an outer ring and 0..n inner rings for courtyards. Inner rings are processed correctly, they are displayed as holes in the polyhedron. Outer rings consisting of more than one way cannot be processed. The bottom and the top are flat. In some cases buildings on steep hillsides cause problems and parts become hanging over the ground. For this reason, walls should not be tagged as buildings. Mostly, height information is not available, so that we have to use a fixed height value, with some random deviation added. If available, the following tags can be used in order to obtain realistic heights:

Key Description Example values Notes
building:height Approximate height (Roof, not antenna or spire for skyscrapers by default) By default : meter. For use in 3D apps

Includes well-known abbreviation of a length measure

building:levels Number of stories of the building 50


The availability of one of these tags is indicated by antique white facade color in contrast to the otherwise light gray color. Please see Building_attributes for a list of recommended building attributes that could be very helpful in achieving realistic city models in the future.

Points of Interest

Points of Interest (POI) are displayed as 3D boxes with the symbol as texture and a text label. POIs are organized in the following layers:


Money

Key Value Element Rendering Key Value Element Rendering
amenity atm Mf node.png
Osm3d-atm.jpg
amenity bank Mf node.png
Osm3d-bank.jpg
amenity bureau_de_change Mf node.png

This table is a wiki template with a default description in English. Editable here.

Public Facilities

Key Value Element Rendering Key Value Element Rendering
amenity telephone Mf node.png
Osm3d-Amenity telephone.JPG
amenity toilets Mf node.png
Osm3d-Amenity toilets.JPG
amenity courthouse Mf node.png
Osm3d-Amenity courthouse.JPG
amenity police Mf node.png
Osm3d Amenity police.JPG
amenity public_building Mf node.png
Osm3d Amenity public building.JPG
amenity townhall Mf node.png
Osm3d-Amenity townhall.JPG
amenity fire_station Mf node.png amenity place_of_worship Mf node.png
Osm3d-Amenity place of worship.JPG
tourism information Mf node.png
Osm3d-Amenity information.JPG

This table is a wiki template with a default description in English. Editable here.

Health

Key Value Element Rendering Key Value Element Rendering
amenity hospital Mf node.png
Osm3d-Amenity hospital.JPG
amenity pharmacy Mf node.png
Osm3d-Amenity pharmacy.JPG

This table is a wiki template with a default description in English. Editable here.

Shop

Key Value Element Rendering Key Value Element Rendering
shop supermarket Mf node.png
Osm3d-Amenity supermarket.JPG
shop bakery Mf node.png
Osm3d-Amenity bakery.JPG
shop butcher Mf node.png
Osm3d-Amenity butcher.JPG
shop kiosk Mf node.png
Osm3d-Amenity kiosk.JPG

This table is a wiki template with a default description in English. Editable here.

Traffic

Key Value Element Rendering Key Value Element Rendering
amenity fuel Mf node.png
Osm3d-Amenity gas station.JPG
amenity parking Mf node.png
Osm3d-Amenity parking.JPG

This table is a wiki template with a default description in English. Editable here.

Eating

Key Value Element Rendering Key Value Element Rendering
amenity fast_food Mf node.png
Osm3d-fast food.jpg
amenity pub Mf node.png
Osm3d-Amenity pub.JPG
amenity restaurant Mf node.png
Osm3d-Amenity restaurant.JPG
amenity biergarten Mf node.png
Osm3d-biergarten.jpg
amenity cafe Mf node.png
Osm3d-cafe.jpg

This table is a wiki template with a default description in English. Editable here.

Enjoyment

Key Value Element Rendering Key Value Element Rendering
amenity cinema Mf node.png
Osm3d-cinema.jpg
amenity theatre Mf node.png
Osm3d-theater.jpg
amenity nightclub Mf node.png
Osm3d-Amenity nightclub.JPG

This table is a wiki template with a default description in English. Editable here.

Education

Key Value Element Rendering Key Value Element Rendering
amenity university Mf node.png
Osm3d-Amenity university.JPG
amenity school Mf node.png
Osm3d-Amenity school.JPG
amenity library Mf node.png
Osm3d-Amenity library.JPG
amenity college Mf node.png

This table is a wiki template with a default description in English. Editable here.

Public Transport

Key Value Element Rendering Key Value Element Rendering
highway bus_stop Mf node.png railway tram_stop Mf node.png
railway tram Mf node.png railway subway_entrance Mf node.png
railway station Mf node.png amenity bus_station Mf node.png
Osm3d-Amenity bus station.JPG
amenity taxi Mf node.png
Osm 3dAmenity taxi.JPG

This table is a wiki template with a default description in English. Editable here.

Post

Key Value Element Rendering Key Value Element Rendering
amenity post_box Mf node.png
Osm3d-Amenity post box.JPG


amenity post_office Mf node.png
Osm3d Amenity post office.JPG

This table is a wiki template with a default description in English. Editable here.

Accomodation

Key Value Element Rendering Key Value Element Rendering
tourism hotel Mf node.png
Osm3d-Amenity Hotel.JPG
tourism hostel Mf node.png
tourism motel Mf node.png tourism guest_house Mf node.png

This table is a wiki template with a default description in English. Editable here.

Labels

Labels (POI) are displayed as 3D text objects. Labels are organized in the following layers:


Suburb Labels

Key Value Element Rendering Key Value Element Rendering
place suburb Mf node.png
Osm3d-Place suburb.JPG
place airport Mf node.png
Osm3d-Place suburb.JPG

This table is a wiki template with a default description in English. Editable here.

Building Labels

Key Value logical operator Key Value Element Rendering
building yes or true AND name any Mf area.png

This table is a wiki template with a default description in English. Editable here.

Building Numbers

Key Value logical operator Key Value Element Rendering
building yes or true AND addr:housenumber any Mf area.png
Osm3d-housenumber.jpg

This table is a wiki template with a default description in English. Editable here.

County Labels

Key Value Element Rendering Key Value Element Rendering
place county Mf node.png
Osm3d-Place county.JPG

This table is a wiki template with a default description in English. Editable here.

Locality Labels

Key Value Element Rendering Key Value Element Rendering
place locality Mf node.png

This table is a wiki template with a default description in English. Editable here.

Village Labels

Key Value Element Rendering Key Value Element Rendering
place village Mf node.png
Osm3d-Place village.JPG
place hamlet Mf node.png
Osm3d-Place village.JPG

This table is a wiki template with a default description in English. Editable here.

Region Labels

Key Value Element Rendering Key Value Element Rendering
place region Mf node.png

This table is a wiki template with a default description in English. Editable here.

City Labels

Key Value Element Rendering Key Value Element Rendering
place city Mf node.png
Osm3d-Place city.JPG
place town Mf node.png
Osm3d-Place town.JPG

This table is a wiki template with a default description in English. Editable here.

Nature Labels

Key Value Element Rendering Key Value Element Rendering
natural peak Mf node.png
Osm3d-peak.jpg

This table is a wiki template with a default description in English. Editable here.

Street Labels

Street Labels are created from the road network and displayed as separate layer. This layer is also tiled, i.e. labels are not provided as individual features, but as collection of features of a rectangular area. The font size depends on the tile level.

Street labels


Key Value Element Font Size / Tile Level
16 15 14 13 12 11 10 9 8 7
highway motorway Mf way.png 18 33.6 62.4 115.2 211.2 384 768 1536 3072
highway trunk Mf way.png 12 24 48 96 192 384
highway primary Mf way.png 12 24 48 96 192
highway secondary Mf way.png 12 24 48 96
highway tertiary Mf way.png 12 24 48
highway residential Mf way.png 12 24
highway living_street Mf way.png 12 24
highway service Mf way.png 12 24
highway pedestrian Mf way.png 12 24
highway footway Mf way.png 12 24

This table is a wiki template with a default description in English. Editable here.


Technical Facilities

Some man-made objects can be displayed as 3D symbol since they usually share a similar shape and color.

Key Value Element Rendering Key Value Element Rendering
man_made lighthouse Mf node.png
Osm3d-lighthouse.jpg
man_made windmill Mf node.png
Osm3d-Buildings Windmill.JPG
power_source windgenerator Mf node.png
Osm3d-Buildings windgenerator.JPG

This table is a wiki template with a default description in English. Editable here.

Map Functions

Displaying and navigating through the map is not the only purpose of the OSM-3D project. Access to feature information, finding places and routes, importing your own tracks, and other interactions with the map are equally important. Most of these functions have been realized by connecting to specialized geo-services with open OGC interfaces. Using OGC services has the advantage that components can be easily replaced, for instance a third party OGC service working on local, non-OSM data can be plugged in. These services are the actual building blocks of a spatial data infrastructure. However, usually geo services provide 2D data, e.g. a geocoder will provide most likely 2D coordinates. In order to be displayed together with the virtual landscape model, the height must be obtained from an additional source. For this purpose we set up an Elevation Query Service (EQS) which interpolates height values from the DEM. The EQS contains a PostGIS database with triangulated SRTM data.

The following plugins are available in the XNavigator Webstart edition. Some must be enabled in the Panels menu:

Get Feature Info

GetFeatureInfo is an operation of the W3DS. You can click on the map and will receive a list of attributes of the selected feature.

Geocoder

Geocoder is a common component in map applications. It allows to search for places and addresses. The Reverse Geocoder receives coordinates and looks up the address in the database. Click on a building and the address will pop up.

POI Search

Looking for nearby restaurants using the POI search

Convenient function to search for POIs. All OSM POIs have been categorized, spatially indexed, and stored in a PostGIS data base. Access to this data base is enabled through an OGC Directory Service. The POI search panel ("Yellow Pages") offers a list of all available categories and sub types. Click on the map, specify a search radius, select either a category or a single feature type, and you will see all nearby POIs that match your query.

3D Routing

Mountain hike to Le Brevent in the Mont Blanc Massif, shortest route computed by the 3D route service

Routing allows to find shortest or fastest connections between two points. The 3D route service (3DRS) is a special modification of the service used in OpenRouteService. It supports several modi: fastest route for cars, shortest route for cars, routes for pedestrians, and routes for bicycles. All these modes can be used in OSM-3D. The 3DRS delivers, in contrast to the normal RS, 3D line strings in the route description, which can be easier imported and displayed together with the DEM. You can either pick two arbitrary points, or specify addresses for the start and end point.

GPX Import

If you have recorded your own GPS tracks, you can upload the GPX file and display the track in OSM-3D.

Access to Sensor Data

Sensor data can be obtained from an OGC Sensor Observation Service (SOS). The display of sensor data includes a 3D symbol representing the sensor category and a list of values which were recently recorded by the sensor. The SOS contains environmental sensor data collected from another source.

OSM-3D Client Software

The web client that is used in OSM-3D is called XNavigator. It has been mainly developed as client for the W3DS reference implementation, but it also allows access to a couple of complementary OGC services. Hence it is sometimes also referred to as "integrated client", but in the OSM-3D project its main purpose is to fly through the city and landscape models without the need to install or configure anything.

XNavigator can be used in 3 ways:

XNavigator homepage: http://koenigstuhl.geog.uni-heidelberg.de/xnaviwiki

Data Updates

Some Interesting Places

City of Rostock
The first complete city model in OSM-3D was made available for the City of Rostock. In April 2009, The Land Surveilling Office (Kataster-, Vermessungs- und Liegenschaftsamt - KVL) of Rostock donated all their building data to OSM. The building footprints have been slightly simplified and have an accuracy of <= 1m, which is sufficient for an LOD-1 (see CityGML) city model. On request of the University of Bonn, they also provided building height information which could be imported in August 2009. For more information on the data import see Rostocker Gebäudehöhen Import 2009.

Rostock-warnemuende.leuchtturm.osm-3d.jpg Rostock-3-osm-3d.jpg

Servers

OSM-3D is running on several servers installed in the Computing Center of the University of Heidelberg (URZ).

Server Function Configuration System
rax Application and database server

Proxy for internal services

CPU: 2 x Intel Xeon X5355 @ 2,66GHz

HDD: 2 x 250GB SATA 7,2k in RAID 1

RAM: 16 GB

Windows Server 2003 Enterprise x64 Edition

PostGreSQL 8.3

Java SE 6

Apache 2.2 HTTP Server

Several Apache Tomcat Servlet Containers

brocken Data processing server

Used for updates

CPU: 2 x Intel Xeon X5570 @ 2,93GHz, Hyperthreading on

HDD: 2 x 500GB SATA in RAID 0

RAM: 35 GB

Debian Squeeze

PostGreSQL 8.4

Java SE 7

zimba Database server CPU: Intel Core 2 Quad Q6700 @ 2,66GHz

HDD: 4 x 2TB SATA 5,4k. 3 of them in S/W RAID 0

RAM: 4 GB

Debian Squeeze

PostGreSQL 8.4

This table is a wiki template with a default description in English. Editable here.

Statistics

  2009.06.22: Buildings update (561.099)
  2009.05.29: Buildings update (329.162)
  2009.05.09: Buildings update (291.813)
  2009.05.06: Buildings update (281.913)
  2009.04.27: Buildings update (266.170)
  2009.04.19: Buildings update (256.839)
  2009.04.17: Buildings update (255.993)
  2009.04.16: Buildings update (254.590)
  2009.04.08: Buildings update (246.553)

As of 07/20/2010:

  Buildings: 2.378.301
  Point Objects: 5.659.070
  W3DS Database Size: 99 GB
  Processing Database Size: 306 GB
  

External links

Personal tools
Namespaces
Variants
Actions
Recent changes
Navigation
Toolbox