KML...

<< Click to Display Table of Contents >>

dpPower > Menu reference > File > Import >

KML...

Import KML

1.Select File > Import > KML... The window Import file opens.

2.Select the file to import.

3.Press Open.

4.Press Browse and select mapping file.

5.Specify window settings for loading the data.

6.Press Import file. A window opens.

7.When the import is complete, press Close.

 

 

Settings

Select a mapping file

Press Browse to specify a mapping file in the directory structure. Read more about mapping files under 'Further details' below.

Select character set for mapping file

Select between the standard sets UTF-8 (default), ISO-8859-1 and IBM850 to match the character encoding used in the KML file.

Warn about unmapped

Select the check box to display a warning message if the KML file contains non-mapping data in the mapping file. Unmapped data is reported at the bottom of the import log.

Background map


Select the check box if the contents of the KML file have been mapped as a background map. Imports will then be carried out much faster. The setting is saved until the next time the Import tool is opened.

To import the KML file as a background map, a (suitable) primary component must be specified in the mapping file. It is also required to work in a pessimistic changeset.

 

Example of mapping file for KML

[section name]

  style_url={value}

  geom_types={value}

  otype={value}

  subtype={value}

  ctype={value}

  state={value}

  display_flag={value}

  

  style_url:

  Optional. If configured the styleUrl of the placemark will be matched against this value.

  Matching is done case insensitive. Default is that all styleUrl's are accepted.

  Note: In the kml the styleUrl is given as "#xyz". 

  In the configuration file the hash tag should be removed, that is,

  configure this "xyz" to match.

  

  geom_types:

  Optional. Comma separated list of geometry types that will be matched 

  against the geometry type for the placemark. 

  Valid geometry types are: POINT, LINE, POLYGON. (Values are case insensitive.)

  Default is that all valid geometry types are accepted.

  

  otype:

  Mandatory. The otype of the object to be created.

  

  subtype:

  Mandatory. The subtype of the object to be created.

  

  ctype:

  Mandatory. The geomety ctype to be created.

  

  state:

  Optional. The state of the object to be created. Default is 0.

   

  display:

  Optional. The display flag of the object to be created. Default is 0.

  

  Example:

  [cables]

  style_url=line-097138-2744

  geom_types=LINE

  otype=700102

  ctype=4000

  subtype=13

 

More information

When a KML file is imported to dpPower, there must exist a so-called mapping file. A mapping is logical connections between elements in one set and elements in another set. In other words, a mapping file is a file with information about how data in a KML file should be translated into data in dpPower .

The mapping file can be created manually (in a standard text editor such as Windows Notepad).