Current situation assessment method and system for territorial space planning

By optimizing the dictionary update and block processing of the LZW algorithm, the efficiency of data encoding and decoding in territorial spatial planning assessment is improved, the problem of low dictionary utilization in traditional methods is solved, and a more efficient spatial planning assessment is achieved.

CN118780244AActive Publication Date: 2024-10-15滕州市测绘院 +2
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411258824.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-10-15
Estimated Expiration
2044-09-10

AI Technical Summary

Technical Problem

In the traditional land spatial planning evaluation method, the dictionary utilization rate is low during the encoding process of the LZW string table compression algorithm, resulting in low encoding and decoding efficiency and excessive storage space occupation, which reduces the evaluation efficiency.

Method used

By obtaining the initial distribution uniformity, entry distribution uniformity and recommended sub-block capacity of the population and economic data set, the dictionary block size and frequency are adaptively adjusted, the dictionary update process of the LZW algorithm is optimized, and the utilization rate of dictionary entries and encoding and decoding are improved. speed.

Benefits of technology

The encoding and decoding speed of land spatial planning data packets is improved, and the evaluation efficiency is enhanced. Through adaptive dictionary updating and reasonable block processing, high-frequency entries are ensured in the front position and the space occupied by unused entries is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780244A_ABST
    Figure CN118780244A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data coding, in particular to a current situation assessment method and system for territorial space planning. Obtaining initial distribution uniformity according to the number difference of the category characters in the population economic data set; obtaining recommended sub-block capacity and entry distribution uniformity according to features of different types of entries; obtaining an initial dictionary sub-block capacity according to the initial distribution uniformity, the entry distribution uniformity and the recommended sub-block capacity; obtaining dictionary blocks and dictionary block frequency values of the population economy data set according to an LZW algorithm and the initial dictionary sub-block capacity; and updating the dictionary blocks according to difference characteristics of the dictionary block frequency values and preset frequency values to obtain an iterative dictionary. According to the method, coding is continued according to an iteration dictionary, and an iteration dictionary obtaining step is cycled until coding is finished, and a space planning data packet is obtained; and the spatial planning is evaluated according to the decompressed spatial planning data packet, so that the coding and decoding efficiency and the planning evaluation efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data coding technology, and in particular to a current status assessment method and system for national land space planning. Background Art

[0002] As the foundation of human survival and development, it is particularly important to make scientific and rational use of land resources. Planning of national land space can optimize resource allocation and promote regional coordinated development. Traditional national land space planning assessment methods usually construct a national land space planning assessment system with three-level indicators, which is used as a basis for qualitative and quantitative assessments. However, this assessment method covers a single direction and plays a limited guiding role in the further revision of national land space planning schemes. In order to improve the comprehensiveness of the assessment, the population flow data and economic change data in each pre-planned sub-area can be analyzed to determine the planning effect, but the amount of population flow data and economic change data collected is huge, and a large amount of data needs to be compressed and stored during the assessment process. Since the collected data sets are mainly digital, they can be compressed and stored through the existing LZW string table compression algorithm, but the dictionary utilization rate generated during the encoding process of this algorithm is low, resulting in low encoding and decoding efficiency and occupied storage space, reducing the efficiency of national land space planning assessment. Summary of the invention

[0003] In order to solve the technical problem of compressing the evaluation data set by the LZW algorithm and reducing the evaluation efficiency of national land space planning, the present invention aims to propose a current status evaluation method and system for national land space planning, comprising the following steps: Obtain demographic and economic data sets for national spatial planning; Obtaining an initial distribution uniformity according to the quantity difference characteristics of the types of characters in the population economic data set; obtaining different types of entries according to the distribution characteristics of the characters in the population economic data set, and obtaining the recommended sub-block capacity according to the quantity characteristics and length characteristics of the entries; obtaining the entry distribution uniformity according to the distribution characteristics of the entries; obtaining the initial dictionary sub-block capacity according to the initial distribution uniformity, the entry distribution uniformity and the recommended sub-block capacity; The population and economic data set is encoded according to the LZW algorithm to obtain a new dictionary and dictionary term frequencies, and the new dictionary is divided into blocks according to the initial dictionary sub-block capacity to obtain different dictionary blocks; when the new dictionary exceeds the preset capacity, a dictionary block frequency value is obtained according to the dictionary term frequencies of the dictionary block; the initial dictionary sub-block capacity is adjusted according to the difference characteristics between the dictionary block frequency value and the preset frequency value to obtain a sub-block change; the dictionary block is adaptively updated according to the sub-block change and the dictionary block frequency value to obtain a dictionary update block, and the dictionary term frequencies of the dictionary update block are sorted and eliminated to obtain an iterative dictionary; The population and economic data set is continuously encoded according to the iterative dictionary and the acquisition step of the iterative dictionary is looped until the encoding is completed to obtain a spatial planning data packet; the spatial planning data packet is stored and decompressed, and the spatial planning is evaluated according to the decompressed spatial planning data packet.

[0004] Furthermore, the step of obtaining the initial distribution uniformity according to the quantity difference characteristics of the type characters in the population economic data set includes: The variance of the number of all types of characters in the population economic data set is calculated and negatively correlated to obtain the initial distribution uniformity.

[0005] Furthermore, the step of obtaining different types of entries according to the distribution characteristics of the characters in the population and economic data set and obtaining the recommended sub-block capacity according to the quantity characteristics and length characteristics of the entries includes: The population and economic data set is traversed according to a preset initial window and a preset sliding step length, and the character string in the preset initial window during each sliding is used as the entry; after the traversal is completed, the length of the preset initial window is increased by one and a new round of traversal is performed on the population and economic data set according to the preset sliding step length to obtain a new entry; after the traversal is completed, the length of the preset initial window is increased by two and the traversal is continued; the traversal process is repeated until no duplicate entries appear after the traversal is completed; if any entry appears in other entries, the arbitrary entry is deleted to obtain entries of different types; The product of the string length and the number of occurrences of each type of term is calculated to obtain different term capacity values; the maximum value of the term capacity values ​​is used as the recommended sub-block capacity.

[0006] Furthermore, the step of obtaining the term distribution uniformity according to the distribution characteristics of the terms includes: The variance of the number of spacer characters between adjacent terms of the same category in the population economics data set is calculated and negatively correlated to obtain the term distribution uniformity corresponding to the terms of the same category.

[0007] Furthermore, the step of obtaining the initial dictionary sub-block capacity according to the initial distribution uniformity, the entry distribution uniformity and the recommended sub-block capacity includes: When the initial distribution uniformity exceeds a preset uniformity threshold, using the recommended sub-block capacity as the initial dictionary sub-block capacity; When the initial distribution uniformity does not exceed a preset uniformity threshold, different categories of entries are sorted in descending order according to the recommended sub-block capacity to obtain a category entry sequence; the average value of the term distribution uniformity corresponding to the first number of categories of entries ranked in the category entry sequence is calculated to obtain a capacity adjustment coefficient; the product of the capacity adjustment coefficient and the recommended sub-block capacity is calculated and rounded down to obtain the initial dictionary sub-block capacity.

[0008] Furthermore, the steps of encoding the population and economic data set according to the LZW algorithm to obtain a newly added dictionary and dictionary term frequencies, and dividing the newly added dictionary into blocks according to the initial dictionary sub-block capacity to obtain different dictionary blocks include: In the process of encoding the population and economic data set using the LZW algorithm, the newly added dictionary is constructed according to the newly added dictionary entries; the initial value of the dictionary entry frequency of each dictionary entry in the newly added dictionary is a constant of 0, and the dictionary entry frequency of the dictionary entry increases by one digit each time the dictionary entry is used once in the encoding process; The first dictionary entry in the newly added dictionary is divided into the first dictionary block until the capacity of the first dictionary block reaches the capacity of the initial dictionary sub-block; the division of the second dictionary block is continued until all the dictionary blocks of the newly added dictionary are obtained.

[0009] Further, the step of obtaining a dictionary block frequency value according to the dictionary term frequency of the dictionary block comprises: The average value of the dictionary term frequencies of all the dictionary terms in the dictionary block is calculated to obtain the average frequency; the product of the average frequency and a preset second coefficient is calculated and normalized to obtain the dictionary frequency feature value of the dictionary block.

[0010] Furthermore, the step of adjusting the initial dictionary sub-block capacity according to the difference characteristics between the dictionary block frequency value and the preset frequency value to obtain the sub-block change amount includes: Calculating the absolute value of the difference between the dictionary frequency value of the dictionary block and the preset frequency value to obtain a frequency difference value; When the dictionary frequency value exceeds the preset frequency value, the difference between the constant 1 and the preset frequency value is calculated to obtain a difference coefficient; the ratio of the frequency difference value to the difference coefficient is calculated to obtain a first adjustment reference; the product of the first adjustment reference and the initial dictionary sub-block capacity is calculated and rounded down to obtain a sub-block change amount of the dictionary block; When the dictionary frequency value does not exceed the preset frequency value, the ratio of the frequency difference value to the preset frequency value is calculated to obtain a second adjustment benchmark; the product of the second adjustment benchmark and the initial dictionary sub-block capacity is calculated and rounded down to obtain the sub-block change amount of the dictionary block.

[0011] Furthermore, the step of adaptively updating the dictionary block according to the sub-block variation and the dictionary block frequency value to obtain a dictionary update block, and sorting and eliminating the dictionary terms in the dictionary update block according to their frequencies to obtain an iterative dictionary includes: Sorting the dictionary blocks from large to small according to the dictionary frequency feature values ​​to obtain a dictionary block sequence; starting from the first position in the dictionary block sequence, when the dictionary frequency value of a dictionary block exceeds a preset frequency value, taking dictionary entries of the sub-block variation size from other dictionary blocks adjacent to the dictionary block with smaller dictionary frequency values ​​and dividing them into the dictionary block; when the dictionary frequency values ​​of other dictionary blocks adjacent to the dictionary block are larger, no division is performed; When the dictionary frequency value of the dictionary block does not exceed the preset frequency value, the dictionary entries of the sub-block change amount are divided out in the dictionary block to obtain a new dictionary block; all the dictionary blocks obtained after completing the division process of all the dictionary blocks in the dictionary block sequence are used as the dictionary update blocks; The iterative dictionary is obtained by sorting the dictionary update blocks from large to small according to their dictionary block frequency values ​​and eliminating the dictionary update blocks with a dictionary frequency value of 0.

[0012] The present invention also proposes a current status assessment system for national land space planning, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any step of a current status assessment method for national land space planning.

[0013] Compared with the prior art, the present invention has the following beneficial effects: In the present invention, obtaining the initial distribution uniformity can preliminarily determine the difference in the number of different entries in the population and economic data set, and the initial dictionary sub-block capacity can be preliminarily selected according to the initial distribution uniformity; obtaining the recommended sub-block capacity can determine the appropriate dictionary block size under the ideal state of uniform entry distribution; obtaining the entry distribution uniformity can obtain the appropriate initial dictionary sub-block capacity according to the entry distribution characteristics in the population and economic data set; and obtaining different dictionary blocks by dividing the newly added dictionary according to the initial dictionary sub-block capacity can make the initial capacity of the dictionary block moderate. Obtaining the dictionary entry frequency can determine the number of times different dictionary entries are used in the encoding process, thereby determining the importance of different dictionary blocks according to the dictionary block frequency value; obtaining the sub-block change can determine the expansion and splitting degree of different dictionary blocks, so that the dictionary entry frequency of the dictionary entries in the dictionary update block is more even, so that the dictionary entries that are used more frequently in the iterative dictionary are ranked higher; according to the dictionary entry distribution characteristics of the iterative dictionary, the encoding and decoding speed of the population and economic data set can be improved, so that the acquisition speed of the spatial planning data packet is faster, and finally the evaluation efficiency of the current status of the land space is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] 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.

[0015] Figure 1 A flow chart of a current status assessment method for national land space planning proposed in one embodiment of the present invention. DETAILED DESCRIPTION

[0016] 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 the current situation assessment method and system for national land space planning proposed in accordance with the present invention, its specific implementation method, structure, characteristics and effects, in combination 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.

[0017] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0018] The following is a detailed description of a method and system for status quo assessment of national land space planning proposed by the present invention in conjunction with the accompanying drawings.

[0019] See also Figure 1 , which shows a flow chart of a current status assessment method for national land space planning proposed in an embodiment of the present invention, comprising the following steps: Step S1, obtaining population and economic data sets for national land space planning.

[0020] In an embodiment of the present invention, the implementation scenario is to store data in the process of national land space planning assessment to improve the efficiency of storage and planning assessment. First, the population and economic data set used for national land space planning is obtained. According to the national land space planning plan, an entire planning area will be planned into different sub-areas, and the sub-areas formed after planning will be determined; because the real-time performance of the flow of people obtained by the traditional population census is poor, the real-time population flow data is obtained based on the change in the mobile phone signaling in the communication base station in the sub-area, and the daily commuting rate in the sub-area is calculated based on the mobile phone signaling data in the communication base station in the sub-area, so as to obtain the population inflow and outflow data of the area, and merge the population inflow and outflow in different sub-areas in different time periods into a population flow data set; it should be noted that the calculation of the commuting rate based on the communication base station belongs to the existing technology, and the specific steps will not be repeated.

[0021] For economic change data, the economic distance, economic connection and economic gravity of each sub-region with other sub-regions are obtained; the economic change data set is constructed based on the economic distance, economic connection and economic gravity of each sub-region with other sub-regions; it should be noted that the data indicators in the economic change data set are all well-known technologies for those skilled in the art, and the specific calculation steps are not repeated here. The population flow data set and the economic change data set are combined into a population economic data set, and the population economic data set can reflect the population and economic development trend of the corresponding region, so as to achieve the effect evaluation of the current status of land planning; implementers can collect other types of data to participate in the construction of the population economic data set.

[0022] Step S2, obtaining the initial distribution uniformity according to the quantity difference characteristics of the types of characters in the demographic and economic data set; obtaining different types of entries according to the distribution characteristics of the characters in the demographic and economic data set, and obtaining the recommended sub-block capacity according to the quantity characteristics and length characteristics of the entries; obtaining the entry distribution uniformity according to the distribution characteristics of the entries; obtaining the initial dictionary sub-block capacity according to the initial distribution uniformity, the entry distribution uniformity and the recommended sub-block capacity.

[0023] Since the population and economic data set has a huge amount of data and is mainly composed of numbers, the existing LZW string table compression algorithm can be used for compression for easy storage. LZW encoding is based on the order of text for encoding and compression, and the dictionary is also established based on the order of text. Since text information has contextual connections and has strong local correlation, the dictionary entries in the dictionary also have local correlation. As the encoding proceeds, a large number of new dictionary entries will appear in the dictionary, but not all dictionary entries are used. There are a large number of useless dictionary entries, which makes the dictionary utilization rate low, affects the efficiency of encoding and decoding, occupies storage space, and reduces the efficiency of the evaluation process. Therefore, it is necessary to improve the LZW encoding process to reduce the time of the evaluation process by improving the efficiency of encoding and decoding. First, the dictionary is divided into blocks to obtain different dictionary blocks. The size of the dictionary sub-blocks is adaptively changed according to the usage rate of the dictionary entries in the dictionary block, so that the frequently used dictionary entries are in one dictionary block as much as possible. The dictionary blocks are adaptively pre-processed according to the usage frequency of the dictionary blocks, so that the high-frequency dictionary blocks are in the front part of the dictionary. When the dictionary capacity is full, the dictionary is replaced according to the usage frequency. For the unused dictionary entries, they are replaced with newly compiled dictionary entries to free up space. When the entries in the dictionary are all valid entries, the dictionary is expanded. This not only increases the utilization rate of the dictionary, but also speeds up the encoding and decoding speed due to the pre-processing of high-frequency entries.

[0024] When the dictionary block is small, it is usually more efficient to find whether a string is in the dictionary and its corresponding code, because the search range is limited to a smaller subset, which can reduce the search time and improve the speed of encoding and decoding. On the contrary, if the dictionary block is too large, the search operation may need to traverse more dictionary entries, resulting in a decrease in the search speed. Smaller dictionary blocks can improve the search speed, but more dictionary blocks are required to store the entire dictionary, which increases the cost of managing dictionary blocks and the use of storage space; larger dictionary blocks can reduce the number of sub-blocks, but may cause a decrease in the search speed. Therefore, it is necessary to select a suitable dictionary block size according to the data distribution characteristics of the population and economic data set; first, the initial distribution uniformity is obtained according to the number difference characteristics of the types of characters in the population and economic data set. Preferably, in one embodiment of the present invention, the step of obtaining the initial distribution uniformity includes: calculating the variance of the number of all types of characters in the population and economic data set and negatively mapping them to obtain the initial distribution uniformity. When the variance is smaller, the number of different types of characters in the population and economic data set is more similar; because the entries in the population and economic data set are composed of different types of characters, when the number of different types of characters is more similar, the number of different entries in the population and economic data set is more evenly distributed, and the initial distribution uniformity is greater. When the number of different entries is more similar, when LZW is used for encoding, if the total capacity occupied by any entry in the population and economics dataset is used as the capacity of the dictionary block, then a dictionary block is more likely to contain different entries; making it more likely that only the dictionary blocks with the highest ranking will be encoded and decoded during the encoding process, improving the evaluation efficiency; and avoiding dictionary blocks that are too large or too small. Then, different types of entries are obtained according to the distribution characteristics of the characters in the population and economics dataset, and the recommended sub-block capacity is obtained according to the number and length characteristics of the entries.

[0025] Preferably, in one embodiment of the present invention, the step of obtaining the recommended sub-block capacity includes: traversing the population and economic data set according to a preset initial window and a preset sliding step. In the embodiment of the present invention, the size of the preset initial window is 2, there are two characters in the window, the preset sliding step is 1, and the preset initial window slides backward one position at a time in the population and economic data set in accordance with the data sequence to obtain two new character combinations; taking the character string in the preset initial window at each sliding as an entry, for example, taking a character string of two characters as an entry, and obtaining a new entry each time the window slides one position until it slides to the last character of the population and economic data set; after the traversal is completed, increasing the length of the preset initial window by one position and performing a new round of traversal on the population and economic data set according to the preset sliding step to obtain a new entry; for example, the size of the new window is 3, and the length of each entry is 3, and each time the new window slides one position, a new entry with a length of 3 is obtained until it slides to the last character of the population and economic data set. After the traversal is completed, the length of the preset initial window is increased by two digits and the traversal is continued. For example, when the window size becomes 4, the window is continued to slide to obtain different entries of length 4; the traversal process is repeated until no duplicate entries appear after the traversal is completed; for example, when the window size is increased to 10, after sliding the window to the last character of the population and economics data set, there are no two identical entries among all the entries of length 10, which means that the entry size in the population and economics data set is almost less than 10 characters, and the traversal process is terminated to obtain all entries of entry size 2 to 9. If any entry appears in other entries, the entry is deleted to obtain entries of different types; for example, if one entry is ZX and another entry is ZXC, then ZX appears in ZXC, and ZX is deleted to avoid repeated calculations. The product of the string length and the number of occurrences of each type of entry is calculated to obtain different entry capacity values; the maximum value of the entry capacity value is used as the recommended sub-block capacity. The entry capacity value reflects the capacity of different entries in the population and economics dataset. The maximum value of the entry capacity represents the capacity characteristics of the entry with the largest capacity in the population and economics dataset. Using the maximum value of the entry capacity as the recommended sub-block capacity can initially avoid the situation where the dictionary block capacity is too large, resulting in too many dictionary entries being stored, affecting the encoding and decoding efficiency; and avoid the situation where the dictionary block capacity is too small, resulting in too many dictionary blocks, which is inconvenient to manage and adaptively adjust.

[0026] Furthermore, when the initial distribution uniformity is larger, the recommended sub-block capacity is more suitable as the capacity of the dictionary block, but the recommended sub-block capacity is only the most suitable size of the dictionary block when the number of different entries is similar and evenly distributed in different positions of the population and economic data set. However, each evaluation indicator in the population and economic data set evaluates multiple sub-regions, and multiple similar text data are more likely to appear in the local range of the population and economic data set, resulting in the high frequency of the same entry in the local range; when the distribution of the same entry is more concentrated, the dictionary entry is more likely to be used frequently during the encoding process, reducing the number of useless dictionary entries; therefore, the capacity of the dictionary block can be reduced, the recommended sub-block capacity can be adjusted, and the evaluation efficiency can be improved; therefore, the entry distribution uniformity is obtained according to the distribution characteristics of the entry.

[0027] Preferably, in one embodiment of the present invention, the step of obtaining the uniformity of term distribution includes: calculating the variance of the number of spacing characters between adjacent terms of the same type in the population economic data set and negatively mapping them, and obtaining the term distribution uniformity corresponding to any type of terms. The number of spacing characters is the number of characters between two adjacent identical terms. When the variance of the number of spacing characters is larger, it means that the distribution of all terms of this type in the population economic data set is more uneven, the number of spacing characters in some areas is smaller, and the distribution is more dense, and the number of spacing characters in some areas is larger, and the distribution is more sparse; therefore, the smaller the uniformity of term distribution, it means that the terms of this type are more concentrated in certain areas of the population economic data set.

[0028] Furthermore, the initial dictionary sub-block capacity can be obtained according to the initial distribution uniformity, the term distribution uniformity and the recommended sub-block capacity; preferably, in one implementation of the present invention, the step of obtaining the initial dictionary sub-block capacity includes: when the initial distribution uniformity exceeds a preset uniformity threshold, it means that the number of terms in the population and economic data set is distributed relatively evenly, and the recommended sub-block capacity is used as the initial dictionary sub-block capacity; in an embodiment of the present invention, the preset uniformity threshold is 0.9, which can be determined by the implementer according to the implementation scenario. When the initial distribution uniformity does not exceed the preset uniformity threshold, the different types of entries are sorted in the order of the recommended sub-block capacity from large to small to obtain a type entry sequence; the average value of the entry distribution uniformity corresponding to the first number of entries in the type entry sequence is calculated to obtain the capacity adjustment coefficient; in the embodiment of the present invention, the preset first number is 10, that is, the capacity adjustment coefficient is obtained according to the first 10 entries in the type entry sequence; the entries ranked at the top of the type entry sequence account for a large proportion of the capacity of the population and economic data, and the entry distribution uniformity of this type of entries needs to be considered when determining the initial dictionary sub-block capacity; the smaller the capacity adjustment coefficient, the more uneven the entry distribution, and the smaller the dictionary block can be used to divide the dictionary characters. Calculate the product of the capacity adjustment coefficient and the recommended sub-block capacity and round it down to obtain the initial dictionary sub-block capacity; when the capacity adjustment coefficient is smaller, the initial dictionary sub-block capacity is smaller.

[0029] Step S3, encode the population and economic data set according to the LZW algorithm to obtain a new dictionary and dictionary term frequencies, divide the new dictionary into different dictionary blocks according to the initial dictionary sub-block capacity; when the new dictionary exceeds the preset capacity, obtain the dictionary block frequency value according to the dictionary term frequencies of the dictionary block; adjust the initial dictionary sub-block capacity according to the difference characteristics between the dictionary block frequency value and the preset frequency value to obtain the sub-block change; adaptively update the dictionary block according to the sub-block change and the dictionary block frequency value to obtain a dictionary update block, and sort and eliminate the dictionary term frequencies of the dictionary update block to obtain an iterative dictionary.

[0030] After obtaining the initial dictionary sub-block capacity, the population and economic data set can be encoded according to the LZW algorithm to obtain a new dictionary and dictionary term frequency, and the new dictionary can be divided into blocks according to the initial dictionary sub-block capacity to obtain different dictionary blocks, specifically including: constructing a new dictionary according to the new dictionary terms in the process of encoding the population and economic data set by the LZW algorithm; in the embodiment of the present invention, the initial dictionary of the LZW algorithm is the existing ASCII encoding; the LZW algorithm belongs to the prior art, and the specific encoding steps are not repeated, and the new dictionary is the dictionary term added in addition to the initial dictionary. The initial value of the dictionary term frequency of each dictionary term in the new dictionary is a constant of 0. When the dictionary term is used once during the encoding process, the dictionary term frequency of the dictionary term increases by one; for example, when a certain dictionary term is used 3 times during the encoding process, the current dictionary term frequency of the dictionary term is 3. Start dividing the first dictionary term in the new dictionary into the first dictionary block until the capacity of the first dictionary block reaches the initial dictionary sub-block capacity; continue to divide the second dictionary block until all dictionary blocks of the new dictionary are obtained. For example, if the number of characters in the initial dictionary sub-block capacity is 500, the total number of characters in each dictionary entry stored in each dictionary block does not exceed 500. When the initial dictionary sub-block capacity is reached, the next dictionary entry is divided into the next dictionary block.

[0031] As the encoding proceeds, the capacity of the dictionary will become larger and larger, the dictionary entry frequency of some dictionary entries will become higher and higher, and the dictionary entry frequency of some dictionary entries will remain 0. Therefore, in order to avoid unused dictionary entries occupying dictionary space, and the time of traversing dictionary entries is long during the encoding process, the dictionary can be deleted and merged. Therefore, when the newly added dictionary exceeds the preset capacity, the dictionary block frequency value is obtained according to the dictionary entry frequency of the dictionary block; in the embodiment of the present invention, the size of the preset capacity is 80% of the total capacity of the dictionary, and the implementer can determine it by himself according to the implementation scenario. The step of obtaining the dictionary block frequency value includes: calculating the average value of the dictionary entry frequency of all dictionary entries in the dictionary block to obtain the average frequency; calculating the product of the average frequency and the preset second coefficient and normalizing it to obtain the dictionary frequency feature value of the dictionary block. In the embodiment of the present invention, the preset second coefficient is 0.05, and the implementer can determine it by himself according to the implementation scenario, in order to narrow the value range of the average frequency; when the dictionary entry frequencies of the dictionary entries in the dictionary block are larger, the dictionary frequency feature value is closer to 1, which means that the dictionary entries in the dictionary block are used more times during the encoding process, and the dictionary block is more important. Due to the local correlation of population and economic data sets, that is, similar entries appear similarly in local areas; therefore, when the dictionary frequency feature value of a certain dictionary block is large during the encoding process, the dictionary entry frequency of the dictionary entries in other dictionary blocks adjacent to the dictionary block may also be high, and the number of times used during the encoding process is large. Therefore, the capacity of the dictionary block can be increased, so that the dictionary entries in other adjacent dictionary blocks are divided into the dictionary block, and the dictionary block is placed in front to improve the speed of encoding and decoding. For the dictionary block with a smaller dictionary frequency feature value, the dictionary entry frequency of the dictionary entry in the dictionary block is lower, and the possibility of being used in the subsequent encoding process is also lower, so the capacity of the dictionary block should be smaller, so as to facilitate the deletion of the dictionary block where the unused dictionary characters are located and increase the dictionary space. Therefore, the capacity of the initial dictionary sub-block is adjusted according to the difference characteristics between the dictionary block frequency value and the preset frequency value to obtain the sub-block change.

[0032] Preferably, in one embodiment of the present invention, the step of obtaining the sub-block change amount and the dictionary update block includes: calculating the absolute value of the difference between the dictionary frequency value of the dictionary block and the preset frequency value to obtain the frequency difference value; in the embodiment of the present invention, the preset frequency value is 0.5, and when the frequency difference value is larger, it means that the dictionary entries in the dictionary block are used more or less times in the encoding process. When the dictionary frequency value exceeds the preset frequency value, it means that the dictionary block is more important, and the dictionary entries therein are used more times during encoding; calculating the difference between the constant 1 and the preset frequency value to obtain the difference coefficient; calculating the ratio of the frequency difference value to the difference coefficient to obtain the first adjustment benchmark; the value range of the first adjustment benchmark is 0 to 1. Calculating the product of the first adjustment benchmark and the initial dictionary sub-block capacity and rounding down to obtain the sub-block change amount of the dictionary block; when the dictionary frequency value of the dictionary block is larger, the first adjustment benchmark is larger, the capacity of the dictionary block is increased, and the sub-block change amount is larger. When the dictionary frequency value does not exceed the preset frequency value, calculating the ratio of the frequency difference value to the preset frequency value to obtain the second adjustment benchmark; the value range of the second adjustment benchmark is 0 to 1. The product of the second adjustment benchmark and the initial dictionary sub-block capacity is calculated and rounded down to obtain the sub-block change of the dictionary block; when the dictionary frequency value of the dictionary block is smaller, the second adjustment benchmark is larger, the capacity of the dictionary block can be reduced more, and the sub-block change is larger.

[0033] Furthermore, the dictionary block can be adaptively updated according to the sub-block variation and the dictionary block frequency value to obtain a dictionary update block, which is sorted and eliminated according to the dictionary entry frequency of the dictionary update block to obtain an iterative dictionary; preferably, in one embodiment of the present invention, the step of obtaining the dictionary update block and the iterative dictionary includes: sorting the dictionary block from large to small according to the dictionary frequency feature value to obtain a dictionary block sequence; obtaining the dictionary block sequence can determine the dictionary block to be adjusted first, and when the dictionary frequency feature value is larger, it is more necessary to increase the size of the dictionary block first. Therefore, starting from the first position in the dictionary block sequence, when the dictionary frequency value of the dictionary block exceeds the preset frequency value, dictionary entries of the size of the sub-block change amount are taken from other dictionary blocks with smaller dictionary frequency values ​​adjacent to the dictionary block and divided into the dictionary block; when the dictionary frequency values ​​of other dictionary blocks adjacent to the dictionary block are larger, no division is performed; for example, in the case where the dictionary frequency value of a certain dictionary block is larger than the two other adjacent dictionary blocks before and after it, dictionary entries of half the size of the sub-block change amount corresponding to the dictionary block are taken from other dictionary blocks before and after it and divided into the dictionary block; the implementer can determine the number of dictionary entries to be divided in the two other dictionary blocks by himself; in the case where there is only one other dictionary block before and after a certain dictionary block with a dictionary frequency value smaller than that of the dictionary block, only dictionary entries of the size of the sub-block change amount are divided from the other dictionary block, and if the dictionary entry capacity in the other dictionary block does not meet the sub-block change amount, all dictionary entries in the other dictionary block are divided into the dictionary block; in the case where the dictionary frequency values ​​of the two other dictionary blocks before and after a certain dictionary block are both larger than that of the dictionary block, the dictionary block is no longer divided.

[0034] When the dictionary frequency value of a dictionary block does not exceed the preset frequency value, the dictionary entries of the sub-block change amount are divided out in the dictionary block to obtain a new dictionary block, which is composed of the divided dictionary entries. All dictionary blocks obtained after completing the division process of all dictionary blocks in the dictionary block sequence are used as dictionary update blocks; that is, all newly added dictionary blocks, reduced dictionary blocks and enlarged dictionary blocks are used as dictionary update blocks. The obtained dictionary update blocks can make the dictionary blocks with larger dictionary frequency values ​​larger, and the dictionary entries in the dictionary blocks are used more frequently, reducing the time for traversing and searching for dictionary entries in different dictionary blocks during encoding; at the same time, the dictionary blocks with smaller dictionary frequency values ​​are split, so that the probability that the average frequency of dictionary entries in some small dictionary update blocks is 0 is greater, and then such dictionary update blocks are deleted, reducing the dictionary storage space and the dictionary entry search time during encoding.

[0035] Furthermore, after obtaining different dictionary update blocks, since the dictionary entries in the larger dictionary update blocks have higher dictionary entry frequencies, and the dictionary entries in some dictionary update blocks are not used; in order to improve the encoding and decoding speed, the larger dictionary update blocks are placed at the front of the dictionary, and the unused dictionary update blocks are deleted to reduce the search time of the dictionary entries, and then the dictionary update blocks are sorted from large to small according to the dictionary block frequency values ​​of the dictionary update blocks and the dictionary update blocks with a dictionary frequency value of 0 are removed to obtain an iterative dictionary. It should be noted that the initial dictionary of the LZW algorithm is always at the front of the iterative dictionary.

[0036] Step S4, continue to encode the population and economic data set according to the iterative dictionary and loop the iterative dictionary acquisition step until the encoding is completed to obtain the spatial planning data packet; store and decompress the spatial planning data packet, and evaluate the spatial planning based on the decompressed spatial planning data packet.

[0037] According to the iterative dictionary, the population and economic data set is continuously encoded and the acquisition step of the iterative dictionary is looped until the spatial planning data packet is obtained after the encoding is completed; after obtaining the iterative dictionary, the population and economic data set is continuously encoded according to the iterative dictionary through the LZW algorithm. Since the dictionary entries with high frequency use are placed in the dictionary update block with the highest ranking in the iterative dictionary, the encoding speed is faster. As the encoding proceeds, the iterative dictionary will become larger. When the iterative dictionary exceeds the preset capacity, the iterative dictionary is continuously merged and divided into dictionary blocks to obtain a new iterative dictionary; thereby ensuring that as the encoding proceeds, the dictionary entries with high frequency use are at the front end of the iterative dictionary, and the unused dictionary entries are removed, so that the encoding process is more efficient, and finally the spatial planning data packet is obtained. The spatial planning data packet is stored and decompressed. During the decompression process, the distribution of dictionary entries in the iterative dictionary can greatly improve the decoding speed, and the spatial planning is evaluated according to the decompressed spatial planning data packet; specifically, it includes: predicting the future population flow data and economic change data of each sub-region according to the existing neural network, and obtaining the corresponding prediction results. The technicians in this field evaluate the current status of the national land space planning according to the prediction results, wherein the neural network data has the existing technology, and the specific prediction process is not repeated. By improving the dictionary construction process, the encoding and decoding speed of large-scale population and economic data sets can be accelerated, thereby improving the evaluation efficiency of national land space planning.

[0038] In summary, the embodiment of the present invention proposes a current status assessment method for national space planning, which obtains the initial distribution uniformity according to the difference in the number of types of characters in the population and economic data set; obtains the recommended sub-block capacity and the entry distribution uniformity according to the characteristics of different types of entries; obtains the initial dictionary sub-block capacity according to the initial distribution uniformity, the entry distribution uniformity and the recommended sub-block capacity; obtains the dictionary block and the dictionary block frequency value of the population and economic data set according to the LZW algorithm and the initial dictionary sub-block capacity; updates the dictionary block according to the difference characteristics between the dictionary block frequency value and the preset frequency value to obtain an iterative dictionary. The present invention continues to encode according to the iterative dictionary and loops the acquisition steps of the iterative dictionary until the encoding is completed to obtain a spatial planning data packet; evaluates the spatial planning according to the decompressed spatial planning data packet, thereby improving the efficiency of encoding, decoding and planning evaluation.

[0039] The present invention also proposes a current status assessment system for national land space planning, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any step of a current status assessment method for national land space planning.

[0040] 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.

[0041] 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 status assessment of national land space planning, characterized in that: The following steps are involved: Obtain demographic and economic data sets for national spatial planning; Obtaining an initial distribution uniformity according to the quantity difference characteristics of the types of characters in the population economic data set; obtaining different types of entries according to the distribution characteristics of the characters in the population economic data set, and obtaining the recommended sub-block capacity according to the quantity characteristics and length characteristics of the entries; obtaining the entry distribution uniformity according to the distribution characteristics of the entries; obtaining the initial dictionary sub-block capacity according to the initial distribution uniformity, the entry distribution uniformity and the recommended sub-block capacity; Encode the population and economic data set according to the LZW algorithm to obtain a new dictionary and dictionary entry frequencies, divide the new dictionary into different dictionary blocks according to the initial dictionary sub-block capacity; when the new dictionary exceeds the preset capacity, obtain a dictionary block frequency value according to the dictionary entry frequencies of the dictionary block; According to the difference characteristics between the frequency value of the dictionary block and the preset frequency value, the capacity of the initial dictionary sub-block is adjusted to obtain a sub-block change amount; Adaptively update the dictionary block according to the sub-block variation and the frequency value of the dictionary block to obtain a dictionary update block, and sort and eliminate the dictionary entries in the dictionary update block according to their frequencies to obtain an iterative dictionary; Continue encoding the population and economic data set according to the iterative dictionary and loop through the steps of obtaining the iterative dictionary until the encoding is completed and the spatial planning data package is obtained; The space planning data packet is stored and decompressed, and the space planning is evaluated according to the decompressed space planning data packet.

2. A method for status assessment of national land space planning according to claim 1, characterized in that: The step of obtaining the initial distribution uniformity according to the quantity difference characteristics of the type characters in the population economic data set comprises: The variance of the number of all types of characters in the population economic data set is calculated and negatively correlated to obtain the initial distribution uniformity.

3. The current status assessment method for national land space planning according to claim 1 is characterized in that: The step of obtaining different types of entries according to the distribution characteristics of the characters in the population and economic data set, and obtaining the recommended sub-block capacity according to the quantity characteristics and length characteristics of the entries comprises: The population and economic data set is traversed according to a preset initial window and a preset sliding step length, and the character string in the preset initial window during each sliding is used as the entry; after the traversal is completed, the length of the preset initial window is increased by one and a new round of traversal is performed on the population and economic data set according to the preset sliding step length to obtain a new entry; after the traversal is completed, the length of the preset initial window is increased by two and the traversal is continued; the traversal process is repeated until no duplicate entries appear after the traversal is completed; if any entry appears in other entries, the arbitrary entry is deleted to obtain entries of different types; The product of the string length and the number of occurrences of each type of term is calculated to obtain different term capacity values; the maximum value of the term capacity values ​​is used as the recommended sub-block capacity.

4. The current status assessment method for national land space planning according to claim 1 is characterized in that: The step of obtaining the term distribution uniformity according to the distribution characteristics of the terms comprises: The variance of the number of spacer characters between adjacent terms of the same category in the population economics data set is calculated and negatively correlated to obtain the term distribution uniformity corresponding to the terms of the same category.

5. The current status assessment method for national land space planning according to claim 1 is characterized in that: The step of obtaining the initial dictionary sub-block capacity according to the initial distribution uniformity, the entry distribution uniformity and the recommended sub-block capacity comprises: When the initial distribution uniformity exceeds a preset uniformity threshold, using the recommended sub-block capacity as the initial dictionary sub-block capacity; When the initial distribution uniformity does not exceed a preset uniformity threshold, different categories of entries are sorted in descending order according to the recommended sub-block capacity to obtain a category entry sequence; the average value of the term distribution uniformity corresponding to the first number of categories of entries ranked in the category entry sequence is calculated to obtain a capacity adjustment coefficient; the product of the capacity adjustment coefficient and the recommended sub-block capacity is calculated and rounded down to obtain the initial dictionary sub-block capacity.

6. The current status assessment method for national land space planning according to claim 1 is characterized in that: The steps of encoding the population and economic data set according to the LZW algorithm to obtain a new dictionary and dictionary term frequencies, and dividing the new dictionary into blocks according to the initial dictionary sub-block capacity to obtain different dictionary blocks include: In the process of encoding the population and economic data set using the LZW algorithm, the newly added dictionary is constructed according to the newly added dictionary entries; the initial value of the dictionary entry frequency of each dictionary entry in the newly added dictionary is a constant of 0, and the dictionary entry frequency of the dictionary entry increases by one digit each time the dictionary entry is used once in the encoding process; The first dictionary entry in the newly added dictionary is divided into the first dictionary block until the capacity of the first dictionary block reaches the capacity of the initial dictionary sub-block; the division of the second dictionary block is continued until all the dictionary blocks of the newly added dictionary are obtained.

7. The current status assessment method for national land space planning according to claim 1 is characterized in that: The step of obtaining a dictionary block frequency value according to the dictionary term frequency of the dictionary block comprises: The average value of the dictionary term frequencies of all the dictionary terms in the dictionary block is calculated to obtain the average frequency; the product of the average frequency and a preset second coefficient is calculated and normalized to obtain the dictionary frequency feature value of the dictionary block.

8. The current status assessment method for national land space planning according to claim 1 is characterized in that: The step of adjusting the initial dictionary sub-block capacity according to the difference between the dictionary block frequency value and the preset frequency value to obtain the sub-block change comprises: Calculating the absolute value of the difference between the dictionary frequency value of the dictionary block and the preset frequency value to obtain a frequency difference value; When the dictionary frequency value exceeds the preset frequency value, the difference between the constant 1 and the preset frequency value is calculated to obtain a difference coefficient; the ratio of the frequency difference value to the difference coefficient is calculated to obtain a first adjustment reference; the product of the first adjustment reference and the initial dictionary sub-block capacity is calculated and rounded down to obtain a sub-block change amount of the dictionary block; When the dictionary frequency value does not exceed the preset frequency value, the ratio of the frequency difference value to the preset frequency value is calculated to obtain a second adjustment benchmark; the product of the second adjustment benchmark and the initial dictionary sub-block capacity is calculated and rounded down to obtain the sub-block change amount of the dictionary block.

9. The current status assessment method for national land space planning according to claim 1 is characterized in that: The steps of adaptively updating the dictionary block according to the sub-block variation and the dictionary block frequency value to obtain a dictionary update block, and sorting and eliminating the dictionary terms in the dictionary update block according to the frequency of the dictionary terms to obtain an iterative dictionary include: Sorting the dictionary blocks from large to small according to the dictionary frequency feature values ​​to obtain a dictionary block sequence; starting from the first position in the dictionary block sequence, when the dictionary frequency value of a dictionary block exceeds a preset frequency value, taking dictionary entries of the sub-block variation size from other dictionary blocks adjacent to the dictionary block with smaller dictionary frequency values ​​and dividing them into the dictionary block; when the dictionary frequency values ​​of other dictionary blocks adjacent to the dictionary block are larger, no division is performed; When the dictionary frequency value of the dictionary block does not exceed the preset frequency value, the dictionary entries of the sub-block change amount are divided out in the dictionary block to obtain a new dictionary block; all the dictionary blocks obtained after completing the division process of all the dictionary blocks in the dictionary block sequence are used as the dictionary update blocks; The iterative dictionary is obtained by sorting the dictionary update blocks from large to small according to their dictionary block frequency values ​​and eliminating the dictionary update blocks with a dictionary frequency value of 0.

10. A status assessment system for national land space planning, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Fusion method based on multi-source heterogeneous space planning data

    CN113434623A

  • Land space planning current situation evaluation method and system

    CN116362573A

  • Land space planning optimization method and system based on GIS technology

    CN117196335A

  • CIM city information aggregation regulation construction management big data platform construction method

    CN118245025A

  • Method for checking land suitability assessment thematic map with user orientation utilizing urban planning information

    KR101916177B1