Label

The label option is available for point layers of symbols. The label options available for symbols and map layers in Patchworks are extremely flexible and highly adaptable for a variety of text and formats. Labels defined in the symbol editor can be static text or an interpolation of data from source tables or a combination of both written using an HTML format. All labels can have threshold scales set by using the Visibility settings and transparencies for the point layer.

For example, at a scale of 20 000 labels could appear in a defined text style and format to fit within the polygon boundaries. These labels could indicate "Species - DF" or "Species - PL", or just "DF" or "PL" depending on the attribute information related to the particular block and the static text assigned.

Labels are defined and added to a symbol using either JSP Syntax or SQL Syntax. Both syntax styles will produce the same labels, the definition choice is up to you. JSP Syntax is Java Server Pages, an HTML language used by web page....? SQL Syntax is the common Standard Query Language, the same syntax used in the Patchworks Query Tool. Below are various examples of each syntax defining similar labels.

Example 4. Label definition in SQL Syntax


'<center><font style="color:white;
    font-size:25pt">'+THEME8+'</font></center>' 
       

SQL expressions require that string statements be enclosed in single quotations, and "added" to variables, indicated by 'string' + column name + 'string expression'. The formatting tags within the string statements are HTML elements.


Example 5. Label definition in JSP Syntax

<center><font style="color:white; font-size:25pt"><%THEME8%></font></center>
   

JSP expressions do not require quotations around string expressions or + signs, the HTML formatting tags can be read directly. To read information from the data source table use <% SQL expression or column name %>.