CN117494248A - Coordinate data processing method, device, computer equipment and storage medium - Google Patents

Coordinate data processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117494248A
CN117494248A CN202311842521.7A CN202311842521A CN117494248A CN 117494248 A CN117494248 A CN 117494248A CN 202311842521 A CN202311842521 A CN 202311842521A CN 117494248 A CN117494248 A CN 117494248A
Authority
CN
China
Prior art keywords
coordinate
data
coordinate system
processed
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202311842521.7A
Other languages
Chinese (zh)
Other versions
CN117494248B (en
Inventor
贾庆雷
马柳青
周淮浦
徐幸
李凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongketuxin Suzhou Technology Co ltd
Original Assignee
Zhongketuxin Suzhou Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongketuxin Suzhou Technology Co ltd filed Critical Zhongketuxin Suzhou Technology Co ltd
Priority to CN202311842521.7A priority Critical patent/CN117494248B/en
Publication of CN117494248A publication Critical patent/CN117494248A/en
Application granted granted Critical
Publication of CN117494248B publication Critical patent/CN117494248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD

Abstract

The application relates to the technical field of data processing and discloses a coordinate data processing method, a device, computer equipment and a storage medium. The method comprises the following steps: acquiring original map data and data to be processed, wherein the data to be processed corresponds to coordinate data; responding to an input instruction of a first auxiliary point, and acquiring a first coordinate corresponding to the first auxiliary point in the original map data, wherein the first auxiliary point is obtained by determining a map range corresponding to the data to be processed; determining a target coordinate system parameter according to the relation between the first coordinate and the coordinate data; and loading the data to be processed according to the target coordinate system parameters. By adopting the method, the workload can be reduced and the efficiency can be improved.

Description

Coordinate data processing method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and apparatus for processing coordinate data, a computer device, and a storage medium.
Background
In CAD designs, accurate coordinate system information is critical to achieving the layout, analysis, and production of the model. Since CAD data may come from different sources, problems such as inconsistent or missing coordinate systems may be encountered when importing CAD data, which may present difficulties in the proper loading of CAD data.
In the traditional technology, a user can manually judge and adjust according to CAD data and real map information, so that a CAD data coordinate system is matched with the real map information. However, this method requires a lot of manpower and events, is labor-intensive, and is inefficient.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a coordinate data processing method, apparatus, computer device, and computer-readable storage medium that reduce workload and improve efficiency.
In a first aspect, the present application provides a coordinate data processing method, including:
acquiring original map data and data to be processed, wherein the data to be processed corresponds to coordinate data;
responding to an input instruction of a first auxiliary point, and acquiring a first coordinate corresponding to the first auxiliary point in the original map data, wherein the first auxiliary point is obtained by determining a map range corresponding to the data to be processed;
determining a target coordinate system parameter according to the relation between the first coordinate and the coordinate data;
and loading the data to be processed according to the target coordinate system parameters.
In one embodiment, the determining the target coordinate system parameter according to the relation between the first coordinate and the coordinate data includes:
Loading the data to be processed according to the coordinate system parameters corresponding to the first coordinates when the first coordinates are within the range of the coordinate data;
and in response to receiving the instruction of successful matching of the first coordinates, determining the coordinate system parameters corresponding to the first coordinates as target coordinate system parameters.
In one embodiment, the determining the target coordinate system parameter according to the relation between the first coordinate and the coordinate data includes:
determining an initial coordinate system parameter corresponding to a number of bits of the coordinate data if the first coordinate is outside a range of the coordinate data;
performing coordinate conversion on the first coordinate according to the initial coordinate system parameters to obtain a converted first coordinate;
loading the data to be processed according to the initial coordinate system parameters;
and determining the initial coordinate system parameter as a target coordinate system parameter in response to receiving the converted instruction of successful matching of the first coordinate.
In one embodiment, the determining the target coordinate system parameter according to the relation between the first coordinate and the coordinate data includes:
receiving an input instruction of a second auxiliary point in response to the relation between the first coordinate and the coordinate data does not accord with a preset condition, and determining a second coordinate corresponding to the second auxiliary point in the original map data;
Determining a second coordinate with the same name corresponding to the second auxiliary point in the data to be processed;
determining initial coordinate system parameters according to the second coordinates and the homonymous second coordinates;
loading the data to be processed according to the initial coordinate system parameters;
and in response to receiving the instruction of successful matching of the second coordinate, determining the initial coordinate system parameter as a target coordinate system parameter.
In one embodiment, after loading the data to be processed according to the initial coordinate system parameters, the method further includes:
responding to the received instruction of failure in matching the second coordinate, and adjusting a first parameter in the initial coordinate system parameters according to a preset adjustment amplitude to obtain an adjusted first parameter;
and loading the data to be processed according to the adjusted first parameter until an instruction of successful matching of the second coordinate is received, and determining the coordinate system parameter corresponding to the adjusted first parameter as a target coordinate system parameter.
In one embodiment, after the adjusted first parameter, the method further includes:
acquiring a plurality of matching auxiliary points in response to the times of receiving the command of failure in matching the second coordinate is greater than a preset threshold value;
Determining a first matching coordinate corresponding to each matching auxiliary point in the original map data and a second matching coordinate corresponding to each matching auxiliary point in the data to be processed;
and determining the parameters of the target coordinate system according to the association relation between the first matching coordinate and the second matching coordinate.
In a second aspect, the present application further provides a coordinate data processing apparatus, including:
the acquisition module is used for acquiring original map data and data to be processed, wherein the data to be processed corresponds to coordinate data;
the response module is used for responding to an input instruction of a first auxiliary point and acquiring a first coordinate corresponding to the first auxiliary point in the original map data, wherein the first auxiliary point is obtained by determining a map range corresponding to the data to be processed;
the determining module is used for determining a target coordinate system parameter according to the relation between the first coordinate and the coordinate data;
and the loading module is used for loading the data to be processed according to the target coordinate system parameters.
In one embodiment, the determining module includes:
the first loading sub-module is used for loading the data to be processed according to the coordinate system parameters corresponding to the first coordinates when the first coordinates are within the range of the coordinate data;
And the first determining submodule is used for determining the coordinate system parameter corresponding to the first coordinate as the target coordinate system parameter in response to receiving the instruction of successful matching of the first coordinate.
In one embodiment, the determining module includes:
a second determining submodule, configured to determine an initial coordinate system parameter corresponding to a number of bits of the coordinate data if the first coordinate is out of a range of the coordinate data;
the first conversion sub-module is used for carrying out coordinate conversion on the first coordinate according to the initial coordinate system parameters to obtain a converted first coordinate;
the second loading sub-module is used for loading the data to be processed according to the initial coordinate system parameters;
and the third determining submodule is used for determining the initial coordinate system parameter as a target coordinate system parameter in response to receiving the instruction of successful matching of the converted first coordinate.
In one embodiment, the determining module includes:
a fourth determining sub-module, configured to receive an input instruction of a second auxiliary point in response to the relationship between the first coordinate and the coordinate data not meeting a preset condition, and determine a second coordinate corresponding to the second auxiliary point in the original map data;
A fifth determining submodule, configured to determine a second coordinate with the same name corresponding to the second auxiliary point in the data to be processed;
a sixth determining submodule, configured to determine an initial coordinate system parameter according to the second coordinate and the second coordinate with the same name;
the third loading sub-module is used for loading the data to be processed according to the initial coordinate system parameters;
and a seventh determining submodule, configured to determine the initial coordinate system parameter as a target coordinate system parameter in response to receiving the instruction that the second coordinate matching is successful.
In one embodiment, after the third loading sub-module, the method further includes:
the adjusting module is used for responding to the received command of failure in matching the second coordinate, and adjusting the first parameter in the initial coordinate system parameters according to a preset adjusting amplitude to obtain an adjusted first parameter;
and an eighth determining submodule, configured to load the data to be processed according to the adjusted first parameter until an instruction that the second coordinate is successfully matched is received, and determine a coordinate system parameter corresponding to the adjusted first parameter as a target coordinate system parameter.
In one embodiment, after the adjusting module, the adjusting module further includes:
The acquisition sub-module is used for acquiring a plurality of matching auxiliary points in response to the fact that the times of receiving the command of the second coordinate matching failure is larger than a preset threshold value;
a ninth determining submodule, configured to determine a first matching coordinate corresponding to each of the matching auxiliary points in the original map data and a second matching coordinate corresponding to each of the matching auxiliary points in the data to be processed;
and a tenth determining submodule, configured to determine a target coordinate system parameter according to the association relationship between the first matching coordinate and the second matching coordinate.
In a third aspect, embodiments of the present disclosure also provide a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method of any of the embodiments of the present disclosure when the computer program is executed.
In a fourth aspect, embodiments of the present disclosure also provide a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the embodiments of the present disclosure.
In a fifth aspect, embodiments of the present disclosure also provide a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of the method according to any of the embodiments of the present disclosure.
According to the embodiment of the disclosure, when the data to be processed is required to be imported, the target coordinate system parameters are determined according to the association relation between the corresponding first coordinates of the first auxiliary points in the original map data and the coordinate data in the data to be processed, so that automatic determination of the coordinate system parameters is realized, the coordinate system parameters are not required to be determined manually according to the data to be processed and the original map data, the efficiency and accuracy of parameter determination are improved, the workload is reduced, and the method is suitable for more application scenes; the method has the advantages that the data to be processed is loaded based on the target coordinate system parameters, so that the data to be processed can be correctly imported, the data to be processed can be automatically loaded to a correct position based on the auxiliary points and the original map data, the implementation mode is simple, the data to be processed can be quickly and accurately imported, and the subsequent processing and analysis application of the data to be processed are facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the following description will briefly explain the drawings required to be used in the embodiments or the related technical descriptions, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained according to the drawings without any inventive effort for those skilled in the art.
FIG. 1 is a flow chart of a method of processing coordinate data in one embodiment;
FIG. 2 is a flow chart illustrating a method for determining coordinate data corresponding to data to be processed in an embodiment;
FIG. 3 is a flow chart illustrating a method for determining coordinate data corresponding to data to be processed in an embodiment;
FIG. 4 is a scatter plot of element data coordinate values in one embodiment;
FIG. 5 is a flowchart illustrating a first coordinate confirmation method according to an embodiment;
FIG. 6 is a flow chart of a method of processing coordinate data in one embodiment;
FIG. 7 is a flow chart of a method of processing coordinate data in one embodiment;
FIG. 8 is a flow chart of a method of processing coordinate data in one embodiment;
FIG. 9 is a flow chart of a method of processing coordinate data in one embodiment;
FIG. 10 is a flow chart of a method of processing coordinate data in one embodiment;
FIG. 11 is a block diagram showing a configuration of a coordinate data processing apparatus in one embodiment;
fig. 12 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In an exemplary embodiment, as shown in fig. 1, there is provided a coordinate data processing method, the method including:
step S110, obtaining original map data and data to be processed, wherein the data to be processed corresponds to coordinate data;
in the embodiment of the disclosure, original map data and data to be processed are acquired. Specifically, in some application scenarios, according to different purposes, sources and the like, data to be processed can be loaded to present a model of an original map, design parameters, different types of images and the like, so that analysis processing can be performed on the data, for example, in CAD design, CAD data can be introduced into corresponding positions of the original map to correctly present the CAD data, so that subsequent analysis processing can be performed. Because the corresponding coordinate data may have errors or deletions when the data to be processed is imported or converted from different sources, the corresponding coordinate system in the data to be processed may not be consistent with the coordinate system of the original map, the data needs to be loaded according to the coordinate system in the data to be processed when being loaded, and if the data to be processed is directly loaded according to the coordinate system, the problem of mismatch with the position of the original map can occur. In this embodiment, the original map data and the data to be processed are obtained, where the original map data may be obtained by determining a map area range corresponding to the data to be processed, for example, the data to be processed is road information data of the a city B area, and the corresponding range of the original map data may be the a city B area. The data to be processed corresponds to the coordinate data, and the loaded data to be processed corresponds to the position in the original map data, so that the coordinate data corresponds to the data to be processed, and the position of the element object in the data to be processed is defined. In one example, the data to be processed may include a database; the data to be processed may also include data in the form of a database comprising a plurality of tables, each table having different information stored therein.
In an example, the coordinate data corresponding to the data to be processed may be determined based on the data to be processed, as shown in fig. 2, there may be some irrelevant reference elements or intermediate elements in the data to be processed, such as labeling information about data interpretation, drawing information, coordinate system, drawing units, etc., where the number of bits of the coordinates of such information may be greatly different from the number of bits of the whole data to be processed, and may interfere with the computer to determine the number of bits of the coordinates of the whole data to be processed, so that the computer is required to calculate the effective interval of the data to be processed first, create a data BOX, and calculate the center point coordinates of the BOX to obtain the coordinate data corresponding to the data to be processed. Specifically, as shown in fig. 3, the user imports data to be processed, and the program reads a database corresponding to the data to be processed. And traversing all element objects in all the data to be processed by the program, and extracting element vertex coordinate information. In one example, the data to be processed may be CAD files, one CAD file being essentially a database, wherein the CAD database generally comprises 9 symbol tables and 1 data dictionary, the 9 symbol tables representing: block table (BlockTabLe), dimension style sheet (dimstyle table), layer table (LayerTable), linetype table (LinetypeTable), application registry (RegAppTable), literal style sheet (textstyle table), user coordinate table (ucusable), viewport table (ViewTable), window table (ViewTable). The automatic program traversing of the element objects in the data to be processed is to traverse a database corresponding to the data to be processed, extract the coordinate information of the graphics primitive in the file, acquire the coordinate information of all elements, and specifically acquire the database object pointers; acquiring a user coordinate pointer through a pointer of a database object; acquiring a user coordinate table record iterator through a user coordinate pointer; and recording the coordinate information of the member function of the browser to traverse the whole data to be processed through a user coordinate table, and adding a counter to count the whole element quantity alpha until the traverse is completed. When traversing the coordinate information, the object pointed by the iterator is acquired and accessed by the iterator, in the traversing process, the object is counted by the counter, and the iterator is pointed to the next object by the Step function.
The program establishes a data set based on the vertex coordinate information extracted in the previous step, and the data set is specifically as follows: let the set X be the abscissa value of all vertex coordinatesWhere n is the number of vertex coordinates α for all elements; let set Y be the ordinate values of all vertex coordinates, +.>Where n is the number of vertex coordinates α for all elements. The program uses an ordering algorithm to order the set X, Y according to a rule from small to large, and establishes an ordered data set, which is specifically as follows: set->Set->And respectively sequencing the set X and the set Y, and then: />Where n is the number of vertex coordinates α for all elements.
According to the vertex coordinates calculated by the method, as shown in fig. 4, element data coordinate value distribution scatter diagram is obtained, in order to simplify the calculation process of the program, promote the calculation efficiency, calculate the effective interval of the data to be processed, for example, a data filtering threshold value can be set, all the data before and after the X axis and the Y axis are removed, only the vast majority of the effective data is remained, and a data BOX is established, and the center point coordinate is calculated, which is the target coordinate system of the next stepThe parameter determination process may provide a data basis. Specifically, a filtering threshold β (β is a percentage) is configured, the meaning of which is to consider a collection The data of the top β of the middle rank and the data of the bottom β of the rank are invalid. In one example, the program default filtering threshold is 2.5%, and the filtering threshold can be given according to manual judgment or computer calculation of the actual application scene. Taking the effective minimum value of X, and setting the effective minimum value of X of the CAD as X min An effective maximum value of X max In the collection->And (3) taking the highest value, and then: />,/>Wherein->、/>For the collection->Ranking the ordered results->、/>Data of location->,/>. Take the effective maximum value of Y and take Y in the same way min And Y max . Creating a data BOX, the program based on the result of the previous step, respectively in points (X min ,Y min ) Point (X) min ,Y max )、(X max ,Y min )、(X max ,Y max ) As vertices, a data BOX is built. Calculating center point coordinates, calculating center point coordinates (X 1 ,Y 1 ) Wherein->,/>
In one example, the data BOX is calculated by the method, that is, a data frame, where the data frame includes a plurality of coordinate data in the data to be processed, and the coordinate data included in the data BOX is the coordinate data corresponding to the data to be processed in this embodiment.
Step S120, responding to an input instruction of a first auxiliary point, and acquiring a first coordinate corresponding to the first auxiliary point in the original map data, wherein the first auxiliary point is obtained by determining according to a map range corresponding to the data to be processed;
In the embodiment of the disclosure, a first coordinate corresponding to a first auxiliary point in original map data is acquired in response to an input instruction of the first auxiliary point. The first auxiliary point is determined according to a map range corresponding to the data to be processed, in one example, an input instruction of the first auxiliary point may be sent based on user operation, for example, the user may specify a point in an original map according to the map range of the data to be processed in an actual application scene according to the input instruction of the first auxiliary point in the actual application scene, and trigger the input instruction of the first auxiliary point; in another example, the input instruction of the first auxiliary point may be automatically sent, for example, after the original map data and the data to be processed are acquired, an auxiliary point is automatically determined as the first auxiliary point in the original map according to the range corresponding to the original map data and the data to be processed, and the input instruction of the first auxiliary point is triggered. The coordinate system type of the first coordinate corresponding to the first auxiliary point in the original map data may be determined according to an actual application scene, in general, different coordinate system types correspond to different coordinate system parameters, where coordinates of each corresponding point may also have a difference, in this embodiment, the coordinate system type of the first coordinate may be determined according to the coordinate system type with higher frequency in different application scenes, in a calculation process, the first coordinate may be obtained by calculation according to longitude and latitude data of the first auxiliary point, for example, the coordinate system type of the first coordinate may be determined as a standard projection coordinate system without adding a sign, and in determining the first coordinate, the coordinate of the first auxiliary point in the standard projection coordinate system without adding a sign may be obtained by calculation according to longitude and latitude coordinates of the first auxiliary point, that is, the first coordinate. In one example, the coordinate system types may include, but are not limited to, a standard projection coordinate system (signed), a standard projection coordinate system (unsigned), a standard projection coordinate system (the majority omitted), a city independent coordinate system, an engineering independent coordinate system, and the like.
The method described in this embodiment may be implemented by a coordinate data processing program. Fig. 5 is a flowchart of a first coordinate confirmation method according to an exemplary embodiment, and referring to fig. 5, a user may designate an auxiliary point on an original map as a first auxiliary point according to a rough area of data to be processed through a human-computer interaction model, and the program calculates the first coordinate based on the first auxiliary point as a data basis for parameter calculation of a subsequent target coordinate system. Specifically, the program prompts the user to add a first auxiliary point a, which is required to be within the general area where the data to be processed is located. After adding the auxiliary point A, the program automatically extracts longitude and latitude coordinates (L) of the auxiliary point under the national 2000 coordinate system 0 ,B 0 ). The program is based on longitude value L in longitude and latitude coordinates of auxiliary point A 0 The nearest central meridian L of the gaussian-kriging 3 ° band is calculated, and the specific calculation flow is as follows: the tape number N is calculated according to equation (1), as follows:
(1)
after the belt number is obtained, the central meridian L is calculated according to the formula (2), which is as follows:
(2)
the recommended coordinate system is configured by default based on the calculation result, and in this embodiment, specific parameters of the recommended coordinate system by default are shown in table 1:
TABLE 1
The program is based on latitude and longitude coordinates (L) of the auxiliary point a 0 ,B 0 ) Plane coordinates (X) under the national 2000 Gauss-Gauss 3 DEG band coordinate system are automatically calculated 0 ,Y 0 ) I.e. first coordinate, and X 0 Is a 6-bit number. The specific calculation formula is as follows:
(3)
(4)
ellipsoid long half shaftEllipsoidal flat->Ellipsoid short half shaftFirst eccentricity of ellipsoid>Ellipsoidal second eccentricity->Angle is radian, B is latitude B of auxiliary point 0 ,/>,/>Longitude, latitude, and longitude for auxiliary point>Is the central meridian longitude; n is the radius of curvature of the meridian>Wherein->,/>,/>The method comprises the steps of carrying out a first treatment on the surface of the X is meridian arc length, < >>
Is basically constant and is calculated according to the following formula:
(5)
(6)
(7)
(8)
(9)
is basically constant and is calculated according to the following formula:
(10)
(11)
(12)
(13)
(14)
step S130, determining a target coordinate system parameter according to the relation between the first coordinate and the coordinate data;
in an embodiment of the present disclosure, the target coordinate system parameter is determined according to a relationship between the first coordinate and the coordinate data. Since the different coordinate system types correspond to different coordinate system parameters, the coordinates of the corresponding points in the data to be processed also differ, the coordinate data in the data to be processed comprise the coordinates corresponding to the element objects in the data to be processed, the target coordinate system type is determined according to the association relationship between the first coordinate and the coordinate data, in one example, the target coordinate system type corresponding to the data to be processed can be determined according to the relationship between the first coordinate and the coordinate data, and thus the corresponding coordinate system parameters are determined. In some possible implementations, the relationship between the coordinate data and the first coordinate may be determined according to the number of bits of the first coordinate and the number of bits of the coordinates in the coordinate data, thereby determining the target coordinate system parameter; the relation between the first coordinates and the coordinate data may be determined according to whether the first coordinates are included in the coordinate data, the distance between the coordinates and the first coordinates in the coordinate data, and the like, so that the target coordinate system parameter is determined. In one example, when determining the target coordinate system parameter according to the relation between the first coordinate and the coordinate data, determining the candidate coordinate system parameter according to the relation between the first coordinate and the coordinate data, loading the data to be processed according to the candidate coordinate system parameter, and determining the candidate coordinate system parameter as the target coordinate system parameter under the condition of receiving a successful matching instruction, wherein the successful matching instruction can be sent manually by a user or can be sent after automatic matching confirmation of the system, and can be determined according to an actual application scene.
And step S140, loading the data to be processed according to the target coordinate system parameters.
In the embodiment of the disclosure, the data to be processed is loaded according to the target coordinate system parameters. The target coordinate system parameters are target coordinate system parameters obtained by combining the original map data and the auxiliary point information, and the information in the data to be processed can be loaded to the corresponding real position in the original map data by loading the data to be processed through the target coordinate system parameters. In one example, a configuration file may be generated according to a target coordinate system parameter, and the configuration file is used to load data to be processed, so that the data to be processed can be correctly loaded to a corresponding position in an original map according to the configuration file in different application scenarios, for example, when CAD data needs to be loaded, a prj file may be generated according to the target coordinate system parameter, and a prj file is a file for describing coordinate system projection, where information such as a coordinate system name, a long and short half axis, a reference plane, a projection parameter and the like is defined.
According to the embodiment of the disclosure, when the data to be processed is required to be imported, the target coordinate system parameters are determined according to the association relation between the corresponding first coordinates of the first auxiliary points in the original map data and the coordinate data in the data to be processed, so that automatic determination of the coordinate system parameters is realized, the coordinate system parameters are not required to be determined manually according to the data to be processed and the original map data, the efficiency and accuracy of parameter determination are improved, the workload is reduced, and the method is suitable for more application scenes; the method has the advantages that the data to be processed is loaded based on the target coordinate system parameters, so that the data to be processed can be correctly imported, the data to be processed can be automatically loaded to a correct position based on the auxiliary points and the original map data, the implementation mode is simple, the data to be processed can be quickly and accurately imported, and the subsequent processing and analysis application of the data to be processed are facilitated.
In one embodiment, as shown in fig. 6, the determining the target coordinate system parameter according to the relationship between the first coordinate and the coordinate data includes:
step S131, loading the data to be processed according to the coordinate system parameters corresponding to the first coordinates when the first coordinates are within the range of the coordinate data;
step S132, in response to receiving the instruction that the first coordinate matching is successful, determines the coordinate system parameter corresponding to the first coordinate as the target coordinate system parameter.
In the embodiment of the disclosure, when determining the target coordinate system parameter, determining whether the first coordinate is within the range of the coordinate data, and when the first coordinate is within the range of the coordinate data, loading the data to be processed according to the coordinate system parameter corresponding to the first coordinate. In response to receiving an instruction that the first coordinate is successfully matched, the first coordinate and the coordinate of the same-name point in the data to be processed can be considered to be consistent at the moment, the data to be processed is successfully loaded into a corresponding position in the original map, and the coordinate system parameter corresponding to the first coordinate is determined to be the target coordinate system parameter; the instruction that the first coordinate is successfully matched can be automatically sent out, for example, the server determines whether the first auxiliary point in the original map is matched with the corresponding homonymous point in the data to be processed according to the loading result, if so, the instruction that the matching is successful is sent out, and the server can judge whether the matching is successful or not through modes such as image processing. In an example, if the instruction that the first coordinate matching is successful is not received or the instruction that the first coordinate matching is failed is received within the preset duration, the coordinate system parameter corresponding to the data to be processed may be considered to be different from the coordinate system parameter of the first coordinate at this time, a message of the matching failure may be returned, or a subsequent further calculation manner may be adopted to process the data, for example, at this time, the first coordinate and the coordinate data may be considered to be not in accordance with the preset condition, and the corresponding target coordinate system parameter may be obtained by calculating in combination with other auxiliary points.
In one possible implementation manner, when determining whether the first coordinate is within the coordinate data range, the determination may be comprehensively performed according to the auxiliary point a plane coordinate and the data BOX range information. Specifically, the program is based on auxiliary point a plane coordinates (X 0 ,Y 0 ) And the data BOX range information is used for judging whether the data BOX contains the auxiliary point, if the data BOX contains the auxiliary point A, the first coordinate can be considered to be positioned in the range of the coordinate data of the data to be processed, and if not, the next judging flow is started. Wherein the judgment condition may be set to,/>If the above two expressions are satisfied at the same time, it is determined that the data BOX includes the auxiliary point. In one example, the coordinate system corresponding to the first coordinate is a standard projection coordinate system without a sign, so the first coordinate is 6 bits, and since the plane coordinate X calculated by the auxiliary point a is 6 bits, the data BOX contains the auxiliary point and can infer that the coordinate data corresponding to the data to be processed is 6 bits. In one example, as shown in fig. 7, when the first coordinate is within the range of the coordinate data of the data to be processed, coordinate information configuration is performed according to the coordinate system parameter corresponding to the first coordinate, loading the data to be processed and performing manual verification, when an instruction of successful matching of the first coordinate through manual verification is received, determining that the data to be processed is the first type of data, taking the coordinate system parameter corresponding to the first coordinate as the target coordinate system parameter, and generating a corresponding configuration file; if the verification is not passed, determining the data to be processed as third-class data And continuing the subsequent processing.
According to the embodiment of the disclosure, when the target coordinate system parameter is determined, the data to be processed is directly loaded according to the coordinate system parameter corresponding to the first coordinate when the first coordinate is positioned in the range of the coordinate data of the data to be processed, if matching is successful, the coordinate system parameter corresponding to the first coordinate can be determined as the target coordinate system parameter, and when the first coordinate is positioned in the range of the coordinate data to be processed, a matching instruction can be automatically loaded and received to determine the target coordinate system parameter.
In one embodiment, as shown in fig. 8, the determining the target coordinate system parameter according to the relationship between the first coordinate and the coordinate data includes:
step S133, determining an initial coordinate system parameter corresponding to the bit number of the coordinate data when the first coordinate is out of the range of the coordinate data;
step S134, carrying out coordinate conversion on the first coordinates according to the initial coordinate system parameters to obtain converted first coordinates;
Step S135, loading the data to be processed according to the initial coordinate system parameters;
step S136, in response to receiving the instruction that the converted first coordinate is successfully matched, determining the initial coordinate system parameter as the target coordinate system parameter.
In the embodiment of the disclosure, when determining the parameters of the target coordinate system, whether the first coordinate is within the range of the coordinate data is firstly determined, and when the first coordinate is outside the range of the coordinate data, further processing is performed according to the bit number of the coordinate data. Specifically, an initial coordinate system parameter corresponding to the number of bits of the coordinate data is determined, and in one example, a matching initial coordinate system type may be determined according to the number of bits of the coordinate data, and the initial coordinate system parameter may be obtained according to the initial coordinate system type. In one example, when the first coordinate is within the range of the coordinate data, it may be determined whether the number of bits of the coordinate data accords with the preset number of bits, if so, the initial coordinate system parameter is determined, for example, the preset number of bits may be set to 8 bits, the corresponding initial coordinate system type is a signed standard projection coordinate system, when the number of bits of the coordinate data accords with the preset number of bits, it is determined whether the first two bits of the coordinate data are identical to the signed standard projection coordinate system, if so, the initial coordinate system type is determined to be the signed standard projection coordinate system, and the initial coordinate system parameter is a coordinate system configuration parameter corresponding to the signed standard projection coordinate system. And carrying out coordinate conversion on the first coordinates according to the initial coordinate system parameters to obtain converted first coordinates corresponding to the initial coordinate system parameters. And loading data to be processed according to the initial coordinate system parameters, and determining the initial coordinate system parameters as target coordinate system parameters when receiving the converted instruction of successful matching of the first coordinates. The instruction that the converted first coordinate is successfully matched can be sent manually by a user, for example, the user determines whether the first auxiliary point in the original map is matched with the corresponding homonymous point in the data to be processed according to the loading result, if so, the data to be processed can be loaded correctly according to the coordinate system parameter of the converted first coordinate, so that the coordinate system parameter corresponding to the converted first coordinate is determined to be the target coordinate system parameter; the converted first coordinate matching success instruction can be automatically sent out, for example, the server determines whether the first auxiliary point in the original map is matched with the corresponding homonymous point in the data to be processed according to the loading result, if so, the server sends out the matching success instruction, and the server can judge whether the matching is successful or not through modes such as image processing. In one example, if the instruction of successful matching of the converted first coordinate is not received or the instruction of failed matching of the converted first coordinate is received within the preset time, the coordinate system parameter corresponding to the data to be processed may be considered to be different from the coordinate system parameter of the first coordinate converted at this time, a message of failed matching may be returned, or a subsequent further calculation manner may be adopted to process, for example, at this time, the first coordinate and the coordinate data converted may not meet the preset condition, and calculation may be performed in combination with other auxiliary points to obtain the corresponding target coordinate system parameter.
In one possible implementation, the center point coordinate X is based on when the first coordinate is outside the range of the coordinate data of the data to be processed 1 Number of bits information of (1) to determine X 1 If the number is 8, the data to be processed may be a signed standard projection coordinate system. At this time, as shown in FIG. 9, the program extracts the center point coordinate system X 1 The first two bits of (1) are given as a number N 1 And verifying with the tape number N calculated based on the auxiliary point A, judging whether the tape numbers are equal, if so, carrying out data loading verification, otherwise, classifying the data to be processed into third-class data. And if the verification is passed, the program automatically writes prj files (namely configuration files) for the data to be processed, otherwise, the data to be processed is classified into third type data. Wherein L is 1 Is based on the number N 1 Calculated central meridian
TABLE 2
According to the embodiment of the disclosure, when the first coordinate is located outside the range of the coordinate data of the data to be processed, the first coordinate is subjected to coordinate conversion according to the number of bits of the coordinate data, loading matching is performed, if matching is successful, the initial coordinate system parameter corresponding to the converted coordinate is determined to be the target coordinate system parameter, the determination of the coordinate system parameter by combining the number of bits, the first coordinate and the original map data is realized, the data to be processed of the coordinate system parameter with different numbers of bits can be automatically loaded, the implementation mode is simple, the determination mode of the coordinate system parameter is simplified, and the efficiency and accuracy of the determination of the coordinate system parameter are improved.
In one embodiment, the determining the target coordinate system parameter according to the relation between the first coordinate and the coordinate data includes:
receiving an input instruction of a second auxiliary point in response to the relation between the first coordinate and the coordinate data does not accord with a preset condition, and determining a second coordinate corresponding to the second auxiliary point in the original map data;
determining a second coordinate with the same name corresponding to the second auxiliary point in the data to be processed;
determining initial coordinate system parameters according to the second coordinates and the homonymous second coordinates;
loading the data to be processed according to the initial coordinate system parameters;
and in response to receiving the instruction of successful matching of the second coordinate, determining the initial coordinate system parameter as a target coordinate system parameter.
In the embodiment of the disclosure, in response to the relation between the first coordinate and the coordinate data not meeting the preset condition, an input instruction of a second auxiliary point is received, a second coordinate corresponding to the second auxiliary point in original map data is determined, and a second coordinate with the same name corresponding to the second auxiliary point in the data to be processed is determined. The input instruction of the second auxiliary point may be sent by the user, for example, the user selects the auxiliary point in the original map, and triggers the input instruction of the second auxiliary point; the input instruction of the second auxiliary point may be automatically sent, for example, the server determines the second auxiliary point according to the map range corresponding to the original map data and the data to be processed. In one example, the second auxiliary point is set as a point corresponding to coordinate information in both the data to be processed and the original map data. And calculating to obtain initial coordinate system parameters according to the second coordinates corresponding to the original map data and the corresponding second coordinates with the same name in the data to be processed. In one example, the initial coordinate system parameters include a pseudo-east value and a pseudo-north value, and when the coordinate data is projection data, different map projection modes and coordinate systems may correspond to different pseudo-east values and pseudo-north values in order to ensure accuracy of the coordinates, the pseudo-east values and the pseudo-north values are calculated according to the second coordinates and the second coordinates with the same name, and the initial coordinate system parameters are obtained by combining the coordinate system parameters of the second coordinates. According to the initial coordinate system parameters, loading the data to be processed, and responding to the received command of successful second coordinate matching, determining the initial coordinate system parameters as target coordinate system parameters, wherein the command of successful second coordinate matching can be sent manually by a user, for example, the user determines whether a second auxiliary point in an original map is matched with a corresponding homonymous point in the data to be processed according to a loading result, if so, the data to be processed can be correctly loaded according to the initial coordinate system parameters, and therefore, the initial coordinate system parameters are determined as target coordinate system parameters; the instruction that the second coordinate is successfully matched can be automatically sent out, for example, the server determines whether the second auxiliary point in the original map is matched with the corresponding homonymous point in the data to be processed according to the loading result, if so, the instruction that the matching is successful is sent out, and the server can judge whether the matching is successful or not through modes such as image processing. In one example, if the instruction that the second coordinate matching is successful is not received or the instruction that the second coordinate matching is failed is received within the preset duration, the coordinate system parameter corresponding to the data to be processed may be considered to be different from the initial coordinate system parameter, and a message of the matching failure may be returned, or may be processed in a subsequent further calculation mode. In one embodiment, when the relationship between the first coordinate and the coordinate data does not meet the preset condition, the data to be processed at this time may be considered as third-class data; and as described in the above embodiment, when the target coordinate system parameter cannot be calculated according to the above embodiment, the data to be processed is also divided into the third type of data, and when the third type of data is processed, the method described in the present embodiment may be performed.
According to the embodiment of the disclosure, when the relation between the first coordinate and the coordinate data does not meet the preset condition, the initial coordinate system parameter is determined according to the second coordinate corresponding to the second auxiliary point, the data to be processed is loaded by utilizing the initial coordinate system parameter, and the matching instruction is received, when the matching is successful, the initial coordinate system parameter is determined to be the target coordinate system parameter, through the embodiment, when the first coordinate does not meet the preset condition, the initial coordinate system parameter can be continuously determined according to the corresponding coordinate of the second auxiliary point in the original map data and the data to be processed, and the loading matching is performed, the coordinate system parameter can be determined based on the second auxiliary point according to the relation between the original map data and the coordinates of the data to be processed, the implementation mode is simple, and the accuracy of the obtained coordinate system parameter is higher; when the first coordinates cannot be used for determining the target coordinate system parameters, the second auxiliary points are introduced, so that the confirmation of the coordinate system parameters in more complex application scenes can be realized, the loading of data to be processed is efficiently and accurately carried out, and the method is suitable for more application scenes.
In one embodiment, after loading the data to be processed according to the initial coordinate system parameters, the method further comprises:
Responding to the received instruction of failure in matching the second coordinate, and adjusting a first parameter in the initial coordinate system parameters according to a preset adjustment amplitude to obtain an adjusted first parameter;
and loading the data to be processed according to the adjusted first parameter until an instruction of successful matching of the second coordinate is received, and determining the coordinate system parameter corresponding to the adjusted first parameter as a target coordinate system parameter.
In the embodiment of the disclosure, in response to receiving an instruction that the second coordinate matching fails, it may be considered that the coordinate system parameter of the data to be processed at this time is different from the initial coordinate system parameter calculated based on the second auxiliary point, at this time, the first parameter in the initial coordinate system parameter is adjusted according to the preset adjustment amplitude, the adjusted first parameter is obtained, the data to be processed is loaded according to the coordinate system parameter corresponding to the adjusted first parameter, whether the instruction that the second coordinate matching is successful is received is determined, if not, the adjustment is continued according to the preset adjustment amplitude, and the loading is repeated until the instruction that the second coordinate matching is successful is received, it may be considered that the coordinate system parameter corresponding to the adjusted first parameter at this time accords with the coordinate data of the data to be processed, and it is determined that the coordinate system parameter corresponding to the adjusted first parameter at this time is the target coordinate system parameter. The preset adjustment amplitude and the first parameter may be set according to an actual application scene, in an example, an adjustable parameter may be determined according to a parameter type in a coordinate system parameter in an actual application scene, for example, a central meridian in the coordinate system parameter may be set as the first parameter, the central meridian is adjusted stepwise according to the preset adjustment amplitude, and loading is performed to determine whether an instruction that the second coordinate matching is successful can be received. In this embodiment, the instruction for successful matching of the second coordinate is similar to that in the above embodiment, and specific reference may be made to the description of the above embodiment, which is not repeated here. In one example, if the matching is still unsuccessful after the multiple adjustments, the processing or sending of the message with the loading failure may be continued in other manners, where a preset threshold may be set, and when the number of adjustments is greater than the preset threshold, the processing or sending of the message with the loading failure in other manners may be performed.
According to the embodiment of the disclosure, when the second coordinate matching fails, a first parameter in the initial coordinate system parameters can be adjusted according to a preset adjustment amplitude, data to be processed is loaded based on the adjusted parameter, a matching instruction is received until a successful matching instruction is received, and the coordinate system parameter corresponding to the adjusted first parameter is determined to be a target coordinate system parameter; according to the embodiment, under the condition that the matching of the initial coordinate system parameters obtained by calculating the second auxiliary points fails, the initial coordinate system parameters can be adjusted in a stepping mode according to the preset adjustment amplitude, loading matching is carried out, automatic matching adjustment can be carried out on data to be processed of different first parameters, the method is suitable for more complex application scenes and different types of coordinate system parameters, and accuracy, reliability and effectiveness of determining the target coordinate system parameters are further guaranteed.
In one embodiment, after the adjusted first parameter, the method further includes:
acquiring a plurality of matching auxiliary points in response to the times of receiving the command of failure in matching the second coordinate is greater than a preset threshold value;
determining a first matching coordinate corresponding to each matching auxiliary point in the original map data and a second matching coordinate corresponding to each matching auxiliary point in the data to be processed;
And determining the parameters of the target coordinate system according to the association relation between the first matching coordinate and the second matching coordinate.
In the embodiment of the present disclosure, in response to the number of times of receiving the instruction of the second coordinate matching failure being greater than the preset threshold, it may be considered that the matching cannot be successfully performed by adjusting the first parameter at this time, and a plurality of matching auxiliary points are obtained. The preset threshold may be set according to an actual application scenario, for example, the preset threshold may be set to 6 times. In one example, the manner and requirements for the acquisition of the matching auxiliary point may be set to be the same as the second auxiliary point, see in particular the description in the above embodiment. In this embodiment, the number of matching auxiliary points may be determined according to an actual application scenario, for example, when four parameters are needed to be calculated to obtain the target coordinate system parameters, the number of matching auxiliary points may be at least three. And determining a corresponding first matching coordinate of each matching auxiliary point in the original map data and a corresponding second matching coordinate in the data to be processed, and determining a target coordinate system parameter according to the association relation between the first matching coordinate and the second matching coordinate. In an example, candidate coordinate system parameters may be further calculated according to a simultaneous equation of the first matching coordinate and the second matching coordinate, the candidate coordinate system parameters are used to load data to be processed, and in response to receiving an instruction of successful matching, the candidate coordinate system parameters are determined to be target coordinate system parameters, where if no instruction of successful matching is received or an instruction of failed matching is received within a preset period of time, a message of failed loading may be sent, and the sending manner and setting of the instruction may refer to the sending manner and setting of the instruction of successful matching described in the foregoing embodiments, which are not described herein.
In the embodiment of the disclosure, when the matching is still unsuccessful after the first parameter is adjusted for multiple times, a plurality of matching auxiliary points can be set, and the coordinates of the matching auxiliary points in the original map data and the data to be processed are calculated to obtain the target coordinate system parameter; according to the method and the device for automatically calculating the target coordinate system parameters, when the coordinate system parameters corresponding to the data to be processed are complex and cannot be automatically adjusted and calculated through the first auxiliary points and the second auxiliary points, the coordinate system parameters can be directly calculated by combining the plurality of matching auxiliary points, so that the method and the device are suitable for setting of various coordinate system parameters of different data to be processed in different application scenes, are suitable for more application scenes, can automatically calculate the target coordinate system parameters quickly and accurately in the complex scenes, reduce manual workload, improve the efficiency and accuracy of importing the data to be processed, and are suitable for more application scenes.
In one possible implementation, as shown in fig. 10, when the third type of data is processed, initial coordinate system parameters, namely, a false east value and a false north value, are determined first, and matching verification is performed; when the matching fails, the first parameter, namely the central meridian, can be adjusted, and the matching verification is carried out for a plurality of times; when the matching fails for many times, four parameters can be calculated by combining a plurality of matching auxiliary points, matching verification is performed, if the matching is successful, the target coordinate system parameters are obtained, a configuration file, namely a prj file, is automatically generated, if the matching fails, a message of the matching failure is sent, and the process is ended. Specifically, the program prompts the user to add a second auxiliary point B to assist the program in further automatic discrimination of the target coordinate system parameters, the auxiliary point requiring that corresponding coordinate information can be accurately obtained in the data to be processed and the original map data. Calculating a reference central meridian Is provided with->Is the nearest Gauss-Gauss 3 DEG zoned central meridian of the auxiliary point B, and the program is based on the longitude value L in the longitude and latitude coordinates of the auxiliary point B 2 Calculate->. Calculating plane coordinates of the auxiliary point, adding the auxiliary point B, and automatically extracting longitude and latitude coordinates (L) of the auxiliary point under a national 2000 coordinate system by a program 2 ,B 2 ) And calculates the plane coordinate (X) under the national 2000 Gauss-Gauss 3 DEG banded coordinate system 2 ,Y 2 ) I.e. the second coordinate. Inputting corresponding homonymous second coordinates in the data to be processed, and prompting the user to input homonymous second coordinates (/ for) corresponding to the second auxiliary point in the data to be processed corresponding to the auxiliary point B by the program>,/>). Calculating the false north value of the false east value, the program being based on (++>,/>) And (X) 2 ,Y 2 ) Calculating a false north value of the false east value, wherein the false east value +.>False north value->. And calculating according to the pseudo-east value and the pseudo-north value to obtain initial coordinate system parameters, and loading to-be-processed data by the program based on the initial coordinate system parameters, wherein the initial coordinate system parameters are shown in table 3.
TABLE 3 Table 3
The program prompts the user to carry out manual verification, checks whether the data to be processed can be matched with the real position of the original map data, if the matching is successful, the initial coordinate system parameters are determined to be target coordinate system parameters, a configuration file is automatically generated, and otherwise, the program automatically carries out the next adjustment on the data. Adjusting central meridian Is based on->Central meridian after adjustment, < >>When the verification of the last step is not passed, the program automatically performs the adjustment of the central meridian to +.>And carrying out multiple data loading on the central meridian, prompting a user to carry out manual verification by the program, automatically generating a configuration file by the program according to the coordinate system parameters corresponding to the central meridian after adjustment if the user passes the verification, and otherwise, automatically carrying out next adjustment on the data by the program. When the verification in the last step is not passed, the program prompts the user to add a plurality of matching auxiliary points in the three-dimensional scene, wherein the auxiliary point requirement is similar to the second auxiliary point requirement. Calculating a first matching coordinate and a second matching coordinate corresponding to the auxiliary point, wherein the first matching coordinate can be a national 2000 Gauss-Gauss 3 DEG projection coordinate of the auxiliary point matched in the original map data, and the second matching coordinate can be a coordinate corresponding to the auxiliary point in the data to be processed, and the calculation formula is as follows:
(15)
wherein,、/>the corresponding coordinates are coordinates of matching auxiliary points in the original map data, namely first matching coordinates, and the unit is meter; />、/>The corresponding coordinates are coordinates of matching auxiliary points in the data to be processed, namely second matching coordinates, and the unit is meter; / >Is a translation parameter, and the unit is meter; />The unit is radian for rotation parameter; />Is a scale parameter, and is dimensionless. The program automatically configures the calculated four parameters into the coordinate system information to obtain candidate coordinate system parameters, loads data to be processed according to the candidate coordinate system parameters, prompts a user to perform manual matching, automatically generates a configuration file if the matching is passed, and otherwise, the program reports the identification failure.
According to the embodiment of the disclosure, the time and energy consumption of a user in the aspect of manually setting the coordinate system can be reduced by automatically identifying the coordinate system parameters, so that the overall design efficiency is improved; the automatic identification of the coordinate system parameters is helpful to reduce human errors, such as inconsistent or incorrect coordinate system setting, so as to improve the accuracy of the design; the method can deal with graphs with different types and complexity, and can automatically identify and adapt to a plurality of different coordinate systems, so that the design process is more flexible and efficient; by automatically identifying the coordinate system, seamless connection among different data loading software can be realized, so that a designer can conveniently switch among different platforms, and the efficiency of cooperative work is improved; the automatic identification of the coordinate system is helpful for avoiding the problem of inconsistent coordinate systems in the data exchange process, reducing data conversion errors and ensuring the accuracy of data.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a coordinate data processing device for realizing the above-mentioned related coordinate data processing method. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiments of the coordinate data processing apparatus provided below may be referred to the limitation of the coordinate data processing method hereinabove, and will not be described herein.
In one exemplary embodiment, as shown in fig. 11, there is provided a coordinate data processing apparatus 1100 including:
an obtaining module 1110, configured to obtain original map data and data to be processed, where the data to be processed corresponds to coordinate data;
the response module 1120 is configured to obtain a first coordinate corresponding to a first auxiliary point in the original map data in response to an input instruction of the first auxiliary point, where the first auxiliary point is determined according to a map range corresponding to the data to be processed;
a determining module 1130, configured to determine a target coordinate system parameter according to a relationship between the first coordinate and the coordinate data;
and the loading module 1140 is configured to load the data to be processed according to the target coordinate system parameter.
In one embodiment, the determining module includes:
the first loading sub-module is used for loading the data to be processed according to the coordinate system parameters corresponding to the first coordinates when the first coordinates are within the range of the coordinate data;
and the first determining submodule is used for determining the coordinate system parameter corresponding to the first coordinate as the target coordinate system parameter in response to receiving the instruction of successful matching of the first coordinate.
In one embodiment, the determining module includes:
a second determining submodule, configured to determine an initial coordinate system parameter corresponding to a number of bits of the coordinate data if the first coordinate is out of a range of the coordinate data;
the first conversion sub-module is used for carrying out coordinate conversion on the first coordinate according to the initial coordinate system parameters to obtain a converted first coordinate;
the second loading sub-module is used for loading the data to be processed according to the initial coordinate system parameters;
and the third determining submodule is used for determining the initial coordinate system parameter as a target coordinate system parameter in response to receiving the instruction of successful matching of the converted first coordinate.
In one embodiment, the determining module includes:
a fourth determining sub-module, configured to receive an input instruction of a second auxiliary point in response to the relationship between the first coordinate and the coordinate data not meeting a preset condition, and determine a second coordinate corresponding to the second auxiliary point in the original map data;
a fifth determining submodule, configured to determine a second coordinate with the same name corresponding to the second auxiliary point in the data to be processed;
A sixth determining submodule, configured to determine an initial coordinate system parameter according to the second coordinate and the second coordinate with the same name;
the third loading sub-module is used for loading the data to be processed according to the initial coordinate system parameters;
and a seventh determining submodule, configured to determine the initial coordinate system parameter as a target coordinate system parameter in response to receiving the instruction that the second coordinate matching is successful.
In one embodiment, after the third loading sub-module, the method further includes:
the adjusting module is used for responding to the received command of failure in matching the second coordinate, and adjusting the first parameter in the initial coordinate system parameters according to a preset adjusting amplitude to obtain an adjusted first parameter;
and an eighth determining submodule, configured to load the data to be processed according to the adjusted first parameter until an instruction that the second coordinate is successfully matched is received, and determine a coordinate system parameter corresponding to the adjusted first parameter as a target coordinate system parameter.
In one embodiment, after the adjusting module, the adjusting module further includes:
the acquisition sub-module is used for acquiring a plurality of matching auxiliary points in response to the fact that the times of receiving the command of the second coordinate matching failure is larger than a preset threshold value;
A ninth determining submodule, configured to determine a first matching coordinate corresponding to each of the matching auxiliary points in the original map data and a second matching coordinate corresponding to each of the matching auxiliary points in the data to be processed;
and a tenth determining submodule, configured to determine a target coordinate system parameter according to the association relationship between the first matching coordinate and the second matching coordinate.
The respective modules in the above-described coordinate data processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 12. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data involved in the method described in this embodiment, such as data to be processed. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a coordinate data processing method.
It will be appreciated by those skilled in the art that the structure shown in fig. 12 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method of processing coordinate data, the method comprising:
acquiring original map data and data to be processed, wherein the data to be processed corresponds to coordinate data;
responding to an input instruction of a first auxiliary point, and acquiring a first coordinate corresponding to the first auxiliary point in the original map data, wherein the first auxiliary point is obtained by determining a map range corresponding to the data to be processed;
Determining a target coordinate system parameter according to the relation between the first coordinate and the coordinate data;
and loading the data to be processed according to the target coordinate system parameters.
2. The method of claim 1, wherein determining the target coordinate system parameter from the relationship between the first coordinate and the coordinate data comprises:
loading the data to be processed according to the coordinate system parameters corresponding to the first coordinates when the first coordinates are within the range of the coordinate data;
and in response to receiving the instruction of successful matching of the first coordinates, determining the coordinate system parameters corresponding to the first coordinates as target coordinate system parameters.
3. The method of claim 1, wherein determining the target coordinate system parameter from the relationship between the first coordinate and the coordinate data comprises:
determining an initial coordinate system parameter corresponding to a number of bits of the coordinate data if the first coordinate is outside a range of the coordinate data;
performing coordinate conversion on the first coordinate according to the initial coordinate system parameters to obtain a converted first coordinate;
Loading the data to be processed according to the initial coordinate system parameters;
and determining the initial coordinate system parameter as a target coordinate system parameter in response to receiving the converted instruction of successful matching of the first coordinate.
4. The method of claim 1, wherein determining the target coordinate system parameter from the relationship between the first coordinate and the coordinate data comprises:
receiving an input instruction of a second auxiliary point in response to the relation between the first coordinate and the coordinate data does not accord with a preset condition, and determining a second coordinate corresponding to the second auxiliary point in the original map data;
determining a second coordinate with the same name corresponding to the second auxiliary point in the data to be processed;
determining initial coordinate system parameters according to the second coordinates and the homonymous second coordinates;
loading the data to be processed according to the initial coordinate system parameters;
and in response to receiving the instruction of successful matching of the second coordinate, determining the initial coordinate system parameter as a target coordinate system parameter.
5. The method of claim 4, further comprising, after said loading said data to be processed according to said initial coordinate system parameters:
Responding to the received instruction of failure in matching the second coordinate, and adjusting a first parameter in the initial coordinate system parameters according to a preset adjustment amplitude to obtain an adjusted first parameter;
and loading the data to be processed according to the adjusted first parameter until an instruction of successful matching of the second coordinate is received, and determining the coordinate system parameter corresponding to the adjusted first parameter as a target coordinate system parameter.
6. The method of claim 5, further comprising, after the adjusted first parameter:
acquiring a plurality of matching auxiliary points in response to the times of receiving the command of failure in matching the second coordinate is greater than a preset threshold value;
determining a first matching coordinate corresponding to each matching auxiliary point in the original map data and a second matching coordinate corresponding to each matching auxiliary point in the data to be processed;
and determining the parameters of the target coordinate system according to the association relation between the first matching coordinate and the second matching coordinate.
7. A coordinate data processing apparatus, the apparatus comprising:
the acquisition module is used for acquiring original map data and data to be processed, wherein the data to be processed corresponds to coordinate data;
The response module is used for responding to an input instruction of a first auxiliary point and acquiring a first coordinate corresponding to the first auxiliary point in the original map data, wherein the first auxiliary point is obtained by determining a map range corresponding to the data to be processed;
the determining module is used for determining a target coordinate system parameter according to the relation between the first coordinate and the coordinate data;
and the loading module is used for loading the data to be processed according to the target coordinate system parameters.
8. The apparatus of claim 7, wherein the determining module comprises:
the first loading sub-module is used for loading the data to be processed according to the coordinate system parameters corresponding to the first coordinates when the first coordinates are within the range of the coordinate data;
and the first determining submodule is used for determining the coordinate system parameter corresponding to the first coordinate as the target coordinate system parameter in response to receiving the instruction of successful matching of the first coordinate.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311842521.7A 2023-12-29 2023-12-29 Coordinate data processing method, device, computer equipment and storage medium Active CN117494248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311842521.7A CN117494248B (en) 2023-12-29 2023-12-29 Coordinate data processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311842521.7A CN117494248B (en) 2023-12-29 2023-12-29 Coordinate data processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN117494248A true CN117494248A (en) 2024-02-02
CN117494248B CN117494248B (en) 2024-04-12

Family

ID=89673030

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311842521.7A Active CN117494248B (en) 2023-12-29 2023-12-29 Coordinate data processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117494248B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366633A (en) * 2013-04-16 2013-10-23 中国水利水电科学研究院 Water conservation map data model-based flood risk map drawing method and system thereof
CN104048659A (en) * 2014-06-16 2014-09-17 广州杰赛科技股份有限公司 Method and system for transforming map coordinate system
CN107609162A (en) * 2017-09-26 2018-01-19 安徽大学 A kind of method that two-dimensional map symbol batch is imported in panorama
CN108389264A (en) * 2018-02-07 2018-08-10 网易(杭州)网络有限公司 Coordinate system determines method, apparatus, storage medium and electronic equipment
CN109872533A (en) * 2019-02-21 2019-06-11 弈人(上海)科技有限公司 A kind of lane grade real-time traffic information processing method based on spatial data
CN114186007A (en) * 2021-11-10 2022-03-15 北京百度网讯科技有限公司 High-precision map generation method and device, electronic equipment and storage medium
CN116049330A (en) * 2022-12-13 2023-05-02 深圳供电局有限公司 Independent coordinate system establishing method, device, computer equipment and storage medium
CN116403132A (en) * 2023-06-08 2023-07-07 江西省公路科研设计院有限公司 Ground object identification method for generating symptom ground removal table based on image and machine algorithm

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103366633A (en) * 2013-04-16 2013-10-23 中国水利水电科学研究院 Water conservation map data model-based flood risk map drawing method and system thereof
CN104048659A (en) * 2014-06-16 2014-09-17 广州杰赛科技股份有限公司 Method and system for transforming map coordinate system
CN107609162A (en) * 2017-09-26 2018-01-19 安徽大学 A kind of method that two-dimensional map symbol batch is imported in panorama
CN108389264A (en) * 2018-02-07 2018-08-10 网易(杭州)网络有限公司 Coordinate system determines method, apparatus, storage medium and electronic equipment
CN109872533A (en) * 2019-02-21 2019-06-11 弈人(上海)科技有限公司 A kind of lane grade real-time traffic information processing method based on spatial data
CN114186007A (en) * 2021-11-10 2022-03-15 北京百度网讯科技有限公司 High-precision map generation method and device, electronic equipment and storage medium
CN116049330A (en) * 2022-12-13 2023-05-02 深圳供电局有限公司 Independent coordinate system establishing method, device, computer equipment and storage medium
CN116403132A (en) * 2023-06-08 2023-07-07 江西省公路科研设计院有限公司 Ground object identification method for generating symptom ground removal table based on image and machine algorithm

Also Published As

Publication number Publication date
CN117494248B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
WO2018021942A2 (en) Facial recognition using an artificial neural network
WO2022166294A1 (en) Target detection method and apparatus
JP2023059231A (en) Key point detection and model training method, apparatus, device, and storage medium
CN112465050B (en) Image template selection method, device, equipment and storage medium
CN111666442B (en) Image retrieval method and device and computer equipment
CN117494248B (en) Coordinate data processing method, device, computer equipment and storage medium
JP6937782B2 (en) Image processing method and device
TW202127312A (en) Image processing method and computer readable medium thereof
CN115601283B (en) Image enhancement method and device, computer equipment and computer readable storage medium
CN115859016B (en) Processor-based operation method, processor-based operation device, computer equipment and storage medium
CN111862343A (en) Three-dimensional reconstruction method, device and equipment and computer readable storage medium
US11093474B2 (en) Computer architecture for emulating multi-dimensional string correlithm object dynamic time warping in a correlithm object processing system
CN113298931B (en) Reconstruction method and device of object model, terminal equipment and storage medium
US11645784B1 (en) Techniques for detecting and classifying relevant changes
CN111127616B (en) Rendering verification method and device
CN113255702A (en) Target detection method and target detection device based on graph matching
CN113128277A (en) Generation method of face key point detection model and related equipment
Bründl et al. Semantic part segmentation of spatial features via geometric deep learning for automated control cabinet assembly
CN115620299B (en) Image recognition method and device, computer equipment and storage medium
CN112613446B (en) Face alignment method and device, electronic equipment and storage medium
TWI762193B (en) Image defect detection method, image defect detection device, electronic device and storage media
TWI755212B (en) Method and related equipment for determinting input dimensions of model
US11263290B2 (en) Computer architecture for emulating a bidirectional string correlithm object generator in a correlithm object processing system
US10915345B2 (en) Computer architecture for emulating intersecting multiple string correlithm objects in a correlithm object processing system
US11250104B2 (en) Computer architecture for emulating a quadrilateral lattice correlithm object generator in a correlithm object processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant