Import Open Street Map Files

From OCAD Wiki - English
Jump to navigation Jump to search

This function is available in OCAD Mapping Solution.This function is available in OCAD Orienteering.This function is available in OCAD Starter.

Hint.jpg Note: Open Street Map Files can directly be imported with the New Map Wizard, which works more efficient as the workaround described on this page.

  1. Open
  2. Look for the desired area.
  3. Choose the Export command from the menu.
  4. Choose the Area for Export.
  5. Select the OpenStreetmap-XML-data option as format.
  6. Click the Export button.
  7. Create a New Map and use the OpenStreetMap 10 000.ocd symbol set in the Topographic, city or leisure map category.
  8. Choose the Import command in the File menu and select the just downloaded map.osm' file.
  9. If the map is not saved yet, OCAD asks you to Save As the map.
  10. If the Coordinate System is not set yet, OCAD asks you to choose a correct coordinate system and zone.
    Osm CoordinateSystem.PNG
  11. Click the OK button to continue.
  12. The Import OpenStreetMap XML dialog appears. You have to load a CRT-File now. Learn more about CRT-Files on the Cross Reference Table page. The osm2ocad.ocdCrt file is used by default and fits with the chosen symbol set. If you uncheck the Convert Imported Layers to Symbols box, the OSM data is imported as Unsymbolized Objects. Otherwise, a symbol is allocated to each OSM object, which is that, what you normally want.
    Osm ImportOSMXml.PNG
  13. Click the OK button to continue
  14. The Map offset dialog appears. It is possible to change the coordinate system once again in this dialog. In addition, you can enter a new offset. OCAD proposes an offset which fits best to the OSM data. Choose the Existing offset and angle option if you do not want to change the offset.
    Osm MapOffset.PNG
  15. Click the OK button to continue.
  16. The Save Cross Reference Table dialog appears. This can take several seconds.
  17. Browse a location for the new Cross Reference Table and click the Save button.
  18. OCAD imports all OpenStreetMap objects now.

CRT File

The corresponding Cross Reference Table to this function in the OCAD directory looks as follows:

 1001.0 way_highway_motorway
 1001.1 way_highway_motorway_tunnel_yes
 1002.0 way_highway_motorway_link
 1002.1 way_highway_motorway_link_tunnel_yes
 1003.0 way_highway_trunk

In the first column, the symbol numbers of the Open Street Map symbol set are listed. In the second column, the name of the corresponding Open Street Map object can be found.

At the end of the importing process you have to save another CRT-File. This is the same CRT-File as the loaded one but, in addition, the layer names of objects, which the standard symbol set does not provide, are added with a symbol number 0.0. You can add these symbols to the symbol set and enter the number directly in the CRT-File with a normal Text Editor (e.g. Microsoft Notepad). Then use the Convert Imported Layers to Symbols function to symbolize the Unsymbolized Objects.

hint - OCAD will convert directly the layers to symbols during the import when the check box Convert Imported Layers to Symbols is checked.

- Choose the Convert Imported Layers to Symbols function in the Map menu to load the *.ocdCrt file and convert the layers to symbols later on.

Back to the Import Files page.