OGC 07-147r2
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
143
• kml:AbstractObjectGroup
Specifies an icon resource location.
kml:Icon
should contain the
kml:href
child element outside of an update context, that is when not a descendant of
kml:Update
. 12.9.3
Content 12.9.3.1
kml:href
12.9.3.1.1 Description
Specifies the the resource location as a URL. The URL may contain a fragment component that allows indirect identification of some portion or subset of a resource. As defined in RFC
3986, a fragment identifier is indicated by the presence of a number sign character and terminated by the end of the URL.
The format and semantics of a fragment identifier is dependent on the media type of the resource. The W3C XPointer framework specifies a standard syntax for referring to
fragments of XML resources. An element within a KML resource may be referenced using a shorthand pointer that identifies at most one element; specifically, the
kml:AbstractObjectGroup element if any that has a matching NCName as the value of the id attribute.
EXAMPLE:
http:www.example.orgpathkml-resourceplacemark-1
12.9.3.1.2 Content
Type: xsd:string Default Value:
none
12.9.3.2 kml:BasicLinkSimpleExtensionGroup
See 6.6.3.1 Simple Element Substitution.
12.9.3.3 kml:BasicLinkObjectExtensionGroup
See 6.6.3.2 Complex Element Substitution.
OGC 07-147r2
144
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
12.10 kml:LabelStyle 12.10.1 Structure
kml:LabelStyle id=ID [0..1]
targetId=NCName [0..1] kml:ObjectSimpleExtensionGroup ... kml:ObjectSimpleExtensionGroup [0..]
kml:AbstractSubStyleSimpleExtensionGroup ... kml:AbstractSubStyleSimpleExtensionGroup [0..]
kml:AbstractSubStyleObjectExtensionGroup ... kml:AbstractSubStyleObjectExtensionGroup [0..]
kml:color ... kml:color [0..1] kml:colorMode ... kml:colorMode [0..1]
kml:AbstractColorStyleSimpleExtensionGroup ... kml:AbstractColorStyleSimpleExtensionGroup [0..]
kml:AbstractColorStyleObjectExtensionGroup ... kml:AbstractColorStyleObjectExtensionGroup [0..]
kml:scale ... kml:scale [0..1] kml:LabelStyleSimpleExtensionGroup ... kml:LabelStyleSimpleExtensionGroup
[0..] kml:LabelStyleObjectExtensionGroup ... kml:LabelStyleObjectExtensionGroup
[0..] kml:LabelStyle
12.10.2 Description
This element can be used wherever the following element is referenced:
• kml:AbstractColorStyleGroup
Specifies how the
name
of a
kml:AbstractFeatureGroup
is drawn in the geographic view. A user-defined color, color mode, and scale for the value of the
name
can be specified.
kml:LabelStyle
should contain at least one child element outside of an update context, that is when not a descendant of
kml:Update
.
12.10.3 Content 12.10.3.1 kml:scale
12.10.3.1.1 Description
Specifies a scale factor to be applied to the label.
12.10.3.1.2 Content
Type: xsd: double
Default Value: 1.0
OGC 07-147r2
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
145
12.10.4 Example
kml xmlns=http:www.opengis.netkml2.2 Document
Style id=randomLabelColor
LabelStyle
colorff0000cccolor colorModerandomcolorMode
scale1.5scale
LabelStyle
Style Placemark
nameLabelStyle.kmlname styleUrlrandomLabelColorstyleUrl
Point coordinates-122.367375,37.829192,0coordinates
Point Placemark
Document kml
12.11 kml:LineStyle 12.11.1 Structure
kml:LineStyle id=ID [0..1]
targetId=NCName [0..1] kml:ObjectSimpleExtensionGroup ... kml:ObjectSimpleExtensionGroup [0..]
kml:AbstractSubStyleSimpleExtensionGroup ... kml:AbstractSubStyleSimpleExtensionGroup [0..]
kml:AbstractSubStyleObjectExtensionGroup ... kml:AbstractSubStyleObjectExtensionGroup [0..]
kml:color ... kml:color [0..1] kml:colorMode ... kml:colorMode [0..1]
kml:AbstractColorStyleSimpleExtensionGroup ... kml:AbstractColorStyleSimpleExtensionGroup [0..]
kml:AbstractColorStyleObjectExtensionGroup ... kml:AbstractColorStyleObjectExtensionGroup [0..]
kml:width ... kml:width [0..1] kml:LineStyleSimpleExtensionGroup ... kml:LineStyleSimpleExtensionGroup
[0..] kml:LineStyleObjectExtensionGroup ... kml:LineStyleObjectExtensionGroup
[0..] kml:LineStyle
12.11.2 Description
This element can be used wherever the following element is referenced:
• kml:AbstractColorStyleGroup
Specifies the drawing style color, color mode, and line width for all line geometry. Line geometry includes the
kml:Polygon
boundaries
kml:LinearRings
for which the
OGC 07-147r2
146
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
applicable
kml:PolyStyle
outline element value is 1 or true, and lines connecting extruded
kml:Placemarks
with a
kml:Point
geometry to the ground. Use
kml:LineStyle
to specify the color, color mode, and width of the line. For extruded
kml:LineStrings
, the line itself uses the current
kml:LineStyle
, and the extrusion uses the current
kml:PolyStyle
.
12.11.3 Content 12.11.3.1 kml:width