A spatial geographic data processing method and device
By determining the reference address in the enterprise's spatial geographical data and performing precise or fuzzy matching, the problem of aligning and integrating the enterprise's spatial geographical data and daily habit data is solved, achieving efficient, accurate alignment and value improvement of the data.
Patent Information
- Application Number
- CN202410850446.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Due to historical reasons, enterprise spatial geographical data is inconsistent and lacks standards, which results in the inability to efficiently and accurately align and integrate with the spatial geographical data that people are used to daily, affecting the use effect.
By identifying each enterprise address in the enterprise spatial geographical data, its corresponding base address in the benchmark spatial geographical data is determined, and precise matching or fuzzy matching is performed based on the identification and spatial distance of the address. If the match is successful, it is inserted into the benchmark space. in geographic data. Specific steps include determining address identification matching and calculating similarity level by level to determine precise or fuzzy matching.
It realizes the efficient and accurate alignment and integration of enterprise spatial geographical data and daily habit data, and enhances the value of spatial geographical data maintained by enterprises.
Smart Images

Figure CN118410122B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a spatial geographic data processing method and device. Background Art
[0002] Spatial geographic data is one of the important dimensions in the process of enterprise management and production. Due to historical reasons, the massive amount of data assets related to spatial geography that enterprises have accumulated have problems such as inconsistency and lack of standards in their spatial geographic benchmarks. With the increasing maturity of civil GIS (Geographic Information System), people have formed a huge inertia for the spatial geographic data they are used to using in daily life, which has led to the fact that the spatial geographic data of enterprises is not accepted by people, seriously affecting the use effect. And as enterprise data continues to accumulate, the problems caused by the non-standardization, non-standardization and non-unification of geographic spatial data have further brought more problems.
[0003] To solve the above problems, it is necessary to align the enterprise's spatial geographic data with the spatial geographic data that people are used to using in daily life, such as Baidu Maps, Amap, etc. Therefore, how to efficiently and accurately align and integrate the enterprise's spatial geographic data with the spatial geographic data that people are used to using in daily life is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a spatial geographic data processing method and device, and electronic equipment, which can solve the problem in the prior art that the spatial geographic data of an enterprise cannot be aligning and integrating the spatial geographic data that people are accustomed to using in daily life.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] An embodiment of the present invention provides a spatial geographic data processing method, wherein the method comprises:
[0007] For each enterprise address in the enterprise spatial geographic data, determining a reference address corresponding to the enterprise address in the reference spatial geographic data;
[0008] Determine whether the enterprise address and the reference address are accurately matched based on the first identifier of the enterprise address, the second identifier of the reference address, and the spatial distance between the enterprise address and the reference address; wherein the first identifier includes: a name and / or an alias;
[0009] If the two do not match exactly, judging whether the enterprise address and the reference address are fuzzy matched based on the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address; wherein the simplified identifier includes: a simplified name and / or an alias;
[0010] In the case where the enterprise address is exactly matched or fuzzily matched with the reference address, the enterprise address is inserted into the reference spatial geographic data.
[0011] Optionally, the step of determining whether the enterprise address and the reference address are accurately matched according to the first identifier of the enterprise address, the second identifier of the reference address, and the spatial distance between the enterprise address and the reference address includes:
[0012] Determine whether the first identifier of the enterprise address matches the second identifier of the reference address, and determine whether the spatial distance between the enterprise address and the reference address is less than a preset threshold;
[0013] If the first identifier matches the second identifier, and the spatial distance between the enterprise address and the reference address is less than or equal to the preset threshold, it is determined that the enterprise address and the reference address are accurately matched;
[0014] If the first identifier does not match the second identifier or the spatial distance between the enterprise address and the reference address is greater than the preset threshold, it is determined that the enterprise address and the reference address do not accurately match.
[0015] Optionally, the step of determining whether the first identifier of the enterprise address matches the second identifier of the reference address level by level, and determining whether the spatial distance between the enterprise address and the reference address is less than a preset threshold, includes:
[0016] Determine whether the name and alias of the enterprise address contain the community name or alias of the reference address; if so, determine whether the spatial distance between the enterprise address and the reference address is less than or equal to a first preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the first preset threshold, determine that the enterprise address and the reference address are accurately matched;
[0017] If the name and alias of the enterprise address do not contain the community name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, then determine whether the name and alias of the enterprise address contain the building name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold, then determine that the enterprise address and the base address are accurately matched;
[0018] If the name and alias of the enterprise address do not contain the building name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, then determine whether the name and alias of the enterprise address contain the administrative village name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold, then determine that the enterprise address is accurately matched with the base address;
[0019] If the name and alias of the enterprise address do not contain the administrative village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the second preset threshold, then determine whether the name and alias of the enterprise address contain the natural village name or alias of the reference address; if contained, then determine whether the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold, then determine that the enterprise address is an exact match with the reference address;
[0020] If the name and alias of the enterprise address do not contain the natural village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the third preset threshold, it is determined that the enterprise address and the reference address are not accurately matched.
[0021] Optionally, the step of judging whether the enterprise address and the reference address are fuzzy matched according to the similarity between the simplified identifier of the enterprise address and the simplified identifier of the reference address includes:
[0022] Calculating a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the base address;
[0023] When the first comprehensive similarity is greater than or equal to a first preset similarity threshold, determining that the enterprise address is fuzzy matched with the reference address;
[0024] When the first comprehensive similarity is less than the first preset similarity threshold, calculating a second comprehensive similarity between the simplified name and alias of the enterprise address and the building name or alias of the reference address;
[0025] When the second comprehensive similarity is greater than or equal to the second preset similarity threshold, it is determined that the enterprise address and the reference address are fuzzy matched; when the second comprehensive similarity is less than the second preset similarity threshold, it is determined that the enterprise address and the reference address are not fuzzy matched.
[0026] Optionally, the step of calculating a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the reference address includes:
[0027] The average of the weighted similarity and the character number similarity between the simplified name of the enterprise address and the community name of the reference address is calculated, and the average is determined as the first comprehensive similarity.
[0028] Optionally, the character number similarity is calculated in the following way:
[0029] Determine the number of first characters contained in the shortened name of the business address;
[0030] Determining the number of second characters included in the community name of the base address;
[0031] determining the number of third characters of the abbreviated name of the business address and the community name of the base address that are identical;
[0032] Calculating the number similarity of the enterprise address name based on the first number of characters and the third number of characters; calculating the number similarity of the reference address based on the second number of characters and the third number of sub-characters;
[0033] The similarity in number of characters of the enterprise address name and the average of the similarity in number of characters of the enterprise address name are determined as the similarity in number of characters of the simplified name of the enterprise address and the community name of the reference address.
[0034] The embodiment of the present invention further provides a spatial geographic data processing device, wherein the device comprises:
[0035] A first determination module is used to determine, for each enterprise address in the enterprise spatial geographic data, a reference address corresponding to the enterprise address in the reference spatial geographic data;
[0036] A first judgment module is used to judge whether the enterprise address and the reference address are accurately matched according to a first identifier of the enterprise address, a second identifier of the reference address, and a spatial distance between the enterprise address and the reference address; wherein the first identifier includes: a name and / or an alias;
[0037] A second judgment module is used to judge whether the enterprise address and the reference address are fuzzy matched according to the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address if the two do not match exactly; wherein the simplified identifier includes: a simplified name and / or an alias;
[0038] The insertion module is used to insert the enterprise address into the reference spatial geographic data when the enterprise address is exactly matched or fuzzily matched with the reference address.
[0039] Optionally, the first determination module includes:
[0040] The first submodule is used to determine whether the first identifier of the enterprise address matches the second identifier of the reference address, and whether the spatial distance between the enterprise address and the reference address is less than a preset threshold;
[0041] A second submodule, configured to determine that the enterprise address and the reference address are accurately matched if the first identifier matches the second identifier and the spatial distance between the enterprise address and the reference address is less than or equal to the preset threshold;
[0042] The third submodule is used to determine that the enterprise address and the reference address do not accurately match if the first identifier does not match the second identifier or the spatial distance between the enterprise address and the reference address is greater than the preset threshold.
[0043] Optionally, the first submodule is specifically used for:
[0044] Determine whether the name and alias of the enterprise address contain the community name or alias of the reference address; if so, determine whether the spatial distance between the enterprise address and the reference address is less than or equal to a first preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the first preset threshold, determine that the enterprise address and the reference address are accurately matched;
[0045] If the name and alias of the enterprise address do not contain the community name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, then determine whether the name and alias of the enterprise address contain the building name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold, then determine that the enterprise address and the base address are accurately matched;
[0046] If the name and alias of the enterprise address do not contain the building name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, then determine whether the name and alias of the enterprise address contain the administrative village name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold, then determine that the enterprise address is accurately matched with the base address;
[0047] If the name and alias of the enterprise address do not contain the administrative village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the second preset threshold, then determine whether the name and alias of the enterprise address contain the natural village name or alias of the reference address; if contained, then determine whether the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold, then determine that the enterprise address is an exact match with the reference address;
[0048] If the name and alias of the enterprise address do not contain the natural village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the third preset threshold, it is determined that the enterprise address and the reference address are not accurately matched.
[0049] Optionally, the second judgment module includes:
[0050] A fourth submodule, for calculating a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the reference address;
[0051] A fifth submodule, configured to determine that the enterprise address and the reference address are fuzzy matched when the first comprehensive similarity is greater than or equal to a first preset similarity threshold;
[0052] A sixth submodule, configured to calculate a second comprehensive similarity between the simplified name and alias of the enterprise address and the building name or alias of the reference address when the first comprehensive similarity is less than the first preset similarity threshold;
[0053] The seventh submodule is used to determine that the enterprise address and the reference address are fuzzy matched when the second comprehensive similarity is greater than or equal to the second preset similarity threshold; when the second comprehensive similarity is less than the second preset similarity threshold, determine that the enterprise address and the reference address are not fuzzy matched.
[0054] Optionally, the fourth submodule is specifically used for:
[0055] The average of the weighted similarity and the character number similarity between the simplified name of the enterprise address and the community name of the reference address is calculated, and the average is determined as the first comprehensive similarity.
[0056] Optionally, the character number similarity is calculated in the following way:
[0057] Determine the number of first characters contained in the shortened name of the business address;
[0058] Determining the number of second characters included in the community name of the base address;
[0059] determining the number of third characters of the abbreviated name of the business address and the community name of the base address that are identical;
[0060] Calculating the number similarity of the enterprise address name based on the first number of characters and the third number of characters; calculating the number similarity of the reference address based on the second number of characters and the third number of sub-characters;
[0061] The similarity in number of characters of the enterprise address name and the average of the similarity in number of characters of the enterprise address name are determined as the similarity in number of characters of the simplified name of the enterprise address and the community name of the reference address.
[0062] An embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction implements the steps of any one of the above-mentioned spatial geographic data processing methods when executed by the processor.
[0063] An embodiment of the present invention provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of any one of the above-mentioned spatial geographic data processing methods are implemented.
[0064] The spatial geographic data processing solution provided by the embodiment of the present invention determines the reference address corresponding to the enterprise address in the reference spatial geographic data for each enterprise address in the enterprise spatial geographic data; judges whether the enterprise address and the reference address are precisely matched based on the first identifier of the enterprise address, the second identifier of the reference address, and the spatial distance between the enterprise address and the reference address; if the two are not precisely matched, judges whether the enterprise address and the reference address are fuzzy matched based on the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address; and inserts the enterprise address into the reference spatial geographic data when the enterprise address and the reference address are precisely matched or fuzzily matched. The spatial geographic data processing solution provided by the embodiment of the present invention performs double matching of the enterprise address and the reference address, and can efficiently and accurately align and merge the spatial geographic data (i.e., the enterprise address) of the enterprise with the spatial geographic data (reference address) that people are accustomed to using in daily life, thereby enhancing the value of the spatial geographic data maintained by the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 is a flowchart showing the steps of a spatial geographic data processing method according to an embodiment of the present application;
[0066] Figure 2 It is a structural block diagram of a spatial geographic data processing device according to an embodiment of the present application. DETAILED DESCRIPTION
[0067] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0068] The following is a detailed description of the spatial geographic data processing solution provided by the embodiment of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0069] As attached Figure 1 As shown, the spatial geographic data processing method of the embodiment of the present application includes the following steps:
[0070] Step 101: for each enterprise address in the enterprise spatial geographic data, determine a reference address corresponding to the enterprise address in the reference spatial geographic data.
[0071] The spatial geographic data processing method provided in the embodiment of the present application is intended to align and integrate the spatial geographic data maintained by the enterprise into the spatial geographic data used in daily life, thereby enhancing the value of the enterprise's spatial geographic data. Among the spatial geographic data used in daily life, the most mature scene dimensions include villages, road license plates, residential communities, buildings, etc. In the process of aligning spatial geographic data, the name and coordinates of the scene are key identifiers, and ultimately the scene name and scene coordinates of the enterprise's spatial geographic data are aligned with the scene name and scene coordinates of the spatial geographic data used in daily life. For the convenience of distinction, in the embodiment of the present application, the spatial geographic data used in daily life is regarded as the base address, and the geographic spatial data used by the enterprise is regarded as the enterprise address.
[0072] In the embodiment of the present application, the alignment and fusion of an enterprise address with a reference address in the reference spatial geographic data is used as an example for explanation. In the actual implementation process, the process can be repeatedly executed to align each enterprise address contained in the enterprise spatial geographic data with the reference address in the reference spatial geographic data. When aligning the enterprise address with the reference address, the alignment rules are divided into two steps. The first step is precise alignment after precise matching; the other step is, when the precise matching fails, fuzzy matching of the enterprise address and the reference address is performed, and fuzzy alignment is performed after fuzzy matching. Of course, if the enterprise address and the reference address still cannot be aligned after executing the above two steps, the enterprise address and the reference address will not be aligned or fused.
[0073] Step 102: Determine whether the enterprise address and the reference address are accurately matched based on the first identifier of the enterprise address, the second identifier of the reference address, and the spatial distance between the enterprise address and the reference address.
[0074] The first identifier may include but is not limited to: name and / or alias
[0075] An optional method for determining whether the enterprise address and the reference address are accurately matched based on the first identifier of the enterprise address, the second identifier of the reference address, and the spatial distance between the enterprise address and the reference address may be as follows:
[0076] Determine whether the first identifier of the enterprise address matches the second identifier of the reference address, and determine whether the spatial distance between the enterprise address and the reference address is less than a preset threshold;
[0077] If the first identifier matches the second identifier, and the spatial distance between the enterprise address and the reference address is less than or equal to the preset threshold, it is determined that the enterprise address and the reference address are accurately matched; if the first identifier does not match the second identifier or the spatial distance between the enterprise address and the reference address is greater than the preset threshold, it is determined that the enterprise address and the reference address are not accurately matched.
[0078] The first identifier matches the second identifier, including: the first identifier contains at least one of the community name or alias, building name or alias, administrative village name or alias, and natural village name or alias in the second identifier. It should be noted that, since the judgment is made layer by layer, the corresponding preset thresholds for each layer of judgment can be the same or different, and the specific values of the preset thresholds can be flexibly set by those skilled in the art, and no specific restrictions are made in the embodiments of the present application.
[0079] In an optional embodiment, the method of determining whether the first identifier of the enterprise address matches the second identifier of the reference address level by level, and determining whether the spatial distance between the enterprise address and the reference address is less than a preset threshold may include the following steps:
[0080] First level judgment:
[0081] Determine whether the name and alias of the enterprise address contain the community name or alias of the base address; if so, determine whether the spatial distance between the enterprise address and the base address is less than or equal to a first preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold, determine that the enterprise address and the base address are accurately matched;
[0082] Second level judgment:
[0083] If the name and alias of the enterprise address do not contain the community name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than a first preset threshold, determine whether the name and alias of the enterprise address contain the building name or alias of the base address; if contained, determine whether the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold, determine that the enterprise address and the base address are accurately matched;
[0084] The third level of judgment:
[0085] If the name and alias of the enterprise address do not contain the building name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than a first preset threshold, determine whether the name and alias of the enterprise address contain the administrative village name or alias of the base address; if contained, determine whether the spatial distance between the enterprise address and the base address is less than or equal to a second preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold, determine that the enterprise address and the base address are accurately matched;
[0086] The fourth level of judgment:
[0087] If the name and alias of the enterprise address do not contain the administrative village name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the second preset threshold, then determine whether the name and alias of the enterprise address contain the natural village name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the third preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the third preset threshold, then determine that the enterprise address and the base address are accurately matched;
[0088] If the name and alias of the enterprise address do not contain the natural village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the third preset threshold, it is determined that the enterprise address and the reference address are not accurately matched.
[0089] In this optional embodiment, the first preset threshold value < the third preset threshold value < the second preset threshold value. The specific values of the first preset threshold value, the second preset threshold value, and the third preset threshold value can be flexibly set by those skilled in the art, and are not specifically limited in the embodiments of the present application. Preferably, the first preset threshold value is set to 2000 meters, the second preset threshold value is set to 10000 meters, and the third preset threshold value is set to 5000 meters.
[0090] When matching, only the name of the enterprise address can be matched with the corresponding identification content of the base address, or the name and alias of the enterprise address can be matched with the corresponding identification content of the base address. There is no specific limitation on this in the embodiments of the present application.
[0091] The precise matching alignment rules in this optional embodiment are divided into four steps, namely four layers of judgment. Taking the first layer of judgment as an example, within the same province, city, district, the name of the enterprise address accurately contains the scene name or alias of the reference address. For example, the enterprise address is "Financial Building, No. 9999, Financial Street, Xicheng District, Beijing", and the reference address is "Financial Building". It is considered that the enterprise address identifier accurately contains the name or alias of the reference address, and the two identifiers match. On the premise of identifier matching, the distance error is verified by coordinates. In this example, the distance error within 2000 meters is acceptable, so the first preset threshold is set to 2000 meters. The distance error is an auxiliary means. If the enterprise address identifier accurately contains the name or alias of the reference address and the distance error is within 2000 meters, it can be determined that the enterprise address and the reference address are accurately matched. Otherwise, it is considered that the first match between the enterprise address and the reference address is unqualified, and the second layer of judgment needs to be performed.
[0092] The second level of judgment is to match the name and alias of the enterprise address identifier with the name and alias of the building at the reference address. The error of the building is also 2000 meters. If the enterprise address and the reference address do not match accurately in the second level of judgment, the third level of judgment will continue. If the two match accurately in the second level of judgment, the accurate matching alignment process will end. The third level of judgment is to match the name and alias of the administrative village of the enterprise address identifier and the reference address. The distance error of the administrative village is 10,000 meters. Because the scope of an administrative village is relatively large, based on the study of the scope of multiple administrative villages, the distance error is finally defined as 10,000 meters. If the third level judgment shows that the enterprise address and the reference identifier match accurately, the accurate matching alignment process ends; if the enterprise address and the reference address do not match accurately in the third level of judgment, the fourth level of judgment will continue.
[0093] The fourth layer is used to match the enterprise address identifier with the natural village name and alias of the base address. In the fourth layer, the distance error is set to 5000 meters. If the fourth layer determines that the enterprise address and the base identifier are accurately matched, the accurate matching alignment process ends; if the enterprise address and the base address are not accurately matched in the fourth layer, the subsequent fuzzy matching process needs to be executed.
[0094] Step 103: If the two do not match exactly, determine whether the enterprise address and the reference address are fuzzy matched based on the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address.
[0095] The simplified identifier includes: simplified name and / or alias
[0096] An optional method of determining whether the enterprise address and the reference address are fuzzy matched based on the similarity between the simplified identifier of the enterprise address and the simplified identifier of the reference address may be as follows:
[0097] First, a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the base address is calculated;
[0098] Secondly, when the first comprehensive similarity is greater than or equal to the first preset similarity threshold, it is determined that the enterprise address and the reference address are fuzzy matched;
[0099] Again, when the first comprehensive similarity is less than the first preset similarity threshold, calculating a second comprehensive similarity between the simplified name and alias of the enterprise address and the building name or alias of the base address;
[0100] Finally, when the second comprehensive similarity is greater than or equal to the second preset similarity threshold, it is determined that the enterprise address and the reference address are fuzzy matched; when the second comprehensive similarity is less than the second preset similarity threshold, it is determined that the enterprise address and the reference address are not fuzzy matched.
[0101] The first preset similarity threshold and the second preset similarity threshold may be the same or different, and the specific values of the two are not specifically limited in the embodiment of the present application. For example, the first preset similarity threshold and the second preset similarity threshold are both set to 70%, or the two are set to 70% and 80% respectively, or the two can be set to 80% and 70% respectively, etc.
[0102] An optional method for calculating the first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the reference address can be: calculating the average of the weighted similarity and the character number similarity between the simplified name of the enterprise address and the community name of the reference address, and determining the average as the first comprehensive similarity.
[0103] Table 1 is a logical diagram for calculating the comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the base address:
[0104] Table 1
[0105]
[0106] In an optional embodiment, the character number similarity (i.e., the number similarity in the table) can be calculated as follows:
[0107] Determine the number of first characters contained in the simplified name of the enterprise address; determine the number of second characters contained in the community name of the base address; determine the number of third characters of the same characters in the simplified name of the enterprise address and the community name of the base address; calculate the number similarity of the enterprise address names based on the number of first characters and the number of third characters; calculate the number similarity of the base address based on the number of second characters and the number of third characters; determine the average of the number similarity of the enterprise address names and the number similarity of the enterprise address names as the similarity of the number of characters between the simplified name of the enterprise address and the community name of the base address.
[0108] In an optional embodiment, the weighted similarity between the simplified name of the enterprise address and the community name of the base address can be calculated as follows:
[0109] The weighted similarity of the community name of the base address and the weighted similarity of the simplified name of the enterprise address are calculated, and the average of the two weighted similarities is determined as the weighted similarity between the simplified name of the enterprise address and the community name of the base address.
[0110] It should be noted that the above is only an example of calculating the first comprehensive similarity between the simplified name of the enterprise address and the community name of the base address. The comprehensive similarity between the simplified name alias of the enterprise address and the community name of the standard address, and the second comprehensive similarity between the simplified name of the enterprise address and the building name or alias of the base address can all be calculated according to the above corresponding methods, which will not be repeated here.
[0111] The calculation of comprehensive similarity in the present embodiment focuses on two dimensions:
[0112] The first dimension is the similarity between the two names in the logo corresponding to the enterprise address and the reference address. It is mainly determined by the proportion of the number of characters that can be matched, which is called the similarity of the number of characters. However, the similarity of the number of characters alone cannot accurately characterize the comprehensive similarity between the two. For example, for the four words "Financial Building", the final matching effect of matching "Finance" and "Building" will definitely be different. Although the number of matched characters is two, the closer the character is to the front in this address, the more information the character contains. Therefore, based on this consideration, different weights are assigned to characters in different positions in this application. The closer the character is to the front, the greater its weight; the closer it is to the back, the smaller its weight. Therefore, the second dimension is weighted similarity.
[0113] That is to say, in the embodiment of the present application, when calculating the comprehensive similarity corresponding to the enterprise address and the reference address, both the matching of the number of characters in the identifier and the position of the matching characters are considered. Finally, the similarity of the number of characters and the weighted similarity are calculated, and the average of the two is determined as the comprehensive similarity.
[0114] It should be noted that the average of the similarity of the number of characters and the weighted similarity is only an example of comprehensive similarity. In the actual implementation process, those skilled in the art can flexibly assign the similarity of the number of characters and the weighted similarity, and finally sum them up after weighting to obtain the comprehensive similarity. For example, the similarity of the number of characters and the weighted similarity can be set to 40%, 60%, 60%, 40%, 30%, 70%, etc. respectively, and there is no specific limitation on this in the embodiments of the present application.
[0115] For weighted similarity, each character needs to be assigned a weight. In the actual implementation process, a matrix can be pre-set, and the first column of the matrix is the length of the entire name, that is, the number of characters. For the address name "Yan'an Hospital Dormitory", it has six characters. When assigning weights to each character, the following rules can be used:
[0116] First, the last character is assigned a rigid value of 1%. The first five characters can be assigned values according to the rule of linearly decreasing weights. Assume: among the six characters, the first four characters are matched, the weight corresponding to the first character is 0.323, the weight corresponding to the second character is 0.210, the weight corresponding to the third character is 0.198, and the weight corresponding to the fourth character is 0.135. The final comprehensive similarity is 0.74.
[0117] Step 104: When the enterprise address and the reference address are exactly matched or fuzzily matched, the enterprise address is inserted into the reference spatial geographic data.
[0118] When inserting a business address into base spatial geographic data, the identifier of the base address can be replaced by the identifier of the business address.
[0119] It should be noted that if the enterprise address does not match the base address exactly or fuzzily, manual management of the enterprise address is required.
[0120] The spatial geographic data processing method provided in the embodiment of the present application performs double matching of the enterprise address and the reference address, and can efficiently and accurately align and merge the enterprise's spatial geographic data (i.e., the enterprise address) with the spatial geographic data (reference address) that people are accustomed to using in daily life, thereby enhancing the value of the spatial geographic data maintained by the enterprise.
[0121] Figure 2 A structural block diagram of a spatial geographic data processing device for implementing an embodiment of the present application.
[0122] The spatial geographic data processing device provided in the embodiment of the present application includes the following functional modules:
[0123] The first determination module 201 is used to determine, for each enterprise address in the enterprise spatial geographic data, a reference address corresponding to the enterprise address in the reference spatial geographic data;
[0124] The first judgment module 202 is used to judge whether the enterprise address and the reference address are accurately matched according to the first identifier of the enterprise address, the second identifier of the reference address and the spatial distance between the enterprise address and the reference address; wherein the first identifier includes: a name and / or an alias;
[0125] The second judgment module 203 is used to judge whether the enterprise address and the reference address are fuzzy matched according to the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address if the two do not match exactly; wherein the simplified identifier includes: a simplified name and / or an alias;
[0126] The inserting module 204 is used to insert the enterprise address into the reference spatial geographic data when the enterprise address and the reference address are exactly matched or fuzzily matched.
[0127] Optionally, the first determination module includes:
[0128] The first submodule is used to determine whether the first identifier of the enterprise address matches the second identifier of the reference address, and whether the spatial distance between the enterprise address and the reference address is less than a preset threshold;
[0129] A second submodule, configured to determine that the enterprise address and the reference address are accurately matched if the first identifier matches the second identifier and the spatial distance between the enterprise address and the reference address is less than or equal to the preset threshold;
[0130] The third submodule is used to determine that the enterprise address and the reference address do not accurately match if the first identifier does not match the second identifier or the spatial distance between the enterprise address and the reference address is greater than the preset threshold.
[0131] Optionally, the first submodule is specifically used for:
[0132] Determine whether the name and alias of the enterprise address contain the community name or alias of the reference address; if so, determine whether the spatial distance between the enterprise address and the reference address is less than or equal to a first preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the first preset threshold, determine that the enterprise address and the reference address are accurately matched;
[0133] If the name and alias of the enterprise address do not contain the community name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, then determine whether the name and alias of the enterprise address contain the building name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold, then determine that the enterprise address and the base address are accurately matched;
[0134] If the name and alias of the enterprise address do not contain the building name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, then determine whether the name and alias of the enterprise address contain the administrative village name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold, then determine that the enterprise address is accurately matched with the base address;
[0135] If the name and alias of the enterprise address do not contain the administrative village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the second preset threshold, then determine whether the name and alias of the enterprise address contain the natural village name or alias of the reference address; if contained, then determine whether the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold, then determine that the enterprise address is an exact match with the reference address;
[0136] If the name and alias of the enterprise address do not contain the natural village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the third preset threshold, it is determined that the enterprise address and the reference address are not accurately matched.
[0137] Optionally, the second judgment module includes:
[0138] A fourth submodule, for calculating a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the reference address;
[0139] A fifth submodule, configured to determine that the enterprise address and the reference address are fuzzy matched when the first comprehensive similarity is greater than or equal to a first preset similarity threshold;
[0140] A sixth submodule, configured to calculate a second comprehensive similarity between the simplified name and alias of the enterprise address and the building name or alias of the reference address when the first comprehensive similarity is less than the first preset similarity threshold;
[0141] The seventh submodule is used to determine that the enterprise address and the reference address are fuzzy matched when the second comprehensive similarity is greater than or equal to the second preset similarity threshold; when the second comprehensive similarity is less than the second preset similarity threshold, determine that the enterprise address and the reference address are not fuzzy matched.
[0142] Optionally, the fourth submodule is specifically used for:
[0143] The average of the weighted similarity and the character number similarity between the simplified name of the enterprise address and the community name of the reference address is calculated, and the average is determined as the first comprehensive similarity.
[0144] Optionally, the character number similarity is calculated in the following way:
[0145] Determine the number of first characters contained in the shortened name of the business address;
[0146] Determining the number of second characters included in the community name of the base address;
[0147] determining the number of third characters of the abbreviated name of the business address and the community name of the base address that are identical;
[0148] Calculating the number similarity of the enterprise address name based on the first number of characters and the third number of characters; calculating the number similarity of the reference address based on the second number of characters and the third number of sub-characters;
[0149] The similarity in number of characters of the enterprise address name and the average of the similarity in number of characters of the enterprise address name are determined as the similarity in number of characters of the simplified name of the enterprise address and the community name of the reference address.
[0150] The spatial geographic data processing device provided in the embodiment of the present application performs dual matching of the enterprise address and the reference address, and can efficiently and accurately align and merge the enterprise's spatial geographic data (i.e., the enterprise address) with the spatial geographic data (reference address) that people are accustomed to using in daily life, thereby enhancing the value of the spatial geographic data maintained by the enterprise.
[0151] In the present application embodiment Figure 2 The spatial geographic data processing device shown may be a device having an operating system, which may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
[0152] The embodiments of the present application provide Figure 2 The spatial geographic data processing device shown can realize Figure 1 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0153] Optionally, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the various processes performed by the above-mentioned spatial geographic data processing device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0154] It should be noted that the electronic device in the embodiment of the present application includes the server described above.
[0155] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0156] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, 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 process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0157] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A spatial geographic data processing method, characterized in that: The method comprises: For each enterprise address in the enterprise spatial geographic data, determining a reference address corresponding to the enterprise address in the reference spatial geographic data; Determine whether the enterprise address and the reference address are accurately matched based on the first identifier of the enterprise address, the second identifier of the reference address, and the spatial distance between the enterprise address and the reference address; wherein the first identifier includes: a name and / or an alias; If the two do not match exactly, judging whether the enterprise address and the reference address are fuzzy matched based on the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address; wherein the simplified identifier includes: a simplified name and / or an alias; In the case where the enterprise address and the reference address are exactly matched or fuzzily matched, inserting the enterprise address into the reference spatial geographic data; The step of judging whether the enterprise address and the reference address are fuzzy matched according to the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address comprises: Calculating a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the base address; When the first comprehensive similarity is greater than or equal to a first preset similarity threshold, determining that the enterprise address is fuzzy matched with the reference address; When the first comprehensive similarity is less than the first preset similarity threshold, calculating a second comprehensive similarity between the simplified name and alias of the enterprise address and the building name or alias of the reference address; When the second comprehensive similarity is greater than or equal to the second preset similarity threshold, it is determined that the enterprise address and the reference address are fuzzy matched; when the second comprehensive similarity is less than the second preset similarity threshold, it is determined that the enterprise address and the reference address are not fuzzy matched; The step of calculating a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the reference address comprises: Calculating the average of the weighted similarity and the similarity in the number of characters between the simplified name of the enterprise address and the community name of the reference address, and determining the average as the first comprehensive similarity; Among them, the character number similarity is calculated as follows: Determine the number of first characters contained in the shortened name of the business address; Determining the number of second characters included in the community name of the base address; determining the number of third characters of the abbreviated name of the business address and the community name of the base address that are identical; Calculating the number similarity of the enterprise address name based on the first number of characters and the third number of characters; calculating the number similarity of the reference address name based on the second number of characters and the third number of characters; The average of the similarity in number of characters of the enterprise address name and the similarity in number of characters of the reference address name is determined as the similarity in number of characters of the simplified name of the enterprise address and the community name of the reference address.
2. The method according to claim 1, characterized in that The step of determining whether the enterprise address and the reference address are accurately matched based on the first identifier of the enterprise address, the second identifier of the reference address, and the spatial distance between the enterprise address and the reference address comprises: Determine whether the first identifier of the enterprise address matches the second identifier of the reference address, and determine whether the spatial distance between the enterprise address and the reference address is less than a preset threshold; If the first identifier matches the second identifier, and the spatial distance between the enterprise address and the reference address is less than or equal to the preset threshold, it is determined that the enterprise address and the reference address are accurately matched; If the first identifier does not match the second identifier or the spatial distance between the enterprise address and the reference address is greater than the preset threshold, it is determined that the enterprise address and the reference address do not accurately match.
3. The method according to claim 2, characterized in that The step of determining whether the first identifier of the enterprise address matches the second identifier of the reference address level by level, and determining whether the spatial distance between the enterprise address and the reference address is less than a preset threshold, includes: Determine whether the name and alias of the enterprise address contain the community name or alias of the reference address; if so, determine whether the spatial distance between the enterprise address and the reference address is less than or equal to a first preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the first preset threshold, determine that the enterprise address and the reference address are accurately matched; If the name and alias of the enterprise address do not contain the community name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, then determine whether the name and alias of the enterprise address contain the building name or alias of the base address; if contained, then determine whether the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the first preset threshold, then determine that the enterprise address and the base address are accurately matched; If the name and alias of the enterprise address do not contain the building name or alias of the base address, or the spatial distance between the enterprise address and the base address is greater than the first preset threshold, determine whether the name and alias of the enterprise address contain the administrative village name or alias of the base address; if contained, determine whether the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold; if the spatial distance between the enterprise address and the base address is less than or equal to the second preset threshold, determine that the enterprise address is accurately matched with the base address; If the name and alias of the enterprise address do not contain the administrative village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the second preset threshold, then determine whether the name and alias of the enterprise address contain the natural village name or alias of the reference address; if contained, then determine whether the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold; if the spatial distance between the enterprise address and the reference address is less than or equal to the third preset threshold, then determine that the enterprise address is an exact match with the reference address; If the name and alias of the enterprise address do not contain the natural village name or alias of the reference address, or the spatial distance between the enterprise address and the reference address is greater than the third preset threshold, it is determined that the enterprise address and the reference address are not accurately matched.
4. A spatial geographic data processing device, characterized in that: The device comprises: A first determination module is used to determine, for each enterprise address in the enterprise spatial geographic data, a reference address corresponding to the enterprise address in the reference spatial geographic data; A first judgment module is used to judge whether the enterprise address and the reference address are accurately matched according to a first identifier of the enterprise address, a second identifier of the reference address, and a spatial distance between the enterprise address and the reference address; wherein the first identifier includes: a name and / or an alias; A second judgment module is used to judge whether the enterprise address and the reference address are fuzzy matched according to the similarity between the simplified identifier of the enterprise address and the second identifier of the reference address if the two do not match exactly; wherein the simplified identifier includes: a simplified name and / or an alias; An insertion module, configured to insert the enterprise address into the reference spatial geographic data when the enterprise address and the reference address are exactly matched or fuzzily matched; Wherein, the second judgment module includes: A fourth submodule, for calculating a first comprehensive similarity between the simplified name and alias of the enterprise address and the community name or alias of the reference address; A fifth submodule, configured to determine that the enterprise address and the reference address are fuzzy matched when the first comprehensive similarity is greater than or equal to a first preset similarity threshold; A sixth submodule, configured to calculate a second comprehensive similarity between the simplified name and alias of the enterprise address and the building name or alias of the reference address when the first comprehensive similarity is less than the first preset similarity threshold; A seventh submodule is used to determine that the enterprise address and the reference address are fuzzy matched when the second comprehensive similarity is greater than or equal to a second preset similarity threshold; and to determine that the enterprise address and the reference address are not fuzzy matched when the second comprehensive similarity is less than the second preset similarity threshold; The fourth submodule is specifically used to: calculate the average of the weighted similarity and the similarity in the number of characters between the simplified name of the enterprise address and the community name of the reference address, and determine the average as the first comprehensive similarity; The similarity of the number of characters is calculated as follows: Determine the first number of characters contained in the simplified name of the enterprise address; determine the second number of characters contained in the community name of the base address; determine the third number of characters of the same characters in the simplified name of the enterprise address and the community name of the base address; calculate the number similarity of the enterprise address names based on the first number of characters and the third number of characters; calculate the number similarity of the base address names based on the second number of characters and the third number of characters; determine the average of the number similarity of the enterprise address names and the number similarity of the base address names as the character number similarity between the simplified name of the enterprise address and the community name of the base address.
5. The device according to claim 4, characterized in that The first judgment module includes: The first submodule is used to determine whether the first identifier of the enterprise address matches the second identifier of the reference address, and whether the spatial distance between the enterprise address and the reference address is less than a preset threshold; A second submodule, configured to determine that the enterprise address and the reference address are accurately matched if the first identifier matches the second identifier and the spatial distance between the enterprise address and the reference address is less than or equal to the preset threshold; The third submodule is used to determine that the enterprise address and the reference address do not accurately match if the first identifier does not match the second identifier or the spatial distance between the enterprise address and the reference address is greater than the preset threshold.
6. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction is executed by the processor to execute the steps of any one of the spatial geographic data processing methods in claims 1-3.
