KMLPropertySetter
Sets common properties for groups of vector and raster features destined for the OGCKML Writer.
Parameters
Navigation Tree
Name specifies the text that will be displayed in the navigation tree of a KML Viewer such as Google Earth. If the feature has a point geometry, it will also be used as the label text.
Summary specifies the text that will be displayed below the feature's name in the navigation tree of a KML Viewer such as Google Earth.
Visibility specifies whether or not the feature will be visible by default when the user first opens the dataset. If the visibility is set to No, the feature will not be displayed. However, the visibility may still be toggled in the navigation tree of a KML Viewer such as Google Earth.
Balloon
Content Type specifies the type of the feature's balloon content. If the type is Text, the contents will be XML entity-encoded when written to the KML file. If the type is HTML, the contents will not be XML entity-encoded, but preserved in such a way that the content will be displayed as valid HTML.
Content specifies the text or HTML description to be displayed in the feature's Balloon.
Include Attribute Table specifies whether or not a table of the features attributes should be included in the Balloon Content.
If the Include Attribute Table parameter is set to Yes, the value of this parameter will be used as the title of the attribute table.
If the description contains HTML content, the HTML may require additional files in order to be rendered correctly. Common examples are images, CSS stylesheets and javascript files. The Additional Files parameter may be used to specify the files which are required by the HTML in a feature. The required files should be listed in the “Source File” column. The “Path in Dataset” column may be used to specify where the file should be located within the output KML dataset. Typically, the value in the “path in Dataset” column should just be set to the same path as is given in the HTML. For example, if the HTML contains the following:
<img src=”images/pic.jpg”/>
The “Path in Dataset” cell would be set to “images/pic.jpg”. If a cell is empty, the corresponding source file will be copied into the root folder of the dataset. If an absolute path is given (e.g., /images/pic.jpg), the path will be resolved relative to the root file of the dataset. If a relative path (e.g., images/pic.jpg) is given, the path will be resolved relative to the KML file which contains the current feature.
Geometry
Geometry Type specifies the type of geometry properties to apply to the feature.
Altitude Mode specifies how KML Viewers, such as Google Earth, should interpret the z value of features with vector geometry, or the altitude setting for features with raster geometry.
The draw order determines the order in which features are displayed. Features with a higher value will be displayed over features with a lower value. This applies to overlay features and features with line geometries.
Raster Altitude specifies the altitude, in meters, at which the raster tile should be displayed. This option is not commonly required.
Raster Opacity specifies the opacity of raster tile when displayed in a KML Viewer, such as Google Earth. This value is a display directive only, and has no effect on the underlying raster geometry.
Extrude specifies whether or not to connect the geometry of vectors to the ground. KML Viewers, such as Google Earth, will not display extruded geometry unless the Altitude Mode is Absolute, Relative To Ground, or Relative to Sea Floor.
This option only applies to linear geometries, not points or polygons.
While the Altitude Mode parameter sets the behavior of the line vertices, this parameter sets the behavior of the line segments between the vertices. If Follow Terrain is set to Yes, the line segments between vertices will conform to the terrain. If Follow Terrain is set to No, the line segments will be a straight line from one vertex to the next. This will cause the line to hover above low terrain, and be buried underneath higher terrain.
KML Viewers, such as Google Earth, will not enable terrain following unless the Altitude Mode is Clamp To Ground or Clamp To Sea Floor.
Additional References
For more information regarding KML:
- See the FME OGCKML Writer chapter in the FME Readers and Writers manual (in Workbench, select Help > FME Readers and Writers Reference)
- See the documentation for KML: http://developers.google.com/kml/documentation
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
Search FME Knowledge Center
Search for samples and information about this transformer on the FME Knowledge Center.
Tags Keywords: "Google Earth" KML