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