Annotation and feature styling
20
Copyright © 2006. Open Geospatial Consortium, Inc. All Rights Reserved.
-- Style overlays point star symbol on annotates property value
--
gml:Style gml:featureStyle
gml:FeatureStyle featureType
= PointOfInterest
queryGrammar =
xpath gml:geometryStyle
gml:GeometryStyle geometryProperty
= annotates
geometryType =
gml:Point gml:symbol
symbolType =
svg xlink:href
= http:symbology.comstars.svgStar01
gml:GeometryStyle gml:geometryStyle
gml:FeatureStyle gml:featureStyle
gml:Style
gml:defaultStyle
pointer gml:LineString
gml:id =
L001 gml:pos
12 34 gml:pos
gml:pos 45 36
gml:pos gml:pos
78 34 gml:pos
gml:LineString pointer
content Label
gml:defaultStyle --
Style creates text label --
gml:Style gml:featureStyle
gml:FeatureStyle featureType
= Label
queryGrammar =
xpath gml:labelStyle
gml:LabelStyle gml:style
font-family:Verdana;font- size:18
gml:style gml:label
gml:LabelExpression .xima:textContent
gml:LabelExpression gml:label
gml:LabelStyle gml:labelStyle
gml:FeatureStyle gml:featureStyle
gml:Style
gml:defaultStyle
xima:textContent My House
xima:textContent xima:anchorPoint
gml:Point gml:id
= Pt001
srsName =
crs.gml1234 gml:pos
0 10 gml:pos
gml:Point xima:anchorPoint
Label content
annotates gml:Point
gml:id =
Pt001 srsName
=
crs.gml1234
gml:pos 30 30
gml:pos gml:Point
annotates
Copyright © 2006. Open Geospatial Consortium, Inc. All Rights Reserved.
21
PointOfInterest
In the following example encoding an Image annotation entity is used:
PointOfInterest gml:id
= POI002
gml:defaultStyle --
Style overlays blue line symbol on top of Annotationpointer value
--
gml:Style gml:featureStyle
gml:FeatureStyle featureType
= PointOfInterest
queryGrammar =
xpath gml:geometryStyle
gml:GeometryStyle geometryProperty
= pointer
geometryType =
gml:LineString gml:symbol
symbolType =
svg svg
style =
stroke:blue;stroke-width:5 gml:symbol
gml:GeometryStyle gml:geometryStyle
gml:FeatureStyle gml:featureStyle
gml:Style
gml:defaultStyle gml:defaultStyle
-- Style overlays point star symbol on annotates property value
--
gml:Style gml:featureStyle
gml:FeatureStyle featureType
= PointOfInterest
queryGrammar =
xpath gml:geometryStyle
gml:GeometryStyle geometryProperty
= annotates
geometryType =
gml:Point gml:symbol
symbolType =
svg xlink:href
= http:symbology.comstars.svgStar01
gml:GeometryStyle gml:geometryStyle
gml:FeatureStyle gml:featureStyle
gml:Style
gml:defaultStyle
pointer gml:LineString
gml:id =
L001 gml:pos
12 34 gml:pos
gml:pos 45 36
gml:pos gml:pos
78 34 gml:pos
gml:LineString pointer
content Image
gml:defaultStyle --
Style places image file inside boundary Envelope --
gml:Style gml:featureStyle
gml:FeatureStyle featureType
= Image
queryGrammar =
xpath gml:geometryStyle
22
Copyright © 2006. Open Geospatial Consortium, Inc. All Rights Reserved. gml:GeometryStyle
geometryProperty =
xima:boundary geometryType
= gml:Envelope
gml:style stroke:maroon;stroke-
width:5 gml:style
gml:GeometryStyle gml:geometryStyle
gml:geometryStyle gml:GeometryStyle
geometryProperty =
xima:boundary geometryType
= gml:Envelope
gml:symbol symbolType
= other
xlink:href =
filecBuildingPhoto.jpg gml:GeometryStyle
gml:geometryStyle gml:FeatureStyle
gml:featureStyle gml:Style
gml:defaultStyle
xima:fileURI filecBuildingPhoto.jpg
xima:fileURI xima:boundary
gml:Envelope gml:lowerCorner
1 1 gml:lowerCorner
gml:upperCorner 20 20
gml:upperCorner gml:Envelope
xima:boundary Image
content annotates
gml:Point gml:id
= Pt001
srsName =
crs.gml1234 gml:pos
30 30 gml:pos
gml:Point annotates
PointOfInterest