A method and system for storing construction engineering measurement data
By analyzing character frequency and future trends in construction engineering measurement data storage, determining encoding priority and assigning encoding length, the shortcomings of traditional Hoffman encoding in data access rate and compression efficiency are solved, and efficient data storage and access are achieved.
Patent Information
- Application Number
- CN202411344183.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-09-25
AI Technical Summary
In the prior art, when storing construction engineering measurement data, traditional Hoffman encoding fails to effectively consider the data access rate and the character frequency influence of new measured data, resulting in low data access efficiency and poor compression efficiency.
By analyzing the frequency of each character appearing in the measurement data of all construction stages and the measurement data of each construction stage, calculating the overall character frequency and stage character frequency, and analyzing the characteristics of key data and future change trends based on these frequencies, determining the encoding priority of each character, and finally assigning the character encoding length according to the priority, completing the compression and storage of the data.
It improves the compression efficiency of data, while taking into account the access efficiency of critical data, ensuring the security, reliability and ease of use of data.
Smart Images

Figure CN119226248B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data storage, and in particular to a method and system for storing construction engineering measurement data. Background Art
[0002] Construction engineering surveying is an indispensable basic work in engineering construction. The accuracy, completeness and timeliness of its data are directly related to the quality and efficiency of engineering design, construction and management. With the rapid development of the construction industry, surveying equipment and technology have made significant progress. For example, the widespread application of high-precision GPS (Global Positioning System), total stations, laser scanners and other equipment, as well as the rise of new technologies such as drone mapping and 3D laser scanning, have greatly improved the efficiency and accuracy of surveying data collection. This will also lead to an explosive growth in the amount of engineering surveying data, bringing huge challenges to data storage and management. How to efficiently store massive data and ensure the security, reliability and ease of use of data has become an urgent problem to be solved.
[0003] In the prior art, when storing construction engineering measurement data, Huffman coding is usually used to compress the data to reduce the data volume due to the excessive amount of data. However, since traditional Huffman coding only defines the code length by character frequency, the subsequent access rate to the data is not considered, which will result in a low access rate to key data in the subsequent access to the construction engineering data, making it inconvenient to quickly identify and retrieve the key data. At the same time, the impact of the character frequency on the subsequent newly measured data is not considered, which will result in low compression efficiency of the subsequent newly measured data. Summary of the invention
[0004] In order to solve the above technical problems, the object of the present invention is to provide a method and system for storing construction engineering measurement data.
[0005] According to a first aspect of an embodiment of the present invention, a method for storing construction engineering measurement data is provided, and the technical solution adopted is as follows:
[0006] Obtain the measurement data and characters in the measurement data for each construction stage;
[0007] Analyze the frequency of occurrence of each of the characters in the measurement data of all construction stages and the measurement data of each construction stage to obtain the overall character frequency and the stage character frequency;
[0008] Based on the frequency of the characters in the stage, the characteristics of the key data in the measurement data are analyzed to obtain the key data expression degree of each character;
[0009] Analyze the change degree of the frequency of the stage characters of each character at different construction stages, and analyze the change degree of the total amount of the measurement data at different construction stages, to obtain the future change trend degree of each character;
[0010] According to the future change trend and the key data expression, combined with the overall character frequency, the encoding priority of each character is obtained;
[0011] According to the encoding priority, a coding length is assigned to each of the characters to complete data compression and storage.
[0012] In some embodiments of the present invention, the frequency of occurrence of each character in all measurement data and measurement data of each construction stage is analyzed to obtain the overall character frequency and the stage character frequency, including:
[0013] The measurement data of all construction stages are defined as overall data, and the ratio of the number of times each character appears in the overall data to the total number of characters in the overall data is analyzed to obtain the overall character frequency;
[0014] The ratio of the number of occurrences of each character in the measurement data of each construction stage to the total number of characters in the measurement data of each construction stage is analyzed to obtain the stage character frequency.
[0015] In some embodiments of the present invention, based on the frequency of the stage characters, the characteristics of the key data in the measurement data are analyzed to obtain the key data expression of each character, including:
[0016] The relative consistency of the frequency of the stage characters corresponding to each of the characters in the measurement data of all construction stages is analyzed to obtain the key data expression degree of each of the characters.
[0017] In some embodiments of the present invention, analyzing the degree of change of the frequency of each character at different construction stages includes:
[0018] Analyzing the ratio of the stage character frequencies of each character in two adjacent construction stages to obtain the frequency increment ratio of the stage character frequencies;
[0019] According to the frequency increment ratio and in combination with the average value of the frequency of the characters in the stage corresponding to each of the characters, the degree of future increment trend of each of the characters is obtained.
[0020] In some embodiments of the present invention, analyzing the degree of change in the total amount of measurement data at different construction stages includes:
[0021] The slope relationship between the total amount of measurement data in two adjacent construction stages is analyzed to obtain the degree of change in the total amount of data.
[0022] In some embodiments of the present invention, the future incremental trend degree of each character is supplemented and corrected based on the degree of change in the total amount of data to obtain the future change trend degree of each character.
[0023] In some embodiments of the present invention, the encoding priority of each character is obtained according to the future change trend and the key data expression, combined with the overall character frequency, including:
[0024] Using the overall character frequency as a weight coefficient of the key data expression degree to obtain the key data influence degree;
[0025] The difference between 1 and the overall character frequency is used as the weight coefficient of the future change trend degree to obtain the future change trend influence degree;
[0026] According to the influence of the key data and the influence of the future change trend, the encoding priority of each character is obtained.
[0027] In some embodiments of the present invention, according to the encoding priority, a coding length is assigned to each of the characters to complete data compression and storage, including:
[0028] According to the descending order of the coding priorities corresponding to the characters, a coding length is assigned to each character to construct a Huffman coding table for construction engineering measurement data;
[0029] According to the Huffman coding table, the construction engineering measurement data is compressed to obtain compressed data;
[0030] The compressed data is stored.
[0031] According to a second aspect of an embodiment of the present invention, a construction engineering measurement data storage system is provided, comprising: a memory and a processor, wherein:
[0032] The memory is used to store program code;
[0033] The processor is used to read the program code stored in the memory and execute the method described in the first aspect of the embodiment of the present invention.
[0034] In some embodiments of the present invention, the processor comprises:
[0035] A measurement data acquisition module, used to acquire measurement data of each construction stage and characters in the measurement data;
[0036] A character frequency analysis module, used for analyzing the frequency of occurrence of each character in the measurement data of all construction stages and the measurement data of each construction stage, to obtain the overall character frequency and the stage character frequency;
[0037] A key data analysis module, used to analyze the characteristics of the key data in the measurement data based on the frequency of the characters in the stage, and obtain the key data expression degree of each character;
[0038] A future change trend analysis module is used to analyze the change degree of the frequency of each character in different construction stages, and to analyze the change degree of the total amount of measurement data in different construction stages, so as to obtain the future change trend degree of each character;
[0039] A coding priority analysis module, used to obtain the coding priority of each character according to the future change trend and the key data expression, combined with the overall character frequency;
[0040] The data compression and storage module is used to assign a coding length to each character according to the coding priority to complete data compression and storage.
[0041] Compared with the prior art, the method and system for storing construction engineering measurement data provided by the present invention have the following beneficial effects:
[0042] The present invention provides a data basis for subsequent analysis by acquiring the measurement data of each construction stage and the characters in the measurement data; analyzing the frequency of each character appearing in the measurement data of all construction stages and the measurement data of each construction stage to obtain the overall character frequency and the stage character frequency; based on the stage character frequency, analyzing the characteristics of the key data in the measurement data to obtain the key data expression degree of each character, thereby reflecting the particularity of key information such as professional terms therein. By considering the degree of change of the stage character frequency of each character in different construction stages and the degree of change of the total amount of measurement data in different construction stages, the future incremental change trend of the character is reflected. Therefore, the encoding length of the character is comprehensively determined based on both the future change trend degree and the key data expression degree, thereby improving the compression efficiency while taking into account the subsequent access efficiency to the key data.
[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0045] Figure 1 A basic flow chart of a construction engineering measurement data storage method provided by an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of the basic composition of a construction engineering measurement data storage system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a construction engineering measurement data storage method and system proposed by the present invention, its specific implementation method, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. Terms such as "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such article or device. In the absence of further restrictions, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the article or device including the element.
[0049] The specific scheme of the construction engineering measurement data storage method provided by the present invention is described in detail below with reference to the accompanying drawings.
[0050] See also Figure 1 , which shows the basic process of a construction engineering measurement data storage method provided by an embodiment of the present invention.
[0051] like Figure 1 As shown, a method for storing construction engineering measurement data provided by an embodiment of the present invention specifically includes:
[0052] S100: Acquire measurement data of each construction stage and characters in the measurement data.
[0053] For construction projects, the measurement data of construction projects can be obtained by using various measuring equipment (such as total stations, levels, GPS-RTK, etc.). For construction projects, as the construction work proceeds, it is usually necessary to measure the relevant data at different construction stages to ensure that the construction project is carried out accurately according to the design requirements. Therefore, the measurement data of the construction project at each construction stage is first obtained, where each construction stage will contain multiple types of measurement data. Here, each construction stage is taken as a unit, and the measurement data contained therein is the overall measurement data of the construction stage. At the same time, the characters contained in the measurement data of each construction stage are obtained.
[0054] S200: Analyze the frequency of occurrence of each character in the measurement data of all construction stages and the measurement data of each construction stage to obtain an overall character frequency and a stage character frequency.
[0055] The frequency of each character appearing in the measurement data of all construction stages and in the measurement data of each construction stage is analyzed to obtain the overall character frequency and the stage character frequency. Furthermore, the measurement data obtained in all construction stages of the construction project are defined as the overall data, and the ratio of the number of times each character appears in the overall data to the total number of characters in the overall data is analyzed to obtain the overall character frequency. The ratio of the number of times each character appears in the measurement data of each construction stage to the total number of characters in the measurement data of each construction stage is analyzed to obtain the stage character frequency.
[0056] The specific operation method is: for the measurement data obtained at each construction stage of the current construction project, the measurement data of all construction stages are defined as the overall data to analyze the frequency of each character in the measurement data in the overall data. First, traverse the number of occurrences of each character in the overall data, recorded as c n , c n Indicates the number of times the nth character appears in the overall data; secondly, the total amount of character data in the overall data is counted, recorded as C; the overall character frequency of the nth character is obtained as:
[0057]
[0058] In the formula, q n represents the overall character frequency of the nth character; c n represents the number of times the nth character appears in the overall data; C represents the total amount of character data in the overall data; norm represents the linear normalization function.
[0059] Thus, the overall character frequency of each character in the overall data composed of the measurement data obtained at each construction stage of the construction project can be determined.
[0060] At the same time, the number of occurrences of each character in the measurement data of each construction stage is traversed and recorded as c n,m , c n,m represents the number of times the nth character appears in the measurement data of the mth construction stage; and the total number of characters in the measurement data of each construction stage is counted, denoted as C m , C m represents the total number of characters in the measurement data of the mth construction stage; the stage character frequency of the nth character in the measurement data of the mth construction stage is:
[0061]
[0062] In the formula, q n,m represents the phase character frequency of the nth character in the measurement data of the mth construction phase; c n,m Indicates the number of times the nth character appears in the measurement data of the mth construction stage; C m represents the total number of characters in the measurement data of the mth construction stage; norm represents the linear normalization function.
[0063] Thus, the phase character frequency of each character in the measurement data obtained at each construction phase of the construction project can be determined.
[0064] S300: Analyze the characteristics of key data in the measurement data based on the stage character frequency to obtain the key data expression degree of each character.
[0065] The measurement data currently obtained at each construction stage of the construction project is collected and obtained during the actual construction process of the construction project. As the construction project progresses, there will be differences between the measured data, but the relevant professional terms will appear in each measurement data and usually maintain a relatively consistent frequency of occurrence. This is because professional terms are standardized languages in the field of construction engineering, used to describe specific concepts, processes or entities. Professional terms are usually associated with key information of construction projects, such as material specifications, structural types, safety standards, etc. Therefore, their importance in the overall data is greater, and they can be collectively referred to as "key data". When compressing these key data, although they may not be high-frequency characters, due to their importance in the document, shorter codes should be assigned to them for subsequent rapid identification and retrieval.
[0066] Based on the above analysis, the embodiment of the present invention analyzes the characteristics of the key data in the measurement data based on the stage character frequency to obtain the key data expression degree of each character. Further, the relative consistency of the stage character frequency corresponding to each character in the measurement data of all construction stages is analyzed to obtain the key data expression degree of each character. The specific operation method is: calculate the standard deviation of the stage character frequency corresponding to the nth character in the measurement data of all construction stages to obtain σ m∈[1,M] (q n,m ), and then the standard deviation of the frequency of the stage characters σ m∈[1,M] (q n,m ) is linearly normalized to obtain norm[σ m∈[1,M] (q n,m )], the key data representation of the nth character is obtained as:
[0067] W n =1-norm[σ m∈[1,M] (q n,m )];
[0068] Where W n Indicates the key data representation of the nth character; q n,m represents the phase character frequency of the nth character in the measurement data of the mth construction phase; σ represents the standard deviation function; norm represents the linear normalization function; M represents the number of construction phases of the construction project.
[0069] Here is the standard deviation σ m∈[1,M] (q n,m ) method to calculate relative consistency, and relative consistency here reflects the key data expression of characters, because the key data (professional terms, etc.) in the characters are compared with the character frequencies of other non-key data, and the stage character frequencies measured in different construction stages are relatively consistent.
[0070] Thus, the key data expression of each character can be obtained to reflect the possibility that the character is a professional term.
[0071] S400: Analyze the change degree of the frequency of each character in different construction stages, and analyze the change degree of the total amount of measurement data in different construction stages, to obtain the future change trend of each character.
[0072] The measurement of construction engineering data is phased, and the amount of test data in different construction stages is different. Therefore, when compressing construction engineering measurement data, in order to obtain better compression effect, while considering the currently acquired measurement data, it is also necessary to analyze the performance of future measurement data to ensure that the final determined coding table can also maintain a relatively high compression efficiency for the subsequently acquired measurement data.
[0073] Based on the above analysis, the embodiment of the present invention obtains the future change trend of each character by analyzing the change degree of the stage character frequency of each character in different construction stages and analyzing the change degree of the total amount of measurement data in different construction stages.
[0074] Firstly, the degree of change of the stage character frequency of each character in different construction stages is analyzed, including: analyzing the ratio of the stage character frequencies of each character in two adjacent construction stages to obtain the frequency increment ratio of the stage character frequencies; according to the frequency increment ratio, combined with the mean of the stage character frequencies corresponding to each character, the degree of future incremental trend of each character is obtained.
[0075] Among them, the calculation formula of the frequency increment ratio of the character frequency in the construction phase is:
[0076]
[0077] In the formula, E n represents the frequency increment ratio of the stage character frequency of the nth character; M represents the number of construction stages of the construction project; q n,m represents the phase character frequency of the nth character in the measurement data of the mth construction phase; q n,m+1 Indicates the phase character frequency of the nth character in the measurement data of the m+1th construction phase.
[0078] The frequency increment ratio of the stage character frequency of the nth character is obtained by traversing the ratio of the stage character frequencies corresponding to all two adjacent construction stages of the nth character and summing and averaging them. Thus, the frequency increment ratio of the stage character frequency of each character can be obtained.
[0079] The above process is based on comparing the stage character frequencies of each character in two adjacent construction stages. Because the ultimate core is to predict the future appearance trend of the character, we cannot only consider the difference in the stage character frequencies of the characters in different construction stages, but also need to consider the difference between the characters and other characters.
[0080] Therefore, the embodiment of the present invention obtains the future increment trend degree of each character based on the frequency increment ratio and the average value of the stage character frequency corresponding to each character. The calculation formula for constructing the future increment trend degree of the character is:
[0081]
[0082] Where, T n Indicates the future incremental trend of the nth character; E n The frequency increment ratio representing the stage character frequency of the nth character; represents the average of the stage character frequencies of the nth character in the measurement data of all construction stages; norm represents the linear normalization function.
[0083] The average phase character frequency of the nth character in the measurement data of all construction stages is used to reflect the difference in phase character frequency between the nth character and other characters. The larger the average value, the larger the average phase character frequency determined based on each construction stage. For example, if the average phase character frequency of character a is 0.6 and the average phase character frequency of character b is 0.7, then the average phase character frequency of character b is significantly higher than that of character a, which means that based on the current analysis, character b appears more frequently. From a prediction perspective, character b may appear more frequently in the future than character a. Therefore, the average phase character frequency of the nth character in the measurement data of all construction stages is used as the weight of the frequency increment ratio of the phase character frequency of the nth character to obtain the future increment trend of the nth character.
[0084] Thus, the future incremental trend degree of all characters is obtained.
[0085] The above process only considers the change performance of future data increments for the stage character frequency. However, when measuring the data of actual construction projects, as the staged measurement of the project construction proceeds, although the data measurement in different construction stages may have different emphases, the data and activities between each construction stage are closely linked, especially from the perspective of the measured data volume. Therefore, in order to analyze the future change trend of the characters, it is also necessary to consider the degree of change in the data volume of each current construction stage.
[0086] Therefore, the degree of change of the total amount of measurement data in different construction stages is analyzed at the same time, further including: analyzing the slope relationship between the total amount of measurement data in two adjacent construction stages to obtain the degree of change of the total amount of data. The calculation formula for the degree of change of the total amount of data is constructed as follows:
[0087]
[0088] Where R represents the degree of change in the total amount of data reflected by the measurement data at all construction stages; (L m ,t m ) represents the total amount of characters and time data points of the measurement data of the mth construction stage, where time point t m Take the middle day of the time period corresponding to the mth construction stage; (L m+1 ,t m+1 ) represents the total amount of characters and time data points of the measurement data of the m+1th construction stage, where the time point t m+1 Take the middle day of the time period corresponding to the m+1th construction stage; k[(L m ,tm ),(L m+1 ,t m+1 )] represents the slope between the data points corresponding to the total amount of characters of the measurement data in the mth construction stage and the m+1th construction stage, where the time difference is in days; M represents the number of construction stages of the construction project.
[0089] By traversing the slope relationship between the total amount of data of the measurement data of all two adjacent construction stages, the degree of change of the total amount of data reflected by the measurement data based on all construction stages is obtained.
[0090] Through the above steps, the future increment trend degree and the total data change degree of each character are obtained. After that, the embodiment of the present invention supplements and amends the future increment trend degree of each character by the total data change degree to obtain the future change trend degree of each character. The calculation formula for constructing the future change trend degree of each character is:
[0091] P n =norm(T n *(1+R));
[0092] Where P n Indicates the future change trend of the nth character; T n It indicates the future incremental trend of the nth character; R indicates the degree of change in the total amount of data reflected by the measurement data of all construction stages; norm indicates the linear normalization function.
[0093] The degree of change in the total amount of data reflected by the measurement data of the current construction stages is used to make supplementary corrections to the future incremental trend of the character, so as to determine the future change trend of the character. The higher the value, the greater the possibility that the character will appear in the future under comprehensive analysis.
[0094] S500: According to the future change trend and key data expression, combined with the overall character frequency, the encoding priority of each character is obtained.
[0095] Because the final character encoding length is expected to take into account the data compression efficiency (including future data) and the efficiency of key data retrieval and search, the overall character frequency of the character is used as a reference when defining the character encoding length. When the frequency is higher, the more attention is paid to the key data expression of the character; when the frequency is lower, the more attention is paid to the future change trend of the character. By combining the two, the character encoding length is determined.
[0096] Based on the above analysis, the embodiment of the present invention obtains the encoding priority of each character according to the future change trend and the key data expression, combined with the overall character frequency. Further, it includes: taking the overall character frequency as the weight coefficient of the key data expression to obtain the key data influence; taking the difference between 1 and the overall character frequency as the weight coefficient of the future change trend to obtain the future change trend influence; according to the key data influence and the future change trend influence, obtain the encoding priority of each character. That is, when the overall character frequency is large, increase the weight of the character's key data expression to the character's encoding priority; when the overall character frequency is small, increase the weight of the character's future change trend to the character's encoding priority to obtain the encoding priority of each character. The calculation formula for constructing the encoding priority of each character is:
[0097] Y n =q n *W n +(1-q n )*P n ;
[0098] Among them, Y n Indicates the encoding priority of the nth character; q n represents the overall character frequency of the nth character; q n *W n Indicates the impact of key data; W n Indicates the key data representation of the nth character; P n Indicates the future change trend of the nth character; (1-q n )*P n Indicates the impact of future change trends.
[0099] S600: Assign a coding length to each character according to the coding priority to complete data compression and storage.
[0100] According to the coding priority, a coding length is assigned to each character to complete data compression and storage, including: assigning a coding length to each character in descending order of the coding priority corresponding to the character (the larger the coding priority, the smaller the corresponding coding length), and constructing a Huffman coding table for construction engineering measurement data; according to the Huffman coding table, compressing the construction engineering measurement data to obtain compressed data; storing the compressed data on a local server or cloud platform, which reduces the amount of data and facilitates the subsequent access efficiency to key data.
[0101] Based on the same inventive concept as the above method, this embodiment also provides a construction engineering measurement data storage system.
[0102] See also Figure 2, which shows the basic composition of a construction engineering measurement data storage system provided by an embodiment of the present invention.
[0103] like Figure 2 As shown, a construction engineering measurement data storage system includes: a memory 10 and a processor 20, wherein:
[0104] A memory 10, used for storing program codes;
[0105] The processor 20 is used to read the program code stored in the memory 10, and execute to obtain the measurement data of each construction stage and the characters in the measurement data; analyze the frequency of each character in the measurement data of all construction stages and the measurement data of each construction stage to obtain the overall character frequency and the stage character frequency; based on the stage character frequency, analyze the characteristics of the key data in the measurement data to obtain the key data expression of each character; analyze the degree of change of the stage character frequency of each character in different construction stages, and analyze the degree of change of the total amount of measurement data in different construction stages to obtain the future change trend of each character; according to the future change trend and the key data expression, combined with the overall character frequency, obtain the encoding priority of each character; according to the encoding priority, assign a coding length to each character to complete data compression and storage.
[0106] Furthermore, the processor 20 includes a measurement data acquisition module 21, a character frequency analysis module 22, a key data analysis module 23, a future change trend analysis module 24, a coding priority analysis module 25, and a data compression and storage module 26. Among them:
[0107] The measurement data acquisition module 21 is used to acquire the measurement data of each construction stage and the characters in the measurement data;
[0108] The character frequency analysis module 22 is used to analyze the frequency of each character appearing in the measurement data of all construction stages and the measurement data of each construction stage, and obtain the overall character frequency and the stage character frequency;
[0109] The key data analysis module 23 is used to analyze the characteristics of the key data in the measurement data based on the frequency of the stage characters, and obtain the key data expression degree of each character;
[0110] The future change trend analysis module 24 is used to analyze the change degree of the frequency of each character in different construction stages, and to analyze the change degree of the total amount of measurement data in different construction stages, so as to obtain the future change trend degree of each character;
[0111] The coding priority analysis module 25 is used to obtain the coding priority of each character according to the future change trend and key data expression, combined with the overall character frequency;
[0112] The data compression and storage module 26 is used to assign a coding length to each character according to the coding priority to complete data compression and storage.
[0113] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0114] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for storing construction engineering measurement data, characterized in that: The method comprises: Obtain the measurement data and characters in the measurement data for each construction stage; Analyze the frequency of occurrence of each of the characters in the measurement data of all construction stages and the measurement data of each construction stage to obtain the overall character frequency and the stage character frequency; Based on the frequency of the characters in the stage, the characteristics of the key data in the measurement data are analyzed to obtain the key data expression degree of each character; Analyze the change degree of the frequency of the stage characters of each character at different construction stages, and analyze the change degree of the total amount of the measurement data at different construction stages, to obtain the future change trend degree of each character; According to the future change trend and the key data expression, combined with the overall character frequency, the encoding priority of each character is obtained; According to the coding priority, a coding length is assigned to each of the characters to complete data compression and storage; The frequency of occurrence of each of the characters in the measurement data of all construction stages and the measurement data of each construction stage is analyzed to obtain the overall character frequency and the stage character frequency, including: The measurement data of all construction stages are defined as overall data, and the ratio of the number of times each character appears in the overall data to the total number of characters in the overall data is analyzed to obtain the overall character frequency; Analyze the ratio of the number of times each character appears in the measurement data of each construction stage to the total number of characters in the measurement data of each construction stage to obtain the stage character frequency; Based on the frequency of the characters in the stage, the characteristics of the key data in the measurement data are analyzed to obtain the key data expression of each character, including: Analyze the relative consistency of the frequency of the stage characters corresponding to each of the characters in the measurement data of all construction stages to obtain the key data expression of each of the characters; According to the future change trend and the key data expression, combined with the overall character frequency, the encoding priority of each character is obtained, including: Using the overall character frequency as a weight coefficient of the key data expression degree to obtain the key data influence degree; The difference between 1 and the overall character frequency is used as the weight coefficient of the future change trend degree to obtain the future change trend influence degree; According to the influence of the key data and the influence of the future change trend, the encoding priority of each character is obtained.
2. The construction engineering measurement data storage method according to claim 1, characterized in that: Analyze the change degree of the frequency of each character in different construction stages, including: Analyzing the ratio of the stage character frequencies of each character in two adjacent construction stages to obtain the frequency increment ratio of the stage character frequencies; According to the frequency increment ratio and in combination with the average value of the frequency of the characters in the stage corresponding to each of the characters, the degree of future increment trend of each of the characters is obtained.
3. The construction engineering measurement data storage method according to claim 2, characterized in that: Analyze the degree of change in the total amount of measurement data at different construction stages, including: The slope relationship between the total amount of measurement data in two adjacent construction stages is analyzed to obtain the degree of change in the total amount of data.
4. The construction engineering measurement data storage method according to claim 3, characterized in that: The future incremental trend degree of each character is supplemented and corrected by the change degree of the total amount of data to obtain the future change trend degree of each character.
5. The construction engineering measurement data storage method according to claim 1, characterized in that: According to the encoding priority, each character is assigned an encoding length to complete data compression and storage, including: According to the descending order of the coding priorities corresponding to the characters, a coding length is assigned to each character to construct a Huffman coding table for construction engineering measurement data; According to the Huffman coding table, the construction engineering measurement data is compressed to obtain compressed data; The compressed data is stored.
6. A construction engineering measurement data storage system, characterized in that: The system comprises: a memory and a processor, wherein: The memory is used to store program codes; The processor is configured to read the program code stored in the memory and execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Municipal engineering design data optimization processing method
CN117034865A