Loading geodetic network points from a file |
The form for loading geodetic network points from a .csv file looks as follows:
A line in the .csv file containing information about the point to be loaded should have the following set of fields separated by a ";": — type of geodetic network point; — point name; — type of geodetic network; — class of geodetic network; — coordinate system; — X coordinate; — Y coordinate; — height; — information about the condition of the outer point mark; — information about the condition of the point center; — information about the condition of the center mark of the point; м date of survey completion.
If a line with a different format is encountered during the loading process, a request to interrupt the loading process is issued for the first time. If the process is not interrupted, all subsequent "bad" lines are ignored. At the end of the operation, a message indicating the number of processed lines and their total number is displayed at the bottom of the form.
At the top of the form, there is a panel with buttons: Exit closes the form. If changes have been made in the input fields, they will not be saved. Help provides reference information on how to work with the form. Load loads data from the selected file. If no file is selected or the file is empty, no actions are taken.
Below the button panel is a file selection window for data. To choose a file, click on the button , then specify the required file in the dialog that opens. After selecting the file, its name will be displayed in the field to the left of the selection button, and a few initial lines of the selected file's content will be displayed in the window below.
Further down on the form are settings for selecting the loading mode for those points for which information already exists in the database. Before saving a point to the Database, an analysis of the point's name and coordinate system is performed. If such a point already exists, choosing the replace mode will update the information. Choosing the skip mode will not perform any actions.
|