Sort

Sorting the points of the active element (vector or bore file) into a required order. Function can also convert single points to lines and break lines to single points.

Normally 3D-Win does not need this function internally, but it can be useful with point list output or with some field computer files.

Order

Order is given as a comma separated list of code fields (T1-T6), coordinates (XYZ) and attribute names. Minus sign (-) in front of the field, will sort the field in descending order. For example, T2,-AREA sorts according the line number and reversed AREA-attribute order.

Code fields and attributes are sorted alphanumerically. Numeric attributes use numeric order and string attributes alphabetical order. Values containing both numeric and text parts are divided to parts which are compared separately according their type. For example, from point ids KP15 and AP100 text parts (AP, KP) are compared first and numeric parts (15, 100) after that.

Comparison can be controlled by some special characters. Character $ in front of the field forces text comparison, character # forces numeric comparison and character | numeric comparison with absolute values. For example, sort order -|DX sorts reversed order based on the absolute value of control error.

The list remembers last ten used sorting orders. The setting format used in earlier versions of the program (e.g. 24XY) is not supported and warning is given from them.

Convert single points

Convert lines into single points. This is needed, if you want to sort using e.g. point number or height. If this option is not selected, the internal structure of lines is not changed.

Create lines

All single points with the same line number (T2 code field, and not zero/empty) are connected.

Combine lines

If data has the same line numbers, they can be combined as one line. New line code fields T1 and T3 are taken from the first combined line.

Sort line points

Sorts also points within each line. Closed breakline points are not sorted.

Remove same

When the sorting is completed, you can delete any points that are the same. The point will be interpreted as being the same, if all the code fields and coordinates are the same. Attribute data is of no importance.

Texts

Sorts also texts.

See also: Coding system.