Skip to content

Using codes to connect points automatic

Zoltan Siki edited this page Aug 25, 2019 · 6 revisions

Most instruments allow to add codes to observed points (any alphanumeric data). You can use those codes to generate lines in the graphic window and DXF output.It is usually called linework in land surveying.

There are two modes of linework in GeoEasy simple and multiline mode. User can set up code patterns in geo_easy.msk using four variables: regLine, regLineStart, regLineCont, regLineEnd.

In simple line mode you can generate line one after the other, e.g. before you start a new line, you have to finish the previous one.

In multiline mode you can run more line parallel, e.g. you can start new lines before closing the previous ones.

Besides coordinates the observations have to be stored on the instrument. Lines are draw in the order of observations.

Multilinework uses regLineStart, regLineCont and regLineEnd variables. These work as a regular expressions. The default values for these are (see geo_easy.msk):

regLineStart "_st$" - that means code ends with "_st", when a code match to this regexp it is considered start of line regLineCont "_co$" - that means code ends with "_co", next point on line where first part of the code is the same regLineEnd "_en$" - that means code ends with "_en", end point of line where first part of the code is the same

An small example for multilineworks (see src/demodata/multilinework.geo)

The corners of two building were measured: field-book

The graphic window when line are turn on (Comands/Lines from the menu) graphic window

The exported DXF file in LibreCAD CAD drawing

Please note the b1 and b2 layers in the CAD drawing, first part of the code is used for layer name in DXF export if the Point code to layer option turned on in the DXF export parameters dialog box.

Update

From the 3.1.2 version a new code was introduced for multilinework regLineClose to connect this endpoint to the first point. Use this regLineClose code instead of regLineEnd if a closed polyline to be drawn.