CARIS HPD : Portrayal : Drawing Instructions : Graphic Elements : Arc by Radius
 

Arc by Radius

Element

<ArcByRadius>

Description

An arc generated based on the given parameters.� Child elements of LineStyle or PointText may be used to annotate the arc.

Example

Arc is in a reverse direction

Radius is based on the arc distance from the centre of the light

Degree bearings for the start and end of the arc is determined from the SECTR1 and SECTR2 attribute values

Line style is read from NLTSLACAR feature code.

DCLIGHTS.xsl

<xsl:element name="ArcByRadius">

  <xsl:attribute name="reverseBearing">true</xsl:attribute>

  <xsl:attribute name="radius">

    <xsl:value-of select="sector/arcdis"/>

  </xsl:attribute>

  <xsl:attribute name="sectorStart">

    <xsl:value-of select="SECTR1"/>

  </xsl:attribute>

  <xsl:attribute name="sectorEnd">

    <xsl:value-of select="SECTR2"/>

  </xsl:attribute>

  <xsl:element name="LineStyle">

    <xsl:attribute name="colour">Black</xsl:attribute>

    <xsl:attribute name="width">0</xsl:attribute>

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

  </xsl:element>

</xsl:element>

Instruction Set

<ArcByRadius reverseBearing="true" radius="40" sectorStart="225" sectorEnd="325">

  <LineStyle styleRef="NALTSLARCAR"/>

  <Distance attribute="arcdis" max="40"/>

</ArcByRadius>

Attributes

Name

Type

Description

radius

Double

Status: Mandatory

Radius in distance units of crs from the parent point geometry or central location.

sectorStart

Double

Status: Optional.

Degree bearing for start of arc based on crs. Default is 0.

sectorEnd

Double

Status: Optional.

Degree bearing for end of arc. Default is 0.

reverseBearing

Boolean

Status: Optional.

True means reverse the sector bearings by 180 degrees but use Sodano calculation based on length.

This parameter is useful for light sectors which are defined using the bearing from seaward.

Default is false or 0.