Setting KML Document Attributes

From fmepedia

The KML writer implicitly creates a Document element for each KML dataset. Some of the dataset advanced settings in Workbench, such as "Document Name", and "Document Description" are sufficient for many users. However, sometimes its nice to take full control over all aspects of the output document.

Its also very easy to do with the KML writer:

  1. Use a creator to create a feature
  2. Use a AttributeCreator to set the format attributes you're interested in.
  3. Do not add a kml_id or kml_document attribute. This only works for document features with no document/id
  4. Create a "Document" destination feature type, and send it the results of the AttributeCreator

That's it.

Example

Workspace: override_doc_attr.fmw

Result: override_doc_attr.kml

Attached Files
filesizedate
document.php------
index.php------
override_doc_attr.fmw38.3 kB03/17/08
override_doc_attr.kml<1kB03/17/08
php------
User Comments Add a new comment