Implementation in ShapeChange Implementation
Copyright © 2014 Open Geospatial Consortium
17
xmlns:xsi=http:www.w3.org2001XMLSchema-instance xmlns:xsl=http:www.w3.org1999XSLTransform version=2.0
output indent=yes method=xml template match=
kml xmlns=http:www.opengis.netkml2.2 Document
open0open if xmlns=http:www.w3.org1999XSLTransform
test=tds:BuildingGeosurface Schema xmlns=http:www.opengis.netkml2.2
id=BuildingGeosurfaceSchema SimpleField name=type type=string
displayName [CDATA[
a href=https:nsgreg.nga.milasview?i=100083 title=Building Geospatial Surface: A free-standing self-
supporting construction that is roofed, usually walled, and is intended for human occupancy for example: a place of work or
recreation andor habitation. [desc] For example, a dormitory, a bank, and a restaurant.bigbiBuilding Geospatial
Surfaceibbiga
]] displayName
SimpleField SimpleField name=conditionOfFacility type=string
displayName [CDATA[
a href=https:nsgreg.nga.milasview?i=100083 title=Condition of Facility: The state of planning,
construction, repair, andor maintenance of the structures andor equipment comprising a facility andor located at a site, as a
whole.biCondition of Facilityiba ]]
displayName SimpleField
... SimpleField name=uniqueEntityIdentifier type=string
displayName
[CDATA[ a href=https:nsgreg.nga.milasview?i=100083
title=Unique Entity Identifier: The globally unique and persistent identifier of an entity for example: feature or
event instance as specified by a Uniform Resource Name URN in accordance with the Internet Engineering Task Force IETF
RFC2396 and RFC2141. [desc] It is based on the Uniform Resource Identifier URI, a compact string of characters for identifying
an abstract or physical resource. The term Uniform Resource Name URN refers to the subset of URI that are required to remain
globally unique and persistent even when the resource ceases to exist or becomes unavailable. The URN is drawn from one of a set
of defined namespaces, each of which has its own set name structure and assignment procedures.biUnique Entity
Identifieriba
]] displayName
SimpleField Schema
if ...
--Call styling template for each feature type-- for-each xmlns=http:www.w3.org1999XSLTransform
select=tds:BuildingGeosurface call-template name=BuildingGeosurface
for-each
18
Copyright © 2014 Open Geospatial Consortium
... Document
kml template
--Styling templates for each feature type-- template name=BuildingGeosurface
Placemark xmlns=http:www.opengis.netkml2.2 attribute xmlns=http:www.w3.org1999XSLTransform name=id
value-of select=gml:id attribute
choose xmlns=http:www.w3.org1999XSLTransform when test=tds:geoNameCollection.memberGeoName.fullName
name xmlns=http:www.opengis.netkml2.2 value-of xmlns=http:www.w3.org1999XSLTransform
select=.tds:geoNameCollection.memberGeoName.fullName[1] name
when when test=gml:name
name xmlns=http:www.opengis.netkml2.2 value-of xmlns=http:www.w3.org1999XSLTransform
select=.gml:name[1] name
when otherwise
name xmlns=http:www.opengis.netkml2.2Building Geospatial Surfacename
otherwise choose
visibility1visibility if xmlns=http:www.w3.org1999XSLTransform
test=tds:geointAssuranceMetadata.currencyDateTime TimeStamp xmlns=http:www.opengis.netkml2.2
when value-of xmlns=http:www.w3.org1999XSLTransform
select=.tds:geointAssuranceMetadata.currencyDateTime[1] when
TimeStamp if
styleUrlhttp:portele.destyles.kmls1styleUrl ExtendedData
SchemaData schemaUrl=BuildingGeosurfaceSchema SimpleData name=type
choose xmlns=http:www.w3.org1999XSLTransform when test=gml:description
value-of select=.gml:description when
otherwiseA free-standing self-supporting construction that is roofed, usually walled, and is intended for human occupancy for example: a
place of work or recreation andor habitation. [desc] For example, a dormitory, a bank, and a restaurant.otherwise
choose SimpleData
if xmlns=http:www.w3.org1999XSLTransform
test=counttds:conditionOfFacility - counttds:conditionOfFacility[xsi:nil=true]gt;0
SimpleData xmlns=http:www.opengis.netkml2.2 name=conditionOfFacility
for-each xmlns=http:www.w3.org1999XSLTransform select=tds:conditionOfFacility
if test=positiongt;1[CDATA[hr]]if value-of select=.
for-each SimpleData
if
Copyright © 2014 Open Geospatial Consortium
19
... if xmlns=http:www.w3.org1999XSLTransform
test=counttds:uniqueEntityIdentifier - counttds:uniqueEntityIdentifier[xsi:nil=true]gt;0
SimpleData xmlns=http:www.opengis.netkml2.2 name=uniqueEntityIdentifier
for-each xmlns=http:www.w3.org1999XSLTransform select=tds:uniqueEntityIdentifier
if test=positiongt;1[CDATA[hr]]if value-of select=.
for-each SimpleData
if SchemaData
ExtendedData apply-templates xmlns=http:www.w3.org1999XSLTransform
select=gml:Polygon|gml:LineString|gml:Point Placemark
template ...
stylesheet