CN111858798B - Automatic identification method for track data coordinate system, method for displaying track of positioning product on map, storage medium and electronic equipment - Google Patents
Automatic identification method for track data coordinate system, method for displaying track of positioning product on map, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN111858798B CN111858798B CN202010584671.2A CN202010584671A CN111858798B CN 111858798 B CN111858798 B CN 111858798B CN 202010584671 A CN202010584671 A CN 202010584671A CN 111858798 B CN111858798 B CN 111858798B
- Authority
- CN
- China
- Prior art keywords
- coordinate system
- track
- map
- track data
- coordinate
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000006243 chemical reaction Methods 0.000 claims abstract description 21
- 238000004590 computer program Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 abstract description 4
- 238000004519 manufacturing process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Navigation (AREA)
- Instructional Devices (AREA)
Abstract
The invention discloses an automatic identification method of a track data coordinate system, a method for displaying tracks of positioning products on a map, a storage medium and electronic equipment. The identification method specifically comprises the following steps: receiving track data to be confirmed of a coordinate system; the following steps are then performed for the coordinate system to be validated: converting the track data according to the coordinate conversion relation between the coordinate system to be confirmed and the reference map coordinate system to obtain the track of the track data in the reference map; judging whether the track can be matched with a path in a reference map or not: if a match can be made, it is considered to be generated based on the coordinate system; and/or if there is no match, it is deemed not to be generated based on the coordinate system. The method can automatically identify which coordinate system is adopted by the positioning product to generate track data, is convenient for a software developer to develop an APP or webpage query platform with functions of positioning, historical track display and the like aiming at the positioning product, ensures accurate track display, and does not need to consume time to query equipment manufacturers.
Description
Technical Field
The invention relates to the technical field of track display of positioning products, in particular to an automatic identification method of a track data coordinate system, a method for displaying tracks of positioning products on a map, a storage medium and electronic equipment.
Background
There are many vehicle-mounted positioning terminals on the market for tracking the track of a vehicle. Users purchase these vehicle-mounted positioning terminals often want to be able to view information such as positioning, historical track, etc. by themselves. Therefore, the vehicle-mounted positioning terminal is generally provided with a matched APP or webpage query platform so as to enable a user to view information such as positioning, historical tracks and the like by himself. Because some equipment manufacturers or product agents do not have software development teams, some software development teams can accept the entrusts of the equipment manufacturers or the product agents and develop an APP or a webpage query platform matched with the vehicle-mounted positioning terminal.
However, most of the vehicle-mounted positioning terminals taken by the software development companies only output longitude and latitude information, and cannot determine which coordinate system is adopted as a reference to generate the longitude and latitude information. The domestic common coordinate systems are: WGS-84, GCJ-02, CGCS2000, BD-09, dog search, map bar, etc. The coordinate systems adopted by different maps are different, if longitude and latitude information output by a product is blindly displayed on the map, if the coordinate system used by the displayed map is different from the coordinate system used by the vehicle-mounted positioning terminal, the track is deviated, and an error track is displayed. If the device manufacturer is queried one by one, which coordinate system is adopted by each type of vehicle-mounted positioning terminal, a long time may be required to communicate or wait for the reply of the device manufacturer, so that the time cost of software development is greatly increased.
Disclosure of Invention
The invention aims to solve the technical problem of automatically identifying a coordinate system adopted by track data of a vehicle-mounted positioning terminal.
The vehicle-mounted positioning terminal is used for recording the track of the vehicle, and the vehicle runs on the road, so that when the correct track is displayed on the map according to the track data recorded by the vehicle-mounted positioning terminal, the track can be matched with the path in the map. If the correct track is to be displayed, a map with the same coordinate system as the track data is required to be used for displaying, or the track data is converted according to the coordinate conversion relation between the coordinate system of the track data and the coordinate system of the map and then displayed on the map. If the track data is not converted in the correct coordinate conversion relationship, for example, the track data coordinate system is misplaced, the displayed track cannot be matched with the path in the map.
Accordingly, the automatic identification method of the track data coordinate system comprises the following steps: receiving track data to be confirmed of a coordinate system; the following identification steps are performed for the coordinate system to be confirmed:
and a coordinate conversion step: converting the track data according to the coordinate conversion relation between the coordinate system to be confirmed and the reference map coordinate system to obtain the track of the track data in the reference map;
Matching: judging whether the track can be matched with a path in a reference map or not: if so, the track data is considered to be generated based on the coordinate system; and/or if there is no match, the trajectory data is deemed not to be generated based on the coordinate system.
Further, in the matching step, the judgment is specifically performed:
And comparing the matching value of the track and the path in the reference map with a preset threshold value: if the matching value is greater than the threshold value, the matching value can be matched; if the matching value is smaller than the threshold value, the matching value is not matched
Further, the preset threshold is 95%.
Further, the matching value is a ratio of a track length capable of coinciding with the path to a track total length.
Further, in the coordinate conversion step, the trajectory data is converted, specifically, by using a coordinate conversion program provided by the reference map software.
Further, in the coordinate conversion step, the track in the reference map is obtained specifically by using the overlay addition method provided by the reference map software.
Further, there are a plurality of coordinate systems to be confirmed, the identifying step is performed with respect to one of the coordinate systems to be confirmed, and if the trajectory data is not considered to be generated based on the coordinate system, the identifying step is performed with respect to the next coordinate system to be confirmed.
The method for displaying the track of the positioning product on the map comprises the steps of identifying the coordinate system of track data by using the automatic track data coordinate system identification method, and converting the track data received subsequently according to the coordinate conversion relation between the identified coordinate system and the coordinate system of the reference map so as to display the track in the reference map for a user to check.
A computer readable storage medium storing an executable computer program which when run implements the track data coordinate system automatic identification method as described above or the method of presenting a track of a positioning product on a map as described above.
An electronic device comprising a processor and a memory, the memory storing an executable computer program, the processor being operable to read the computer program in the memory and to implement a track data coordinate system automatic identification method as described above or a method of presenting a track of a positioning product on a map as described above.
The automatic identification method of the track data coordinate system firstly assumes that track data is generated based on a certain coordinate system to be confirmed, and converts the track data according to a coordinate conversion relation between the coordinate system to be confirmed and a reference map coordinate system to obtain a track of the track data in the reference map; judging whether the track can be matched with a path in a reference map or not: if so, the track data is considered to be generated based on the coordinate system; and/or if there is no match, the trajectory data is deemed not to be generated based on the coordinate system. The method can automatically identify which coordinate system is adopted by the vehicle-mounted positioning terminal to generate track data, is convenient for a software developer to develop an APP or webpage query platform with functions of positioning, historical track display and the like aiming at the vehicle-mounted positioning terminal, ensures accurate track display, and does not need to consume time to query equipment manufacturers.
Detailed Description
The software developer receives the commission of the equipment manufacturer, and performs software development on the vehicle-mounted positioning terminal of the production or agency of the software developer, and the developed software needs to be capable of correctly displaying the moving track of the user recorded by the vehicle-mounted positioning terminal on a map. The track data recorded by the vehicle-mounted positioning terminal is generated based on a BD-09 coordinate system, but is unknown to a software developer. In order to correctly display the movement track of the user recorded by the vehicle-mounted positioning terminal on the map, a software developer needs to know what coordinate system the track data of the vehicle-mounted positioning terminal is generated based on. Therefore, a software developer uses the vehicle-mounted positioning terminal provided by an equipment manufacturer to drive a small distance so that the vehicle-mounted positioning terminal records corresponding track data, including longitude and latitude coordinate information of a plurality of points, and then uses an automatic track data coordinate system identification method to identify a coordinate system of the track data so as to acquire what coordinate system the track data of the vehicle-mounted positioning terminal are generated based on. The method is stored in the form of code in a memory of a server, and a processor of the server can execute the code in the memory to perform the method.
In the embodiment, a hundred-degree map is used as a reference map, and a WGS-84 coordinate system, a GCJ-02 coordinate system and a BD-09 coordinate system are used as three coordinate systems to be confirmed. The automatic identification method of the track data coordinate system comprises the following steps:
s1, data receiving: receiving the track data recorded by the vehicle-mounted positioning terminal;
After receiving the trajectory data, the following identification steps are performed with respect to the coordinate system to be validated, first the WGS-84 coordinate system:
S2, coordinate conversion: assuming that the track data is generated based on a WGS-84 coordinate system, converting the track data by utilizing a coordinate conversion program provided by a development kit SDK of hundred-degree map software according to a coordinate conversion relation between the WGS-84 coordinate system and the hundred-degree map coordinate system so as to obtain longitude and latitude coordinate information corresponding to each point under the hundred-degree map coordinate system, and drawing a line on the hundred-degree map by utilizing a covering addition method provided by the development kit SDK of the hundred-degree map software so as to obtain the track in the hundred-degree map;
S3, matching: judging whether the track can be matched with the path in the hundred-degree map, specifically: and calculating the matching value of the track and the path, namely, the ratio of the track length capable of coinciding with the path to the total track length. Since the trajectory data is not actually generated based on the WGS-84 coordinate system, the calculated matching value is much smaller than the threshold value of 95%, i.e., the trajectory cannot match the path in the hundred degree map, and the trajectory data is considered not to be generated based on the WGS-84 coordinate system.
Since the trajectory data is not considered to be generated based on the WGS-84 coordinate system, it is re-assumed that the trajectory data is generated based on the GCJ-02 coordinate system, and the S2, coordinate conversion step is re-performed: and converting the track data according to the coordinate conversion relation between the GCJ-02 coordinate system and the hundred-degree map coordinate system so as to obtain the track of the track data in the hundred-degree map. And then executing S3, a matching step: the matching value of the track is calculated, and because the track data is not actually generated based on the GCJ-02 coordinate system, the calculated matching value is far less than the threshold value of 95%, i.e. the track cannot match the path in the hundred degree map, and the track data is considered to be not generated based on the GCJ-02 coordinate system.
Since the trajectory data is not considered to be generated based on the GCJ-02 coordinate system, it is again assumed that the trajectory data is generated based on the BD-09 coordinate system, and the S2, coordinate conversion step is again performed: and converting the track data according to the coordinate conversion relation between the BD-09 coordinate system and the hundred-degree map coordinate system so as to obtain the track of the track data in the hundred-degree map. And then executing S3, a matching step: the matching value of the track is calculated, and the track data is actually generated based on the BD-09 coordinate system, so that the calculated matching value is greater than 95% of the threshold value, i.e. the track can match the path in the hundred-degree map, and the track data is considered to be generated based on the BD-09 coordinate system.
If the coordinate system of the track data of a certain vehicle-mounted positioning terminal is not one of the three coordinate systems to be confirmed, then it is not confirmed based on what coordinate system the track data are generated after all three coordinate systems to be confirmed perform the identifying step, at this time, it may be tried to take other coordinate systems as coordinate systems to be confirmed, such as CGCS2000 coordinate systems, and re-perform the identifying step with respect to a new coordinate system to be confirmed CGCS2000 until the obtained matching value of the track and the path in the hundred degree map is greater than 95%, so that the track data are considered to be generated based on the coordinate system.
The above-mentioned preferred embodiment performs the above-mentioned identifying steps on the coordinate systems to be confirmed one by one, and when the track corresponding to the coordinate system to be confirmed is greater than the threshold value 95% after the identifying step is performed on the coordinate system to be confirmed, the track data is considered to be generated by the coordinate system to be confirmed. If the matching values corresponding to all the coordinate systems to be confirmed are less than 95%, the coordinate system to be confirmed with the highest matching value is taken as the required coordinate system, namely the track data is generated based on the coordinate system. Or after the identification steps are respectively executed on all the coordinate systems to be confirmed, if the matching values corresponding to the coordinate systems to be confirmed are all larger than 95%, the coordinate system to be confirmed with the highest matching value is used as the coordinate system to be solved.
After the coordinate system of the track data is identified by using the automatic track data coordinate system identification method, software developers can develop an APP for the vehicle-mounted positioning terminal so as to display the track of the vehicle-mounted positioning terminal on a map. After the APP is installed on the mobile phone, the APP is opened, the vehicle-mounted positioning terminal used by the user is bound with the APP, and then the track of the bound vehicle-mounted positioning terminal can be checked by clicking a track checking function. The APP adopts the following method to realize the display of the track of the vehicle-mounted positioning terminal on the map: converting the track data received subsequently into longitude and latitude coordinate information under the hundred-degree map coordinate system according to the coordinate conversion relation between the coordinate system obtained by recognition and the hundred-degree map coordinate system, and storing the longitude and latitude coordinate information; when a user clicks the track viewing function, the APP displays the track of the vehicle-mounted positioning terminal in the hundred-degree map for the user to view according to the stored longitude and latitude coordinate information under the hundred-degree map coordinate system.
Claims (8)
1. An automatic identification method of a track data coordinate system comprises the following steps: receiving track data to be confirmed of a coordinate system; the method is characterized in that the following identification steps are performed for the coordinate system to be confirmed:
and a coordinate conversion step: converting the track data according to the coordinate conversion relation between the coordinate system to be confirmed and the reference map coordinate system to obtain the track of the track data in the reference map;
Matching: judging whether the track can be matched with a path in a reference map or not: if so, the track data is considered to be generated based on the coordinate system; and/or if there is no match, deeming that the trajectory data is not generated based on the coordinate system;
in the matching step, the judgment is specifically performed: and comparing the matching value of the track and the path in the reference map with a preset threshold value: if the matching value is greater than the threshold value, the matching value can be matched; if the matching value is smaller than the threshold value, the matching value is not matched; the matching value is the ratio of the track length capable of coinciding with the path to the total track length.
2. The method of claim 1, wherein the predetermined threshold is 95%.
3. The method for automatically recognizing a coordinate system of trajectory data according to claim 1, wherein in the step of coordinate conversion, the trajectory data is converted, in particular, by a coordinate conversion program provided by reference map software.
4. The method for automatically recognizing a coordinate system of trajectory data according to claim 1, wherein in the step of coordinate conversion, the trajectory in the reference map is obtained specifically by using a cover addition method provided by reference map software.
5. The method of claim 1, wherein there are a plurality of coordinate systems to be confirmed, wherein the identifying step is performed with respect to one of the coordinate systems to be confirmed, and if the trajectory data is not considered to be generated based on the coordinate system, the identifying step is performed with respect to the next coordinate system to be confirmed.
6. Method for displaying a track of a positioning product on a map, characterized in that after the track data coordinate system is identified by using the track data coordinate system automatic identification method according to any one of claims 1 to 5, the track data received subsequently is converted according to the coordinate conversion relation between the identified coordinate system and the reference map coordinate system so as to display the track thereof in the reference map for the user to view.
7. A computer-readable storage medium, characterized in that the storage medium stores an executable computer program which, when run, implements the method for automatically identifying a trajectory data coordinate system according to any one of claims 1 to 5 or the method for presenting a trajectory of a positioning product on a map according to claim 6.
8. An electronic device comprising a processor and a memory, the memory storing an executable computer program, the processor being operable to read the computer program in the memory and to implement the method of automatically identifying a trajectory data coordinate system as claimed in any one of claims 1 to 5 or the method of presenting a trajectory of a positioned product on a map as claimed in claim 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010584671.2A CN111858798B (en) | 2020-06-24 | 2020-06-24 | Automatic identification method for track data coordinate system, method for displaying track of positioning product on map, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010584671.2A CN111858798B (en) | 2020-06-24 | 2020-06-24 | Automatic identification method for track data coordinate system, method for displaying track of positioning product on map, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111858798A CN111858798A (en) | 2020-10-30 |
CN111858798B true CN111858798B (en) | 2024-05-31 |
Family
ID=72989725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010584671.2A Active CN111858798B (en) | 2020-06-24 | 2020-06-24 | Automatic identification method for track data coordinate system, method for displaying track of positioning product on map, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111858798B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112632208B (en) * | 2020-12-25 | 2022-12-16 | 际络科技(上海)有限公司 | Traffic flow trajectory deformation method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012007938A (en) * | 2010-06-23 | 2012-01-12 | Aisin Aw Co Ltd | Track information generation device, method and program |
CN104050869A (en) * | 2014-06-16 | 2014-09-17 | 广州杰赛科技股份有限公司 | GIS map overlay distributed point responding method and system |
CN105184387A (en) * | 2015-07-23 | 2015-12-23 | 北京理工大学 | Path similarity comparison method |
CN109827573A (en) * | 2017-11-23 | 2019-05-31 | 中国移动通信集团上海有限公司 | Judgment method, system and the application of coordinate system |
CN110631595A (en) * | 2018-06-25 | 2019-12-31 | 北京嘀嘀无限科技发展有限公司 | Method and system for converting map data, computer device and readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3667236B1 (en) * | 2018-12-13 | 2023-09-06 | Ordnance Survey Limited | A method of determining position data |
-
2020
- 2020-06-24 CN CN202010584671.2A patent/CN111858798B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012007938A (en) * | 2010-06-23 | 2012-01-12 | Aisin Aw Co Ltd | Track information generation device, method and program |
CN104050869A (en) * | 2014-06-16 | 2014-09-17 | 广州杰赛科技股份有限公司 | GIS map overlay distributed point responding method and system |
CN105184387A (en) * | 2015-07-23 | 2015-12-23 | 北京理工大学 | Path similarity comparison method |
CN109827573A (en) * | 2017-11-23 | 2019-05-31 | 中国移动通信集团上海有限公司 | Judgment method, system and the application of coordinate system |
CN110631595A (en) * | 2018-06-25 | 2019-12-31 | 北京嘀嘀无限科技发展有限公司 | Method and system for converting map data, computer device and readable storage medium |
Non-Patent Citations (1)
Title |
---|
极坐标系下机器人路径规划算法;李艳辉;曲萃萃;樊晓克;刘彦昌;;大庆石油学院学报(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111858798A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108573428A (en) | A kind of resource recommendation method and device | |
CN110764993A (en) | Automatic testing method and terminal equipment | |
CN107800757B (en) | User behavior recording method and device | |
CN110992135B (en) | Risk identification method and device, electronic equipment and storage medium | |
CN111858798B (en) | Automatic identification method for track data coordinate system, method for displaying track of positioning product on map, storage medium and electronic equipment | |
CN111615048A (en) | Positioning method, positioning device, electronic equipment and storage medium | |
CN109740352A (en) | A kind of account processing method, device and electronic equipment | |
CN103034866B (en) | A kind of target identification method, Apparatus and system | |
CN112116657A (en) | Table retrieval-based simultaneous positioning and mapping method and device | |
CN110990519A (en) | Vehicle fault diagnosis method and device, electronic equipment and storage medium | |
CN107133328B (en) | Pipeline buried depth precision detection method and device | |
CN108108395A (en) | A kind of mutual navigation location data reliability evaluation method and system | |
CN111144987A (en) | Abnormal shopping behavior limiting method, limiting assembly and shopping system | |
US7636902B1 (en) | Report validation tool | |
CN115421749A (en) | Hard disk firmware refreshing method, system, device and medium based on Linux system | |
CN115292619A (en) | Address query method, system, device and storage medium | |
CN114359386A (en) | Point cloud data processing method, processing device, storage medium and processor | |
CN114093054A (en) | Vehicle checking method, device, equipment and storage medium | |
CN110533129B (en) | Management method of electronic library, electronic device and computer storage medium | |
JP6457154B1 (en) | Speech recognition correction system, method and program | |
CN107092702B (en) | Geographic information element position comparison checking method and device based on overlapping proportion | |
CN113515436A (en) | Interface testing method and device | |
CN115907986B (en) | Asset checking method and device, medium and computer equipment | |
CN112533137B (en) | Positioning method and device of equipment, electronic equipment and computer storage medium | |
CN112767512B (en) | Method and device for generating environment linear element, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant |