span8
span4
span8
span4
kml-screenoverlaywatermark-fme20160.zip
FME KML Watermarks provide users with a simple way to brand their KML.KML ScreenOverlay allows users to have more control over the position of their ScreenOverlay images.This article will cover how to create both a Watermark and a ScreenOverlay element at a position other than 0,0.
Screen overlays are used to place icons or images onto the Google Earth canvas.In FME,there are two methods for building a ScreenOverlay element.It is possible to either (1) use the Watermark parameters of the KML Writer,or (2) to set values of the KML icon and screenXY elements for a ScreenOverlay feature in a workspace.Both methods will be demonstrated in this article.
If you are interested in learning more about the KML ScreenOverlay element,please visit theGoogle Developers KML Reference.
In FME,KML Watermarksare a simple way to create a ScreenOverlay in the lower left corner of the Google Earth view window.A Watermark is simply a KML ScreenOverlay element with a position of 0,0 (lower left corner).All watermark configuration is done in the Google KML Writer Parameters.
Watermark parameters of the Google KML Writer are set in the Navigator:
Watermark parameters in the Navigator Window
Technical Details
Under the hood,the Google Earth KML writer is creating a ScreenOverlay feature,and assigning the above values to the kml_name,kml_snippet and kml_icon format attributes.
If you want to create more elaborate overlay images of your own,you can manually create your own ScreenOverlay features.
In the KML Writer Parameters of the Navigator Window,the following parameters are set:
Watermark viewed with Google Earth
Workbench parameters provide the ability to add a screen overlay through the Watermark parameters,but it does not allow you to change the placement on the canvas,always placing the icon in the bottom left corner.There are no parameter settings within Workbench to control the positioning of a ScreenOverlay,rather it is necessary to specify a number of attributes in the workspace.To manipulate the position,you need to create a custom set of attributes for a ScreenOverlay feature type.
1.AttributeCreator creates a number of attributes and attribute values:
2.ScreenOverlay feature type creates the
ScreenOverlay viewed with Google Earth
How to use Google Earth to Georeference / Geocode KML files
KML Style Range & Display Order
Writing KML with Basic Styling
Setting KML Regions and Display Criteria
Reading KML | KML to MapInfo TAB
Using Google's Chart API to Create Charts from a CSV and Shapefile
Determining Spatial Relationships
© 2019 亚搏在线Safe Software Inc |Legal