Loading coordinates from a text file |
![]() ![]() ![]() |
The program performs loading of coordinates obtained in field conditions from geodetic instruments equipped with electronic processing capabilities in a delimited text file format. Source files can have various extensions (TXT, CSV, XYH,...), the main requirement being delimiters between fields in a row. The file structure is defined so that one line corresponds to one spatial object. For field measurement results, one line containing direct point coordinates (X,Y,H) corresponds to a station point. Each line contains several fields with coordinates or one field with a general coordinate description in WKT format.
The program output is a map in SIT, SITX format. The task is performed by the mapvectrqt.dll module, which is called through the Launch Applications item in the Tasks menu or through the Update or Import Vector Data from... items in the File menu. The program operates in dialog mode.
The dialog displays fields for showing input data and task execution settings.
Input data: — Path and filename of the source file containing text data obtained from geodetic instruments. — Multi-line window in table form for viewing and analyzing source text file contents and subsequent setup of imported data composition. The window displays the first fifty lines of the file. File information is placed starting from the third row of the table. The first two rows are intended for setting up the imported data composition. One table row displays one line of the source file. Line splitting into columns is performed according to the delimiter value — the character that separates data in the text file line.
Setup data: — Processing start line — allows skipping several initial lines (e.g., comments) and start file processing from the specified line. — Delimiter — current value of the delimiter character. Any value from the given list can be chosen as a delimiter. The delimiter is selected according to the source file information. — Fields for entering X, Y, H offsets, allowing placement of imported objects in the desired location. — After analyzing the text file contents, the user must configure the imported data composition. To perform setup, activate the data type selection by left-clicking in the corresponding column of the table's first row. Then select the appropriate data type from the list. During import, the information from the corresponding source file subline will be loaded with the data type set in the dialog (e.g., X, Y, H). After selecting the data type from the list, the chosen value is displayed in the table's first row. If Semantic Value is selected from the list, then in the appearing dialog, you need to define the specific semantic code. The name of the selected semantic appears in the corresponding column of the table's second row. — Type of objects to be created. Select the localization and object type. — Duplicate H value in Absolute Height semantics — Highlight created objects — Keep transaction log — Coordinate rounding precision
The import process begins after clicking the Execute button. |