Dateien importieren: Unterschied zwischen den Versionen

Aus OCAD 11 Wiki - Deutsch
Zur Navigation springen Zur Suche springen
Zeile 116: Zeile 116:
* Select this option if the imported layers should be converted to OCAD symbols. This step can be done also after the import by using '''[[Map#Convert_Imported_Layers_to_Symbols|Convert Imported Layers to Symbol]]''' from the '''[[Map]]''' menu.
* Select this option if the imported layers should be converted to OCAD symbols. This step can be done also after the import by using '''[[Map#Convert_Imported_Layers_to_Symbols|Convert Imported Layers to Symbol]]''' from the '''[[Map]]''' menu.


==Import Shape Files [[File:Space.PNG]][[File:Pro40px.PNG|This function is available in OCAD 11 Professional.|link=https://www.ocad.com/en/products/ocad-for-cartography]]==
==Shape-Datei importieren [[File:Space.PNG]][[File:Pro40px.PNG|This function is available in OCAD 11 Professional.|link=https://www.ocad.com/en/products/ocad-for-cartography]]==
Get some information about '''Shape Files''' on '''[http://en.wikipedia.org/wiki/Shape_file Wikipedia]'''.
Get some information about '''Shape Files''' on '''[http://en.wikipedia.org/wiki/Shape_file Wikipedia]'''.


[[File:ImportShapeFile.PNG]]
[[File:ImportShapeFile.PNG]]


If you choose an '''ESRI Shape File''' in the '''Import''' dialog, the '''Import Shape File''' dialog appears. The import dialog offers the following options:
Wenn Sie im '''Import-Dialog''' eine Datei vom Typ '''Shape-Dateien (*.shp)''' auswählen, erscheint anschliessend der Dialog '''Shape-Datei importieren'''. Dieser enthält folgende Optionen:


'''Shape size:'''
'''Shape Grösse:'''
* This box shows the dimension of the data in the shape file using its coordinates.
* In dieser Box wird der Perimeter der Daten in der Shape-Datei angezeigt.


'''Coordinate System:'''  
'''Koordinatensystem:'''  
* This box allows you to transform the imported Shape file data to the maps coordinate system. Click the '''Choose''' button to choose the Shape file's coordinate system if it is different to the map coordinate system.
* This box allows you to transform the imported Shape file data to the maps coordinate system. Click the '''Choose''' button to choose the Shape file's coordinate system if it is different to the map coordinate system.


'''Offset:'''
'''Verschiebung:'''
* '''New offset:''' Choose this option when importing the first shape file to the actual map and if the map is not georeferenced yet. OCAD proposes reasonable easting and northing offset values. OCAD also proposes a map scale that the entire map in the shape file fits into the drawing area of OCAD.
* '''New offset:''' Choose this option when importing the first shape file to the actual map and if the map is not georeferenced yet. OCAD proposes reasonable easting and northing offset values. OCAD also proposes a map scale that the entire map in the shape file fits into the drawing area of OCAD.
* '''Existing offset and angle:''' Select this option when importing the second and the following shape file to the actual map or if the map is already georeferenced. The new shape file will then fit to the already imported shape files.
* '''Existing offset and angle:''' Select this option when importing the second and the following shape file to the actual map or if the map is already georeferenced. The new shape file will then fit to the already imported shape files.


'''Database type:'''
'''Datenbanktyp:'''
* Since OCAD 11 you can choose between the database types '''dBase''', '''Microsoft Access 2007 accdb''' and '''Microsoft Access 2003/2010 mdb'''.
* Since OCAD 11 you can choose between the database types '''dBase''', '''Microsoft Access 2007 accdb''' and '''Microsoft Access 2003/2010 mdb'''.
* If one of the Microsoft Access options is chosen then the '''code page''' can be defined. This is important to ensure a correct text conversion from dBase (Ansi) to Microsoft Access (Unicode) conversion.
* If one of the Microsoft Access options is chosen then the '''code page''' can be defined. This is important to ensure a correct text conversion from dBase (Ansi) to Microsoft Access (Unicode) conversion.


'''Key field in database:''' OCAD creates a copy of the Shape file's dBase file during the import process. OCAD can optionally add an additional key field to the copied dBase file.
'''Schlüssel-Feld in Datenbank:''' OCAD creates a copy of the Shape file's dBase file during the import process. OCAD can optionally add an additional key field to the copied dBase file.
* '''Create new key field:''' Select this option, if the dBase file does not contain a key field with a unique key for each object or if you are not sure if such a key field exists.
* '''Create new key field:''' Select this option, if the dBase file does not contain a key field with a unique key for each object or if you are not sure if such a key field exists.
* '''Use existing key field:''' Select this option, if the dBase file already contains a key field and you are sure that it contains a unique key for each object. Select the key field.
* '''Use existing key field:''' Select this option, if the dBase file already contains a key field and you are sure that it contains a unique key for each object. Select the key field.


'''Imported layer:'''  
'''Importierte Ebene:'''  
* '''Do not import any layer information:''' Select this option if no layer information should be imported. Symbols must be assigned with '''[[Database#Assign_Symbols_by_Records|Assign Symbols by Records]]''' command in '''[[Database]]''' menu. This may takes a lot of time.
* '''Do not import any layer information:''' Select this option if no layer information should be imported. Symbols must be assigned with '''[[Database#Assign_Symbols_by_Records|Assign Symbols by Records]]''' command in '''[[Database]]''' menu. This may takes a lot of time.
* '''Use layer information from field:''' Select this option if you want to import layer information (ex. lake, forest etc.) from a specified dBase field. This allows you to choose '''[[Map#Convert_Imported_Layers_to_Symbols|Convert Imported Layers to Symbol]]''' from the '''[[Map]]''' menu to assign symbols to the imported data.
* '''Use layer information from field:''' Select this option if you want to import layer information (ex. lake, forest etc.) from a specified dBase field. This allows you to choose '''[[Map#Convert_Imported_Layers_to_Symbols|Convert Imported Layers to Symbol]]''' from the '''[[Map]]''' menu to assign symbols to the imported data.

Version vom 3. Mai 2013, 16:49 Uhr

Choose this command in the File menu to import an external file to the current map. The Import dialog box is displayed. Initially all importable files are listed. The following file types can be imported:

  • OCAD map files (*.ocd)
  • Adobe Illustrator files (*.ai) (only vector data)
  • DXF files (*.dxf)
  • Enhanced Meta files (*.emf) (only vector data)
  • GPX files (*.gpx)
  • OpenStreetMap files (*.osm)
  • NMEA files (*.nmea)
  • PDF files (*.pdf) (only vector data)
  • Freehand XML files (*.rcw)
  • Shape files (*.shp)
  • SVG files (*.svg)
  • Windows Meta files (*.wmf) (only vector data)
  • xyz files (*.xyz)


hint It is possible to select and import multiple dxf, gpx, nmea, shp and xyz files in this dialog box.


Import OCAD Map Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.This function is available in OCAD 11 Starter.Diese Funktion ist verfügbar in OCAD 11 Course Setting.

Choose an OCAD-File (*.ocd) in the Import dialog box and click the open button. The Import OCAD Map dialog appears with the following options:

Position

  • Place using the mouse: Choose this option to import for example a logo. The imported map is displayed in the center of the screen and all objects are selected. Thus, you can drag it with the mouse to the desired position.
  • Place with offset: Choose this option when combining different parts of a map. Enter the offset in mm where the origin (0, 0) of the imported map should be placed.
  • Use real world coordinates: Choose this option to import a georeferenced map. The map is automatically placed at the correct position.

Symbols

  • Do not import any symbols and colors: Choose this option to not import any symbols and colors.
  • Import symbols only if symbol number does not exist yet: Choose this option to import symbols only if the symbol number does not exist yet. The symbol signature will not be compared. OCAD will not produce a new symbol if there is a symbol with an equal symbol number but a different signature. Colors will not be imported.
  • Import symbols that do not exist. If the imported symbol number exists then a new symbol number is applied: Choose this option to import symbols if they do not exist. OCAD will produce a new symbol if there is a symbol with an equal number but a different signature. The new symbol number gets the next unused decimal (e.g. 102.001 becomes 102.002). Colors will not be imported. This option accords with the data import function of OCAD 8.
  • Import symbols and colors: Choose this option to import symbols and colors completely (for example to print 2 maps with different symbol sets and color tables).
  • Change symbol status from Normal to Protect: Check this option to change to symbol status off the imported symbols from Normal to Protect. This option is recommanded for importing an ocd map into a course setting project.
  • Use CRT file: Activate this button to use a CRT converting table. This table consists of two columns, which are separated by a blank. In the first column there is the symbol number of the OCAD symbol in the map which is to be imported. In the second column there is the symbol number of the opened OCAD file. Visit the Cross Reference Table page to get more information about CRT-Files.
Example:
526.0 813.1
That means that all objects with the symbol number 526.000 will get the number 813.001 after the import.
  • Load: Click this button to load a CRT file.

hint Please note that this CRT file is not compatible with the CRT files created in Convert Layers dialog! A list of all CRT-Files which can be used with OCAD can be found on the Cross Reference Table page.
hint The error message: "Cannot import symbol" appears if OCAD could not import a symbol. The import is aborted.

Import Adobe Illustrator File Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.

Choose an Adobe Illustrator file (*.ai) in the Import dialog and click the open button. Files from Illustrator version 4 and later can be imported.
The objects from an Adobe Illustrator file are imported into OCAD as image objects. The layer names are imported with the objects. The layer name is displayed in the left part of the status bar if an image object is selected.
hint Use Convert Imported Layers to Symbol from the Map menu to convert the imported objects from image objects to symbolized OCAD objects.

Import DXF File Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.This function is available in OCAD 11 Starter.

DXF stands for Drawing Exchange Format and is a CAD data file format developed by Autodesk made for data exchange between AutoCAD and other programs (Read more in the Wikipedia Article).

Choose a DXF-File (*.dxf) in the Import dialog and click the open button. The Import DXF-File dialog appears with the following options and information:

  • DXF size: This box shows the range of the coordinates in the DXF file.
  • Offset: Choose here whether you want to change the OCAD real world coordinates or to keep the existing ones.
    • New offset: Choose this option if no real world coordinates are defined for the map. If you leave the proposed offset unchanged, the imported objects will be placed in the center of the OCAD drawing area. In addition, you can set the desired scale of the OCAD map here.
    • Existing offset and angle: Choose this option if the map already has real world coordinates and you want to fit the imported DXF file to the existing coordinates.
  • Coordinates: Define here how the coordinates of the DXF file should be interpreted.
    • GIS (1 meter/unit): Choose this option when importing DXF files from Geographic Information Systems (GIS), where 1 unit in the DXF-File corresponds to 1 meter in the real world. The map scale is used for the transformation. Choose Scale and Coordinate System from the Map menu to set the map scale.
    • Check the Import coordinates option to set automatically the real world coordinates in OCAD to those in the DXF file. Choose Scale and Coordinate System from the Map menu to switch real world coordinates on and off.
    • Other: Choose this option when importing DXF files from graphic programs. Enter the size in millimeters of one DXF unit on the map (e.g. if the DXF units are inches, enter 25.4).
  • Convert text Objects from OEM to Unicode: Activate this box if the text in the DXF file is encoded in the OEM character set. OEM character set is used by old DOS programs and concerns only accented characters (ä, à, å etc.). Windows programs normally produce text in the ANSI character set. If accented characters are not imported correctly, try this option.
  • Import INSERT as point object: Activate this option to import INSERT objects in the DXF file as point objects in OCAD. Otherwise the definition of INSERT objects is imported.
  • CRT: Click this button if you have converted a similar DXF file before using Convert layers. A file dialog box appears. Choose the CRT file created with the Convert layers command. Read more about CRT-Files on the Cross Reference Table page. You will find examples there, too.

Hint.jpg If you do not use a CRT-File for importing a DXF-File, the DXF objects are imported as Unsymbolized Objects. Use the Convert Imported Layers to Symbol function in the Map menu to assign the objects to a symbol later on.

Import EMF File Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.

Choose this function import Windows Enhanced Metafile.

This import file format is obsolete.

Import GPX File Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.

Choose the .gpx file format in the Import File dialog. Read more about importing GPX files in the GPS - Import from File article.

This function is also available for the This function is available in OCAD 11 Starter. OCAD 11 Starter and the This function is available in OCAD 11 Course Setting. OCAD 11 Course Setting Edition. For this purpose, choose the Import from File command in the GPS menu.

Import OSM Files Space.PNGThis function is available in OCAD 11 Professional.

A description of this function with an example can be found on the Import Open Street Map Files page.

Import NMEA Files Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.

Choose the .nmea file format in the Import File dialog. Read more about importing NMEA files in the GPS - Import from File article.

This function is also available for the This function is available in OCAD 11 Starter. OCAD 11 Starter Edition. For this purpose, choose the Import from File command in the GPS menu.

Import PDF Files Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.

Choose a PDF-File in the Import dialog and click the Open button. The Save Cross Reference Table dialog appears. If you want to save a CRT-File, click the Save button. If you want to continue without saving a CRT-File, click the Cancel button. Learn more about CRT-Files on the Cross Reference Table page.

The PDF-File is displayed in the middle of the current view of the map. All objects are selected, hence, it can be easily moved to the desired position.

Please note, that it is only possible to import vector PDF-Files. If the PDF-File contains raster images, they are displayed as a grey area on the map.

Hint.jpg Vector objects in PDF-Files are imported as Image Objects and can be converted to symbols using the Convert Imported Layers to Symbols function. Learn how to make a point symbol out of a vector graphic by reading the Create a Point Symbol out of Vector Data article.

Import Freehand XML Files Space.PNGThis function is available in OCAD 11 Professional.

ImportFreehandXml.PNG

Choose a Freehand XML File (*.rcw) in the Import dialog and click the open button. The Import Freehand XML dialog appears with the following options:

Font name translation:

  • Select the load font name translation table option if the Macintosh font names used in the Freehand XML file should be translated to the Windows font names. This translation is defined in a cross reference table (*.crt).
Example:
NicV-Normal;NicV
That means the font of all objects that used the NicV-Normal in Freehand will be changed to NicV after the import.
  • Load: Click this button to load a CRT file.
  • File name: The file name of the loaded CRT file is shown here.

Geo-referenceing layer:

  • Imported layer: OCAD offers a coarse georeferecing for Freehand XML files if the Freehand XML file contains a layer with coordinate values. This layer must be entered in the imported layer text box.

Convert imported layers to symbols:

  • Select this option if the imported layers should be converted to OCAD symbols. This step can be done also after the import by using Convert Imported Layers to Symbol from the Map menu.

Shape-Datei importieren Space.PNGThis function is available in OCAD 11 Professional.

Get some information about Shape Files on Wikipedia.

ImportShapeFile.PNG

Wenn Sie im Import-Dialog eine Datei vom Typ Shape-Dateien (*.shp) auswählen, erscheint anschliessend der Dialog Shape-Datei importieren. Dieser enthält folgende Optionen:

Shape Grösse:

  • In dieser Box wird der Perimeter der Daten in der Shape-Datei angezeigt.

Koordinatensystem:

  • This box allows you to transform the imported Shape file data to the maps coordinate system. Click the Choose button to choose the Shape file's coordinate system if it is different to the map coordinate system.

Verschiebung:

  • New offset: Choose this option when importing the first shape file to the actual map and if the map is not georeferenced yet. OCAD proposes reasonable easting and northing offset values. OCAD also proposes a map scale that the entire map in the shape file fits into the drawing area of OCAD.
  • Existing offset and angle: Select this option when importing the second and the following shape file to the actual map or if the map is already georeferenced. The new shape file will then fit to the already imported shape files.

Datenbanktyp:

  • Since OCAD 11 you can choose between the database types dBase, Microsoft Access 2007 accdb and Microsoft Access 2003/2010 mdb.
  • If one of the Microsoft Access options is chosen then the code page can be defined. This is important to ensure a correct text conversion from dBase (Ansi) to Microsoft Access (Unicode) conversion.

Schlüssel-Feld in Datenbank: OCAD creates a copy of the Shape file's dBase file during the import process. OCAD can optionally add an additional key field to the copied dBase file.

  • Create new key field: Select this option, if the dBase file does not contain a key field with a unique key for each object or if you are not sure if such a key field exists.
  • Use existing key field: Select this option, if the dBase file already contains a key field and you are sure that it contains a unique key for each object. Select the key field.

Importierte Ebene:

  • Do not import any layer information: Select this option if no layer information should be imported. Symbols must be assigned with Assign Symbols by Records command in Database menu. This may takes a lot of time.
  • Use layer information from field: Select this option if you want to import layer information (ex. lake, forest etc.) from a specified dBase field. This allows you to choose Convert Imported Layers to Symbol from the Map menu to assign symbols to the imported data.

Import SVG Files Space.PNGThis function is available in OCAD 11 Professional.

[SVG] stands for Scalable Vector Graphics, an XML-based file format for two-dimensional vector graphics. Choose an SVG file (*.svg) in the Import dialog and click the open button.
The objects from the SVG file are imported into OCAD as image objects. The layer names are imported with the objects. The layer name is displayed in the left part of the status bar if an image object is selected.
hint Use Convert Imported Layers to Symbol from the Map menu to convert the imported objects from image objects to symbolized OCAD objects.

Import WMF Files Space.PNGThis function is available in OCAD 11 Professional.This function is available in OCAD 11 Orienteering Standard.

Choose this function import Windows Metafile.

This import file format is obsolete.

Import XYZ Files Space.PNGThis function is available in OCAD 11 Professional.

These files contain 3d coordinate values.

hint Real world coordinates must be chose in Scale and Coordinate System dialog from the Map menu and map offset must be set that the imported points are within the drawing area.

XyzFileImportSymbol.png

Choose a point symbol that should be assigned to the imported objects. OCAD will create point objects with x/y coordinates. z values are assigned to the objects' height property. Select an object and show Object Information to see height value of the selected object.

After the import OCAD shows a summery about the imported points.

XyzFileImportSummary.png

XYZ-Datei Beispiel

579609.39 335648.46 701.00 
579609.40 335627.71 698.79 
579609.40 335659.36 702.60 
579609.40 335729.36 711.52 
579609.40 335766.15 715.91 
579609.41 335674.01 704.39

Beispiel

Das folgende Beispiel zeigt das Ergebnis einer importierten XYZ-Datei eines DTM's.

XyzFileImport.png

OCAD erzeugte für jeden Datenpunkt ein Punktobjekt mit einem Punktsymbol (schwarzer Punkt).

Converting a Layer Manually

When importing a file which is not an OCAD file, Unsymbolized Objects are created. They appear in the color specified in OCAD Preferences. When you select such an object, a layer name will appear on the left side of the Status Bar. To get a real map, the layers have to be converted to OCAD symbols.

Normally you convert layers using the Convert Imported Layers to Symbols command from the Map menu. You can also convert a layer manually:

  1. Select an imported unsymbolized object. On the left side of the Status Bar the layer name is shown.
  2. Select the corresponding OCAD symbol in the symbol box.
  3. Choose the Change Symbol (All Objects with Corresponding Symbol) function in the Object menu or in the Edit Functions Toolbar.
  4. Leave the preset values unchanged and click the OK button.



Previous Chapter: Background Map

Next Chapter: Drawing an Object

Back to the Main Page.