Code conversion and data processing methods in water conservancy project surveying
By establishing a shortcode table and converting the field shortcode into the built-in code of the CASS computer drawing software, the cumbersome problem of field data collection process in water conservancy engineering measurement is solved, and the data is automatically converted and processed, which improves the collection speed and efficiency and reduces the error rate.
Patent Information
- Application Number
- CN202110762398.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-06
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2041-07-06
AI Technical Summary
In water conservancy engineering measurement, the existing technology is difficult to effectively simplify the field data collection process, resulting in slow collection speed, low work efficiency, cumbersome data processing and high error rate.
By establishing a shortcode table of the CASCODE.txt file and using the programming language to convert the field shortcode into the built-in code of the CASS computer drawing software, the data is automatically converted and processed.
It simplifies the data acquisition process of field staff, improves the acquisition speed and efficiency, reduces the workload and error rate, and conveniently and quickly process field data into the data format required by computer drawing software.
Smart Images

Figure CN113408247B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of field measurement in water conservancy projects, and in particular to a code conversion and data processing method in water conservancy project measurement. Background Art
[0002] With the development of surveying instruments and the popularization of computers, the drawing of topographic maps is gradually turning to digital surveying and drawing. The digital surveying process of topographic maps mainly involves three steps: field data collection, data processing and computer drawing. Among them, the development of field data collection equipment and computer drawing software has been relatively mature. However, due to the variety of field data collection equipment and the complexity of topography, the collected data is diverse; and computer drawing software usually formulates a unified data format to facilitate computer drawing; it requires that the data collected in the field be converted into the data format of computer drawing software to realize computer drawing. At present, there are two ways to process field data collection: the first way is to use the sketch method to mark the order of field data collection, the characteristics of the ground objects and record the relevant data; after the collection is completed, the data is sorted into the format required by the computer drawing software using a table. This method has the defects of cumbersome data collection process, slow collection speed, large workload of internal data processing and high error rate. The second way is to use the simple code method, that is, when collecting data, the data is saved according to the requirements of the computer drawing software for data reading order, data encoding and data characteristics. This method also has the disadvantages of complicated data collection process, slow collection speed and inability to process the data into the data format required by computer drawing software in one go.
[0003] For example, the CASS computer drawing software commonly used in water conservancy engineering surveys has unique coding requirements, as well as data format and sequence requirements for the data entered into the software. At present, in practical applications, first of all, field workers need to be proficient in memorizing the various ground object codes in the CASS computer drawing software. When collecting data, the ground object code corresponding to each measuring point and the data are stored in the data collection device together, resulting in a cumbersome data collection process and slow collection speed. Secondly, the CASS computer drawing software code can only use "+" to represent the code connected to the previous point, which requires that the ground object measurement must be "measured" one by one. When multiple ground objects need to be measured, the "measurement" cannot be cross-measured, which is inefficient and prone to missed measurements. Summary of the invention
[0004] The present invention aims to provide a method for code conversion and data processing in water conservancy project measurement.
[0005] To achieve the above purpose, the present invention can adopt the following technical solutions:
[0006] The coding conversion and data processing method in water conservancy project measurement of the present invention includes the following steps:
[0007] S1, firstly, create a simple code table of a CASCODE.txt file, wherein the first column of the simple code table is a field simple code, the second column is an identification simple code, and the third column is a feature attribute annotation content; the field simple code is customized by field workers according to their own operation and recording habits;
[0008] S2, using a programming language to correspond the identification code to the built-in code of the CASS computer drawing software, so as to convert the field code input by the field personnel into the built-in code of the CASS computer drawing software;
[0009] S3, raw data entry: field personnel export the measurement data from the measuring instrument and import it into the server;
[0010] S4, data check: check whether the field measurement data is consistent with the field code in the code table, and if not, ask the operator to confirm or modify;
[0011] S5, data processing: The server reorganizes the data according to the order and requirements of the CASS computer drawing software to form a data table that can be directly used by the CASS computer drawing software, thereby realizing the automatic conversion of field data into data used by the CASS computer drawing software.
[0012] In S2, the field simple code is divided into two types when input, namely: point-shaped feature or independent feature simple code type and line-shaped feature simple code type;
[0013] S2.1 For point features or independent feature code types, the input steps are as follows:
[0014] S2.1.1, input the field code during field measurement, and establish the mapping relationship between the field code and the built-in code of CASS computer drawing software:
[0015] S2.1.2, use computer language to write a program to convert the field code into the CASS computer drawing software built-in code;
[0016] S2.2, for linear feature code types, field personnel need to input field code, category code and connection code at the same time; the category code and connection code are system built-in rules; the input steps are as follows:
[0017] S2.2.1, the field personnel input the field code, category code and connection code as well as the original data of the measuring point on the client;
[0018] S2.2.2, the server classifies the input raw data of the measuring point according to the simple code table, the field simple code and the category simple code, determines the arrangement order of the raw data of the measuring point according to the connection code, automatically calculates the coordinates of the alternate points according to the measured data of the adjacent measuring points, and inserts them into the original data column;
[0019] S2.2.3, establish a mapping table: the data format in the original data column is sorted and converted according to the data format of the CASS computer drawing software; wherein each line of the CASS computer drawing software built-in code depicts a feature, and the last line has only one letter E, and the letter E is the end-of-file mark; the data format of each line of the CASS computer drawing software built-in code is Code, N1, N2, ..., Nn, E; wherein: the Code is the feature code of the feature; Nn is the point number of the nth point constituting the feature; the arrangement order of N1, N2, ..., Nn is consistent with the actual order.
[0020] The invention has the advantage that the field workers can customize various ground feature codes according to their own operation and recording habits, simplifying the data collection process of the field workers and improving the speed of field data collection. Through the fully automated processing of field data by computer software, the field data can be conveniently and quickly processed into the data format required by the computer drawing software, reducing the workload and error rate and improving the drawing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present invention are described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0023] The coding conversion and data processing method in water conservancy project measurement of the present invention comprises the following steps:
[0024] S1. First, create a code table of CASCODE.txt file, see Table 1. The first column of the code table is the field code, the second column is the identification code, and the third column is the annotation content of the feature attributes. The field code is customized by the field staff according to their own operation and recording habits.
[0025] Table 1
[0026]
[0027] S2, through programming language, the identification code is matched with the built-in code of CASS computer drawing software one by one, so as to realize the conversion of the field code input by the field personnel into the built-in code of CASS computer drawing software; when the field code is input, it is divided into two types, namely: point feature or independent feature code type and line feature code type;
[0028] S2.1 For point features or independent feature code types, the input steps are as follows:
[0029] S2.1.1, input the field code during field measurement, and establish the mapping relationship between the field code and the built-in code of CASS computer drawing software:
[0030] S2.1.2, use computer language to write a program to convert the field code into the CASS computer drawing software built-in code;
[0031] S2.2, for linear feature code types, field personnel need to input field code, category code and connection code at the same time; the category code and connection code are system built-in rules; the input steps are as follows:
[0032] S2.2.1, the field personnel input the field code, category code and connection code as well as the original data of the measuring point on the client;
[0033] S2.2.2, the server classifies the input raw data of the measuring point according to the field code and category code in the code table, determines the arrangement order of the raw data of the measuring point according to the connection code, automatically calculates the coordinates of the alternate points according to the measured data of the adjacent measuring points, and inserts them into the original data column; the connection code description is shown in Table 2;
[0034] Table 2
[0035]
[0036] S2.2.3, establish a mapping table: the data format in the original data column is sorted and converted according to the data format of the CASS computer drawing software; wherein each line of the CASS computer drawing software built-in code depicts a feature, and the last line has only one letter E, which is the end of the file mark; the data format of each line of the CASS computer drawing software built-in code is Code, N1, N2, ..., Nn, E; wherein: the Code is the feature code of the feature; Nn is the point number of the nth point constituting the feature; the arrangement order of N1, N2, ..., Nn is consistent with the actual order; the letter E in the last line is the end mark of the feature in this line;
[0037] S3, raw data entry: field workers export measurement data from surveying instruments (total stations or GNSS RTK instruments) and import them into the server;
[0038] S4, data check: check whether the field measurement data is consistent with the field code in the code table. If not, ask the operator to confirm or modify;
[0039] S5, data processing: The server reorganizes the data according to the order and requirements of the CASS computer drawing software to form a data table that can be directly used by the CASS computer drawing software, thereby realizing the automatic conversion of field data into data used by the CASS computer drawing software.
Claims
1. A method for code conversion and data processing in water conservancy project measurement, characterized in that: The steps include: S1, firstly, create a simple code table of a CASCODE.txt file, wherein the first column of the simple code table is a field simple code, the second column is an identification simple code, and the third column is a feature attribute annotation content; the field simple code is customized by field workers according to their own operation and recording habits; S2, using a programming language to correspond the identification code to the built-in code of the CASS computer drawing software, so as to convert the field code input by the field personnel into the built-in code of the CASS computer drawing software; S3, raw data entry: field workers export measurement data from measuring instruments and import them into the server; S4, data check: check whether the field measurement data is consistent with the field code in the code table, and if not, ask the operator to confirm or modify; S5, data processing: the server reorganizes the data according to the order and requirements of the CASS computer drawing software, forms a data table that can be directly used by the CASS computer drawing software, and realizes the automatic conversion of field data into data used by the CASS computer drawing software; In S2, the field simple code is divided into two types when input, namely: point-shaped feature or independent feature simple code type and line-shaped feature simple code type; S2.1 For point features or independent feature code types, the input steps are as follows: S2.1.1, input the field code during field measurement, and establish the mapping relationship between the field code and the built-in code of CASS computer drawing software: S2.1.2, use computer language to write a program to convert the field code into the CASS computer drawing software built-in code; S2.2, for linear feature code types, field personnel need to input field code, category code and connection code at the same time; the category code and connection code are system built-in rules; the input steps are as follows: S2.2.1, the field personnel input the field code, category code and connection code as well as the original data of the measuring point on the client; S2.2.2, the server classifies the input raw data of the measuring point according to the simple code table, the field simple code and the category simple code, determines the arrangement order of the raw data of the measuring point according to the connection code, automatically calculates the coordinates of the alternate points according to the measured data of the adjacent measuring points, and inserts them into the original data column; S2.2.3, establish a mapping table: the data format in the original data column is sorted and converted according to the data format of the CASS computer drawing software; wherein each line of the CASS computer drawing software built-in code depicts a feature, and the last line has only one letter E, which is the end-of-file mark; the data format of each line of the CASS computer drawing software built-in code is Code, N1, N2, ..., Nn, E; wherein: the Code is the feature code of the feature; Nn is the point number of the nth point constituting the feature; the arrangement order of N1, N2, ..., Nn is consistent with the actual order; The connection code is shown in Table 2; Table 2 。
Citation Information
Patent Citations
Real-time kinematic GPS (RTK-GRS) and total station integrated topographic surveying method and system with encoded data
CN102200436A
Coded real-time kinematic global positioning system (RTK-GPS) plane section measuring method and system
CN102235858A