ET GeoWizards Scripting
ExportToGoogle
(See
important information here)
Converts a feature class to a Google Earth KML or KMZ file.
Syntax
Dim ET As New ETGW_Core
variable = ET.ExportToGoogle(pInFeatureClass, sOutFile, sKMLDescription, sLabelField
,sDescField, dTransparency, _
sZSource, sZField, dZFixed, sZUnits,sZType, bExtrude, sAttrib , dMarkerSize , dLineWidth
, _
dInfoSize , bLabels, sPointSymbol, sInfoSymbol , sMessage)
The ExportToGoogle method syntax has the following object qualifier and arguments:
| Part | Description |
|---|---|
| variable | A Boolean |
| pInFeatureClass | Required. An IFeatureClass object |
| sOutFile | Required. A String - the full name of the output Google Earth file. The extension (KML or KMZ) is required and will define whether the result will be compressed (KMZ) or not (KML). |
| sKMLDescription | Required. A String that will be used for a general description of the KML file. An empty string can be passed. |
| sLabelField | Required. A String representing a field name. The values in this field will be used for naming the Google Earth features. An empty string can be passed. |
| sDescField | Required. A String representing a field name. The values in this field will be used for description of the Google Earth features. An empty string can be passed. In some cases if the attributes are exported is better to send an empty string. Read the general Google Earth notes. |
| dTransparency | Required. A Double indicating the transparency to be used. 0 = Opaque, 100 = invisible |
| sZSource | Required.
A String indicating what will be the source for the elevation values.
Valid strings:
|
| sZField | Required. A String representing a field name (numeric field). If the sZSource = "FIELD", the values in this field will be used to get the Z values. |
| dZFixed | Required. A Double representing the Z values for all features if sZSource = "CONSTANT" |
| sZUnits | Required. A String indicating the units of the Z values of the input dataset. Valid strings - "Meters" and "Feet". If any other string is used "METERS" will be used. |
| sZType | Required.
A String indicating how the Z values will be interpreted. Valid strings:
|
| bExtrude | Required. A Boolean indicating whether to connect the geometry to the ground. |
| sAttrib | Required.
A String that indicates whether and how the attributes will be exported.
Valid strings:
|
| dMarkerSize | Required. A Double indicating the size of the Icon for the point features. Actually this is a scale factor for the Google Earth markers - values of 0.5 to 1.5 will give good results. |
| dLineWidth | Required. A Double representing the width of the Polyline features and outline width for Polygon features |
| dInfoSize | Required. A Double indicating the size of the Icon for the Info-Points. Actually this is a scale factor for the Google Earth markers - values of 0.5 to 1.5 will give good results. |
| bLabels | Required. A Boolean indicating whether the Info-Points will be exported |
| sPointSymbol | Required.
A String indicating which of the available Google Earth symbols will be
used for point features. The available symbols are:
|
| sInfoSymbol | Required. A String indicating which of the available Google Earth symbols will be used for displaying Info-Points. The available symbols are above. |
| sMessage | Optional. In a case of failure - description of the cause. If the functions completes with success an empty string will be returned. |