Coding with String Numbers

Description

You can use numerous methods to code measured points for the purpose of creating linework including:

  • Joining consecutive points with the same code
  • Using codes and string numbers
  • Using codes and control codes that define how to construct objects when the codes are processed
  • Using onboard functionality supported by your field controller

This tutorial shows how you can use feature codes to apply plan symbols and line styles, and use string numbers in conjunction with feature codes to form straight lines or polygons. You will export a code list to and import measurement data from the Leica FlexLine instrument, however, the concept is the same for all field controllers.

You will learn how to:
  • Create layers that use specific line styles, plan symbols and attributes
  • Set the intended use of a layer to define the way linework is formed
  • Create lookup tables to map layer names and attribute names
  • Enter string numbers using different techniques
  • Export a code list with a string attribute
  • Automatically create linework using string numbers
  • Import objects to layers using codes
  • Size plan symbols using attributes
  • Edit codes and reprocess
  • Edit linework and symbols that were created using coding
Duration

45 minutes

Requirements

Leica Survey Module

Procedure
Open the Project
  1. Click Application button to access the File menu.
  2. Click Open, then navigate to Documents\Tutorial Data and open the project Coding String.neo.
  3. On the ribbon Home tab, in the Tools group, select the Layers checkbox. A list of the layers in the project are displayed in the Layers tool.

    Layers tool

Edit the Layers

You will edit the Side Entry Pit layer so that attributes collected in the field are used to determine the dimensions of the associated plan symbol. First you will define attributes for the layer.

  1. In the Layers tool, in the Select column, double-click the row containing the Side Entry Pit layer.
  2. In the Layer dialog, click the Attribute Definitions tab.
  3. Click New, then click Real8.
  4. Type Width in the Name box, then click OK.
  5. Click New, then click Real8.
  6. Type Length in the Name box, then click OK.

    SEP attributes

  7. Click the Display tab.
  8. Click the Type list, then select Point.

    Any point placed on the Side Entry Pit layer will be represented by the box symbol (S002) and drawn in grey (808080). The value in the Width box is the distance in the x-direction and the value in the Length box is the distance in the y-direction when no rotation is applied to the symbol. You can edit the layer so that attributes collected in the field are used to determine the dimensions of the symbol in preference to predefined dimensions.

  9. In the Dimension Attribute category click in the Width Attribute box.
  10. Click Drop arrow to view a list of attributes defined for the layer, then select Width.

    Dimension attribute

  11. Click the Length Attribute box, then click Drop arrow and select Length.
  12. Click OK.

    Similarly, the layer TREE uses the Spread attribute to define the dimensions of the tree symbol.

  13. In the Layers tool, in the Select column, double-click the row containing the Building layer to display the Layer dialog.

    The Intended Use for this layer is currently set to Lines. This means when measured points are assigned the building code, and codes are processed, they could be joined with lines. However, the linework will not close back to the first point in the line sequence. You can choose to do this using the Create tool, however, in this tutorial you will change the intended use of the Building layer to polygons so that a closed figure is formed automatically.

  14. Click in the Intended Use box, then select Polygons from the list.

    Any points measured in the field or lines created from coding that are placed on a layer will use the layer settings. You can edit a layer to set the point symbols, line styles, attributes, colours etc. for that layer. Blue has already been selected as the colour for points and lines on this layer. You will now edit the appearance for polygons.

  15. Click the Display tab.
  16. Click the Type list then select Polygon.
  17. In the Appearance category, click in the Fill Colour box. Click Drop arrow then select Blue (0000FF) from the colour palette.
  18. Click the right side of the Edge Colour box to automatically display the colour palette, then select Blue (0000FF).
  19. Click in the Fill box, then click Browse and select the last fill in the list (H026). Click OK.

    Polygon Attributes

  20. Click OK to accept the changes to the Building layer.

Edit Lookup Tables

As the FlexLine software limits code and attribute names to 8 characters, you will edit a lookup table to abbreviate some names.

  1. On the ribbon Manage tab, in the Configuration group, click Manage Lookup Tables Lookup Tables.
  2. In the Manage Lookup Tables dialog, click in the Type box then select Layer.
  3. In the Select column, click the row containing the FlexLine Layer lookup table, then click Edit Lookup Table.

    Most of the existing layer names have already been mapped in the Foreign column.

  4. Click New item, then in the new row, click in the Local column. Click Down arrow then select Building from the list of existing layers.
  5. In the same row, click in the Foreign column then type BLDG. Click OK.

    Edit a layer lookup table

    When this lookup table is selected during export of a code list, the layer with the name Building will be exported as a code named BLDG.

  6. Click in the Type box, then select Attribute Definition.
  7. In the Select column, double-click the row containing the FlexLine Attributes lookup table.

    Most of the attributes names you will use are 8 characters or less and do not need to be abbreviated.

  8. Select Description in the Foreign column, then edit the name to ‘Desc’ and click OK.
  9. Click Close.

String Numbers

You can use a combination of codes and string numbers to create lines and polygons from measured points. When codes are processed, measured points with the same code and string number are joined in the order they were collected.

To enter a string number in the field you can:

  • Add a numeric suffix to the code. For example, PATH1 or PATH2.
  • Input a numeric value for the attribute defined as the string number attribute.

In this tutorial, you will use a string number attribute to identify the strings. The attribute does not need to be defined on any layer because it will be automatically added to the exported code list.

Export a Code List

Layers have been created for all codes required in the field. You can now export a code list that contains layer names as code names and layer attributes as code attributes.

  1. On the ribbon Home tab, in the Data group, click Drop arrow below Export Export, then click Leica FlexLine Codelist.

    If Leica FlexLine Codelist is not listed in the menu, click Add/Remove to add it.

  2. Click Options.
  3. In the String Number Attribute box, type String.

    In addition to attributes defined for the layers, an attribute with the name String will be exported for all layers with the intended use set to lines or polygons. This attribute is mandatory, which means in the field, you will not be able to save measured points with codes that have an intended use of line or polygon until you have entered a value for the String attribute.

  4. In the Lookup Tables category, click in the Layer box, then click Drop arrow and select FlexLine Layer.
  5. Click in the Attribute Definition box, then click Drop arrow and select FlexLine Attributes.

    Export options

    Each layer will be mapped to the abbreviated value as specified in the lookup table and exported as a code.

    You can also use a lookup table to map a layer or attribute name to a blank name, which means the name will not be exported to the code list.
  6. Click OK.
  7. Type the name Code list in the File name box, then click Save.

    You can now upload the code list to the Leica FlexLine and select it as the code list for the job.

    You can export code lists to numerous instrument manufacturer's field controllers.
    If additional codes are required that were not included in the code list, you can add them in the field.
    Any unrecognised codes assigned to measured points in the field will be used to automatically create layers on import.
Collect Data in the Field

Using the code list you just created, points were measured in the field.

  • Points that were assigned a code SEP, had a value entered for the Length and Width attribute.
  • Points that were assigned the code TREE, had a value entered for the Spread attribute.
  • Points that were part of an open line were assigned a line code and had a value entered for the String attribute.
  • Points that were part of a closed line were assigned a polygon code and had a value entered for the String attribute.
  • When multiple lines shared the same code, unique string number values were assigned.
  • Points that were part of a line or polygon have been measured in sequence.
  • The use of string numbers enabled EB, BCK and PATH lines to all remain in progress at the same time. This means all points in one line did not need to be measured before starting a different line.
The use of a string number attribute is only one way of entering a string number. Some field controllers allow you to add a string number to the end of the feature code. Others allow you to specify a string number within their onboard linework system. The concept however is the same for all methods.

Import Measurements

You will now import the data that was collected in the field. If measured points do not have a code, they will be placed on the active layer. For this tutorial the Station layer will be set as the active layer.

  1. On the ribbon Home tab, in the Layer group, click in the Active Layer box, then select Station.
  2. On the ribbon Home tab, in the Data group, click Drop arrow below Import Import, then click Leica FlexLine.

    If Leica FlexLine is not listed in the menu, click Add/Remove to add it.

  3. Click Options, then in the Coding category, select the Process Codes checkbox.
  4. Clear the Join Consecutive Points checkbox, as points will be joined using string numbers.
  5. In the String Number Attribute box, type String. The value in the String attribute will be used as the string number.
  6. In the Lookup Tables category, click in the Layer box, then click Drop arrow and select FlexLine Layer.
  7. Click in the Attribute Definition box, then click Drop arrow and select FlexLine Attributes.

    Import options

  8. Click OK.
  9. In the Open dialog, navigate to Documents\Tutorial Data then select Coding String.xml. Click Open to import the file.

    Import

    When the data is imported the following occurs:

    • Codes assigned to points are mapped to a layer using the selected lookup table and the points are placed on that layer.
    • The point plan symbol for the layer is assigned to the point. If dimension attributes were defined for the layer the point’s attributes are used to size the symbol.
    • Attributes collected in the field that are not the defined String Number Attribute are stored with the point.
    • When a string number is detected, points with the same code and same string number are joined with straight lines in the order they were collected.
    • Linework is stored on the same layer as the point and the layer’s appearance properties are used to draw the line or polygon.
    • Since the Building layer is intended to be used for polygons, a polygon is created using all the points in the line sequence.
    • Because the string number is contained in the String Number Attribute, the attribute value is added to the end of the code stored with the measurement so as to preserve it. Adding the string number to the end of the code is an alternate way of entering a string number so when the data is reprocessed the numbers on the end of the code will be recognised as string numbers.
    If a lookup table maps a layer name to a blank value then points without codes are mapped to that layer.
    If a code cannot be matched to a layer name, or an attribute cannot be matched to a attribute definition, a new layer or attribute definition is created.

    While most symbols and linework looks correct there are 4 issues that you will need to resolve.

Edit and Reprocess Codes

Linework and symbols are created on import, however, it may be necessary to edit the codes and reprocess if codes or string numbers were entered incorrectly.

First you will turn off layers that do not require editing, and display point names.

  1. In the Layers tool, press and hold the Ctrl key, then in the Select column, click the Building, Path, Station, Telecom Pit and Tree rows. Release the Ctrl key.
  2. In the Visible column, click Visible lock in one of the selected rows.
  3. On the ribbon Home tab, in the Tools group, select the Options checkbox to display the Options tool. Click the drop-down menu, then click Display.
  4. In the Features category, select the Vertices checkbox and in the Labels category, select the Point Names checkbox.

    Point 1020 should be the end of a line representing the edge of the bitumen. However, point 1021, was inadvertently given the same string number as point 1020. This has caused the continuation of the line and the creation of an undesired line segment.

    model view

    You could delete the line segment, but instead you will change the coding to include the correct string number and reprocess the measurements.

  5. On the ribbon Measurements tab, click New Measurements View New Measurements View.
  6. In the tree control, click At: 1 (Known Back Sight) beneath the Measurements node and the Total Station Setups node.

    Measurement tree

    The measurements are displayed in the table, on the right-hand side of the Measurements view.

    Measurement view

    Right-click anywhere in the table, then click Columns to show or hide columns.

    The code assigned to the measurements to point 1021 and 1022 is EB2. These measured points were assigned a feature code EB, and a String attribute value of 2. This string value had already been used for the edge of bitumen line ending at point 1020, so you need to edit the codes and give the measurements a unique string number. Since a lookup table was used you will enter the feature code not the layer name.

  7. In the Code column, select the table cells for the measurements to points 1021 and 1022.
  8. On the ribbon Measurements tab, in the Edit group, click Edit Edit, then in the Code box, type EB5. Click OK to change the code for both measurements at the same time.

    Measurement view

    This means the points created from the measurements to points 1021 and 1022, will be placed on the Edge of Bitumen layer and be joined to other points with an EB code and a string number value of 5.

  9. On the ribbon Measurements tab, in the Process group, click Measurement options to display the Edit Measurement Processing Options dialog.
  10. In the Coding category, click in the Layer Lookup box, then click Down arrow and select FlexLine Layer.

    This will map the field codes to the appropriate layers when the codes are reprocessed.

  11. Select the Process Codes checkbox, then click OK.
  12. In the tree control, beneath the Total Station Setups node, click At: 1 (Known Back Sight) to select the station setup to process.

    All data beneath the selected node in the tree control is processed.
  13. On the ribbon Measurements tab, in the Process group, click Process Process.
  14. Click the Model tab. The line between 1021 and 1022 is now a separate line and the undesired line segment is gone.

    Delete Segment

Data Editing

While symbol dimensions were determined from the field attributes, the side entry pit needs to be rotated to make it parallel to the back of the kerb.

  1. In the Layers tool, in the Select column, click the row containing the Side Entry Pit layer. Click Select, then click Points to select the side entry pit in the model view.
  2. Using the mouse scroll wheel, zoom in on the selected point (Point 1027).

    Zoom SEP

  3. On the ribbon Home tab, in the Tools group, select the Attributes checkbox to display the Attributes tool.

    Attribute Tool

    The colour and plan symbol has been determined from the Side Entry Pit layer. The width and length of the plan symbol have been determined from the Width and Length attributes values entered in the field and displayed in the Attributes category.

  4. On the ribbon Home tab, in the Tools group, click the Modify checkbox to display the Modify tool window.
  5. Click the method drop-down menu, then click Rotation.
  6. In the model view, pick the line from point 1003 to 1013 representing the back of kerb.
  7. Select Orthogonal in the Mode control, then click OK to rotate the side of the side entry pit to be parallel to the back of kerb.

    When you imported the file you may have noticed some issues with the linework representing the traffic island. Points were measured out of order causing the linework to cross. If points are measured in the incorrect order in the field, you cannot resolve the issue by reprocessing the codes. You will use the Modify and Create tools to resolve these issues.

  8. Using the mouse scroll wheel, zoom in on the line starting at point 1029, directly above the side entry pit.

    model view

    All points in the line belong to the EB3 line sequence, however, you can see from the linework, that the points have been collected out of sequence and point 1048 should have been the 5th point measured in the EB3 sequence instead of the last. As points with the same code and string number are joined in the order they are collected, the linework for this traffic island will need to be edited.

  9. Click the method drop down menu, then click Delete Segment.
  10. In the Model view, pick the line segment between points 1045 and 1048.
  11. In the Modify tool, click the method drop-down menu, then click Insert Vertex.
  12. In the Model view, pick the line segment between point 1032 and 1033.

    The first three boxes are filled with the line identifier and the names of the two points on either end of the line segment you selected.

  13. In the Model view, pick the point 1048.

    The vertex from point 1048 is inserted into the correct position in the line. You will now close the line back onto the first point in the line.

  14. On the ribbon Home tab, in the Layer group, click Adopt layer to adopt the layer of the object currently selected in the model view.

    The Edge of Bitumen layer is now the active layer.

  15. On the ribbon Home tab, in the Tools group, select the Create checkbox to display the Create tool.
  16. Click the object drop down menu, then click Line.
  17. Click the segment type drop down menu, then click Straight.
  18. Click the method drop down menu, then click Existing Vertex.

    Create

  19. Pick point 1045, then point 1029, then click End.

    Traffic Island

    You will now join the two lines representing the traffic island into a single line.

  20. Click in the Modify tool, then in the method drop-down menu, click Join.
  21. In the Model view, pick both of the lines (Lin | 1029 and Lin | Id:25) in any order, then in the Modify tool, click OK.

    The linework to the right of the traffic island is a roundabout where 3 points have been collected on the edge of the bitumen and 3 points on the back of the kerb. These points have been joined because they have the same code and string number. However, you will now use these points to create circles that represent the roundabout.

  22. In the Create tool, click the segment type drop-down menu, then click Circular Arc.
  23. Click the method drop-down menu, then click 3 Radial Vertices.
  24. Select the Create circle checkbox.
  25. Click in the Start box, then in the model view, pick points 1040, 1041 and 1042, then click End.
  26. On the ribbon Home tab, in the Layer group, click in the Active Layer box, then select Back of Kerb.
  27. In the Model view, pick points 1043, 1044 and 1047, then click End.

    Roundabout

    Now delete the unwanted lines.

  28. On the ribbon Home tab, in the Select group, click None None to deselect any selected objects.
  29. On the ribbon Home tab, in the Select group, click Single select Select.
  30. Press and hold the Ctrl key, then in the model view select the straight lines joining points 1043 to 1047 and points 1040 to 1042.
  31. Release the Ctrl key, then press the Delete key.
  32. In the Options tool, on the Display page, clear the Vertices and Point Names checkboxes.
  33. In the Layers tool, click Visible lockand then click On.

    Finished model view

Summary

You have completed the tutorial and learnt how to use string numbers when coding. It is a fast and powerful method that gives you more control over the creation of linework than the consecutive points method. It enables the collection of multiple lines at the same time making it ideal for cross section type measurements.

If you have any questions please contact: support@listech.com.

Notes
  • If a string number is added to the end of the code rather than entered as an attribute, then you must have the layer defined in the project before importing the field data for it to be recognised as a string number.
  • If string numbers are not entered with the measured point you can choose to join consecutive points with the same code when the field data is imported or reprocessed.
  • This method can be used in conjunction with other coding methods.
  • If a number is detected on the end of a code, numeric values are ignored one by one in an attempt to match the code with an existing layer.
    • If a match with a layer is found, the numeric values removed form the string number. The original code with the string number is preserved with the measurement.
    • If all numeric numbers are removed from the end of the code and a layer name that matches the code has not been found, a new layer named as a combination of the code and string number is created. The original code with the string number is preserved with the measurement.
Related topics

Top of page TOP OF PAGE