CARIS HPD : Portrayal : Drawing Instructions : Graphic Elements : Line Style
 

Line Style

Element

<LineStyle>

Description

Drawing definition for line geometry. This element applies to the geometry of an associated feature or dynamic graphic element (for example, ray or arc).

A line style can be a simple coloured solid line or a line pattern definition with symbols etc.

Example

If the limpat attribute for the sector feature is set to 2 (dashed line) or the feature is not a sector feature then use NATSTL feature code for the line pattern.

DCLIGHTS.xsl

<xsl:element name="LineStyle">

  <xsl:if test="not(sector) or sector/limpat = 2">

    <xsl:attribute name="styleRef">NALTSL</xsl:attribute>

  </xsl:if>

</xsl:element>

Instruction Set

<LineStyle styleRef="NALTSL"/>

Attributes

Name

Type

Description

colour

String

Status: Optional.

A colour token from the active colour table. If not provided, the default is Black. When using a styleRef, the colour defined in the referenced linestyle is applied.

transparency

Double

Status: Optional.

A value from 0-1 where 0 means opaque. Default is 0.

width

Floating Point

Status: Optional.

The width of a simple line style.� If the line is simple dash or solid the default is 1 pixel.� When a styleRef is given the linewidth in the referenced style will be used unless a width is given as an override.

styleRef

String

Status: Optional.

The name of a complex linestyle definition located according to the active portrayal.

reverse

Boolean

Status: Optional.

True: Reverse the line geometry before applying line style.

False: Do not reverse line geometry.

False is default.

xStart

Double

Status: Optional.

Measure from origin of line to define the start of the line style. This is used to apply the linestyle to a portion of the line geometry. Default is 0.

xEnd

Double:

Status: Optional.

Measure from origin of line to define the end of the line style. This is used to apply the linestyle to a portion of the line geometry. Default is end of line.

xUnits

Enumerated

Status: Optional.

Three values:

mmdisplay means that xStart and xEnd are mm at display scale.

mGeographic means that x is measured in metres on the ground,

percent means that xStart and xEnd are percentages 0 = beginning, 1= end.

Default is mmdisplay.

yOffset

Double

Status: Optional.

This attribute uses LineCRS so mm on the portrayal with positive to the left of the direction of the line. default is 0.