09-KML Height

KML Extrudes

KML Height

KML height output is available on GeoServer version 1.7.0 and higher

GeoServer supports setting a height template for KML output. You can use an attribute of your data to set the height of features in vector KML, allowing use of three dimensional visualizations in Google Earth.

The way height is determined is through a template. Like title and description, you can create a file called height.ftl, and save it in the same directory as the featureType in question. For example, to create a height template for the states layer, the file should be saved in <data_dir>/featureTypes/states/height.ftl

To set the height based on an attribute the syntax is as follows:

${ATTRIBUTE.value}

Replace the word ATTRIBUTE with the name of the attribute whose values you want to use to set the height of features.

For more information on setting up height templates in GeoServer, see the Height Template Tutorial.


Added by David Winslow, last edited by Justin Deoliveira on Dec 04, 2008  (view change)
View Attachments (0) Info