CN115792983A - Grid coding and code conversion method of GNSS differential enhanced service - Google Patents

Grid coding and code conversion method of GNSS differential enhanced service Download PDF

Info

Publication number
CN115792983A
CN115792983A CN202211452735.9A CN202211452735A CN115792983A CN 115792983 A CN115792983 A CN 115792983A CN 202211452735 A CN202211452735 A CN 202211452735A CN 115792983 A CN115792983 A CN 115792983A
Authority
CN
China
Prior art keywords
data
east
grid
coding
relative position
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.)
Pending
Application number
CN202211452735.9A
Other languages
Chinese (zh)
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.)
Gac Dayou Spacetime Technology Anqing Co ltd
Original Assignee
Gac Dayou Spacetime Technology Anqing 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 Gac Dayou Spacetime Technology Anqing Co ltd filed Critical Gac Dayou Spacetime Technology Anqing Co ltd
Priority to CN202211452735.9A priority Critical patent/CN115792983A/en
Publication of CN115792983A publication Critical patent/CN115792983A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a grid coding and coding conversion method of GNSS differential enhanced service, which comprises the following steps: acquiring a grid code of the GNSS differential enhanced service, and judging a code type and a conversion code type of the grid code; acquiring the coding value of the grid code; converting the first version number data into corresponding coded data as second version number data according to the data mapping table and the conversion coding type, and converting the first east-west hemisphere data into corresponding coded data as second east-west hemisphere data; converting the first level data into corresponding coded data as second level data according to the conversion coding type, and converting the first relative position data into corresponding coded data as second relative position data; and the second version number data, the second east-west hemisphere data, the second level data and the second relative position data are used as converted grid codes to realize transparent use in a publisher and a user supporting the GNSS differential enhanced service.

Description

Grid coding and code conversion method of GNSS differential enhanced service
Technical Field
The invention relates to the technical field of global satellite navigation positioning systems, in particular to a grid coding and code conversion method and a storage medium of GNSS differential enhanced service.
Background
Currently, a plurality of Global Navigation Satellite System (GNSS) differential enhanced service models and systems mainly include PPP (close Point position) models, RTK (Real-Time Kinematic) models, network RTK (N-RTK models), PPP-AR models, PPP-RTK models and the like. Different GNSS differential augmentation service models and system implementations are all implemented with the overall or individual elimination or correction of multiple errors over different spatial ranges.
However, for the GNSS differentiated enhanced service model and system which can be used, shared and served globally, there is no unified global grid code, and transparent use in the publisher and the user of the GNSS differentiated enhanced service cannot be supported.
Disclosure of Invention
The invention provides a grid coding and coding conversion method of GNSS differential enhanced service, which provides a uniform coding method and a conversion method between codes for a GNSS differential enhanced service grid so as to realize transparent use in a publisher and a user which support the GNSS differential enhanced service.
The invention provides a grid coding method of GNSS differential enhanced service, which comprises the following steps: acquiring position information of a target point, and generating east-west hemisphere information of the target point according to the position information; setting grid level iteration times; acquiring grid position information of each level as relative position information according to the position information and the grid level iteration times;
judging the coding type of the target point;
setting the first version number data as a first preset value according to the coding type; setting a parameter value of first east-west hemisphere data according to the east-west hemisphere information;
according to the coding type, the iteration times of the grid level are converted into corresponding coding data which serve as parameter values of first level data, and the relative position information is converted into corresponding coding data which serve as parameter values of the first relative position data;
and using the first version number data, the first east-west hemisphere data, the first level data and the first relative position data as the grid code of the target point.
As a preferred scheme, the grid coding method of GNSS differential enhanced service of the present invention sets a grid code of a target point according to position information of the target point, including version number data, east-west hemisphere data, grid level iteration times and relative position data, where the grid code includes position information of a spatial grid in a global range; the GNSS enhanced service provider can set iteration times of different grid levels within a specific enhanced service precision range, select grids of different levels, and the GNSS enhanced service user can directly use grid codes to obtain formulated difference service contents from the GNSS enhanced service provider. Interaction between a GNSS enhanced service user and a provider is carried out through global grid coding, the previous accurate position GGA is shielded, and the position privacy of the GNSS enhanced service user is protected.
As a preferred scheme, obtaining the relative position information of the grid at each level according to the position information and the iteration times of the grid level, specifically:
acquiring the position number of the target point in the grid of each level as relative position information according to the position information and the iteration times of the grid levels; wherein one of the hierarchies corresponds to one of the location numbers; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and the position numbers of grids at the same position in each of said levels are the same.
As a preferred scheme, the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each hierarchy have respective position numbers, the position numbers of the target points on the grids of each hierarchy are obtained according to the position information of the target points and the set grid hierarchy iteration times, the GNSS enhanced service provider can set the iteration times of different grid hierarchies in a specific enhanced service precision range, grids of different hierarchies are selected, and the GNSS enhanced service user can directly use grid codes to obtain and formulate differential service contents from the GNSS enhanced service provider.
As a preferred scheme, according to the coding type, the number of iterations of the grid hierarchy is converted into corresponding coded data, which is used as a parameter value of first hierarchy data, and the relative position information is converted into corresponding coded data, which is used as a parameter value of the first relative position data, specifically:
if the coding type is binary coding;
converting the grid level iteration times into binary data serving as a parameter value of first level data, and sequentially converting each position code of the relative position information into binary data serving as a parameter value of the first relative position data;
if the coding type is a text type coding;
and converting the grid level iteration times into ASCI I data serving as parameter values of first east-west hemisphere data, and sequentially converting each position code of the grid relative position information into ASC I data serving as parameter values of the first relative position data.
As a preferred solution, the grid coding method of GNSS differentiated enhanced service of the present invention provides binary coding and text type coding, converts each position code of grid level iteration times and relative position information into corresponding binary data or ASC I data, and represents the position information by using the binary data or ASC I data, and a GNSS enhanced service provider can set different grid level iteration times in a specific enhanced service precision range, and select grids of different levels, and a GNSS enhanced service user can directly use grid codes of different coding types to obtain differentiated service contents from the GNSS enhanced service provider.
As a preferred scheme, setting the first version number data as a first preset value according to the coding type; according to the east-west hemisphere information, setting a parameter value of first east-west hemisphere data, specifically:
judging the east hemisphere or the west hemisphere where the target point is located as east-west hemisphere information according to the position information of the target point;
if the coding type is binary coding;
setting the first version number data to be 0;
if the east-west hemisphere information is an east hemisphere, setting a parameter value of first east-west hemisphere data to be 0;
if the east-west hemisphere information is a west hemisphere, setting a parameter value of first east-west hemisphere data as 1;
if the coding type is a text type code;
setting the first version number data as S;
if the east-west hemisphere information is an east hemisphere, setting a parameter value of first east-west hemisphere data as E;
and if the east-west hemisphere information is west hemisphere, setting the parameter value of the first east-west hemisphere data as W.
As a preferred scheme, according to the coding type, setting parameter values of the first version number data and the first east-west hemisphere data as preset values corresponding to the coding type, coding the first version number data or the first east-west hemisphere data by using one byte or one character, and representing position information by using binary data or ascii data, wherein the coding step is simple so as to convert codes of different coding types.
Correspondingly, in order to implement the conversion between codes, an embodiment of the present invention provides a method for converting a grid code of a GNSS differential enhanced service, including:
using a grid coding method of GNSS differential enhanced service according to this embodiment to code the position information of the target point, obtaining a first grid code;
acquiring a coding value of a first grid code; the encoded values include: the first version number data, the first east-west hemisphere data, the first level data and the first relative position data;
judging the conversion coding type of the first grid coding;
converting the first version number data into corresponding coded data as second version number data according to a data mapping table and the conversion coding type, and converting the first east-west hemisphere data into corresponding coded data as second east-west hemisphere data; the data mapping table comprises a corresponding relation of version number data of different coding types and a corresponding relation of east-west hemisphere data of different coding types;
converting the first level data into corresponding coded data as second level data through numerical conversion according to the conversion coding type, and converting the first relative position data into corresponding coded data as second relative position data;
and using the second version number data, the second east-west hemisphere data, the second level data and the second relative position data as the converted first grid code.
As a preferred scheme, the grid code conversion method of the GNSS differential enhanced service of the present invention sets version number data, east-west hemisphere data, hierarchical data, and relative position data for grid codes, including spatial grid position information in a global range; converting the first version number data and the first east-west hemisphere data of the first grid code into corresponding coded data by using a data mapping table; the method has the advantages that the hierarchical data and the relative position data are directly converted into the corresponding coded data through numerical value conversion, the coded conversion of version number data, east-west hemisphere data, hierarchical data and relative position data is completed, when the GNSS augmentation service provider provides formulated difference service content, the GNSS augmentation service user can convert the difference service content into an applicable coding type through the grid coding conversion method, and convenience is brought to transparent use in the publisher and the user supporting the GNSS difference augmentation service.
As a preferred scheme, according to a data mapping table and the conversion coding type, the first version number data is converted into corresponding coded data, the corresponding coded data is used as second version number data, the first east-west hemisphere data is converted into corresponding coded data, the corresponding coded data is used as second east-west hemisphere data, and the method specifically includes:
judging the coding type of the first grid code;
if the coding type of the first grid code is binary coding, the conversion coding type is text type coding;
converting the first version number data into corresponding ASC I character data according to a data mapping table to serve as second version number data, and converting the first east-west hemisphere data into corresponding ASC I character data to serve as second east-west hemisphere data;
if the coding type of the first grid code is a text type code, the conversion coding type is a binary coding;
and converting the first version number data into corresponding binary byte data as second version number data according to a data mapping table, and converting the first east-west hemisphere data into corresponding binary byte data as second east-west hemisphere data.
As a preferred solution, the method for transforming grid codes of GNSS differential enhanced services of the present invention provides a method for transforming binary codes into text type codes, or transforming text type codes into binary codes, by using a data mapping table, transforming first version number data and first east-west hemisphere data of a first grid code into corresponding ASC ii character data or binary byte data; the data mapping table comprises a corresponding relation of version number data of different coding types and a corresponding relation of east-west hemisphere data of different coding types; the GNSS augmentation service provider completes code conversion of version number data and east-west hemisphere data, when providing formulated difference service content, the GNSS augmentation service provider can convert the difference service content into a suitable text type code or binary code type by the grid code conversion method, and convenience is provided for transparent use in a publisher and a user supporting the GNSS difference augmentation service.
Preferably, according to the transform coding type, the first hierarchy data is transformed into corresponding coded data as second hierarchy data by numerical value transformation, and the first relative position data is transformed into corresponding coded data as second relative position data, specifically:
judging the coding type of the first grid code;
if the coding type of the first grid code is binary coding, the conversion coding type is text type coding;
converting the first hierarchical data into ASC I characters as second hierarchical data, and converting the first relative position data into ASC I characters as second relative position data;
if the coding type of the first grid code is a text type code, the conversion coding type is a binary coding;
converting the first hierarchical data into a binary value as second hierarchical data, and converting the first relative position data into a binary value as second relative position data.
As a preferred solution, the method for transforming grid codes of GNSS differential enhanced services of the present invention provides a method for directly transforming hierarchical data and relative position data into coded data of corresponding ASC I character data or binary byte data by numerical value transformation when converting from a binary code to a text-type code or from a text-type code to a binary code; the method has the advantages that the encoding conversion of the hierarchical data and the relative position data is completed, when the GNSS augmentation service provider provides the formulated difference service content, the GNSS augmentation service user can convert the difference service content into the applicable text type encoding or binary encoding type through the grid encoding conversion method, and the convenience is provided for transparent use in the publisher and the user supporting the GNSS difference augmentation service.
As a preferred scheme, the converting the first hierarchy data into an ASC I character as second hierarchy data, and the converting the first relative position data into an ASC I character as second relative position data specifically includes:
converting the binary value of the first-level data into an ASC I value as second-level data;
converting the binary number value of each position number of the first relative position data into a corresponding ASC I value, and obtaining a plurality of ASC I values as second relative position data;
wherein the first hierarchical data comprises a hierarchical number of the mesh; said first relative position data comprising position numbers of grids at each level, one said level corresponding to each position number; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and the position numbers of grids at the same position in each of said levels are the same.
As a preferred scheme, when the binary code is converted into the text type code, the binary value of the first level data is directly converted into the ASC I value as the second level data; converting the binary value of each position number of the first relative position data into a corresponding ASC I value, and obtaining a plurality of ASC I values as second relative position data; the code conversion of the binary code into the text type code of the hierarchical data and the relative position data is completed, when the GNSS augmentation service provider provides the formulated differentiated service content, the GNSS augmentation service user can convert the differentiated service content into the applicable code type of the text type code by the grid code conversion method, and convenience is provided for transparent use among the publisher and the user supporting the GNSS differentiated augmentation service.
As a preferred scheme, converting the first hierarchical data into a binary value as second hierarchical data, and converting the first relative position data into a binary value as second relative position data, specifically:
converting the ASC I value of the first-level data into a binary value as second-level data;
converting the ASC I numerical value of each position number of the first relative position data into a corresponding binary numerical value, and obtaining a plurality of binary numerical values as second relative position data;
wherein the first hierarchical data comprises a hierarchical number of the mesh; said first relative position data comprising position numbers of grids at each level, one said level corresponding to each position number; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and the position numbers of grids at the same position in each of said levels are the same.
As a preferred scheme, when text type code is converted into binary code, the ASC I value of the first level data is directly converted into binary value as the second level data; the ASC I value of each position number of the first relative position data is converted into a corresponding binary value, and a plurality of binary values are obtained and serve as second relative position data; when the GNSS augmentation service provider provides established difference service contents, the GNSS augmentation service user can convert the difference service contents into an applicable binary coding type by the grid coding conversion method, and convenience is provided for transparent use among the publisher and the user supporting the GNSS difference augmentation service.
Accordingly, the present invention also provides a computer readable storage medium comprising a stored computer program; wherein the computer program when executed controls an apparatus on which the computer readable storage medium is located to execute a method for grid coding of a GNSS differential augmentation service according to the present disclosure or a method for grid transcoding of a GNSS differential augmentation service according to the present disclosure.
Drawings
Fig. 1 is a schematic flowchart of an embodiment of a method for grid coding of GNSS differential enhanced services provided in the present invention;
fig. 2 is a schematic binary code diagram of an embodiment of a method for grid coding of GNSS differential enhanced services provided in the present invention;
fig. 3 is a schematic text-based encoding diagram of an embodiment of a method for grid encoding of GNSS differential enhanced services provided in the present invention;
fig. 4 is a flowchart illustrating an embodiment of a method for grid code conversion of GNSS differential enhanced services provided in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, a grid coding method for GNSS differential enhanced service according to an embodiment of the present invention includes steps S101 to S103:
step S101: acquiring position information of a target point, and generating east-west hemisphere information of the target point according to the position information; setting grid level iteration times; and acquiring the grid position information of each layer as relative position information according to the position information and the grid layer iteration times.
In this embodiment, obtaining the relative position information of the grid at each level according to the position information and the iteration number of the grid level specifically includes:
acquiring the position number of the target point in the grid of each level as relative position information according to the position information and the iteration times of the grid levels; wherein one of said levels corresponds to one of the location numbers; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and grids at the same position in each of said levels have the same position number.
In the embodiment, the global space range is divided into east and west hemispheres, and the space range of the east hemisphere comprises east longitude 0-180 degrees, south latitude 90-north latitude 90 degrees; the spatial range of the western hemisphere includes 0 degrees to 180 degrees of the west longitude, 90 degrees to 90 degrees of the south latitude to 90 degrees of the north latitude. And according to the position information of the target point, if the target point is judged to be in the east hemisphere or the west hemisphere, generating east-west hemisphere information of the target point.
The method comprises the following steps of carrying out 2 x 2 average division on the basis of the east hemisphere and the west hemisphere respectively, averagely dividing the east hemisphere and the west hemisphere into 8 grids of the 1 st level, carrying out 2 x 2 average division on all grids of the previous level respectively to serve as grids of the next level, and the like. And (3) taking the clockwise coding of all four grids obtained after 2 × 2 average division as the position number of each grid, wherein the position numbers are respectively 0, 1, 2 and 3.
In this embodiment, obtaining the relative position information of the grid at each level according to the position information and the iteration times of the grid level specifically includes:
acquiring the position number of the grid of each level according to the position information, exemplarily, setting the iteration number of the grid level to be 13, judging that a target point is in the eastern hemisphere, averagely dividing the eastern hemisphere into 4 grids in the 1 st level, and counting the position number of each grid according to the clockwise, wherein the position number is 0, 1, 2 and 3 respectively; acquiring the position numbers of grids in which the target point is positioned in 4 grids at the 1 st level of the eastern hemisphere, and taking the position numbers as the relative position information of the grids at the 1 st level; if the position number of the grid of the 1 st level is 0, the grid of the 2 nd level averagely divides the grid of the 0 th level into 4 grids, and the position number of each grid is 0, 1, 2 and 3 according to the clockwise number; and continuously acquiring the position number of the grid where the target point is located in the 4 grids in the 2 nd layer as the relative position information of the grid in the 2 nd layer, and so on until the relative position information of the grid in the 13 th layer is acquired.
Step S102: judging the coding type of the target point;
setting the first version number data as a first preset value according to the coding type; setting a parameter value of first east-west hemisphere data according to the east-west hemisphere information;
and converting the iteration times of the grid level into corresponding coded data as a parameter value of first level data according to the coding type, and converting the relative position information into corresponding coded data as a parameter value of the first relative position data.
In this embodiment, according to the encoding type, the grid level iteration times are converted into corresponding encoded data, which is used as a parameter value of first level data, and the relative position information is converted into corresponding encoded data, which is used as a parameter value of first relative position data, specifically:
if the coding type is binary coding;
converting the grid level iteration times into binary data serving as a parameter value of first level data, and sequentially converting each position code of the relative position information into binary data serving as a parameter value of the first relative position data;
if the coding type is a text type code;
and converting the grid level iteration times into ASCI I data serving as parameter values of first east-west hemisphere data, and sequentially converting each position code of the grid relative position information into ASC I data serving as parameter values of the first relative position data.
In this embodiment, according to the encoding type, setting the first version number data as a first preset value; according to the east-west hemisphere information, setting a parameter value of first east-west hemisphere data, specifically:
judging the east hemisphere or the west hemisphere where the target point is located as east-west hemisphere information according to the position information of the target point;
if the coding type is binary coding;
setting the first version number data to be 0;
if the east-west hemisphere information is an east hemisphere, setting a parameter value of first east-west hemisphere data to be 0;
if the east-west hemisphere information is a west hemisphere, setting a parameter value of first east-west hemisphere data as 1;
if the coding type is a text type code;
setting the first version number data as S;
if the east-west hemisphere information is an east hemisphere, setting a parameter value of first east-west hemisphere data as E;
and if the east-west hemisphere information is west hemisphere, setting the parameter value of the first east-west hemisphere data as W.
In this embodiment, if the number of iterations of the grid hierarchy is set to 13;
referring to fig. 2, if the coding type is binary coding, the coding size is 32 bits, which is represented by 0-31, and corresponds to 32-bit integer type in small segment mode. The 32 bits are divided into 4 groups from high to low, which are respectively 1 bit of first version number data, 1 bit of first east-west hemisphere data, 2 bits of first level data, and 26 bits of 13 levels of first relative position data.
Setting the 1 st bit as version number data and defaulting to 0; setting the 2 nd bit as east-west hemisphere information, west hemisphere 0 and east hemisphere 1; setting the 3 rd to 6 th bit as the grid layer progression, the grid layer progression is the binary value 1101 (binary) of 13 (decimal); the acquired grid relative position information of 13 hierarchies is represented by 13 binary digits of 2 bits respectively, illustratively, the grid relative position information is 0, 1, 2 or 3, and is represented by binary digits of 2 bits respectively as 00, 01, 10 or 11; and respectively setting the 7 th bit to the 32 th bit as the position information of the grid with 13 levels.
Referring to fig. 3, if the encoding type is text type encoding, the encoding is represented by 16 ASC ii characters, and the character string is divided into first version number data of 1 character, first east-west hemisphere data of 1 character, first level data of 1 character, and first relative position data of 13 levels of 13 characters from left to right in sequence.
Setting the 1 st character as east-west hemisphere information, west hemisphere W and east hemisphere E; setting the 2 nd character as version number data and setting the default as S; setting the 3 rd character as the grid level number, and the grid level number is 13 (decimal) ASC I character S (ASC I character); the acquired grid relative position information of 13 hierarchies is respectively represented by 13 1-bit ASC I characters, exemplarily, the grid relative position information is 0, 1, 2 or 3, and is respectively represented by 1-bit ASC I characters as '0', '1', '2' or '3'; and respectively setting the 4 th to 16 th characters as position information of the grids of 13 levels.
Step S103: and using the first version number data, the first east-west hemisphere data, the first level data and the first relative position data as the grid code of the target point.
The embodiment of the invention has the following effects:
the invention relates to a grid coding method of GNSS differential enhanced service, which is characterized in that according to the position information of a target point, the grid coding of the target point is set, and comprises version number data, east-west hemisphere data, grid level iteration times and relative position data, wherein the grid coding comprises the position information of a spatial grid in a global range; the GNSS augmentation service provider can set iteration times of different grid levels within a specific augmentation service precision range, select grids of different levels, and the GNSS augmentation service user can directly use grid codes to obtain formulated difference service contents from the GNSS augmentation service provider. Interaction between a GNSS enhanced service user and a provider is carried out through global grid coding, the previous accurate position GGA is shielded, and the position privacy of the GNSS enhanced service user is protected.
Example two
Referring to fig. 4, a method for transforming a grid code of a GNSS differential enhanced service provided in an embodiment of the present invention includes steps S201 to S204:
step S201: encoding the position information of the target point by using the grid encoding method of the GNSS differential enhanced service in the embodiment to obtain a first grid code; acquiring a coding value of the first grid code; the encoded values include: the data processing method comprises the steps of obtaining first version number data, first east-west hemisphere data, first level data and first relative position data;
step S202: judging the conversion coding type of the first grid coding;
converting the first version number data into corresponding coded data as second version number data according to a data mapping table and the conversion coding type, and converting the first east-west hemisphere data into corresponding coded data as second east-west hemisphere data; the data mapping table comprises a corresponding relation of version number data of different coding types and a corresponding relation of east-west hemisphere data of different coding types.
In this embodiment, a first mesh code is obtained, where the number of mesh-level iterations of the first mesh code is 13;
if the coding type is binary coding, the coding size is 32 bits, which is represented by 0-31 and corresponds to a 32-bit integer type in a small segment mode. The 32 bits are divided into 4 groups from high to low, and the groups are respectively 1 bit of first version number data, 1 bit of first east-west hemisphere data, 2 bits of first level data, and 26 bits of 13 level first relative position data.
If the encoding type is text type encoding, the encoding is represented by 16 ASCI I characters, and the character string is sequentially divided into first version number data of 1 character, first east-west hemisphere data of 1 character, first level data of 1 character and first relative position data of 13 levels of 13 characters from left to right.
In this embodiment, according to a data mapping table and the transform coding type, the first version number data is transformed into corresponding coded data as second version number data, the first east-west hemisphere data is transformed into corresponding coded data as second east-west hemisphere data, and the method specifically includes:
judging the coding type of the first grid code;
if the coding type of the first grid code is binary coding, the conversion coding type is text type coding;
converting the first version number data into corresponding ASC I character data according to a data mapping table to serve as second version number data, and converting the first east-west hemisphere data into corresponding ASC I character data to serve as second east-west hemisphere data;
if the coding type of the first grid code is a text type code, the conversion coding type is a binary coding;
and converting the first version number data into corresponding binary byte data as second version number data according to a data mapping table, and converting the first east-west hemisphere data into corresponding binary byte data as second east-west hemisphere data.
In this embodiment, if the coding type of the first mesh code is binary coding, the transform coding type is text coding;
and judging whether the first version number data of the 1 st bit is 0 or not according to the data mapping table, if so, converting the corresponding 'S' character, and if not, failing to convert.
Judging first east-west hemisphere data of a 2 nd bit, if the first east-west hemisphere data is 0, converting the corresponding character 'W', and if the first east-west hemisphere data is 1, converting the corresponding character 'E';
if the coding type of the first grid code is a text type code, the conversion coding type is a binary code;
according to the data mapping table, if the first east-west hemisphere data of the 1 st character is the character 'W', the corresponding binary number value 0 is converted, and if the first east-west hemisphere data is the character 'E', the corresponding binary number value 1 is converted;
and judging whether the first version number data of the 2 nd character is the character 'S', if so, converting the corresponding binary value 0, and if not, failing to convert.
Step S203: and converting the first level data into corresponding coded data as second level data through numerical conversion according to the conversion coding type, and converting the first relative position data into corresponding coded data as second relative position data.
In this embodiment, according to the transform coding type, the first hierarchy data is transformed into corresponding coded data as second hierarchy data by numerical value transformation, and the first relative position data is transformed into corresponding coded data as second relative position data, specifically:
judging the coding type of the first grid code;
if the coding type of the first grid code is binary coding, the conversion coding type is text type coding;
converting the first hierarchical data into ASC I characters as second hierarchical data, and converting the first relative position data into ASC I characters as second relative position data;
if the coding type of the first grid code is a text type code, the conversion coding type is a binary coding;
the first hierarchical data is converted into a binary value as second hierarchical data, and the first relative position data is converted into a binary value as second relative position data.
In this embodiment, the converting the first hierarchy data into an ASC I character as second hierarchy data, and the converting the first relative position data into an ASC I character as second relative position data specifically include:
converting the binary value of the first-level data into an ASC I value as second-level data;
converting the binary number value of each position number of the first relative position data into a corresponding ASC I value, and obtaining a plurality of ASC I values as second relative position data;
wherein the first hierarchical data comprises a hierarchical number of the mesh; said first relative position data comprises position numbers of meshes of each level, one said level corresponding to each position number; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and the position numbers of grids at the same position in each of said levels are the same.
In this embodiment, the converting the first hierarchical data into a binary value as the second hierarchical data and the converting the first relative position data into a binary value as the second relative position data specifically includes:
converting the ASC I value of the first-level data into a binary value as second-level data;
converting the ASC I numerical value of each position number of the first relative position data into a corresponding binary numerical value, and obtaining a plurality of binary numerical values as second relative position data;
wherein the first hierarchical data comprises a hierarchical number of the mesh; said first relative position data comprises position numbers of meshes of each level, one said level corresponding to each position number; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and grids at the same position in each of said levels have the same position number.
In this embodiment, if the coding type of the first mesh code is binary coding, the transform coding type is text coding;
the first level data 1101 (binary) according to the 3-6 bits is converted into the corresponding ASC I character S (ASC I character);
the 7 th to 32 th bits of the code are respectively composed of 13 2-bit binary digits, the binary digits respectively represent the relative position information of the grids of 13 levels, and each 2-bit binary digit is sequentially converted into a corresponding ASC I character.
If the coding type of the first grid code is a text type code, the conversion coding type is a binary code;
the first level data S (ASC ii character) according to the 3 rd character is converted into a corresponding binary value 1101 (binary);
the 4 th to 16 th coded characters are respectively composed of 13-bit ASC I characters, which respectively represent the relative position information of grids of 13 levels, and each 1-bit ASC I character is sequentially converted into a corresponding binary numerical value.
Step S204: and using the second version number data, the second east-west hemisphere data, the second level data and the second relative position data as the converted first grid code.
The embodiment of the invention has the following effects:
the invention relates to a grid code conversion method of GNSS differential enhanced service.A grid code is provided with version number data, east-west hemisphere data, level data and relative position data, and contains spatial grid position information in a global range; converting the first version number data and the first east-west hemisphere data of the first grid code into corresponding coded data by using a data mapping table; the hierarchical data and the relative position data are directly converted into corresponding coded data through numerical value conversion, code conversion of version number data, east-west hemisphere data, hierarchical data and relative position data is completed, when the GNSS enhanced service provider provides formulated difference service contents, the GNSS enhanced service user can convert the difference service contents into applicable code types through the grid code conversion method, and convenience is provided for transparent use in the publisher and the user which support the GNSS difference enhanced service.
EXAMPLE III
Accordingly, the present invention further provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is executed, a device on which the computer-readable storage medium is located is controlled to execute a method for transforming a mesh code of a GNSS differential augmentation service and a method for transforming a mesh code of a GNSS differential augmentation service as described in any one of the above embodiments.
Illustratively, the computer program may be partitioned into one or more modules/units, stored in the memory and executed by the processor, to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the terminal device.
The terminal device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The terminal device may include, but is not limited to, a processor, a memory.
The Processor may be a Central Processing Unit (CPU), other general-purpose Processor, a Digital Signal Processor (DSP), an application specific integrated circuit (ASI C), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, said processor being the control center of said terminal device, and various interfaces and lines are used to connect the various parts of the whole terminal device.
The memory may be used to store the computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile terminal, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash memory Card (F l ash Card), at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
Wherein, the terminal device integrated module/unit can be stored in a computer readable storage medium if it is implemented in the form of software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying said computer program code, a recording medium, a usb-drive, a removable hard drive, a magnetic diskette, an optical disk, a computer Memory, a Read-only Memory (ROM), a Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, etc.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for mesh coding of GNSS differential augmentation services, comprising:
acquiring position information of a target point, and generating east-west hemisphere information of the target point according to the position information; setting grid level iteration times; acquiring grid position information of each layer as relative position information according to the position information and the grid layer iteration times;
judging the coding type of the target point;
setting the first version number data as a first preset value according to the coding type; setting a parameter value of first east-west hemisphere data according to the east-west hemisphere information;
according to the coding type, the iteration times of the grid level are converted into corresponding coding data which serve as parameter values of first level data, and the relative position information is converted into corresponding coding data which serve as parameter values of the first relative position data;
and using the first version number data, the first east-west hemisphere data, the first level data and the first relative position data as the grid code of the target point.
2. The method for grid coding for GNSS differential enhanced service according to claim 1, wherein the obtaining the grid relative position information of each level according to the position information and the number of iterations of the grid level specifically comprises:
acquiring the position number of the target point in the grid of each level according to the position information and the grid level iteration times as relative position information; wherein one of the hierarchies corresponds to one of the location numbers; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and the position numbers of grids at the same position in each of said levels are the same.
3. The method for encoding a mesh for GNSS differential enhanced services according to claim 2, wherein the step of converting the number of iterations of the mesh hierarchy into corresponding encoded data according to the encoding type as parameter values of first-hierarchy data, and the step of converting the relative position information into corresponding encoded data as parameter values of first relative position data, comprises:
if the coding type is binary coding;
converting the grid level iteration times into binary data serving as a parameter value of first level data, and sequentially converting each position code of the relative position information into binary data serving as a parameter value of the first relative position data;
if the coding type is a text type code;
and converting the iteration times of the grid layer into ASCII data serving as parameter values of first east-west hemisphere data, and sequentially converting each position code of the grid relative position information into ASCII data serving as parameter values of first relative position data.
4. The method for encoding a mesh of GNSS differential enhanced services according to claim 1, wherein said setting the first version number data to a first predetermined value according to said encoding type; according to the east-west hemisphere information, setting a parameter value of first east-west hemisphere data, specifically:
judging the east hemisphere or the west hemisphere where the target point is located as east-west hemisphere information according to the position information of the target point;
if the coding type is binary coding;
setting the first version number data to be 0;
if the east-west hemisphere information is an east hemisphere, setting a parameter value of first east-west hemisphere data to be 0;
if the east-west hemisphere information is a west hemisphere, setting a parameter value of first east-west hemisphere data as 1;
if the coding type is a text type coding;
setting the first version number data as S;
if the east-west hemisphere information is an east hemisphere, setting a parameter value of first east-west hemisphere data as E;
and if the east-west hemisphere information is west hemisphere, setting the parameter value of the first east-west hemisphere data as W.
5. A method for mesh code conversion for GNSS differential enhanced services, comprising:
encoding position information of a target point using a mesh encoding method of GNSS differential enhanced service as claimed in any one of claims 1 to 5, obtaining a first mesh code;
acquiring a coding value of a first grid code; the encoded values include: the data processing method comprises the steps of obtaining first version number data, first east-west hemisphere data, first level data and first relative position data;
judging the conversion coding type of the first grid coding;
converting the first version number data into corresponding coded data as second version number data according to a data mapping table and the conversion coding type, and converting the first east-west hemisphere data into corresponding coded data as second east-west hemisphere data; the data mapping table comprises a corresponding relation of version number data of different coding types and a corresponding relation of east-west hemisphere data of different coding types;
according to the conversion coding type, converting the first level data into corresponding coded data serving as second level data through numerical conversion, and converting the first relative position data into corresponding coded data serving as second relative position data;
and using the second version number data, the second east-west hemisphere data, the second level data and the second relative position data as the converted first grid code.
6. The method for transforming grid code of GNSS differential augmentation service of claim 5, wherein said transforming said first version number data into corresponding coded data according to a data mapping table and said transformation coding type as second version number data, and said first east-west hemisphere data into corresponding coded data as second east-west hemisphere data specifically comprises:
judging the coding type of the first grid code;
if the coding type of the first grid code is binary coding, the conversion coding type is text type coding;
converting the first version number data into corresponding ASCII character data as second version number data according to a data mapping table, and converting the first east-west hemisphere data into corresponding ASCII character data as second east-west hemisphere data;
if the coding type of the first grid code is a text type code, the conversion coding type is a binary coding;
and converting the first version number data into corresponding binary byte data as second version number data according to a data mapping table, and converting the first east-west hemisphere data into corresponding binary byte data as second east-west hemisphere data.
7. The method as claimed in claim 5, wherein the step of transforming the first layer data into corresponding encoded data as the second layer data and the step of transforming the first relative position data into corresponding encoded data as the second relative position data by numerical transformation according to the transformation coding type comprises:
judging the coding type of the first grid code;
if the coding type of the first grid code is binary coding, the conversion coding type is text type coding;
converting the first hierarchical data into ASCII characters as second hierarchical data, and converting the first relative positional data into ASCII characters as second relative positional data;
if the coding type of the first grid code is a text type code, the conversion coding type is a binary coding;
converting the first hierarchical data into a binary value as second hierarchical data, and converting the first relative position data into a binary value as second relative position data.
8. The method as claimed in claim 7, wherein the step of transforming the first hierarchical data into ASCII characters as the second hierarchical data and the step of transforming the first relative position data into ASCII characters as the second relative position data comprises:
converting binary values of the first hierarchical data into ASCII values as second hierarchical data;
converting a binary value of each position number of the first relative position data into a corresponding ASCII value, and obtaining a plurality of ASCII values as second relative position data;
wherein the first hierarchical data comprises a hierarchical number of the mesh; said first relative position data comprising position numbers of grids at each level, one said level corresponding to each position number; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and grids at the same position in each of said levels have the same position number.
9. The method as claimed in claim 7, wherein the step of converting the first hierarchical data into binary values as the second hierarchical data and the step of converting the first relative position data into binary values as the second relative position data comprises:
converting the ASCII values of the first level data into binary values as second level data;
converting the ASCII numerical value of each position number of the first relative position data into corresponding binary numerical values, and obtaining a plurality of binary numerical values as second relative position data;
wherein the first hierarchical data comprises a hierarchical number of the mesh; said first relative position data comprising position numbers of grids at each level, one said level corresponding to each position number; the region of each level is averagely divided into a plurality of grids, and the region of the next level is any grid of the previous level; all grids of each of said levels have respective position numbers, and the position numbers of grids at the same position in each of said levels are the same.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored computer program; wherein the computer program, when running, controls a device on which the computer readable storage medium is located to execute a method for grid coding of a GNSS differential augmentation service according to any one of claims 1 to 4 or a method for grid code conversion of a GNSS differential augmentation service according to any one of claims 5 to 9.
CN202211452735.9A 2022-11-21 2022-11-21 Grid coding and code conversion method of GNSS differential enhanced service Pending CN115792983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211452735.9A CN115792983A (en) 2022-11-21 2022-11-21 Grid coding and code conversion method of GNSS differential enhanced service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211452735.9A CN115792983A (en) 2022-11-21 2022-11-21 Grid coding and code conversion method of GNSS differential enhanced service

Publications (1)

Publication Number Publication Date
CN115792983A true CN115792983A (en) 2023-03-14

Family

ID=85439174

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211452735.9A Pending CN115792983A (en) 2022-11-21 2022-11-21 Grid coding and code conversion method of GNSS differential enhanced service

Country Status (1)

Country Link
CN (1) CN115792983A (en)

Similar Documents

Publication Publication Date Title
CN109992633B (en) User position-based geo-fence determination method and device and electronic equipment
US20230041991A1 (en) Density-based dynamic geohash
US20140278228A1 (en) Mapping uncertain geometries to graticules
CN111402390A (en) Model rendering method, device, equipment and storage medium
CN106777302B (en) Method and device for converting space geographic coordinates
CN110473251B (en) Self-defined range spatial data area statistical method based on grid spatial index
CN106844288B (en) Random character string generation method and device
WO2018104207A1 (en) Encoding scheme for geographic position data
CN109992640B (en) Method, device, equipment and storage medium for determining position grid
CN113127593B (en) Standard chart generation method and device
CN114048271A (en) Storage method and device of Beidou grid data model in database
CN109684425A (en) Declaration form station address matching process and device
CN115186629A (en) Coding method, system, terminal and medium for water conservancy and hydropower engineering management system
CN114236643A (en) Weather forecasting system based weather forecasting method, device, equipment and medium
CN114706847A (en) Remote sensing data management method based on grid set object
CN110989886B (en) Three-dimensional space grid selection method and device based on space map
CN115792983A (en) Grid coding and code conversion method of GNSS differential enhanced service
WO2020155911A1 (en) Positioning chip information processing method and terminal device
CN110995849A (en) Transmission and storage method of vector data position information
CN107704685B (en) Mesh division method and device
McDonald GRTS for the average Joe: a GRTS sampler for Windows
CN106568429B (en) Method and device for establishing interest points
CN113793346B (en) Region attribute method and device, electronic equipment and readable storage medium
CN112100180B (en) Method and device for determining position range, storage medium and electronic equipment
CN115688148A (en) Coordinate conversion method, device, equipment, medium and system of map data

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