Proposal
The Geometry SIG proposes that the following structures are used for styling Geometry in Part 7/8
The object being styled (Geometry/Symbol/Label/Individual) will be related to an instance of ClassOfInformationPresentation. This is analogous to a css class. The ClassOfInformationPresentation is then defined as having a style which takes the same form as an inline css declaration in SVG.
For example :-
Code: Select all
<!-- PolyLine -->
<owl:Thing>
<rdf:type rdf:resource="&tpl;CanonicallyParameterisedPolylineTemplate" />
<tpl:hasClassified rdf:nodeID="PL1"/>
<tpl:hasVertexListOfPolyline rdf:parseType="Collection">
<owl:Thing rdf:nodeID="MSP5" />
<owl:Thing rdf:nodeID="MSP6" />
<owl:Thing rdf:nodeID="MSP7" />
<owl:Thing rdf:nodeID="MSP8" />
</tpl:hasVertexListOfPolyline>
</owl:Thing>
<!-- Relationship between PolyLine and style class -->
<owl:Thing>
<rdf:type rdf:resource="&tpl;PresentationOfThing"/>
<tpl:hasObject rdf:nodeID="PL1"/>
<tpl:hasPresentation rdf:nodeID="MyEquipmentLayerStyle"/>
</owl:Thing>
<!-- Style Class definition -->
<owl:Thing rdf:nodeID="MyEquipmentLayerStyle">
<rdf:type rdf:resource="&pt2:ClassOfInformationPresentation"/>
</owl:Thing>
<owl:Thing>
<rdf:type rdf:resource="PresentationDetails"/>
<tpl:hasObject rdf:nodeID="MyEquipmentLayerStyle"/>
<tpl:valStyle>stroke:#123456; fill:#123456;</tpl:valStyle>
</owl:Thing>
References
SVG Specification : http://www.w3.org/TR/SVG
SVG Styling : http://www.w3.org/TR/SVG/styling.html
SVG style attribute : http://www.w3.org/TR/SVG/styling.html#StyleAttribute
SVG Styling properties : http://www.w3.org/TR/SVG/propidx.html