Importing Data from OSM
"OpenStreetMap is a project aimed squarely at creating and providing free geographic data such as street maps to anyone who wants them." -- openstreetmap.orgOSM is an XML-based format to describe vector data used in a cartographic map. It defines three basic types to describe all the elements of such a map:
- Nodes The dots that are used for drawing segments between.
- Ways An ordered list of nodes, displayed as connected by line segments in the editor.
- Closed Ways Closed ways are ways which go in a complete loop. They are used to describe areas like buildings, parks, lakes or islands.
Import SettingsThe import dialog consists of several options, as shown below. As usual, presets can be saved and applied.
FilePress to open a dialog to select a .osm file to import.
Element ListingLists the layers and OSM ways contained in the selected OSM file. Select the element you want to import.
OSM files may contain a large number of layers, of which the "highway" layer is usually the most interesting to create street networks in the CityEngine.
You may select multiple OSM layers per import session. Then, all ways which are converted into graph segments will be merged into one graph layer. If you would like to generate several graph layers out of one OSM file, please repeat the process accordingly.
Select / deselect all
Selects / deselects all layers.
The following settings are only of interest when importing graph networks.
Map OSM tags to street widthsIf enabled, street and sidewalk widths are mapped from tags contained in the osm file. See below.
Run Generate Bridges Tool after ImportIf enabled, the Generate Bridges Tool is executed on a following wizard page.
Run Simplify Graph Tool after ImportIf enabled, the Simplify Graph Tool is executed on a following wizard page.
Run Graph Cleanup Tool after ImportDepending on the OSM data it may be necessary to cleanup the graph segments after import. If enabled, the graph cleanup tool is executed on a following wizard page.
Create Street/Intersection Shapes from GraphIf enabled, the shape creation parameter of the graph nodes and segments will be enabled and street shapes are created.
Create Block/Lot Shapes from GraphIf enabled, the shape creation parameter of potentially created street blocks will be enabled and shapes are created.
OSM Tag MappingIf Map OSM tags to street widths is checked, the created layer will contain the following layer attribute code: By default, an example function code maps common osm tags to street and sidewalk widths. The function code is copied into the newly created street layer, and the street and sidewalk width parameters of the imported street segments are correctly mapped.
The function code can be edited after import in the inspector when selecting the street layer.
Advanced users can edit the default mapping code by changing the cga code in the file osm.ceattr, located in /ce.lib/rules/.
Copyright ©2008-2018 Esri R&D Center Zurich. All rights reserved.