KML Network Link Service

The KML Network Link service accepts and carries out transformation requests as specified by a工作空间, returning the results as a KML Network Link that you can use with Google Earth.

Note  "> NoteIf you install this service, you must also install the Data Streaming service.

This service can be requested using a URL or form. For example,

http:///fmekmllink//.fmw?

The resulting response is a KMZ file that contains a KML Network Link. This link's URL points to theData Streaming serviceand references the requested工作空间. No translation is performed to provide the KMZ file. The results are always as up-to-date as the update interval in Google Earth.

Note  "> NoteWhen Google Earth (or other application) is running and the KMZ file is loaded, the工作空间that generated the file runs on a repeated basis until the application is closed. The default frequency is every 60 seconds. To change, update the REFRESH_INTERVAL directive in the KML Network Link properties file. This file is located in \Utilities\tomcat\webapps\fmekmllink\WEB-INF\conf\propertiesFile.properties.

Requirements

This service works with any工作空间that writes KML and KMZ files. The following published parameters should exist in the工作空间:

  • bboxEast:边界框East
  • bboxWest:边界框West
  • bboxNorth:边界框North
  • bboxSouth:边界框South

When the KML Network Link layer is enabled, Google Earth passes the extents of its current view window to these parameters. The coordinates are in lat-long. A工作空间can use these parameters to read the source data with spatial queries.

Response Elements

If the KML Network Link service successfully processes the request, it returns a KML document enclosed in KMZ format to the client as a data stream. The KML document contains a NetworkLink element where Link/href is set to a URL. This URL invokes theFME FlowData Streaming service with the provided repository and工作空间name. For a complete reference of the KML format, refer to:https://developers.google.com/kml/documentation/

If the response format is specified as XML or JSON, a service failure response may contain the elements shown in the following table.

Element

Child Elements

Value

Description

statusInfo

message

message string

service failure message

status

成功|失败

service status

See Also