Structure Description Content Example

OGC 07-147r2 Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved. 47 schemaUrl=schema-id -- same resource --

9.5 kml:SimpleData

9.5.1 Structure

kml:SimpleData name=string [1] string kml:SimpleData

9.5.2 Description

Encodes an instance of a user-defined field defined by a referenced kml:SimpleField . The value of kml:SimpleData shall be of the data type defined by the referenced kml:SimpleField . The required name attribute shall be used to identify the kml:SimpleField by name. The identified kml:SimpleField shall be declared within the kml:Schema element that is referenced from the kml:SchemaURL attribute.

9.5.3 Content

Type: xsd:string Default Value: none

9.5.4 Attributes

9.5.4.1 name

9.5.4.1.1 Description

Name acting as an identifier.

9.5.4.1.2 Content

Type: xsd:string Default Value: none

9.5.5 Example

Here is an example of encoding two user-defined data elements: OGC 07-147r2 48 Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved. kml xmlns=http:earth.google.comkml2.2 Document nameExtendedData+SchemaDataname open1open -- Create a balloon template referring to the user-defined type -- Style id=trailhead-balloon-template BalloonStyle text [CDATA[ h2My favorite trailsh2 brbr The [TrailHeadTypeTrailHeadNamedisplayName] is i[TrailHeadTypeTrailHeadName]i. The trail is [TrailHeadTypeTrailLength] miles.br The climb is [TrailHeadTypeElevationGain] meters.brbr ]] text BalloonStyle Style -- Declare the type TrailHeadType with 3 fields -- Schema name=TrailHeadType id=TrailHeadTypeId SimpleField type=string name=TrailHeadName displayName[CDATA[bTrail Head Nameb]]displayName SimpleField SimpleField type=double name=TrailLength displayName[CDATA[iThe length in milesi]]displayName SimpleField SimpleField type=int name=ElevationGain displayName[CDATA[ichange in altitudei]]displayName SimpleField Schema OGC 07-147r2 Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved. 49 -- Instantiate some Placemarks extended with TrailHeadType fields -- Placemark nameEasy trailname styleUrltrailhead-balloon-templatestyleUrl ExtendedData SchemaData schemaUrl=TrailHeadTypeId SimpleData name=TrailHeadNamePi in the skySimpleData SimpleData name=TrailLength3.14159SimpleData SimpleData name=ElevationGain10SimpleData SchemaData ExtendedData Point coordinates-122.000,37.002coordinates Point Placemark Placemark nameDifficult trailname styleUrltrailhead-balloon-templatestyleUrl ExtendedData SchemaData schemaUrl=TrailHeadTypeId SimpleData name=TrailHeadNameMount EverestSimpleData SimpleData name=TrailLength347.45SimpleData SimpleData name=ElevationGain10000SimpleData SchemaData ExtendedData Point coordinates-121.998,37.0078coordinates Point Placemark Document kml 9.6 kml:AbstractContainerGroup 9.6.1 Structure kml:AbstractContainerGroup id=ID [0..1] targetId=NCName [0..1] kml:AbstractObjectGroupSimpleExtensionGroup ... kml:AbstractObjectGroupSimpleExtensionGroup [0..] kml:name ... kml:name [0..1] kml:visibility ... kml:visibility [0..1] kml:open ... kml:open [0..1] atom:author ... atom:author [0..1] atom:link ... atom:link [0..1] kml:address ... kml:address [0..1] xal:AddressDetails ... xal:AddressDetails [0..1] kml:phoneNumber ... kml:phoneNumber [0..1] kml:snippet ... kml:snippet [0..1] kml:description ... kml:description [0..1] kml:AbstractViewGroup ... kml:AbstractViewGroup [0..1] kml:AbstractTimePrimitiveGroup ... kml:AbstractTimePrimitiveGroup [0..1] kml:styleUrl ... kml:styleUrl [0..1] kml:AbstractStyleSelectorGroup ... kml:AbstractStyleSelectorGroup [0..] kml:Region ... kml:Region [0..1] kml:ExtendedData ... kml:ExtendedData [0..1] OGC 07-147r2 50 Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved. kml:AbstractFeatureSimpleExtensionGroup ... kml:AbstractFeatureSimpleExtensionGroup [0..] kml:AbstractFeatureObjectExtensionGroup ... kml:AbstractFeatureObjectExtensionGroup [0..] kml:AbstractContainerSimpleExtensionGroup ... kml:AbstractContainerSimpleExtensionGroup [0..] kml:AbstractContainerObjectExtensionGroup ... kml:AbstractContainerObjectExtensionGroup [0..] kml:AbstractContainerGroup

9.6.2 Description