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

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 8 Copyright © 2014 Open Geospatial Consortium test:element2 attribute=test test:element3 test:element4 uom=m45.2test:element4 test:element5some texttest:element5 test:element3 test:refhttp:www.opengeospatial.orgtest:ref ExtendedData Advantages: - existing schema can be reused - structured can be encoded properly Disadvantages: - requires additional schema - no generic display information available for KML clients

5.1.2 Behaviour in KML clients

5.1.2.1 Overview

This section illustrates how the different kinds of extended data sections are visualised in selected KML clients.

5.1.2.2 Google Earth

Google Earth displays all information that is in elements in the KML namespace kml:Data and kml:Schemakml:SimpleData. It uses the displayName information. All information in other namespaces is ignored.