Import Open Street Map Files: Difference between revisions

From OCAD 12 Wiki - English
Jump to navigation Jump to search
(Created page with "# Open http://www.openstreetmap.org/ # Search desired area. # Choose '''Export''' from the menu. # Select '''OpenStreetmap-XML-data''' as format. # Choose '''Area for Export'''. ...")
 
No edit summary
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:Pro40px.PNG|This function is available in OCAD Professional.|link=https://www.ocad.com/en/products/ocad-for-cartography]][[File:Std40px.PNG|This function is available in OCAD Orienteering.|link=https://www.ocad.com/en/products/ocad-for-orienteering]][[File:Sta40px.PNG|This function is available in OCAD Starter.|link=https://www.ocad.com/en/products/ocad-for-orienteering]]
# Open http://www.openstreetmap.org/
# Open http://www.openstreetmap.org/
# Search desired area.
# Look for the desired area.
# Choose '''Export''' from the menu.
# Choose the '''Export''' command from the menu.
# Select '''OpenStreetmap-XML-data''' as format.
# Choose the '''Area for Export'''.
# Choose '''Area for Export'''.
# Select the '''OpenStreetmap-XML-data''' option as format.
# Click '''Export'''.
# Click the '''Export''' button.
#: [[File:OsmExport.png]]
# '''[[Create a New Map]]''' and use the '''OpenStreetMap 10 000.ocd''' symbol set in the '''Topographic, city or leisure map''' category.
# Choose the '''[[Import Files|Import]]''' command in the '''[[File]]''' menu and select the just downloaded '''map.osm'''' file.
# If the map is not saved yet, OCAD asks you to '''[[File#Save As|Save As]]''' the map.
# If the '''[[Create a New Map#Set Scale and Coordinate System|Coordinate System]]''' is not set yet, OCAD asks you to choose a correct coordinate system and zone.
#: [[File:osm_CoordinateSystem.PNG]]
# Click the '''OK''' button to continue.
# 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.crt''' 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.
#: [[File:osm_ImportOSMXml.PNG]]
# Click the '''OK''' button to continue
# 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.
#: [[File:osm_MapOffset.PNG]]
# Click the '''OK''' button to continue.
# The '''Save Cross Reference Table''' dialog appears. This can take several seconds.
# Browse a location for the new '''[[Cross Reference Table]]''' and click the '''Save''' button.
# OCAD imports all OpenStreetMap objects now.


[[File:osm_export.PNG]]
==CRT File==
The corresponding '''[[Cross Reference Table]]''' to this function in the OCAD directory looks as follows:


# Open '''OpenStreetMap 10000.ocd''' from '''New File''' dialog box.
  1001.0 way_highway_motorway
# '''Import''' map.osm from download folder.
  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
  .
  .
  .


[[File:osm_CoordinateSystem.PNG]]
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.  


# Choose correct coordinate system and zone
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.
# Click '''OK'''
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 '''[[Map#Convert Imported Layers to Symbols|Convert Imported Layers to Symbols]]''' function to symbolize the '''[[Unsymbolized Objects]]'''.


[[File:osm_ImportOSMXml.PNG]]
[[File:Hint.jpg|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 '''[[Map#Convert Imported Layers to Symbols|Convert Imported Layers to Symbols]]''' function in the '''[[Map]]''' menu to load the *.crt file and convert the layers to symbols later on.


# Load a other crt file and klick '''OK'''
----
 
Back to the '''[[Import Files]]''' page.
[[File:osm_MapOffset.PNG]]
 
# Enter desired settings and click '''OK'''
# Save Cross Reference Table

Latest revision as of 08:11, 19 April 2017

This function is available in OCAD Professional.This function is available in OCAD Orienteering.This function is available in OCAD Starter.

  1. Open http://www.openstreetmap.org/
  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.
    OsmExport.png
  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.crt 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 *.crt file and convert the layers to symbols later on.

Back to the Import Files page.