Element | <PointText> | |
Description | Text position around a single reference point. This element applies to the geometry of the associated feature or dynamic graphic element (e.g. ray, arc). The position of the text extent is defined using offsets and placement information. Sub elements allow text to include multiple styles and strings. | |
Example | Add point text to a RECTRC line. The default position of the text is the middle of the line. The text is read from the OBJNAM attribute. The following style attributes are applied: • Font: Arial • Colour: Black • Size: Value of txtsiz attribute in namloc (10 points) | |
DCRECTRC.xsl | <PointText xPlacement="Middle" yPlacement="Middle" > <xsl:element name="Style"> <xsl:attribute name="font">Arial</xsl:attribute> <xsl:attribute name="colour">Black</xsl:attribute> <xsl:attribute name="size"> <xsl:choose> <xsl:when test="txtsiz"> <xsl:value-of select="txtsiz"/> </xsl:when> <xsl:otherwise> <xsl:text>7</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <String> <xsl:value-of select="../OBJNAM"/> </String> </xsl:element> </PointText> | |
Instruction Set | <PointText xPlacement="Middle" yPlacement="Middle"> <Style font="Arial" colour="Black" size="10"> <String>090° - 270°</String> </Style> </PointText> | |
Attributes | ||
Name | Type | Description |
xPlacement | Enumerated | Status: Optional. Text placement with respect to the positive Y-axis. These options are available: • • • Text may be reversed or flipped to keep the it readable. When placed on a line, the positive Y-axis is the left side of the line. When the rotation parameter is used it rotates the positive Y-axis. |
yPlacement | Enumerated | Status: Optional. These values are available: • • • • • The baseline is the imaginary line upon which a line of text rests. If text orientation is along a line and |
rotation | Floating Point | Status: Optional. Clockwise rotation bearing in degrees starting with 0 degrees being north or display up depending on the |
xOffset | Floating Point | Status: Optional. The offset along the X-axis of the Units are defined by |
yOffset | Floating Point | Status: Optional. The offset along the Y-axis of the |
xLineUnits | Enumerated | Status: Optional. Three options are available: • • • |
flipYWest | Boolean | Status: Optional. Y-offset direction flipped so as to keep the text above the line in the Western hemisphere. Default is false. |
Style | String | A container of strings which will be represented using a style definition: • • • • • • |
verticalDirection | Enumerated | Specify how text is displayed along lines that are parallel to the y-axis of the portrayal coordinate reference system. • • •
|