QGIS TUFLOW Apply Label to Current Layer: Difference between revisions

Content deleted Content added
No edit summary
m Customising the Labelling Rules: corrected spelling Centroid
 
(3 intermediate revisions by one other user not shown)
Line 20:
* '''Attribute Name == ON | OFF''' - this determines whether the attribute name is labelled with the attribute value e.g. an "ON" value for a 2d_po type would be "Type: H_", an "OFF" value would just be "H_"
* '''Label Attributes''' - this is the index of the labelled attribute field (starting at 1). Multiple attributes can be labelled by using a "|" to delimit the indexes. Each attribute will be labelled on a separate line. The order they are listed in the txt file will be the same order it is labelled in QGIS.<br>
: ''<b>Note:</b>'' - available since v3.3, labelling GPKG does not require the user to change the index of the attribute (GPKG layers usually insert a field call 'FID' at the start by default and would therefore misalignmis-align the listed indexes in the labelling rule txt files).
* '''Point Placement == Cartgraphic''' - the label placement around point features. Currently the only available option is 'Cartographic'.
* '''Line Placement == Parallel | Horizontal''' - the label placement around line features. 'Parallel' alignes the label orientation to the line feature. 'Horizontal' always aligns the label horizontally.
* '''Region Placement == CentrodCentroid''' - the label placement around polygons / region features. Currently the only available option is 'Centroid'.
* '''Offset X,Y == <X>,<Y>''' - the offset from the normal labelling position in millimetres. Only applies to point and polygon features.
 
Line 84:
Offset X,Y == 2,2 ! only works for regions and points (points only uses the first value)
</pre>
 
===Examples===
[[File: auto_label_example.gif]]
<br>
<br>
{{Tips Navigation
|uplink=[[TUFLOW_QGIS_Plugin#Usage| Back to TUFLOW QGIS Plugin Main Page]]
}}