Google Key Markup .KML and .KMZ Export Automation Options
Since the Export Options dialog is not displayed when the program is driven from an automation script, an options string can be specified in the script. The string consists of comma-separated parameters, which specify the behavior of the various export options. A typical example would be:
"Defaults=1,RenderText=1"
This would first set all export options to their default values, then convert the text to lines.
Option |
Action |
Default |
Description |
ScalingSource |
0 = previously saved 1 = application-supplied |
1 |
Use previously saved or application-supplied scaling source. |
SaveScalingInfo |
0 = No 1 = Yes |
0 |
Save scaling parameters for later use. |
PageLLX |
N.N |
|
Set application page rectangle lower left X value. |
PageLLY |
N.N |
|
Set application page rectangle lower left Y value. |
PageURX |
N.N |
|
Set application page rectangle upper right X value. |
PageURY |
N.N |
|
Set application page rectangle upper right Y value. |
FileLLX |
N.N |
|
Set scaling rectangle lower left X value. |
FileLLY |
N.N |
|
Set scaling rectangle lower left Y value. |
FileURX |
N.N |
|
Set scaling rectangle upper right X value. |
FileURY |
N.N |
|
Set scaling rectangle upper right Y value. |
TextMode |
0 = Pins 1 = Polygons/Polylines 2 = Disable text |
0 |
If set to 0, text is exported as placemarks (pins) with text in the description. If set to 1, the text is rendered as polygons and/or polylines. If set to 2, text export is disabled. |
MarkerMode |
0 = Pins 1 = Polygons/Polylines 2 = Icon pictographs (GIF) 3 = Disable Markers |
2 |
If set to 0, markers are exported as pins. If set to 1, markers are exported as polygons and/or polylines. If set to 2, markers are exported as icon pictographs in GIF format. If set to 3, marker export is disabled. |
AreaMode |
0 = Application-supplied alpha transparency 1 = Opaque 2 = 50% transparent 3 = Disable areas |
0 |
If set to 0, polygons are exported with the application-supplied transparency. If set to 1, all polygons are exported opaque. If set to 2, all polygons are exported 50% transparent. If set to 3, polygon export is disabled. |
LineMode |
0 = Application-supplied alpha transparency 1 = Opaque 2 = Disable lines |
0 |
If set to 0, lines are exported with the application-supplied transparency. If set to 1, all lines are exported opaque. If set to 2, line export is disabled. |
LineWidthMode |
0 = Fixed width 1 = Scaled |
1 |
If set to 0, lines are exported with the same fixed width. If set to 1, lines are exported with scaling. |
LineWidthPels |
N |
2 |
Line width in Google Earth pixels, if LineWidthMode = 0 |
LineScaleInchesPerPel |
N |
0.050 |
Line scale in inches per Google Earth pixel, if LineWidthMode = 1 |
DecomposeCompoundPolygons |
0 = No 1 = Yes |
0 |
If set to 0, complex polygons are created as complex polygons. Some large polygons may appear unfilled in Google Earth with this setting. If set to 1, complex polygons are split into multiple smaller polygons. This increases the .KML or .KMZ file size. |
ZLevelAsName |
0 = No 1 = Yes |
0 |
If set to 1, the object Z level will be used for the exported object name. If set to 0, the first attribute is used for the object name. |