KMLViewSetter
Sets the view-related KML attributes for a group of features destined for the OGCKML Writer. Creation of LookAt or Camera views are supported.
Parameters
Location
These parameters specify a location associated with the View Type parameter.
Specifies how KML Viewers, such as Google Earth, should interpret the altitude value.
View
If the View Type is LookAt, this location is the focal point of the view (where the view is looking at). In most cases, this is the view type you will choose. If you determine, for whatever reason, that it is too limiting, you can set the view type to Camera.
If the View Type is Camera, this location is the location of the camera (where the view is looking from).
Heading specifies the rotation, in degrees, of the view around the Z axis, relative to North.
Tilt specifies the rotation, in degrees, of the view around the X axis. A value of 0 indicates that the view is aimed straight down, and a value of 90 indicates that the view is aimed toward the horizon.
Values greater than 90 only apply if the View Type is Camera, and indicate that the view is pointed towards the sky.
Roll specifies the rotation, in degrees, of the view around the Z axis, after the Heading and Tilt rotations have been applied. This value only applies to Camera views, and is generally not necessary.
Range specifies the distance, in meters, that the view location is viewed from. This value only applies to LookAt view types.
Time
The parameters in the Time section allow the view to be active at a specific point or period of time.
This parameter determines the type of KML time primitive that will be created. Possible options include Timestamp and Time Period. Select ‘None’ if you don’t wish to associate a time with the view.
This parameter specifies the value of the timestamp if the time type is Timestamp. The value can either be in the FME DateTime format, or the XML Schema time format.
This parameter specifies the beginning of the time period if TimePeriod is the selected time type. The value can either be in the FME DateTime format, or the XML Schema time format.
This parameter specifies the optional end of the time period if TimePeriod is the selected time type. The value can either be in the FME DateTime format, or the XML Schema time format.
Example
These transformer parameters are configured for a LookAt view type.
This is the resulting view of the selected area.
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 KML documentation: http://developers.google.com/kml/documentation/cameras
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 Community
Search for samples and information about this transformer on the FME Community.
Keywords: "Google Earth" KML