Overview Building-1: Using kml:Data

6 Copyright © 2014 Open Geospatial Consortium Educational facility type a b ]] displayName value [CDATA[ a href=https:www.dgiwg.orgFADfddview?i=103456Schoola a href=b3Building-3a ]] value Data ExtendedData Advantages: - no schema required - easy to parse - display information available for KML clients CDATA-wrapped Disadvantages: - only simple types - display names have to be repeated for every feature instance - no type information

5.1.1.3 Building-2: Test feature using kml:Schema and kml:SchemaData

Similar four data elements to the ones in Bulding-1 above have been specified, in addition some elements which are in the substitution group of kml:SchemaDataExtension in the instance or kml:SchemaExtension in the schema description are added. These are just name-value-pairs without any differentiation of types. An optional display name can be provided with HTML tag to show how the data element should be presented. ExtendedData SchemaData schemaUrl=BuildingTypeId xmlns:test=http:www.opengis.netows7test SimpleData name=type [CDATA[ a href=https:www.dgiwg.orgFADfddview?i=111415Buildinga ]] SimpleData SimpleData name=height54 ftSimpleData SimpleData name=stories3SimpleData SimpleData name=building type [CDATA[ a href=https:www.dgiwg.orgFADfddview?i=103456Schoola a href=b3Building-3a ]] SimpleData test:element1Testtest:element1 test:element2 attribut=test Copyright © 2014 Open Geospatial Consortium 7 test:element3 test:element4 uom=m45.2test:element4 test:element3 test:refhttp:www.opengeospatial.orgtest:ref SchemaData ExtendedData where the schema referenced from schemaUrl is specified as Schema name=Building id=BuildingTypeId xmlns:test=http:www.opengis.netows7test SimpleField type=string name=type displayName[CDATA[bTypeb]]displayName SimpleField SimpleField type=string name=height displayName[CDATA[bHeightb]]displayName SimpleField SimpleField type=double name=stories displayName[CDATA[bStoriesb]]displayName SimpleField SimpleField type=string name=building type displayName [CDATA[ ba href=https:www.dgiwg.orgFADfddview?i=100853Educational facility typeab ]] displayName SimpleField test:TestField name=element1 test:TestField name=element2 test:TestField name=element3 test:TestField name=ref Schema Advantages: - no external schema required - display information only needs to be provided once in kml:Schema - easy to parse - display information available for KML clients CDATA-wrapped - can be extended Disadvantages: - only simple types - limited type information

5.1.1.4 Building-3: Test feature using predefined elements

Finally, we encoded XML elements from an existing schema in an instance: ExtendedData xmlns:test=http:www.opengis.netows7test test:element1Testtest:element1