A spatial data standardization method, device, computer equipment and storage medium
By automatically filtering and converting the spatial coordinate system, the problem of spatial data conversion relying on manual operations is solved, and efficient data standardization and real-time analysis capabilities are achieved.
Patent Information
- Application Number
- CN202010567104.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-19
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the prior art, spatial data conversion relies on manual operation by professionals, which is time-consuming and labor-intensive and cannot meet the growing practical needs.
By obtaining the spatial data to be converted and its spatial range, the most matching source spatial coordinate system is automatically filtered out from the spatial coordinate system database, and the coordinate conversion relationship between the coordinate system and the standard spatial coordinate system is used to convert the data into a standard Spatial coordinate system.
It realizes the automation and standardization of spatial data, reduces manual operation time, improves the efficiency and adaptability of data conversion, and meets the needs of real-time analysis of large data volumes.
Smart Images

Figure CN111737330B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a spatial data standardization method, device, computer equipment and computer-readable storage medium. Background Art
[0002] Traditional spatial data analysis is based on a professional comprehensive commercial geographic information system software platform and is performed by spatial mapping, planning and design personnel. However, the spatial data used in various professional fields is relatively simple, and most of the spatial data comes from self-collection or purchase from commercial data companies. In actual scenarios, the required spatial data needs to be converted to a unified spatial reference system before subsequent analysis operations can be performed.
[0003] There are two main ways to convert spatial data at present. One way to convert spatial data is to classify all spatial data according to the original data format, such as files, various databases, etc., according to the different sources of spatial data, and import spatial data of different formats into comprehensive data platforms, such as ArcGIS, Map GIS, etc., when using them. However, this method requires high professional and technical capabilities of analysts, and the software cost of the analysis platform is high and the timeliness is poor; the other way to convert spatial data is to use the same spatial database to store all spatial data, and then manually convert all the spatial data used, but this method requires a large number of people to participate, has poor timeliness and is not suitable for real-time analysis of large amounts of data.
[0004] There is currently no effective solution to the technical problem that spatial data conversion in the existing technology is based on manual operations by professionals, which is time-consuming and labor-intensive and cannot meet the growing actual usage needs. Summary of the invention
[0005] The purpose of the present invention is to provide a spatial data standardization method, device, computer equipment and computer-readable storage medium, which can solve the technical problems in the prior art that spatial data conversion is based on manual operation by professionals, which is time-consuming and labor-intensive and cannot meet the growing actual usage needs.
[0006] One aspect of the present invention provides a method for spatial data standardization, the method comprising: obtaining spatial data to be converted and the spatial range of the spatial data to be converted; screening out a spatial coordinate system that best matches the spatial data to be converted from a spatial coordinate system database according to the spatial range as the source spatial coordinate system of the spatial data to be converted; and utilizing a coordinate conversion relationship between the source spatial coordinate system and a preset standard spatial coordinate system to convert the spatial data to be converted into coordinate data on the standard spatial coordinate system.
[0007] Optionally, the method of selecting from the spatial coordinate system database a spatial coordinate system that best matches the spatial data to be converted according to the spatial range as the source spatial coordinate system of the spatial data to be converted includes: calculating the degree of matching between the spatial coordinate system in the spatial coordinate system database and the spatial data to be converted according to the spatial range; taking a spatial coordinate system whose matching degree is greater than or equal to a preset matching threshold as a candidate spatial coordinate system; and selecting from the candidate spatial coordinate systems a spatial coordinate system with the greatest matching degree as the source spatial coordinate system.
[0008] Optionally, calculating the degree of matching between the spatial coordinate system in the spatial coordinate system database and the spatial data to be converted based on the spatial range includes: acquiring a spatial coordinate system used to determine the spatial range as a designated spatial coordinate system; selecting a spatial coordinate system in the spatial coordinate system database to be associated with the spatial data to be converted; converting the spatial data to be converted into the designated spatial coordinate system based on a coordinate conversion relationship between the selected spatial coordinate system and the designated spatial coordinate system to obtain a coordinate conversion result; and calculating the degree of matching between the spatial coordinate system and the spatial data to be converted based on the coordinate conversion result and the spatial range.
[0009] Optionally, calculating the degree of matching between the spatial coordinate system and the spatial data to be converted based on the coordinate transformation result and the spatial range includes: calculating the overlapping range between the range enclosed by the coordinate transformation result in the specified spatial coordinate system and the spatial range; calculating the ratio of the overlapping range to the range enclosed by the coordinate transformation result in the specified spatial coordinate system, to obtain the degree of matching between the spatial coordinate system and the spatial data to be converted.
[0010] Optionally, the method further includes: when multiple matching degrees are all less than the preset matching threshold, receiving a matching instruction input from the outside; and using the spatial coordinate system pointed to by the matching instruction as the source spatial coordinate system.
[0011] Optionally, the spatial coordinate system database includes multiple spatial coordinate systems and coordinate conversion relationships between at least two of the spatial coordinate systems, and the spatial coordinate system database uses the EPSG geodetic parameter dataset as basic data.
[0012] Another aspect of the present invention provides a spatial data standardization device, which includes: an acquisition module, used to acquire spatial data to be converted and the spatial range of the spatial data to be converted; a screening module, used to screen out the spatial coordinate system that best matches the spatial data to be converted from the spatial coordinate system database according to the spatial range, as the source spatial coordinate system of the spatial data to be converted; and a conversion module, used to convert the spatial data to be converted into coordinate data on the standard spatial coordinate system by utilizing the coordinate conversion relationship between the source spatial coordinate system and a preset standard spatial coordinate system.
[0013] Optionally, the screening module is also used to: calculate the degree of matching between the spatial coordinate system in the spatial coordinate system database and the spatial data to be converted based on the spatial range; take the spatial coordinate system with a matching degree greater than or equal to a preset matching threshold as a candidate spatial coordinate system; and screen out the spatial coordinate system with the greatest matching degree from the candidate spatial coordinate systems as the source spatial coordinate system.
[0014] Optionally, when the screening module calculates the degree of matching between the spatial coordinate system in the spatial coordinate system database and the spatial data to be converted based on the spatial range, the screening module is also used to: obtain the spatial coordinate system used to determine the spatial range as the designated spatial coordinate system; select a spatial coordinate system from the spatial coordinate system database to be associated with the spatial data to be converted; convert the spatial data to be converted into the designated spatial coordinate system based on the coordinate conversion relationship between the selected spatial coordinate system and the designated spatial coordinate system to obtain a coordinate conversion result; calculate the degree of matching between the spatial coordinate system and the spatial data to be converted based on the coordinate conversion result and the spatial range.
[0015] Optionally, when calculating the degree of matching between the spatial coordinate system and the spatial data to be converted based on the coordinate transformation result and the spatial range, the screening module is also used to: calculate the overlapping range between the range enclosed by the coordinate transformation result in the specified spatial coordinate system and the spatial range; calculate the ratio of the overlapping range to the range enclosed by the coordinate transformation result in the specified spatial coordinate system to obtain the degree of matching between the spatial coordinate system and the spatial data to be converted.
[0016] Optionally, the device further includes: a receiving module, used to receive a matching instruction input from the outside when multiple matching degrees are all less than the preset matching threshold; and a determining module, used to use the spatial coordinate system pointed to by the matching instruction as the source spatial coordinate system.
[0017] Optionally, the spatial coordinate system database includes multiple spatial coordinate systems and coordinate conversion relationships between at least two of the spatial coordinate systems, and the spatial coordinate system database uses the EPSG geodetic parameter dataset as basic data.
[0018] Another aspect of the present invention provides a computer device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the spatial data standardization method described in any of the above embodiments when executing the computer program.
[0019] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the spatial data normalization method described in any one of the above embodiments is implemented.
[0020] The spatial data standardization method provided by the present invention takes into account that in order to achieve the standardization of the spatial data to be converted, it is necessary to first determine the source spatial coordinate system to which the spatial data to be converted belongs. Therefore, this embodiment pre-creates a spatial coordinate system database, and according to the spatial range of the spatial data to be converted input by the user, automatically selects a spatial coordinate system that best matches the spatial data to be converted from the spatial coordinate system database as the source spatial coordinate system, and then automatically converts the spatial data to be converted into coordinate data on the standard spatial coordinate system according to the coordinate conversion relationship between the source spatial coordinate system and the standard spatial coordinate system to achieve the operation of spatial data standardization. This embodiment automatically completes the determination of the source spatial coordinate system and automatically converts the spatial data to be converted into a unified standard spatial coordinate system, thereby solving the technical problem in the prior art that spatial data conversion is based on manual operation of professionals, which is time-consuming and labor-intensive and cannot meet the growing actual usage needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0022] Figure 1 A flowchart of a spatial data standardization method provided by Embodiment 1 of the present invention is shown;
[0023] Figure 2 A schematic diagram showing the basic structure of a spatial coordinate system database provided by the first embodiment of the present invention is shown;
[0024] Figure 3 A flowchart of determining a candidate space coordinate system provided by the first embodiment of the present invention is shown;
[0025] Figure 4 A flow chart of a spatial data standardization method provided by Embodiment 2 of the present invention is shown;
[0026] Figure 5 A block diagram of a spatial data standardization device provided by a third embodiment of the present invention is shown;
[0027] Figure 6 A block diagram of a computer device suitable for implementing a spatial data standardization method provided by a fourth embodiment of the present invention is shown. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0029] 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.
[0030] The terms in this invention are explained as follows:
[0031] Spatial coordinate system (also known as spatial reference system): a coordinate system that references a datum. The datum generally refers to the datum of the earth, but it can also be the datum of other objects. A coordinate system is an abstract mathematical concept that is not bound to any physical object. It defines how to calculate information such as the distance and angle between two coordinates in a coordinate space, such as the Dilar coordinate system and the polar coordinate system.
[0032] Projection transformation: It is the process of transforming the coordinates of one map projection point into the coordinates of another map projection point. The process of map projection can be imagined as wrapping the earth with a piece of paper that is large enough, and then projecting the objects on the earth onto this piece of paper. According to the way the paper is wrapped, map projection can be divided into: azimuthal projection, conical projection and cylindrical projection; according to the way the paper intersects with the earth, map projection can be divided into tangent projection and secant projection. The objects on the tangent or secant line are not deformed, and the farther away from the tangent or secant line, the greater the deformation. Among them, the surface of the earth can be projected onto a plane, a conical surface or a cylindrical surface. For conical surfaces and cylindrical surfaces, they can be cut along the generatrix and then unfolded into a plane. In addition, the coordinate transformation between different datum planes is called coordinate transformation, and the coordinate transformation between different map projections and coordinates in different regions is called coordinate transformation.
[0033] Embodiment 1
[0034] At present, in the construction and development of information systems related to the smart city industry, the commonly used technical means is to directly store the original spatial data, and then have dedicated personnel use professional software to convert the coordinates of the spatial data involved in the current business according to the specific business. However, this kind of spatial data conversion is based on manual operation by professionals, which is time-consuming and labor-intensive and cannot meet the growing actual usage needs.
[0035] Therefore, the present invention provides a spatial data standardization method, which belongs to the practical, innovative and revolutionary technology in the field of computer information technology. The method can be applied in fields such as smart cities and smart parks, and can also be applied in information systems that require complex and rapid business analysis in the spatial domain. The spatial data involved in the present invention has various types and multiple sources. In addition, the method is a spatial data automatic correction technology that can be applied on a large scale, providing basic support for complex spatial analysis applications in business fields such as smart parks. Specifically, the spatial data standardization method is based on an existing spatial reference system, and automatically converts spatial data into a unified standard spatial coordinate system by specifying the spatial range of the spatial data.
[0036] Figure 1 FIG. 4 shows a flow chart of a spatial data standardization method provided in Embodiment 1 of the present invention. Figure 1 As shown, the spatial data standardization method may include steps S1 to S3, wherein:
[0037] Step S1, obtaining spatial data to be converted and the spatial range of the spatial data to be converted.
[0038] The spatial data to be converted is a kind of data in the form of coordinates, which can be displayed on a map, such as two-dimensional data. When the spatial coordinate system of the spatial data to be converted is unknown, a spatial coordinate system can be manually specified, and the spatial range of the spatial data to be converted can be determined by the specified spatial coordinate system. It should be noted that the spatial range of the spatial data to be converted is an approximate range specified manually. For example, when the spatial data to be converted can be mapped to a certain range on the map when the map is opened, the range can be specified as the spatial range of the spatial data to be converted.
[0039] Step S2: selecting a spatial coordinate system that best matches the spatial data to be converted from a spatial coordinate system database according to the spatial range as a source spatial coordinate system for the spatial data to be converted.
[0040] The spatial coordinate system database may include multiple spatial coordinate systems and coordinate conversion relationships between at least two spatial coordinate systems. The coordinate conversion relationship between spatial coordinate systems can be found in Figure 2 , Figure 2 A schematic diagram showing the basic structure of the spatial coordinate system database provided by the first embodiment of the present invention is shown. Figure 2 The description of the parameters involved can be found in Table 1.
[0041] Table 1 Description of coordinate transformation relationship in spatial reference system database
[0042]
[0043] in, Figure 2 The basic structure of the spatial coordinate system database in is composed of various tables and the relationships between them. The meanings of each table are shown in Table 1. The following example explains Figure 2 The spatial coordinate system database infrastructure in .
[0044] For example, the relationship between the coord_ref_system table and the coord_operation table is: the definition of operations such as map projection, coordinate conversion and coordinate splicing between different coordinate systems; the relationship between the coord_ref_system table, the coord_operation table and the coord_opt_method table is: what methods are used to perform map projection, coordinate conversion and coordinate splicing between different coordinate systems.
[0045] In addition, EPSG (European Petroleum Survey Group) geodetic parameter dataset exists as a well-known standard with a wide range of applications and large data coverage. Using EPSG as the basic data of the spatial coordinate system database makes the success rate and accuracy of determining the source spatial coordinate system of spatial data using the spatial coordinate system database higher. Among them, EPSG has made maps for every place in the world, but due to different spatial coordinate systems, the maps are also different. For example, for China, the map centered on the geometric center of the earth is EPSG:4479, and the map centered on the focus of the earth's ellipsoid is EPSG:4480, and there is also EPSG:4490.
[0046] In this embodiment, in order to achieve the standardization of the spatial data to be converted, that is, to convert the spatial data to be converted into a standard spatial coordinate system, it is necessary to first determine the original spatial coordinate system of the spatial data to be converted. The purpose of this step S2 is to use a given spatial range to filter out the original spatial coordinate system of the spatial data to be converted, that is, the source spatial coordinate system, from the existing spatial coordinate system database.
[0047] Optionally, in order to ensure that the selected source spatial coordinate system can match the spatial data to be converted to a reasonable degree, the spatial coordinate system with a matching degree greater than a preset matching threshold can be divided into candidate spatial coordinate systems, each of which can match the spatial data to be converted more accurately. In theory, any candidate spatial coordinate system can be selected as the source spatial coordinate system, but in order to ensure the accuracy of this embodiment, it is preferred to select a spatial coordinate system with the greatest matching degree from the candidate spatial coordinate systems as the source spatial coordinate system. Specifically, step S2 may include steps S21 to S23, wherein:
[0048] Step S21, calculating the matching degree between the spatial coordinate system in the spatial coordinate system database and the spatial data to be converted according to the spatial range;
[0049] Step S22, taking a spatial coordinate system whose matching degree is greater than or equal to a preset matching threshold as a candidate spatial coordinate system;
[0050] Step S23: Filter out the spatial coordinate system with the greatest matching degree from the candidate spatial coordinate systems as the source spatial coordinate system.
[0051] When calculating the degree of matching between the spatial coordinate system and the spatial data to be converted, the degree of matching between the range of the converted coordinates and the pre-specified spatial range of the spatial data to be converted is mainly considered after the spatial coordinate system converts the spatial data to be converted into its own coordinates. Specifically, step S21 may include steps S211 to S214, wherein:
[0052] Step S211, obtaining a spatial coordinate system for determining the spatial range as a designated spatial coordinate system;
[0053] Step S212, selecting a spatial coordinate system in the spatial coordinate system database to associate with the spatial data to be converted;
[0054] Step S213, according to the coordinate conversion relationship between the selected spatial coordinate system and the designated coordinate system, convert the spatial data to be converted into the designated coordinate system to obtain a coordinate conversion result;
[0055] Step S214: calculating the matching degree between the spatial coordinate system and the spatial data to be converted according to the coordinate conversion result and the spatial range.
[0056] In this embodiment, when the spatial coordinate system of the spatial data to be converted is unknown, it is necessary to specify a spatial coordinate system for the spatial data to be converted to determine the spatial range of the spatial data to be converted in the specified spatial coordinate system; further, in order to calculate the degree of matching between the spatial data to be converted and any spatial coordinate system in the spatial coordinate system database, a spatial coordinate system in the spatial coordinate system database can be selected as the coordinate system of the spatial data to be converted, and then the spatial data to be converted is input into the coordinate conversion relationship between the two to obtain a coordinate conversion result, which is the coordinate data of the spatial data to be converted from the associated spatial coordinate system to the specified spatial coordinate system, wherein the coordinate conversion relationship is a coordinate conversion function that converts spatial data from one spatial coordinate system to another spatial coordinate system. Further, the degree of matching between the spatial coordinate system and the spatial data to be converted can be determined based on the degree of overlap between the range enclosed by the specified spatial coordinate system and the pre-specified spatial range in the coordinate conversion result.
[0057] Specifically, step S214 may include steps S2141 to S2142, wherein:
[0058] Step S2141, calculating the overlap range between the range enclosed by the specified space coordinate system and the space range of the coordinate transformation result;
[0059] Step S2142, calculating the ratio of the overlap range to the range enclosed by the coordinate transformation result in the specified spatial coordinate system, and obtaining the matching degree between the spatial coordinate system and the spatial data to be transformed.
[0060] In this embodiment, the range enclosed by the coordinate transformation result in the specified spatial coordinate system is first spatially intersected with the pre-specified spatial range to calculate the overlapping area of the two. Then, the percentage of the overlapping area to the area enclosed by the coordinate transformation result in the specified spatial coordinate system is calculated to obtain the degree of matching.
[0061] In this embodiment, the specified spatial range is a relatively broad range, which is not as accurate as the range enclosed by the coordinate transformation result in the corresponding spatial coordinate system. Therefore, when calculating the degree of matching, in order to ensure accuracy, the percentage of the overlapping range in the range enclosed by the coordinate transformation result in the specified spatial coordinate system is calculated, rather than the percentage of the overlapping range in the specified spatial range.
[0062] Furthermore, after calculating the degree of matching, the source space coordinate system can be determined. Figure 3 FIG. 2 shows a flow chart of determining a candidate space coordinate system provided by the first embodiment of the present invention. Figure 3 As shown, firstly, a spatial coordinate system in the spatial coordinate system database is selected to be associated with the spatial data to be converted, and the spatial data to be converted is converted into the specified spatial coordinate system according to the coordinate conversion relationship between the spatial coordinate system and the specified spatial coordinate system to obtain the coordinate conversion result, and then the range enclosed by the coordinate conversion result in the specified spatial coordinate system and the pre-specified spatial range are spatially intersected to obtain the overlapping area of the two, and then the percentage of the overlapping area to the area enclosed by the coordinate conversion result in the specified spatial coordinate system is calculated to obtain the matching degree; further, the above matching degree calculation operation is performed on each spatial coordinate system in the spatial coordinate system database, and then the spatial coordinate system with a matching degree greater than or equal to the preset matching threshold is used as a candidate spatial coordinate system, and then the spatial coordinate system with the greatest matching degree is screened out from the candidate spatial coordinate systems as the source spatial coordinate system.
[0063] Optionally, considering that there may be a situation where the source space coordinate system cannot be matched, the method further includes steps A1 to A2, wherein:
[0064] Step A1, when multiple matching degrees are all less than the preset matching threshold, receiving a matching instruction input from the outside;
[0065] Step A2: taking the space coordinate system pointed to by the matching instruction as the source space coordinate system.
[0066] In the case where the source spatial coordinate system cannot be automatically matched, manual intervention is required to specify a spatial coordinate system as the source spatial coordinate system, and then add the specified source spatial coordinate system to the spatial coordinate system database. Preferably, only when all matching degrees are less than a preset matching threshold, the source spatial coordinate system without spatial data in the spatial coordinate system database is identified.
[0067] Step S3, using the coordinate conversion relationship between the source space coordinate system and the preset standard space coordinate system, converting the to-be-converted space data into coordinate data on the standard space coordinate system.
[0068] In this embodiment, the standard spatial coordinate system can be one of the spatial coordinate system databases, and the user can specify any spatial coordinate system in the spatial coordinate system database as the standard spatial coordinate system according to the requirements. Since the coordinate conversion relationship between each spatial coordinate system has been set in the spatial coordinate system database, this embodiment can directly convert the spatial data to be converted into coordinate data on the standard spatial coordinate system based on the coordinate conversion relationship.
[0069] It should be noted that the "conversion" involved in the coordinate conversion of the spatial data to be converted using the spatial coordinate system in the spatial coordinate system database, and the "conversion" involved in converting the spatial data to be converted into coordinate data in the standard spatial coordinate system, described in this embodiment, are both applicable to the two scenarios of coordinate conversion and coordinate transformation in the above term explanations.
[0070] The spatial data standardization method provided by the present invention takes into account that in order to achieve the standardization of the spatial data to be converted, it is necessary to first determine the source spatial coordinate system to which the spatial data to be converted belongs. Therefore, this embodiment pre-creates a spatial coordinate system database, and according to the spatial range of the spatial data to be converted input by the user, automatically selects a spatial coordinate system that best matches the spatial data to be converted from the spatial coordinate system database as the source spatial coordinate system, and then automatically converts the spatial data to be converted into coordinate data on the standard spatial coordinate system according to the coordinate conversion relationship between the source spatial coordinate system and the standard spatial coordinate system to achieve the operation of spatial data standardization. This embodiment automatically completes the determination of the source spatial coordinate system and automatically converts the spatial data to be converted into a unified standard spatial coordinate system, thereby solving the technical problem in the prior art that spatial data conversion is based on manual operation of professionals, which is time-consuming and labor-intensive and cannot meet the growing actual usage needs.
[0071] Embodiment 2
[0072] Figure 4 A flow chart of a spatial data standardization method provided by the second embodiment of the present invention is shown.
[0073] like Figure 4As shown, the source data is the spatial data to be converted, and the spatial range of the source data can be manually specified. After obtaining the source data and the spatial range, this embodiment selects the spatial coordinate system that best matches the source data from the spatial coordinate system database according to the spatial range as the source spatial coordinate system, and then uses the coordinate conversion relationship between the source spatial coordinate system and the standard spatial coordinate system preset in the spatial coordinate system database to convert the source data into coordinate data on the standard spatial coordinate system, and stores the converted coordinate data in the spatial database for subsequent use. In addition, when the source spatial coordinate system cannot be filtered out from the spatial coordinate system database according to the spatial range, a spatial coordinate system can be manually specified as the source spatial coordinate system, and the specified spatial coordinate system is added to the spatial coordinate system database.
[0074] Embodiment 3
[0075] Embodiment 3 of the present invention further provides a spatial data standardization device, which corresponds to the spatial data standardization method provided in the above embodiment 1. The corresponding technical features and technical effects are not described in detail in this embodiment. For relevant parts, please refer to the above embodiment 1. Specifically, Figure 5 FIG. 4 shows a block diagram of a spatial data standardization device provided by Embodiment 3 of the present invention. Figure 5 As shown, the spatial data standardization device 500 may include an acquisition module 501, a screening module 502 and a conversion module 503, wherein:
[0076] An acquisition module 501 is used to acquire the spatial data to be converted and the spatial range of the spatial data to be converted;
[0077] A screening module 502 is used to screen out a spatial coordinate system that best matches the spatial data to be converted from a spatial coordinate system database according to the spatial range, as a source spatial coordinate system of the spatial data to be converted;
[0078] The conversion module 503 is used to convert the to-be-converted spatial data into coordinate data in the standard spatial coordinate system by using the coordinate conversion relationship between the source spatial coordinate system and the preset standard spatial coordinate system.
[0079] Optionally, the screening module is also used to: calculate the degree of matching between the spatial coordinate system in the spatial coordinate system database and the spatial data to be converted based on the spatial range; take the spatial coordinate system with a matching degree greater than or equal to a preset matching threshold as a candidate spatial coordinate system; and screen out the spatial coordinate system with the greatest matching degree from the candidate spatial coordinate systems as the source spatial coordinate system.
[0080] Optionally, when the screening module calculates the degree of matching between the spatial coordinate system in the spatial coordinate system database and the spatial data to be converted based on the spatial range, the screening module is also used to: obtain the spatial coordinate system used to determine the spatial range as the designated spatial coordinate system; select a spatial coordinate system from the spatial coordinate system database to be associated with the spatial data to be converted; convert the spatial data to be converted into the designated spatial coordinate system based on the coordinate conversion relationship between the selected spatial coordinate system and the designated spatial coordinate system to obtain a coordinate conversion result; calculate the degree of matching between the spatial coordinate system and the spatial data to be converted based on the coordinate conversion result and the spatial range.
[0081] Optionally, when calculating the degree of matching between the spatial coordinate system and the spatial data to be converted based on the coordinate transformation result and the spatial range, the screening module is also used to: calculate the overlapping range between the range enclosed by the coordinate transformation result in the specified spatial coordinate system and the spatial range; calculate the ratio of the overlapping range to the range enclosed by the coordinate transformation result in the specified spatial coordinate system to obtain the degree of matching between the spatial coordinate system and the spatial data to be converted.
[0082] Optionally, the device further includes: a receiving module, used to receive a matching instruction input from the outside when multiple matching degrees are all less than the preset matching threshold; and a determining module, used to use the spatial coordinate system pointed to by the matching instruction as the source spatial coordinate system.
[0083] Optionally, the spatial coordinate system database includes multiple spatial coordinate systems and coordinate conversion relationships between at least two of the spatial coordinate systems, and the spatial coordinate system database uses the EPSG geodetic parameter dataset as basic data.
[0084] Embodiment 4
[0085] Figure 6 The block diagram of a computer device suitable for implementing the spatial data standardization method provided by the fourth embodiment of the present invention is shown. In this embodiment, the computer device 600 can be a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server, or a server cluster composed of multiple servers) that executes a program. Figure 6 As shown, the computer device 600 of this embodiment includes at least but is not limited to: a memory 601, a processor 602, and a network interface 603 that can be interconnected through a system bus. It should be noted that Figure 6 Only computer device 600 is shown with components 601 - 603 , but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0086] In this embodiment, the memory 603 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 601 can be an internal storage unit of the computer device 600, such as a hard disk or memory of the computer device 600. In other embodiments, the memory 601 can also be an external storage device of the computer device 600, such as a plug-in hard disk equipped on the computer device 600, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 601 can also include both the internal storage unit of the computer device 600 and its external storage device. In this embodiment, the memory 601 is generally used to store an operating system and various application software installed on the computer device 600, such as program codes of a spatial data standardization method, etc. The spatial data standardization method includes: obtaining the spatial data to be converted and the spatial range of the spatial data to be converted; selecting the spatial coordinate system that best matches the spatial data to be converted from the spatial coordinate system database according to the spatial range as the source spatial coordinate system of the spatial data to be converted; and converting the spatial data to be converted into coordinate data on the standard spatial coordinate system by utilizing the coordinate conversion relationship between the source spatial coordinate system and a preset standard spatial coordinate system.
[0087] In some embodiments, the processor 602 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 602 is generally used to control the overall operation of the computer device 600. For example, the processor 602 performs control and processing related to data interaction or communication with the computer device 600. In this embodiment, the processor 602 is used to run the program code of the steps of the spatial data standardization method stored in the memory 601.
[0088] In this embodiment, the spatial data standardization method stored in the memory 601 may also be divided into one or more program modules and executed by one or more processors (processor 602 in this embodiment) to complete the present invention.
[0089] The network interface 603 may include a wireless network interface or a wired network interface, and the network interface 603 is generally used to establish a communication link between the computer device 600 and other computer devices. For example, the network interface 603 is used to connect the computer device 600 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 600 and the external terminal. The network can be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0090] Embodiment 5
[0091] The present embodiment also provides a computer-readable storage medium, including a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a disk, an optical disk, a server, an App application store, etc., on which a computer program is stored. When the computer program is executed by a processor, the steps of a spatial data standardization method are implemented. The spatial data standardization method includes: obtaining spatial data to be converted and the spatial range of the spatial data to be converted; selecting the spatial coordinate system that best matches the spatial data to be converted from a spatial coordinate system database according to the spatial range as the source spatial coordinate system of the spatial data to be converted; and converting the spatial data to be converted into coordinate data on the standard spatial coordinate system by using the coordinate conversion relationship between the source spatial coordinate system and a preset standard spatial coordinate system.
[0092] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.
[0093] It should be noted that the serial numbers of the embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.
[0095] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A spatial data standardization method, characterized in that: The method comprises: Acquire spatial data to be converted and the spatial range of the spatial data to be converted; According to the spatial range, a spatial coordinate system that best matches the spatial data to be converted is selected from a spatial coordinate system database as a source spatial coordinate system of the spatial data to be converted; Using the coordinate conversion relationship between the source space coordinate system and the preset standard space coordinate system, the to-be-converted space data is converted into coordinate data in the standard space coordinate system; The step of selecting a spatial coordinate system that best matches the spatial data to be converted from a spatial coordinate system database according to the spatial range as a source spatial coordinate system of the spatial data to be converted includes: Acquire a spatial coordinate system for determining the spatial range as a designated spatial coordinate system; Selecting a spatial coordinate system in the spatial coordinate system database to associate with the spatial data to be converted; According to the coordinate transformation relationship between the selected spatial coordinate system and the designated spatial coordinate system, the spatial data to be transformed is transformed into the designated spatial coordinate system to obtain a coordinate transformation result; Calculate the overlap range between the range enclosed by the specified space coordinate system and the space range of the coordinate transformation result; Calculating the ratio of the overlapped range to the range enclosed by the coordinate transformation result in the specified spatial coordinate system to obtain the matching degree between the spatial coordinate system and the spatial data to be transformed; The spatial coordinate system whose matching degree is greater than or equal to a preset matching threshold is taken as a candidate spatial coordinate system; A spatial coordinate system with the greatest matching degree is selected from the candidate spatial coordinate systems as the source spatial coordinate system.
2. The method according to claim 1, characterized in that: The method further comprises: When the multiple matching degrees are all less than the preset matching threshold, receiving a matching instruction input from the outside; The spatial coordinate system pointed to by the matching instruction is used as the source spatial coordinate system.
3. The method according to claim 1, characterized in that The spatial coordinate system database includes multiple spatial coordinate systems and coordinate conversion relationships between at least two of the spatial coordinate systems. The spatial coordinate system database uses the EPSG geodetic parameter dataset as basic data.
4. A spatial data standardization device, characterized in that: The device comprises: An acquisition module, used for acquiring the spatial data to be converted and the spatial range of the spatial data to be converted; A screening module, used for screening out a spatial coordinate system that best matches the spatial data to be converted from a spatial coordinate system database according to the spatial range, as a source spatial coordinate system of the spatial data to be converted; A conversion module, used for converting the to-be-converted spatial data into coordinate data on the standard spatial coordinate system by using the coordinate conversion relationship between the source spatial coordinate system and a preset standard spatial coordinate system; The screening module is specifically used for: Acquire a spatial coordinate system for determining the spatial range as a designated spatial coordinate system; Selecting a spatial coordinate system in the spatial coordinate system database to associate with the spatial data to be converted; According to the coordinate transformation relationship between the selected spatial coordinate system and the designated spatial coordinate system, the spatial data to be transformed is transformed into the designated spatial coordinate system to obtain a coordinate transformation result; Calculate the overlap range between the range enclosed by the specified space coordinate system and the space range of the coordinate transformation result; Calculating the ratio of the overlapped range to the range enclosed by the coordinate transformation result in the specified spatial coordinate system to obtain the matching degree between the spatial coordinate system and the spatial data to be transformed; The spatial coordinate system whose matching degree is greater than or equal to a preset matching threshold is taken as a candidate spatial coordinate system; A spatial coordinate system with the greatest matching degree is selected from the candidate spatial coordinate systems as the source spatial coordinate system.
5. A computer device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
