FME Version
Files
-
- 400 KB
- Download
Introduction
This article is a part of the outputs of the article OGC Compliant Formats with FME which outlines the compliant OGC formats FME supports.
Examples
2D KML Features
Creating 2D OGC KML outputs in FME is very straightforward. Simple load in your data then use a variety of FME’s KML transformers to style your features before using FME’s OGC KML Writer to output the features.
If any issues arise, refer to the ogckml22.xsd to ensure that the output document satisfies all KML 2.2 schema constraints.
3D KML Features
FME’s OGC KML Writer also supports 3D KML features. This workspace adds elevation values to 2D building footprints using the 3DForcer to extrude building outlines then customizes features using the KMLPropertySetter finally creating a 3D KML output.
Pro Tip!
Section ATC-112 and ATC-113 of the OGC KML 2.2 encoding document from the OGC outlines details about geometry extrusion and tessellation. In essence, these two elements should be mutually exclusive to each other. Also take note that Section ATC-202 outlines that the 3D features should not have “clampToGround” defined as the altitudeMode element. The following shows an example of an OGC compliant 3D feature examined in a text editor.
The KMLPropertySetter allows you to customize these necessary elements for OGC compliance. Note that Geometry Tessellation can be toggled using the “Follow Terrain” parameter.
Comments
0 comments
Please sign in to leave a comment.