WO2020019152A1 - 一种定位信息的压缩、解压缩方法及装置 - Google Patents

一种定位信息的压缩、解压缩方法及装置 Download PDF

Info

Publication number
WO2020019152A1
WO2020019152A1 PCT/CN2018/096790 CN2018096790W WO2020019152A1 WO 2020019152 A1 WO2020019152 A1 WO 2020019152A1 CN 2018096790 W CN2018096790 W CN 2018096790W WO 2020019152 A1 WO2020019152 A1 WO 2020019152A1
Authority
WO
WIPO (PCT)
Prior art keywords
longitude
information
minute
data
digits
Prior art date
Application number
PCT/CN2018/096790
Other languages
English (en)
French (fr)
Inventor
于忠辉
秦瑞伦
刘佳滨
戴伟
Original Assignee
哈尔滨海能达科技有限公司
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 哈尔滨海能达科技有限公司 filed Critical 哈尔滨海能达科技有限公司
Priority to PCT/CN2018/096790 priority Critical patent/WO2020019152A1/zh
Publication of WO2020019152A1 publication Critical patent/WO2020019152A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present invention relates to the field of data compression, and more particularly, to a method and device for compressing and decompressing positioning information.
  • the user terminal To increase the rate at which the user terminal sends its own positioning information to the base station, the user terminal often compresses the positioning information before sending it to the base station.
  • the compression method used by a user terminal is usually to round off the integer information (degrees) of its latitude and longitude coordinates, and only compress the minute and second information of the latitude and longitude coordinates and transmit it to the base station, so that the base station can resolve the integer information of its own latitude and longitude coordinates The compressed minute and second information is added to restore the exact location of the user terminal.
  • the present invention provides a method and device for compressing and decompressing positioning information, which solves the problem of longitude coordinate distortion in high latitude regions.
  • the present invention provides the following technical solutions:
  • a method for compressing positioning information, applied to a terminal including:
  • the positioning information includes longitude coordinates and latitude coordinates, and the longitude coordinates include longitude integer information and longitude minute-second information;
  • the target data occupation bit includes the number of digits occupied by longitude integer information and the number of digits occupied by longitude minutes and seconds information;
  • determining a target high latitude region to which the latitude coordinate belongs, a target data occupation number corresponding to the target high latitude region, and a target coordinate conversion rule includes: :
  • the first high latitude region is used as the target high latitude region
  • the first data occupation bit number corresponding to the first high latitude region is used as the target Data occupation digits
  • the first data occupation digits include 1 longitude integer information occupation digits and 12 longitude points
  • the second information occupies digits
  • the first coordinate conversion rule includes a first longitude integer information conversion rule and a first longitude minute and second information conversion rule.
  • the longitude integer information is converted into data on the number of digits occupied by the longitude integer information
  • the longitude minute-second information is converted into the longitude minute-second information occupied bits Number of data, including:
  • the longitude integer information is even degree, according to the first longitude integer information conversion rule in the target coordinate conversion rule, the longitude integer information is converted to 0 as the 1-digit longitude integer information occupies the number of digits.
  • the longitude integer information is converted into 1 according to the first longitude integer information conversion rule in the target coordinate conversion rule, and the number of bits occupied by the longitude integer information is 1 Data on
  • the longitude, minute and second information conversion formula is used to convert the longitude, minute and second information into data on the 12-bit longitude, minute and second information occupying digits .
  • the method further includes:
  • the second high latitude region is used as the target high latitude region
  • the second data occupation bit number corresponding to the second high latitude region is used as the target Data occupation digits
  • the second data occupation digits include 2 longitude integer information occupancy digits and 11 longitude points Second information occupies digits
  • the second coordinate conversion rule includes a second longitude integer information conversion rule and a second longitude minute and second information conversion rule.
  • the longitude integer information is converted into data on the number of digits occupied by the longitude integer information
  • the longitude minute-second information is converted into the longitude minute-second information occupied bits Number of data, including:
  • the second longitude integer information conversion rule in the target coordinate conversion rule perform a mod4 operation on the longitude integer information to obtain an operation result, and convert the operation result into binary data as the 2-digit longitude integer information Data in occupied digits;
  • the longitude, minute and second information conversion formula is used to convert the longitude, minute and second information into data on the number of bits occupied by the 11 longitude, minute and second information.
  • the method further includes:
  • the third high latitude region is used as the target high latitude region
  • the third data occupation bit number corresponding to the third high latitude region is used as the target Data occupation digits
  • the third data occupation digits include 3 longitude integer information occupancy digits and 10 longitude points
  • the second information occupies digits
  • the third coordinate conversion rule includes a third longitude integer information conversion rule and a third longitude minute and second information conversion rule.
  • the longitude integer information is converted into data on the number of digits occupied by the longitude integer information
  • the longitude minute-second information is converted into the longitude minute-second information occupied bits Number of data, including:
  • the longitude integer information is subjected to a mod8 operation to obtain an operation result, and the operation result is converted into binary data as the 3-digit longitude integer information. Data in occupied digits;
  • the longitude, minute and second information conversion formula is used to convert the longitude, minute and second information into data on the 10-bit longitude, minute and second information occupying digits.
  • the compression method further includes:
  • a method for decompressing positioning information which is applied to a base station and includes:
  • first compressed data sent by the terminal, where the first compressed data includes data on the number of bits occupied by the converted longitude integer information and data on the number of bits occupied by the longitude minute information;
  • the determining a target decompression rule corresponding to the first compressed data includes:
  • the first decompression rule is used as the target decompression rule, and the first decompression rule includes a first longitude integer Information decompression rule and first longitude minute-second information decompression rule.
  • the target decompression rule and the base station longitude coordinate to perform a decompression operation on the first compressed data to obtain a longitude coordinate of the terminal, including:
  • the longitude integer information of the base station is used as the longitude integer information of the terminal;
  • the base station longitude integer information in the base station longitude coordinates is an even number of degrees, and the data on the number of bits occupied by the converted longitude integer information is 1, according to the first longitude integer information decompression rule, A value obtained by subtracting 1 from the integer longitude information of the base station as the integer longitude information of the terminal;
  • the base station longitude integer information in the base station longitude coordinate is an odd number, and the data on the number of bits occupied by the converted longitude integer information is 0, the value obtained by subtracting 1 from the base station longitude integer information is used as The longitude integer information of the terminal;
  • the base station longitude integer information in the base station longitude coordinates is an odd number, and the data on the number of bits occupied by the converted longitude integer information is 1, the base station longitude integer information is used as the terminal longitude integer. information;
  • the determining a target decompression rule corresponding to the first compressed data includes:
  • the second decompression rule is used as the target decompression rule, and the second decompression rule includes the second longitude integer information Decompression rule and second longitude minute-second information decompression rule.
  • the target decompression rule and the base station longitude coordinate to perform a decompression operation on the first compressed data to obtain a longitude coordinate of the terminal, including:
  • the longitude, minute, and second information of the terminal when the longitude, minute, and second information of the terminal is less than or equal to the preset offset value, add the longitude integer information of the base station and the first offset to obtain the longitude integer information of the terminal;
  • the first offset is a first operation result obtained by performing a mod4 operation on the base station longitude integer information in the longitude coordinates of the base station, and performs data format with the data in the number of bits occupied by the converted longitude integer information.
  • the second operation result obtained after the conversion is obtained by subtracting; when the value of the converted longitude integer information occupying the data in the number of digits after the data format conversion is 0, 4 is used as the second operation result.
  • the determining a target decompression rule corresponding to the first compressed data includes:
  • the third decompression rule is used as the target decompression rule, and the third decompression rule includes third longitude integer information Decompression rule and third longitude minute-second information decompression rule.
  • the target decompression rule and the base station longitude coordinate to perform a decompression operation on the first compressed data to obtain a longitude coordinate of the terminal, including:
  • the longitude, minute, and second information of the terminal when the longitude, minute, and second information of the terminal is less than or equal to the preset offset value, add the longitude integer information of the base station and the second offset to obtain the longitude integer information of the terminal;
  • the second offset is a third operation result obtained by performing the mod8 operation on the base station longitude integer information in the base station longitude coordinates, and performs data format with the data in the number of bits occupied by the converted longitude integer information.
  • the fourth operation result obtained after the conversion is obtained by subtracting; when the converted longitude integer information occupies the data on the number of digits after the data format conversion value is 0, 8 is used as the fourth operation result.
  • a compression device for positioning information which is applied to a terminal and includes:
  • An obtaining module configured to obtain positioning information of a terminal, where the positioning information includes longitude coordinates and latitude coordinates, and the longitude coordinates include longitude integer information and longitude minutes and seconds information;
  • a determining module configured to determine a target high latitude region to which the latitude coordinate belongs, a target data occupation bit number corresponding to the target high latitude region, and a target coordinate conversion rule when the latitude coordinate is greater than a critical coordinate of a high latitude region;
  • the target data occupation digits include the longitude integer information occupancy digits and longitude minutes and seconds information occupancy digits;
  • a conversion module configured to convert the longitude integer information into data on the number of digits occupied by the longitude integer information according to the target coordinate conversion rule, and convert the longitude minute and second information into the longitude minute and second information occupied bits Numerical data
  • the sending module is configured to use the converted data of the longitude integer information occupying digits and the longitude minute second information occupying digits as first compressed data, and send the first compressed data to the base station.
  • a device for decompressing positioning information which is applied to a base station and includes:
  • a receiving module configured to receive first compressed data sent by the terminal, where the first compressed data includes data on the number of bits occupied by the converted longitude integer information and data on the number of bits occupied by the longitude minute information;
  • a determining module configured to determine a target decompression rule corresponding to the first compressed data
  • a decompression module configured to use the target decompression rule and the base station longitude coordinate to perform a decompression operation on the first compressed data to obtain a longitude coordinate of the terminal.
  • the invention provides a method and a device for compressing and decompressing positioning information.
  • the obtained terminal latitude coordinates are greater than the critical coordinates of a high latitude area, the target high latitude area and the target high latitude to which the latitude coordinates belong are determined, respectively.
  • the longitude integer information is converted to data on the longitude integer information occupancy digits
  • the longitude minute seconds information is converted to longitude minute seconds information occupancy Data to obtain the first compressed data and send it to the base station; it can be seen that when the latitude coordinates of the terminal belong to the high latitude area coordinates, the integer information of the longitude coordinates is converted according to the corresponding target coordinate conversion rules, The second information is converted and compressed together and sent to the base station for restoration, which solves the problem of longitude coordinate distortion in high latitudes and further ensures the accuracy of the compressed positioning information restoration.
  • FIG. 1 is a method flowchart of a positioning information compression method according to an embodiment of the present invention
  • FIG. 2 is a method flowchart of another positioning information compression method according to an embodiment of the present invention.
  • FIG. 3 is a method flowchart of another positioning information compression method according to an embodiment of the present invention.
  • FIG. 4 is a method flowchart of a method for decompressing positioning information according to an embodiment of the present invention
  • FIG. 5 is a method flowchart of another positioning information decompression method according to an embodiment of the present invention.
  • FIG. 6 is a method flowchart of another positioning information decompression method according to an embodiment of the present invention.
  • FIG. 7 is a method flowchart of another method for decompressing positioning information according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a positioning information compression apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a device for decompressing positioning information according to an embodiment of the present invention.
  • An embodiment of the present invention discloses a method for compressing positioning information, which is applied to a terminal. Referring to FIG. 1, the method specifically includes the following steps:
  • S101 Acquire positioning information of a terminal, where the positioning information includes longitude coordinates and latitude coordinates, and the longitude coordinates include longitude integer information and longitude minutes and seconds information;
  • the longitude coordinates of the terminal are composed of longitude integer information and longitude minute seconds information, such as E68.134 °, where 68 ° is longitude integer information and 0.134 ° is longitude minute seconds information.
  • the latitude coordinate of the terminal is composed of latitude integer information and latitude minute and second information, such as N75.5 °, where 75 ° is latitude integer information and 0.5 ° is latitude minute and second information.
  • both the longitude and latitude coordinates of the terminal can be obtained through the positioning technology provided by the terminal, such as GPS-based positioning technology.
  • S102 When the latitude coordinates are greater than the critical coordinates of a high latitude area, determine a target high latitude area to which the latitude coordinates belong, a target data occupation number corresponding to the target high latitude area, and a target coordinate conversion rule.
  • the target data Occupied digits include the number of digits occupied by longitude integer information and the number of digits occupied by longitude minutes and seconds information;
  • the critical coordinates of the high latitude region may be a latitude value set according to the latitude level, such as 60 ° north latitude; if the terminal latitude coordinates exceed the critical latitude coordinates of the high latitude region, it proves that the terminal is in the high latitude region; on the contrary, if the terminal When the latitude coordinate of is less than or equal to the critical coordinates of the high latitude region, it proves that the terminal is in the middle and low latitude region.
  • the target coordinate conversion rule is mainly used for data format conversion of the longitude coordinates of the terminal located in the target high latitude area, so as to achieve the compression processing of the longitude coordinates, so as to reduce the air interface resources occupied by the data sent to the base station, and thereby improve the transmission rate. .
  • the target data occupancy digits are mainly used to store the longitude integer information and longitude minutes and seconds information of the terminal's longitude coordinates after conversion in the target high latitude area.
  • the converted longitude integer information is stored in the longitude integer information occupied digits of the target data occupancy digits
  • the converted longitude minute seconds information is stored in the longitude minute second information occupied digits of the target data digits on.
  • S103 According to the target coordinate conversion rule, convert the longitude integer information into data on the number of digits occupied by the longitude integer information, and convert the longitude minute and second information into the number of digits occupied by the longitude minute and second information. data;
  • the terminal's longitude integer information and longitude minute-second information are respectively correspondingly converted to obtain a first compression consisting of the converted longitude integer information and longitude minute-second information.
  • Data that is, the number of digits occupied by converted integer longitude information and the number of digits occupied by longitude minute second information, thereby solving the longitude that occurs after the base station at high latitudes restores the compressed data sent by the terminal
  • the problem of coordinate distortion effectively improves the restoration accuracy of the compressed positioning information.
  • S104 Use the converted data of the longitude integer information occupying digits and the longitude minute and second information occupying digits as the first compressed data, and send the first compressed data to the base station.
  • a method for compressing positioning information disclosed in an embodiment of the present invention is applied to a terminal.
  • the obtained latitude coordinate of the terminal is greater than a critical coordinate of a high latitude region, a target high latitude region and a target to which the latitude coordinate belongs are determined, respectively.
  • the longitude integer information is converted to the data on the longitude integer information occupation digits
  • the longitude minute second information is converted to longitude minute second information. Occupy the data in bits to obtain the first compressed data and send it to the base station.
  • the integer information of the longitude coordinates is converted according to the corresponding target coordinate conversion rules.
  • the longitude, minute and second information are converted and compressed together and sent to the base station for restoration, which solves the problem of longitude coordinate distortion in high latitude areas, thereby ensuring the accuracy of the compressed positioning information restoration.
  • FIG. 2 specifically includes the following steps:
  • S201 Acquire positioning information of a terminal, where the positioning information includes longitude coordinates and latitude coordinates, and the longitude coordinates include longitude integer information and longitude minutes and seconds information.
  • the first high latitude region may be set to 60 ° north latitude-75.5 ° north latitude.
  • S203 Use the first high latitude area as the target high latitude area, use the first data occupation digit corresponding to the first high latitude area as the target data occupation digit, and use the first high latitude
  • the first coordinate conversion rule corresponding to the area is used as the target coordinate conversion rule.
  • the first data occupancy number includes 1 digit for longitude integer information and 12 digits for longitude minute and second information.
  • the first coordinate conversion The rule includes a first longitude integer information conversion rule and a first longitude minute and second information conversion rule, and executes S205;
  • the first coordinate conversion rule is to perform data format conversion on longitude coordinates in the latitude coordinates belonging to the first high latitude area (60 ° north latitude-75.5 ° north latitude), thereby realizing longitude coordinates belonging to the first high latitude area. Compression processing.
  • the first longitude integer information conversion rule is used to convert the longitude integer information in longitude coordinates. It can be set as follows: the longitude integer information is even degrees, and the 1-digit longitude integer information occupies the data in the number of digits as 0, longitude. The integer information is odd degrees, and the data on the number of digits occupied by 1 longitude integer information is 1.
  • the first longitude minute second information conversion rule is used to convert the longitude minute second information in longitude coordinates. It can be set to: use longitude Minute-second information conversion formula:
  • the first data occupancy digit is mainly used to store the longitude integer information and longitude minute-second information after the longitude coordinates belonging to the first high latitude area (60 ° north latitude-75.5 ° north latitude) are converted.
  • 1 digit of longitude integer information is used to store the longitude integer information converted by the first longitude integer information conversion rule; 12 digits of longitude minute and second information is used to store the first longitude minute and second information conversion Longitude minutes and seconds information after rule conversion.
  • the first data occupancy is 13 bits of data occupancy-"yxxx xxxx xxxx", where "y" is a digit of 1 longitude integer information occupancy, and "xxx xxxx xxxx xxx" is 12 digits of longitude minute seconds Occupied digits.
  • S204 Determine whether the latitude coordinates belong to a second high latitude region, and the second high latitude region is larger than the first high latitude region. If yes, execute S206, and if not, execute S207;
  • the second high latitude region can be set to 75.5 ° north latitude-82.8 ° north latitude.
  • S206 Use the second high latitude region as the target high latitude region, use the second data occupation digit corresponding to the second high latitude region as the target data occupation digit, and use the second high latitude
  • the second coordinate conversion rule corresponding to the area is used as the target coordinate conversion rule.
  • the second data occupation digit includes 2 longitude integer information occupancy digits and 11 longitude minutes and sec information digits.
  • the second coordinate conversion The rule includes a second longitude integer information conversion rule and a second longitude minute and second information conversion rule, and executes S210;
  • the second coordinate conversion rule is to perform data format conversion for longitude coordinates in the latitude coordinates belonging to the second high latitude area (75.5 ° north latitude-82.8 ° north latitude), so as to realize the longitude coordinates belonging to the second high latitude area Compression processing.
  • the second longitude integer information conversion rule is used to convert the longitude integer information in longitude coordinates. It can be set as follows: the longitude integer information is subjected to mod4 operation to obtain the operation result, and the operation result is converted into binary data as 2 bits.
  • the longitude integer information occupies the data in the number of digits; the second longitude minute second information conversion rule is used to convert the longitude minute second information in longitude coordinates, and can be set to: use the longitude minute second information conversion formula:
  • the second data occupancy number is mainly used to store the longitude integer information and longitude minute-second information after the longitude coordinates belonging to the second highest latitude area (75.5 ° N-82.8 ° N) are converted.
  • 2 digits of longitude integer information are used to store the longitude integer information converted by the second longitude integer information conversion rule; 11 digits of longitude minute second information are used to store the second longitude minute second information conversion rule conversion After the longitude minutes and seconds information.
  • the number of bits occupied by the second data is 13 bits of data occupied-"yyxx xxxx xxxx", where "yy” is the number of bits occupied by 2 longitude integer information, and "xx xxxx xxxx" is 11 bits of longitude minute second information Occupied digits.
  • S207 Determine whether the latitude coordinate belongs to a third high latitude region, and the third high latitude region is larger than the second high latitude region. If yes, perform S211, and if not, end;
  • the third high latitude region may be set to 82.8 ° N to 90 ° N.
  • the longitude integer information obtained by S201 is "68 °", which is an even degree.
  • the longitude integer information "68 °" is converted to 0 as 1-digit longitude integer information. The number of occupied digits.
  • S209 Convert the longitude integer information to 1 according to the first longitude integer information conversion rule in the target coordinate conversion rule, and use the data on the number of digits occupied by the 1-bit longitude integer information, and execute S212;
  • the longitude integer information obtained by S201 is "71 °", which is an odd number.
  • the longitude integer information "71 °" is converted to 1 as 1-digit longitude integer information. The number of occupied digits.
  • S210 According to the second longitude integer information conversion rule in the target coordinate conversion rule, perform a mod4 operation on the longitude integer information to obtain an operation result, and convert the operation result into binary data as the 2-bit longitude.
  • the integer information occupies the data in the digits, and S213 is executed;
  • the longitude integer information obtained by S201 is "77 °".
  • the longitude integer information "77 °” is subjected to mod4 operation to obtain the operation result "1", and then the operation result " 1 "is converted into binary data" 01 ", which is used as the data occupying two digits of longitude integer information.
  • S211 Use the third high latitude region as the target high latitude region, use the third data occupation digit corresponding to the third high latitude region as the target data occupation digit, and use the third high latitude
  • the third coordinate conversion rule corresponding to the area is used as the target coordinate conversion rule.
  • the third data occupation digit includes 3 longitude integer information occupancy digits and 10 longitude minutes and sec information digits.
  • the third coordinate conversion The rule includes a third longitude integer information conversion rule and a third longitude minute and second information conversion rule, and executes S214;
  • the third coordinate conversion rule is to perform data format conversion on longitude coordinates in the latitude coordinates belonging to the third high latitude area (82.8 ° north latitude-90 ° north latitude), thereby realizing the longitude coordinates belonging to the third high latitude area Compression processing.
  • the third longitude integer information conversion rule is used to convert the longitude integer information in longitude coordinates. It can be set as follows: the longitude integer information is subjected to mod8 operation to obtain the operation result, and the operation result is converted into binary data as 3 bits. The longitude integer information occupies the data in the number of digits.
  • the third longitude minute second information conversion rule is used to convert the longitude minute second information in longitude coordinates. It can be set to: use the longitude minute second information conversion formula:
  • the third data occupancy number is mainly used to store the longitude integer information and longitude minute-second information after the longitude coordinates belonging to the third high latitude area (82.8 ° north latitude-90 ° north latitude) are converted.
  • 3 digits of longitude integer information are used to store the longitude integer information converted by the third longitude integer information conversion rule; 10 digits of longitude minute second information are used to store the third longitude minute second information conversion rule conversion After the longitude minutes and seconds information.
  • the number of occupied bits of the third data is 13 bits of data occupied-"yyyx xxxx xxxx", where "yyy” is the number of occupied bits of 3 longitude integer information, and "xxxxxxxxxx” is 10 bits of longitude minute seconds Occupied digits.
  • the longitude, minute and second information obtained by S201 is “0.934 °”, and the longitude, minute and second information conversion formula is used:
  • S213 According to the second longitude, minute and second information conversion rule in the target coordinate conversion rule, the longitude, minute and second information conversion formula is used to convert the longitude, minute and second information into the 11-bit longitude, minute and second information occupying digits. Data, and execute S215.
  • S214 Perform a mod8 operation on the longitude integer information according to the third longitude integer information conversion rule in the target coordinate conversion rule to obtain an operation result, and convert the operation result into binary data as the 3-bit longitude.
  • the integer information occupies the data in the number of digits, and S216 is performed;
  • the longitude integer information obtained by S201 is "86 °".
  • the longitude integer information "86 °” is subjected to mod8 operation to obtain the operation result "6", and then the operation result " 6 "is converted into binary data" 110 ", which is used as the data occupied by the 3-digit longitude integer information.
  • S215 Use the converted data of the longitude integer information occupying digits and the longitude minute and second information occupying digits as the first compressed data, and send the first compressed data to the base station.
  • the longitude, minute and second information conversion formula is used to convert the longitude, minute and second information into the number of digits occupied by the 10 longitude, minute and second information. Data, and execute S215.
  • a method for compressing positioning information disclosed in an embodiment of the present invention is applied to a terminal.
  • the method uses the first high latitude area, the second high latitude area, and the first
  • the target high latitude area to which the latitude coordinate belongs is determined from the three high latitude areas, and then the target data occupation digits corresponding to the target high latitude area and the target coordinate conversion rule are determined, so as to convert according to the longitude integer information in the target coordinate conversion rule.
  • the high latitude area is divided into the first high latitude area, the second high latitude area, and the third high latitude area in order according to the latitude level, and the longitude coordinates are realized.
  • Detailed division to convert according to the corresponding target data occupation digits and target coordinates When the rule obtains the first compressed data, it can further improve the compression accuracy of the positioning information on the basis of solving the problem of longitude coordinate distortion in high latitude regions.
  • an embodiment of the present invention discloses another method for compressing positioning information. Please refer to FIG. 3.
  • the method specifically includes the following steps:
  • S301 Acquire positioning information of a terminal, where the positioning information includes longitude coordinates and latitude coordinates, and the longitude coordinates include longitude integer information and longitude minutes and seconds information.
  • the latitude coordinates are less than or equal to the critical coordinates of the high latitude area, it proves that the terminal is in a low latitude area or a middle latitude area. Accordingly, the location of the base station does not belong to the high latitude area, that is, the coverage radius of the base station does not span two Longitude, at this time, the longitude integer information of the terminal longitude coordinates is discarded, and the formula is converted using the longitude minute information:
  • the second compressed data obtained after conversion may be 13-bit data composed of a binary format, such as "xxxx xxxx xxxx”.
  • a method for compressing positioning information disclosed in an embodiment of the present invention is applied to a terminal.
  • a formula is converted by using longitude, minute, and second information, and only the longitude is divided.
  • the second information is converted to obtain the second compressed data and sent to the base station, which can improve the compression efficiency of the positioning information while ensuring that the longitude coordinates are not distorted.
  • An embodiment of the present invention discloses a method for decompressing positioning information, which is applied to a base station. Referring to FIG. 4, the method specifically includes the following steps:
  • the base station longitude coordinate is composed of base station longitude integer information and base station longitude minute and second information, such as E72.5 °, where 72 ° is the base station longitude integer information and 0.5 ° is the base station longitude minute and second information.
  • the longitude coordinates of the terminal may be obtained through a positioning technology provided by the base station.
  • S402 Receive first compressed data sent by the terminal, where the first compressed data includes data on the number of bits occupied by converted longitude integer information and data on the number of bits occupied by longitude minute information;
  • the data on the digits occupied by the converted longitude integer information is the longitude integer information of the converted terminal;
  • the data on the digits occupied by the converted longitude minute and second information is the longitude, minute and second information of the converted terminal.
  • the target decompression rule is mainly used to perform a decompression operation on the determined first compressed data to achieve the restoration of the first compressed data and obtain the actual location information of the terminal.
  • S404 Use the target decompression rule and the base station longitude coordinate to perform a decompression operation on the first compressed data to obtain a longitude coordinate of the terminal.
  • the first compressed data is composed of the data occupied by the converted longitude integer information digits and the longitude minute second information occupied digits. Therefore, when the target decompression rule is used to decompress the first compressed data During the compression operation, the data on the converted longitude integer occupancy data and the longitude minute and second information occupancy data are respectively correspondingly decompressed to restore the terminal's longitude coordinates, so that the first compression
  • the longitude integer information of the terminal longitude coordinates is added to the data, which is conducive to the accuracy of the terminal longitude coordinates. It solves the distortion of longitude coordinates in high latitudes caused by directly adding the base station longitude integer information to the decompressed terminal's minute and second information. problem.
  • a method for decompressing positioning information disclosed in an embodiment of the present invention is applied to a base station. By obtaining longitude coordinates of the base station and receiving first compressed data from a terminal at the same time, a target decompression rule corresponding to the first compressed data is determined.
  • the data on the number of bits occupied by the longitude integer information and the data on the number of bits occupied by the longitude minute information are respectively decompressed in the first compressed data to restore the Longitude coordinates of the terminal; it can be seen that increasing the decompression operation of the longitude integer information of the terminal's longitude coordinates is conducive to the restoration accuracy of the decompression operation, thereby solving the problem of directly combining the base station longitude integer information with the decompressed terminal's minute information The problem of longitude coordinate distortion in high latitudes caused by the addition.
  • an embodiment of the present invention discloses another method for decompressing positioning information, which is applied to a base station. Please refer to FIG. 5.
  • the method specifically includes the following steps:
  • S502 Receive first compressed data sent by the terminal, where the first compressed data includes data on the number of bits occupied by the converted longitude integer information and data on the number of bits occupied by the longitude minute information.
  • the first decompression rule is used as the target decompression rule, and the first decompression rule includes the first Degree integer information decompression rule and first longitude minute second information decompression rule;
  • the first longitude integer information decompression rule may be set as follows: the base station longitude integer information in the longitude coordinates of the base station is an even degree, and the converted longitude integer information occupies the data in the number of digits as 0, the base station
  • the longitude integer information is used as the longitude integer information of the terminal;
  • the base station longitude integer information in the longitude coordinates of the base station is an even number of degrees, and the converted longitude integer information occupies 1 in the number of digits, and the base station longitude integer information is reduced by 1.
  • the subsequent value is used as the longitude integer information of the terminal;
  • the base station longitude integer information in the base station longitude coordinates is an odd number.
  • the data on the occupied digits of the converted longitude integer information is 0, the value obtained by subtracting 1 from the base station longitude integer information is used as the longitude integer information of the terminal.
  • the base station longitude integer information in the base station longitude coordinates is an odd number, and when the data on the number of bits occupied by the converted longitude integer information is 1, the base station longitude integer information is used as the longitude integer information of the terminal.
  • the first longitude, minute, and second information decompression rule may be set as follows: convert the data on the digits occupied by the converted longitude, minute, and second information to obtain the longitude, minute, and second information of the terminal.
  • the base station longitude integer information in the base station longitude coordinates is even degrees, and the data on the number of bits occupied by the converted longitude integer information is 1, the base station longitude integer is decompressed according to the first longitude integer information decompression rule.
  • the value minus 1 is used as the longitude integer information of the terminal;
  • the base station longitude integer information in the base station longitude coordinates is an odd number, and the data on the occupied digits of the converted longitude integer information is 0, the value obtained by subtracting 1 from the base station longitude integer information is used as the longitude integer information of the terminal;
  • the base station longitude integer information in the base station longitude coordinates is an odd number, and the data on the number of bits occupied by the converted longitude integer information is 1, the base station longitude integer information is used as the terminal longitude integer information.
  • S505 According to the first longitude, minute and second information decompression rule, perform data conversion on the data in the converted longitude, minute and second information occupying digits, and obtain longitude, minute and second information of the terminal;
  • the conversion of minute and second information is mainly to restore the data on the occupied digits of the converted longitude, minute and second information to the representation form of the longitude, minute and second information.
  • S506 Add the longitude integer information and the longitude minute second information to obtain a longitude coordinate of the terminal.
  • a method for decompressing positioning information disclosed in an embodiment of the present invention is applied to a base station.
  • the first decompression rule is set.
  • the first longitude integer information decompression rule in the first decompression rule is used to determine the longitude integer information of the terminal
  • the first longitude minute-second information in the first decompression rule is used to decompress
  • the compression rule determines the longitude, minute and second information of the terminal, so as to add the longitude integer information and longitude minute and second information to restore the terminal's longitude coordinates.
  • the corresponding decompression rule is determined as the target decompression rule to realize the decompression operation on the data occupied by the converted longitude integer information digits and the longitude minute seconds information occupied digits, which can accurately know the terminal compression
  • the compression rules used at the time thereby improving the restoration accuracy of the decompression operation.
  • an embodiment of the present invention discloses another method for decompressing positioning information, which is applied to a base station. Please refer to FIG. 6, where the method specifically includes the following steps:
  • S602 Receive first compressed data sent by the terminal, where the first compressed data includes data on the number of bits occupied by the converted longitude integer information and data on the number of bits occupied by the longitude minute information.
  • the second decompression rule is used as the target decompression rule, and the second decompression rule includes the second longitude Integer information decompression rule and second longitude minute-second information decompression rule;
  • the second longitude, minute and second information decompression rule may be set as follows: converting the data on the occupied digits of the converted longitude, minute and second information to obtain the longitude, minute and second information of the terminal;
  • the second longitude integer information decompression rule may be set as follows: when the longitude, minute, and second information of the terminal is greater than a preset offset value, subtracting the longitude integer information of the base station from the first offset to obtain the longitude integer information of the terminal; When the longitude, minute, and second information of the terminal is less than or equal to a preset offset value, adding the longitude integer information of the base station and the first offset to obtain the longitude integer information of the terminal;
  • the first offset is the first operation result obtained by performing the mod4 operation on the base station longitude integer information in the base station longitude coordinates, and the second offset value obtained by performing data format conversion with the data in the number of digits occupied by the converted longitude integer information.
  • the operation result is obtained by subtraction; when the converted longitude integer information occupies the data on the number of digits and the data format conversion value is 0, the value 4 is used as the second operation result.
  • S604 According to the second longitude, minute and second information decompression rule, perform data format conversion on the data of the converted longitude, minute and second information occupied digits, and obtain longitude, minute and second information of the terminal.
  • S605 When the longitude, minute, and second information of the terminal is greater than an offset preset value, subtract the longitude integer information of the base station from the first offset to obtain the longitude integer information of the terminal, where the first offset Is the first operation result obtained by performing base station longitude integer information in the base station longitude coordinate after performing mod4 operation, and the second operation result obtained by performing data format conversion on the data occupied by the converted longitude integer information occupying bits Obtained by subtracting; when the converted longitude integer information occupies the data on the number of digits after the data format conversion value is 0, 4 is used as the second operation result;
  • the longitude integer information of the base station and the first offset are added to obtain the longitude integer information of the terminal.
  • the preset offset value may be a preset minute information, such as 0.5 °, which is mainly used to identify whether the terminal is located on the left or right side of the base station. For example, when the longitude, minute, and second information of the terminal is less than or equal to the preset offset value, the terminal is located on the right side of the base station.
  • S606 Add the longitude integer information and the longitude minute-second information to obtain longitude coordinates of the terminal.
  • a method for decompressing positioning information disclosed in an embodiment of the present invention is applied to a base station.
  • the second decompression rule is applied.
  • the second longitude integer information decompression rule in the second decompression rule is used to determine the longitude integer information of the terminal, and the second longitude minute-second information decompression rule in the second decompression rule
  • To determine the longitude, minute and second information of the terminal in order to add the longitude integer information and longitude minute and second information to restore the terminal's longitude coordinates; it can be seen that based on the longitude integer information and the longitude minute and second information
  • the corresponding decompression rule is used as the target decompression rule to realize the decompression operation of the data on the number of digits occupied by the longitude integer information and the data on the number of digits occupied by the longitude minute information, which can accurately know what the terminal compresses.
  • the compression rules are
  • an embodiment of the present invention discloses another method for decompressing positioning information, which is applied to a base station.
  • the method specifically includes the following steps:
  • S702 Receive first compressed data sent by the terminal, where the first compressed data includes data on the number of bits occupied by converted longitude integer information and data on the number of bits occupied by longitude minute information.
  • the third decompression rule is used as the target decompression rule, and the third decompression rule includes the third longitude Integer information decompression rule and third longitude minute-second information decompression rule;
  • the third longitude, minute and second information decompression rule may be set as follows: converting the data on the occupied digits of the converted longitude, minute and second information to obtain the longitude, minute and second information of the terminal;
  • the third longitude integer information decompression rule may be set as follows: when the longitude, minute, and second information of the terminal is greater than a preset offset value, subtracting the longitude integer information of the base station from the second offset to obtain the longitude integer information of the terminal; When the longitude, minute, and second information of the terminal is less than or equal to a preset offset value, add the longitude integer information of the base station and the second offset to obtain the longitude integer information of the terminal;
  • the second offset is the third operation result obtained by performing the mod8 operation on the base station longitude integer information in the base station longitude coordinates, and the fourth result obtained by performing data format conversion with the data occupied by the converted longitude integer information occupying the number of digits.
  • the operation result is obtained by subtraction; when the converted longitude integer information occupies the data on the number of digits and the data format conversion value is 0, the value 8 is used as the fourth operation result.
  • S704 According to the third longitude, minute and second information decompression rule, perform data conversion on the data of the converted longitude, minute and second information occupying digits, and obtain longitude, minute and second information of the terminal.
  • the longitude integer information of the base station and the second offset are added to obtain the longitude integer information of the terminal;
  • the preset offset value may be a preset minute information, such as 0.5 °, which is mainly used to identify whether the terminal is located on the left or right side of the base station. For example, when the longitude, minute, and second information of the terminal is greater than the preset offset value, the terminal is located on the left side of the base station.
  • S706 Add the longitude integer information and the longitude minute second information to obtain longitude coordinates of the terminal.
  • a method for decompressing positioning information disclosed in an embodiment of the present invention is applied to a base station.
  • the third decompression rule is applied.
  • the third longitude integer information decompression rule in the third decompression rule is used to determine the longitude integer information of the terminal, and the third longitude minute-second information decompression rule in the third decompression rule
  • To determine the longitude, minute and second information of the terminal in order to add the longitude integer information and longitude minute and second information to restore the terminal's longitude coordinates; it can be seen that based on the longitude integer information and the longitude minute and second information
  • the corresponding decompression rule is used as the target decompression rule to realize the decompression operation of the data on the number of digits occupied by the longitude integer information and the data on the number of digits occupied by the longitude minute information, which can accurately know what the terminal compresses.
  • the compression rules are used to further improve
  • An embodiment of the present invention discloses a device for compressing positioning information, which is applied to a terminal. Referring to FIG. 8, it includes:
  • An obtaining module 801 is configured to obtain positioning information of a terminal, where the positioning information includes longitude coordinates and latitude coordinates, and the longitude coordinates include longitude integer information and longitude minutes and seconds information;
  • a determining module 802 configured to determine a target high latitude region to which the latitude coordinate belongs, a target data occupation bit number corresponding to the target high latitude region, and a target coordinate conversion rule when the latitude coordinate is greater than a critical coordinate of a high latitude region,
  • the target data occupation digits include the longitude integer information occupancy digits and the longitude minute second information occupancy digits;
  • a conversion module 803 configured to convert the longitude integer information into data on the number of digits occupied by the longitude integer information according to the target coordinate conversion rule, and convert the longitude minute information to the longitude minute information Data in digits;
  • the sending module 804 is configured to use the converted data of the longitude integer information occupying digits and the longitude minute and second information occupying digits as first compressed data, and send the first compressed data to the base station.
  • An apparatus for compressing positioning information disclosed in an embodiment of the present invention is applied to a terminal.
  • the determining module 802 separately determines which latitude coordinates belong to Of the target high latitude region, the target data occupation digits corresponding to the target high latitude region, and the target coordinate conversion rule, and then the conversion module 803 converts the longitude integer information into data on the longitude integer information occupation digits according to the target coordinate conversion rule.
  • the longitude, minute and second information is converted into data on the number of digits occupied by the longitude, minute and second information to obtain the first compressed data and sent to the base station by the sending module 804.
  • An embodiment of the present invention discloses a device for decompressing positioning information, which is applied to a base station. Referring to FIG. 9, it includes:
  • An obtaining module 901 configured to obtain longitude coordinates of a base station
  • the receiving module 902 is configured to receive first compressed data sent by the terminal, where the first compressed data includes data on the number of digits occupied by the longitude integer information and data on the number of digits occupied by the longitude minute information;
  • a determining module 903, configured to determine a target decompression rule corresponding to the first compressed data
  • a decompression module 904 is configured to perform a decompression operation on the first compressed data by using the target decompression rule and the base station longitude coordinate to obtain a longitude coordinate of the terminal.
  • An apparatus for decompressing positioning information disclosed in an embodiment of the present invention is applied to a base station.
  • the longitude coordinates of the base station are obtained through an acquisition module 901, and the reception module 902 receives first compressed data from a terminal, so that the determination module 903 determines The target decompression rule corresponding to the compressed data, and then the decompression module 904 uses the target decompression rule and the base station longitude coordinate to occupy the converted longitude integer information in the first compressed data and occupy the data in the number of digits and longitude minutes and seconds information.
  • the data on the digits are decompressed separately to restore the longitude coordinates of the terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Instructional Devices (AREA)

Abstract

本发明实施例提供了一种定位信息的压缩、解压缩方法及装置,通过在获取到的终端的纬度坐标大于高纬度区域临界坐标时,分别确定出该纬度坐标所属的目标高纬度区域、目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,进而按照目标坐标转换规则,将经度整数信息转换为经度整数信息占用位数上的数据,将经度分秒信息转换为经度分秒信息占用位数上的数据,以获得第一压缩数据,并发送至基站;可见,在终端的纬度坐标属于高纬度区域坐标时,通过将经度坐标的整数信息按照对应的目标坐标转换规则,也随经度分秒信息一起进行转换压缩,发送至基站进行还原,解决了高纬度地区经度坐标失真的问题,进而确保了被压缩的定位信息的还原准确率。

Description

一种定位信息的压缩、解压缩方法及装置 技术领域
本发明涉及数据压缩领域,更具体的说,是涉及一种定位信息的压缩、解压缩方法及装置。
背景技术
随着无线通信技术的发展,人们在全球范围内建立了大量的通信基站,以便将通信基站作为无线定位基站,并依据用户终端发送来的自身定位信息(经纬度坐标),定位出用户终端的准确位置。
为了提高用户终端向基站发送其自身定位信息的速率,用户终端往往会对定位信息进行压缩后再发送至基站。目前,用户终端所采用的压缩方法通常是舍去其经纬度坐标的整数信息(度),仅将经纬度坐标的分秒信息进行压缩,并传输至基站,以便基站将自身经纬度坐标的整数信息与解压缩后的分秒信息相加,来还原出用户终端的准确位置。然而,由于高纬度地区处的基站覆盖半径会跨越两条经线,从而在采用现有的压缩方法对处于高纬度地区的用户终端的经度坐标进行压缩时,会导致基站还原出的经度坐标出现偏差,进而产生经度坐标失真问题。
发明内容
有鉴于此,本发明提供了一种定位信息的压缩、解压缩方法及装置,解决了高纬度地区经度坐标失真的问题。
为实现上述目的,本发明提供如下技术方案:
一种定位信息的压缩方法,应用于终端,包括:
获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息;
当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,所述目标数据占用位数包括经度整数信息占用位数和经度分秒信息占用位数;
按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据;
将转换后的所述经度整数信息占用位数上的数据和所述经度分秒信息占用位数上的数据作为第一压缩数据,发送所述第一压缩数据到基站。
优选地,所述当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,包括:
当所述纬度坐标大于高纬度区域临界坐标时,判断所述纬度坐标是否属于第一高纬度区域;
若所述纬度坐标属于所述第一高纬度区域,将所述第一高纬度区域作为所述目标高纬度区域,将所述第一高纬度区域对应的第一数据占用位数作为所述目标数据占用位数,将所述第一高纬度区域对应的第一坐标转换规则作为所述目标坐标转换规则,所述第一数据占用位数包括1位经度整数信息占用位数和12位经度分秒信息占用位数,所述第一坐标转换规则包括第一经度整数信息转换规则和第一经度分秒信息转换规则。
优选地,所述按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据,包括:
判断所述经度整数信息是否为偶数度;
若所述经度整数信息为偶数度,按照所述目标坐标转换规则中的第一经度整数信息转换规则,将所述经度整数信息转换为0,作为所述1位经度整数信息占用位数上的数据;
若所述经度整数信息为奇数度时,按照所述目标坐标转换规则中的第一经度整数信息转换规则,将所述经度整数信息转换为1,作为所述1位经度整数信息占用位数上的数据;
按照所述目标坐标转换规则中的第一经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述12位经度分秒信息 占用位数上的数据。
优选地,在判断出所述纬度坐标不属于所述第一高纬度区域之后,还包括:
判断所述纬度坐标是否属于第二高纬度区域,所述第二高纬度区域大于所述第一高纬度区域;
若所述纬度坐标属于所述第二高纬度区域,将所述第二高纬度区域作为所述目标高纬度区域,将所述第二高纬度区域对应的第二数据占用位数作为所述目标数据占用位数,将所述第二高纬度区域对应的第二坐标转换规则作为所述目标坐标转换规则,所述第二数据占用位数包括2位经度整数信息占用位数和11位经度分秒信息占用位数,所述第二坐标转换规则包括第二经度整数信息转换规则和第二经度分秒信息转换规则。
优选地,所述按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据,包括:
按照所述目标坐标转换规则中的第二经度整数信息转换规则,将所述经度整数信息进行mod4运算,获得运算结果,并将所述运算结果转换为二进制数据,作为所述2位经度整数信息占用位数上的数据;
按照所述目标坐标转换规则中的第二经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述11位经度分秒信息占用位数上的数据。
优选地,在判断出所述纬度坐标不属于所述第二高纬度区域之后,还包括:
判断所述纬度坐标是否属于第三高纬度区域,所述第三高纬度区域大于所述第二高纬度区域;
若所述纬度坐标属于所述第三高纬度区域,将所述第三高纬度区域作为所述目标高纬度区域,将所述第三高纬度区域对应的第三数据占用位数作为所述目标数据占用位数,将所述第三高纬度区域对应的第三坐标转换规则作为所述目标坐标转换规则,所述第三数据占用位数包括3位经度整 数信息占用位数和10位经度分秒信息占用位数,所述第三坐标转换规则包括第三经度整数信息转换规则和第三经度分秒信息转换规则。
优选地,所述按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据,包括:
按照所述目标坐标转换规则中的第三经度整数信息转换规则,将所述经度整数信息进行mod8运算,获得运算结果,并将所述运算结果转换为二进制数据,作为所述3位经度整数信息占用位数上的数据;
按照所述目标坐标转换规则中的第三经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述10位经度分秒信息占用位数上的数据。
优选地,所述压缩方法还包括:
当所述纬度坐标小于或等于所述高纬度区域临界坐标时,利用经度分秒信息转换公式,对所述经度分秒信息进行转换,获得第二压缩数据;
发送所述第二压缩数据到所述基站。
一种定位信息的解压缩方法,应用于基站,包括:
获取基站经度坐标;
接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据;
确定所述第一压缩数据对应的目标解压缩规则;
利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标。
优选地,所述确定所述第一压缩数据对应的目标解压缩规则,包括:
当经度整数信息占用位数为1位,经度分秒信息占用位数为12位时,将第一解压缩规则作为所述目标解压缩规则,所述第一解压缩规则包括第一经度整数信息解压缩规则和第一经度分秒信息解压缩规则。
优选地,利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标,包括:
当所述基站经度坐标中的基站经度整数信息为偶数度,所述转换后的经度整数信息占用位数上的数据为0时,按照所述第一经度整数信息解压缩规则,将所述基站经度整数信息作为终端的经度整数信息;
或者,当所述基站经度坐标中的基站经度整数信息为偶数度,所述转换后的经度整数信息占用位数上的数据为1时,按照所述第一经度整数信息解压缩规则,将所述基站经度整数信息减1后的数值作为所述终端的经度整数信息;
或者,当所述基站经度坐标中的基站经度整数信息为奇数度,所述转换后的经度整数信息占用位数上的数据为0时,将所述基站经度整数信息减1后的数值作为所述终端的经度整数信息;
或者,当所述基站经度坐标中的基站经度整数信息为奇数度,所述转换后的经度整数信息占用位数上的数据为1时,将所述基站经度整数信息作为所述终端的经度整数信息;
按照所述第一经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标。
优选地,所述确定所述第一压缩数据对应的目标解压缩规则,包括:
当经度整数信息占用位数为2位,经度分秒信息占用位数为11位时,将第二解压缩规则作为所述目标解压缩规则,所述第二解压缩规则包括第二经度整数信息解压缩规则和第二经度分秒信息解压缩规则。
优选地,利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标,包括:
按照所述第二经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
当所述终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第一偏移量相减,获得终端的经度整数信息;
或者,当终端的经度分秒信息小于或等于所述偏移预设值时,将基站 的经度整数信息与第一偏移量相加,获得终端的经度整数信息;
将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标;
其中,所述第一偏移量是所述基站经度坐标中的基站经度整数信息进行mod4运算后获得的第一运算结果,与所述转换后的经度整数信息占用位数上的数据进行数据格式转换后获得的第二运算结果相减获得的;当所述转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,将4作为所述第二运算结果。
优选地,所述确定所述第一压缩数据对应的目标解压缩规则,包括:
当经度整数信息占用位数为3位,经度分秒信息占用位数为10位时,将第三解压缩规则作为所述目标解压缩规则,所述第三解压缩规则包括第三经度整数信息解压缩规则和第三经度分秒信息解压缩规则。
优选地,利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标,包括:
按照所述第三经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
当所述终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第二偏移量相减,获得终端的经度整数信息;
或者,当终端的经度分秒信息小于或等于所述偏移预设值时,将基站的经度整数信息与第二偏移量相加,获得终端的经度整数信息;
将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标;
其中,所述第二偏移量是所述基站经度坐标中的基站经度整数信息进行mod8运算后获得的第三运算结果,与所述转换后的经度整数信息占用位数上的数据进行数据格式转换后获得的第四运算结果相减获得的;当所述转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,将8作为所述第四运算结果。
一种定位信息的压缩装置,应用于终端,包括:
获取模块,用于获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息;
确定模块,用于当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,所述目标数据占用位数包括经度整数信息占用位数和经度分秒信息占用位数;
转换模块,用于按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据;
发送模块,用于将转换后的所述经度整数信息占用位数上的数据和所述经度分秒信息占用位数上的数据作为第一压缩数据,发送所述第一压缩数据到基站。
一种定位信息的解压缩装置,应用于基站,包括:
获取模块,用于获取基站经度坐标;
接收模块,用于接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据;
确定模块,用于确定所述第一压缩数据对应的目标解压缩规则;
解压缩模块,用于利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标。
本发明提供了一种定位信息的压缩、解压缩方法及装置,通过在获取到的终端的纬度坐标大于高纬度区域临界坐标时,分别确定出该纬度坐标所属的目标高纬度区域、目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,进而按照目标坐标转换规则,将经度整数信息转换为经度整数信息占用位数上的数据,将经度分秒信息转换为经度分秒信息占用位数上的数据,以获得第一压缩数据,并发送至基站;可见,在终端的纬度坐标属于高纬度区域坐标时,通过将经度坐标的整数信息按照对应的目 标坐标转换规则,也随经度分秒信息一起进行转换压缩,发送至基站进行还原,解决了高纬度地区经度坐标失真的问题,进而确保了被压缩的定位信息的还原准确率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种定位信息的压缩方法的方法流程图;
图2为本发明实施例提供的另一种定位信息的压缩方法的方法流程图;
图3为本发明实施例提供的另一种定位信息的压缩方法的方法流程图;
图4为本发明实施例提供的一种定位信息的解压缩方法的方法流程图;
图5为本发明实施例提供的另一种定位信息的解压缩方法的方法流程图;
图6为本发明实施例提供的另一种定位信息的解压缩方法的方法流程图;
图7为本发明实施例提供的另一种定位信息的解压缩方法的方法流程图;
图8为本发明实施例提供的一种定位信息的压缩装置的结构示意图;
图9为本发明实施例提供的一种定位信息的解压缩装置的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例公开了一种定位信息的压缩方法,应用于终端,请参见附图1,所述方法具体包括以下步骤:
S101:获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息;
具体的,终端的经度坐标由经度整数信息和经度分秒信息组成,如E68.134°,其中,68°为经度整数信息,0.134°为经度分秒信息。
终端的纬度坐标由纬度整数信息和纬度分秒信息组成,如N75.5°,其中,75°为纬度整数信息,0.5°为纬度分秒信息。
需要说明的是,终端的经度坐标和纬度坐标均可以是通过终端自带的定位技术来获得,如基于GPS的定位技术。
S102:当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,所述目标数据占用位数包括经度整数信息占用位数和经度分秒信息占用位数;
具体的,高纬度区域临界坐标可以是依据纬度高低设定的一个纬度值,如北纬60°;若终端的纬度坐标超过高纬度区域临界坐标时,证明该终端处于高纬度区域;相反,若终端的纬度坐标小于或等于高纬度区域临界坐标时,证明该终端处于中、低纬度区域。
目标坐标转换规则主要用于对处于目标高纬度区域内的终端的经度坐标进行数据格式转换,从而实现对经度坐标的压缩处理,以降低发送至基 站的数据所占用的空口资源,进而提升发送速率。
目标数据占用位数主要用于存放处于目标高纬度区域内的终端的经度坐标经过转换后的经度整数信息和经度分秒信息。其中,经过转换后的经度整数信息存放于目标数据占用位数中的经度整数信息占用位数上,经过转化后的经度分秒信息存放于目标数据占用位数中的经度分秒信息占用位数上。
S103:按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据;
具体的,按照确定出的目标坐标转换规则,对终端的经度整数信息和经度分秒信息分别进行相应的数据转换,以获得由转换后的经度整数信息和经度分秒信息共同组成的第一压缩数据,即转换后经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据,从而解决了高纬度地区处的基站在对终端发送来的压缩数据进行还原后所出现的经度坐标失真问题,有效提高了被压缩定位信息的还原准确率。
S104:将转换后的所述经度整数信息占用位数上的数据和所述经度分秒信息占用位数上的数据作为第一压缩数据,发送所述第一压缩数据到基站。
本发明实施例所公开的一种定位信息的压缩方法,应用于终端,通过在获取到的终端的纬度坐标大于高纬度区域临界坐标时,分别确定出该纬度坐标所属的目标高纬度区域、目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,进而按照目标坐标转换规则,将经度整数信息转换为经度整数信息占用位数上的数据,将经度分秒信息转换为经度分秒信息占用位数上的数据,以获得第一压缩数据,并发送至基站;可见,在终端的纬度坐标属于高纬度区域坐标时,通过将经度坐标的整数信息按照对应的目标坐标转换规则,也随经度分秒信息一起进行转换压缩,发送至基站进行还原,解决了高纬度地区经度坐标失真的问题,进而确保了被压缩 的定位信息的还原准确率。
在上述附图1所对应实施例的基础上,本发明实施例公开了另一种定位信息的压缩方法,请参见附图2,所述方法具体包括以下步骤:
S201:获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息。
S202:当所述纬度坐标大于高纬度区域临界坐标时,判断所述纬度坐标是否属于第一高纬度区域,若是,则执行S203,若否,则执行S204;
具体的,第一高纬度区域可以设定为北纬60°—北纬75.5°。
S203:将所述第一高纬度区域作为所述目标高纬度区域,将所述第一高纬度区域对应的第一数据占用位数作为所述目标数据占用位数,将所述第一高纬度区域对应的第一坐标转换规则作为所述目标坐标转换规则,所述第一数据占用位数包括1位经度整数信息占用位数和12位经度分秒信息占用位数,所述第一坐标转换规则包括第一经度整数信息转换规则和第一经度分秒信息转换规则,并执行S205;
具体的,第一坐标转换规则是针对纬度坐标属于第一高纬度区域(北纬60°—北纬75.5°)内的经度坐标,进行数据格式转换,从而实现对属于第一高纬度区域内的经度坐标的压缩处理。其中,第一经度整数信息转换规则用于对经度坐标内的经度整数信息进行转换,可以设定为:经度整数信息是偶数度,1位经度整数信息占用位数上的数据为0,经度整数信息是奇数度,1位经度整数信息占用位数上的数据为1;第一经度分秒信息转换规则用于对经度坐标内的经度分秒信息进行转换,可以设定为:利用经度分秒信息转换公式:
λ=L*cosα
计算出12位经度分秒信息占用位数上的数据,α为纬度,L为赤道处1度经线间隔的纬线长度。
第一数据占用位数主要用于存放属于第一高纬度区域(北纬60°—北纬75.5°)内的经度坐标经过转换后的经度整数信息和经度分秒信息。其 中,1位经度整数信息占用位数用于存放经过第一经度整数信息转换规则转换后的经度整数信息;12位经度分秒信息占用位数用于存放经过第一经度分秒信息转换规则转换后的经度分秒信息。例如,第一数据占用位数为13bit数据占用位数-“yxxx xxxx xxxx x”,其中,“y”为1位经度整数信息占用位数,“xxx xxxx xxxx x”为12位经度分秒信息占用位数。
S204:判断所述纬度坐标是否属于第二高纬度区域,所述第二高纬度区域大于所述第一高纬度区域,若是,则执行S206,若否,则执行S207;
具体的,第二高纬度区域可以设定为北纬75.5°—北纬82.8°。
S205:判断所述经度整数信息是否为偶数度,若是,则执行S208,若否,则执行S209。
S206:将所述第二高纬度区域作为所述目标高纬度区域,将所述第二高纬度区域对应的第二数据占用位数作为所述目标数据占用位数,将所述第二高纬度区域对应的第二坐标转换规则作为所述目标坐标转换规则,所述第二数据占用位数包括2位经度整数信息占用位数和11位经度分秒信息占用位数,所述第二坐标转换规则包括第二经度整数信息转换规则和第二经度分秒信息转换规则,并执行S210;
具体的,第二坐标转换规则是针对纬度坐标属于第二高纬度区域(北纬75.5°—北纬82.8°)内的经度坐标,进行数据格式转换,从而实现对属于第二高纬度区域内的经度坐标的压缩处理。其中,第二经度整数信息转换规则用于对经度坐标内的经度整数信息进行转换,可以设定为:经度整数信息进行mod4运算,获得运算结果,并将运算结果转换为二进制数据,作为2位经度整数信息占用位数上的数据;第二经度分秒信息转换规则用于对经度坐标内的经度分秒信息进行转换,可以设定为:利用经度分秒信息转换公式:
λ=L*cosα
计算出11位经度分秒信息占用位数上的数据,α为纬度,L为赤道处1度经线间隔的纬线长度。
第二数据占用位数主要用于存放属于第二高纬度区域(北纬75.5°—北纬82.8°)内的经度坐标经过转换后的经度整数信息和经度分秒信息。其中,2位经度整数信息占用位数用于存放经过第二经度整数信息转换规则转换后的经度整数信息;11位经度分秒信息占用位数用于存放经过第二经度分秒信息转换规则转换后的经度分秒信息。例如,第二数据占用位数为13bit数据占用位数-“yyxx xxxx xxxx x”,其中,“yy”为2位经度整数信息占用位数,“xx xxxx xxxx x”为11位经度分秒信息占用位数。
S207:判断所述纬度坐标是否属于第三高纬度区域,所述第三高纬度区域大于所述第二高纬度区域,若是,则执行S211,若否,则结束;
具体的,第三高纬度区域可以设定为北纬82.8°—北纬90°。
S208:按照所述目标坐标转换规则中的第一经度整数信息转换规则,将所述经度整数信息转换为0,作为所述1位经度整数信息占用位数上的数据,并执行S212;
举例说明,S201获取到的经度整数信息为“68°”,为偶数度,此时按照第一经度整数信息转换规则,将经度整数信息“68°”转换为0,作为1位经度整数信息占用位数上的数据。
S209:按照所述目标坐标转换规则中的第一经度整数信息转换规则,将所述经度整数信息转换为1,作为所述1位经度整数信息占用位数上的数据,并执行S212;
举例说明,S201获取到的经度整数信息为“71°”,为奇数度,此时按照第一经度整数信息转换规则,将经度整数信息“71°”转换为1,作为1位经度整数信息占用位数上的数据。
S210:按照所述目标坐标转换规则中的第二经度整数信息转换规则,将所述经度整数信息进行mod4运算,获得运算结果,并将所述运算结果转换为二进制数据,作为所述2位经度整数信息占用位数上的数据,并执行S213;
举例说明,S201获取到的经度整数信息为“77°”,按照第二经度整 数信息转换规则,令经度整数信息“77°”进行mod4运算,获得运算结果“1”,再将该运算结果“1”转换为二进制数据“01”,作为2位经度整数信息占用位数上的数据。
S211:将所述第三高纬度区域作为所述目标高纬度区域,将所述第三高纬度区域对应的第三数据占用位数作为所述目标数据占用位数,将所述第三高纬度区域对应的第三坐标转换规则作为所述目标坐标转换规则,所述第三数据占用位数包括3位经度整数信息占用位数和10位经度分秒信息占用位数,所述第三坐标转换规则包括第三经度整数信息转换规则和第三经度分秒信息转换规则,并执行S214;
具体的,第三坐标转换规则是针对纬度坐标属于第三高纬度区域(北纬82.8°—北纬90°)内的经度坐标,进行数据格式转换,从而实现对属于第三高纬度区域内的经度坐标的压缩处理。其中,第三经度整数信息转换规则用于对经度坐标内的经度整数信息进行转换,可以设定为:经度整数信息进行mod8运算,获得运算结果,并将运算结果转换为二进制数据,作为3位经度整数信息占用位数上的数据;第三经度分秒信息转换规则用于对经度坐标内的经度分秒信息进行转换,可以设定为:利用经度分秒信息转换公式:
λ=L*cosα
计算出10位经度分秒信息占用位数上的数据,α为纬度,L为赤道处1度经线间隔的纬线长度。
第三数据占用位数主要用于存放属于第三高纬度区域(北纬82.8°—北纬90°)内的经度坐标经过转换后的经度整数信息和经度分秒信息。其中,3位经度整数信息占用位数用于存放经过第三经度整数信息转换规则转换后的经度整数信息;10位经度分秒信息占用位数用于存放经过第三经度分秒信息转换规则转换后的经度分秒信息。例如,第三数据占用位数为13bit数据占用位数-“yyyx xxxx xxxx x”,其中,“yyy”为3位经度整数信息占用位数,“x xxxx xxxx x”为10位经度分秒信息占用位数。
S212:按照所述目标坐标转换规则中的第一经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述12位经度分秒信息占用位数上的数据,并执行S215;
举例说明,S201获取到的经度分秒信息为“0.934°”,利用经度分秒信息转换公式:
λ=L*cosα
计算出12位经度分秒信息占用位数上的数据,α为纬度,L为赤道处1度经线间隔的纬线长度。
S213:按照所述目标坐标转换规则中的第二经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述11位经度分秒信息占用位数上的数据,并执行S215。
S214:按照所述目标坐标转换规则中的第三经度整数信息转换规则,将所述经度整数信息进行mod8运算,获得运算结果,并将所述运算结果转换为二进制数据,作为所述3位经度整数信息占用位数上的数据,并执行S216;
举例说明,S201获取到的经度整数信息为“86°”,按照第三经度整数信息转换规则,令经度整数信息“86°”进行mod8运算,获得运算结果“6”,再将该运算结果“6”转换为二进制数据“110”,作为3位经度整数信息占用位数上的数据。
S215:将转换后的所述经度整数信息占用位数上的数据和所述经度分秒信息占用位数上的数据作为第一压缩数据,发送所述第一压缩数据到基站。
S216:按照所述目标坐标转换规则中的第三经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述10位经度分秒信息占用位数上的数据,并执行S215。
本发明实施例所公开的一种定位信息的压缩方法,应用于终端,通过在获取到的终端的纬度坐标大于高纬度区域临界坐标时,从第一高纬度区 域、第二高纬度区域和第三高纬度区域中确定出该纬度坐标所属的目标高纬度区域,进而确定出目标高纬度区域所对应的目标数据占用位数以及目标坐标转换规则,以便按照目标坐标转换规则中的经度整数信息转换规则,将经度整数信息转换为经度整数信息占用位数上的数据,同时按照目标坐标转换规则中的经度分秒信息转换规则,将经度分秒信息转换为经度分秒信息占用位数上的数据,以获得第一压缩数据,并发送至基站;可见,按照纬度高低,将高纬度区域依次划分为第一高纬度区域、第二高纬度区域和第三高纬度区域,实现了对经度坐标的详细划分,以便按照对应的目标数据占用位数以及目标坐标转换规则获取第一压缩数据时,能够在解决了高纬度地区经度坐标失真问题的基础上,进一步提高定位信息的压缩精准度。
在上述附图1所对应实施例的基础上,本发明实施例公开了另一种定位信息的压缩方法,请参见附图3,所述方法具体包括以下步骤:
S301:获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息。
S302:当所述纬度坐标小于或等于所述高纬度区域临界坐标时,利用经度分秒信息转换公式,对所述经度分秒信息进行转换,获得第二压缩数据;
具体的,当纬度坐标小于或等于高纬度区域临界坐标时,证明终端处于低纬度区域或中纬度区域,相应的,基站所处的位置也不属于高纬度区域,即基站覆盖半径不会跨越两条经线,此时,舍弃终端经度坐标的经度整数信息,利用经度分秒信息转换公式:
λ=L*cosα
仅对经度分秒信息进行转换,以获得第二压缩数据,其中,α为纬度,L为赤道处1度经线间隔的纬线长度。
需要说明的是,经过转换后所获得的第二压缩数据可以是由二进制格式组成的13bit数据,如“xxxx xxxx xxxx x”。
S303:发送所述第二压缩数据到所述基站。
本发明实施例所公开的一种定位信息的压缩方法,应用于终端,通过在获取到的终端的纬度坐标小于或等于高纬度区域临界坐标时,利用经度分秒信息转换公式,仅对经度分秒信息进行转换,获得第二压缩数据,并发送至基站,能够在确保经度坐标不失真的基础上,提高定位信息的压缩效率。
本发明实施例公开了一种定位信息的解压缩方法,应用于基站,请参见附图4,所述方法具体包括以下步骤:
S401:获取基站经度坐标;
具体的,基站经度坐标由基站经度整数信息和基站经度分秒信息组成,如E72.5°,其中,72°为基站经度整数信息,0.5°为基站经度分秒信息。
需要说明的是,终端的经度坐标可以是通过基站自带的定位技术来获得。
S402:接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据;
具体的,转换后的经度整数信息占用位数上的数据为经过转换后的终端的经度整数信息;转换后的经度分秒信息占用位数上的数据为经过转化后的终端的经度分秒信息。
S403:确定所述第一压缩数据对应的目标解压缩规则;
具体的,目标解压缩规则主要用于对确定出的第一压缩数据进行解压缩操作,以实现对第一压缩数据的还原,获得终端的实际位置信息。
S404:利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标。
具体的,第一压缩数据是由转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据所共同组成,因此当采用目标解压缩规则对第一压缩数据进行解压缩操作时,会对转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据分别进行相应的解压缩操 作,以还原出终端的经度坐标,从而在第一压缩数据中增加终端经度坐标的经度整数信息,有利于终端经度坐标的还原精准度,解决了直接将基站经度整数信息与解压缩后终端的分秒信息相加所导致的高纬度地区经度坐标失真的问题。
本发明实施例所公开的一种定位信息的解压缩方法,应用于基站,通过获取基站经度坐标,同时从终端接收第一压缩数据,以便确定出与第一压缩数据所对应的目标解压缩规则,进而利用目标解压缩规则和基站经度坐标,对第一压缩数据中转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据分别进行解压缩操作,以还原出终端的经度坐标;可见,增加对终端经度坐标的经度整数信息的解压缩操作,有利于解压缩操作的还原精准度,进而解决了因直接将基站经度整数信息与解压缩后终端的分秒信息相加所导致的高纬度地区经度坐标失真的问题。
在上述附图4所对应实施例的基础上,本发明实施例公开了另一种定位信息的解压缩方法,应用于基站,请参见附图5,所述方法具体包括以下步骤:
S501:获取基站经度坐标。
S502:接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据。
S503:当经度整数信息占用位数为1位,经度分秒信息占用位数为12位时,将第一解压缩规则作为所述目标解压缩规则,所述第一解压缩规则包括第一经度整数信息解压缩规则和第一经度分秒信息解压缩规则;
具体的,第一经度整数信息解压缩规则可以设定为:基站经度坐标中的基站经度整数信息为偶数度,转换后的经度整数信息占用位数上的数据为0时,将所述基站经度整数信息作为所述终端的经度整数信息;基站经度坐标中的基站经度整数信息为偶数度,转换后的经度整数信息占用位数上的数据为1时,将所述基站经度整数信息减1后的数值作为所述终端的经度整数信息;
基站经度坐标中的基站经度整数信息为奇数度,转换后的经度整数信息占用位数上的数据为0时,将所述基站经度整数信息减1后的数值作为所述终端的经度整数信息;基站经度坐标中的基站经度整数信息为奇数度,转换后的经度整数信息占用位数上的数据为1时,将所述基站经度整数信息作为所述终端的经度整数信息。
第一经度分秒信息解压缩规则可以设为:对转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息。
S504:当所述基站经度坐标中的基站经度整数信息为偶数度,所述转换后的经度整数信息占用位数上的数据为0时,按照所述第一经度整数信息解压缩规则,将所述基站经度整数信息作为终端的经度整数信息;
需要说明的是,当基站经度坐标中的基站经度整数信息为偶数度,转换后的经度整数信息占用位数上的数据为1时,按照第一经度整数信息解压缩规则,将基站经度整数信息减1后的数值作为终端的经度整数信息;
或者是,当基站经度坐标中的基站经度整数信息为奇数度,转换后的经度整数信息占用位数上的数据为0时,将基站经度整数信息减1后的数值作为终端的经度整数信息;
又或者是,当基站经度坐标中的基站经度整数信息为奇数度,转换后的经度整数信息占用位数上的数据为1时,将基站经度整数信息作为终端的经度整数信息。
S505:按照所述第一经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
具体的,分秒信息转换主要是将转换后的经度分秒信息占用位数上的数据还原成经度分秒信息的表现形式。
S506:将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标。
本发明实施例所公开的一种定位信息的解压缩方法,应用于基站,通过在经度整数信息占用位数为1位,经度分秒信息占用位数为12位时,将 第一解压缩规则作为目标解压缩规则,进而利用第一解压缩规则中的第一经度整数信息解压缩规则,确定出终端的经度整数信息,并利用第一解压缩规则中的第一经度分秒信息解压缩规则,确定出终端的经度分秒信息,以便将经度整数信息和经度分秒信息相加,还原获得终端的经度坐标;可见,基于经度整数信息占用位数和经度分秒信息占用位数,确定出对应的解压缩规则作为目标解压缩规则,以分别实现对转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据的解压缩操作,可以准确获知终端压缩时所采用的压缩规则,进而提高解压缩操作的还原准确性。
在上述附图4所对应实施例的基础上,本发明实施例公开了另一种定位信息的解压缩方法,应用于基站,请参见附图6,所述方法具体包括以下步骤:
S601:获取基站经度坐标。
S602:接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据。
S603:当经度整数信息占用位数为2位,经度分秒信息占用位数为11位时,将第二解压缩规则作为所述目标解压缩规则,所述第二解压缩规则包括第二经度整数信息解压缩规则和第二经度分秒信息解压缩规则;
具体的,第二经度分秒信息解压缩规则可以设定为:对转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
第二经度整数信息解压缩规则可以设定为:当终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第一偏移量相减,获得终端的经度整数信息;当终端的经度分秒信息小于或等于偏移预设值时,将基站的经度整数信息与第一偏移量相加,获得终端的经度整数信息;
其中,第一偏移量是基站经度坐标中的基站经度整数信息进行mod4运算后获得的第一运算结果,与转换后的经度整数信息占用位数上的数据进行数据格式转换后获得的第二运算结果相减获得的;当转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,将数值4作 为第二运算结果。
S604:按照所述第二经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行数据格式转换,获得终端的经度分秒信息。
S605:当所述终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第一偏移量相减,获得终端的经度整数信息,其中,所述第一偏移量是所述基站经度坐标中的基站经度整数信息进行mod4运算后获得的第一运算结果,与所述转换后的经度整数信息占用位数上的数据进行数据格式转换后获得的第二运算结果相减获得的;当所述转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,将4作为所述第二运算结果;
需要说明的是,当终端的经度分秒信息小于或等于偏移预设值时,将基站的经度整数信息与第一偏移量相加,获得终端的经度整数信息。
偏移预设值可以是预先设定的一个分秒信息,如0.5°,主要用于识别终端位于基站的左侧还是右侧。例如,终端的经度分秒信息小于或等于偏移预设值时,终端位于基站的右侧。
其次,当转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,证明经度整数信息可被4整除,此时,将数值4作为第二运算结果。
S606:将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标。
本发明实施例所公开的一种定位信息的解压缩方法,应用于基站,通过在经度整数信息占用位数为2位,经度分秒信息占用位数为11位时,将第二解压缩规则作为目标解压缩规则,进而利用第二解压缩规则中的第二经度整数信息解压缩规则,确定出终端的经度整数信息,并利用第二解压缩规则中的第二经度分秒信息解压缩规则,确定出终端的经度分秒信息,以便将经度整数信息和经度分秒信息相加,还原获得终端的经度坐标;可见,基于经度整数信息占用位数和经度分秒信息占用位数,确定出对应的 解压缩规则作为目标解压缩规则,以分别实现对转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据的解压缩操作,可以准确获知终端压缩时所采用的压缩规则,进而提高解压缩操作的还原准确性。
在上述附图4所对应实施例的基础上,本发明实施例公开了另一种定位信息的解压缩方法,应用于基站,请参见附图7,所述方法具体包括以下步骤:
S701:获取基站经度坐标。
S702:接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据。
S703:当经度整数信息占用位数为3位,经度分秒信息占用位数为10位时,将第三解压缩规则作为所述目标解压缩规则,所述第三解压缩规则包括第三经度整数信息解压缩规则和第三经度分秒信息解压缩规则;
具体的,第三经度分秒信息解压缩规则可以设定为:对转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
第三经度整数信息解压缩规则可以设定为:当终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第二偏移量相减,获得终端的经度整数信息;当终端的经度分秒信息小于或等于偏移预设值时,将基站的经度整数信息与第二偏移量相加,获得终端的经度整数信息;
其中,第二偏移量是基站经度坐标中的基站经度整数信息进行mod8运算后获得的第三运算结果,与转换后的经度整数信息占用位数上的数据进行数据格式转换后获得的第四运算结果相减获得的;当转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,将数值8作为第四运算结果。
S704:按照所述第三经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息。
S705:当所述终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第二偏移量相减,获得终端的经度整数信息;
需要说明的是,当终端的经度分秒信息小于或等于偏移预设值时,将基站的经度整数信息与第二偏移量相加,获得终端的经度整数信息;
偏移预设值可以是预先设定的一个分秒信息,如0.5°,主要用于识别终端位于基站的左侧还是右侧。例如,终端的经度分秒信息大于偏移预设值时,终端位于基站的左侧。
其次,当转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,证明经度整数信息可被8整除,此时,将数值8作为第四运算结果。
S706:将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标。
本发明实施例所公开的一种定位信息的解压缩方法,应用于基站,通过在经度整数信息占用位数为3位,经度分秒信息占用位数为10位时,将第三解压缩规则作为目标解压缩规则,进而利用第三解压缩规则中的第三经度整数信息解压缩规则,确定出终端的经度整数信息,并利用第三解压缩规则中的第三经度分秒信息解压缩规则,确定出终端的经度分秒信息,以便将经度整数信息和经度分秒信息相加,还原获得终端的经度坐标;可见,基于经度整数信息占用位数和经度分秒信息占用位数,确定出对应的解压缩规则作为目标解压缩规则,以分别实现对转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据的解压缩操作,可以准确获知终端压缩时所采用的压缩规则,进而提高解压缩操作的还原准确性。
本发明实施例公开了一种定位信息的压缩装置,应用于终端,请参见附图8,包括:
获取模块801,用于获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息;
确定模块802,用于当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,所述目标数据占用位数包括经度整 数信息占用位数和经度分秒信息占用位数;
转换模块803,用于按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据;
发送模块804,用于将转换后的所述经度整数信息占用位数上的数据和所述经度分秒信息占用位数上的数据作为第一压缩数据,发送所述第一压缩数据到基站。
本发明实施例所公开的一种定位信息的压缩装置,应用于终端,通过在获取模块801获取到的终端的纬度坐标大于高纬度区域临界坐标时,由确定模块802分别确定出该纬度坐标所属的目标高纬度区域、目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,进而由转换模块803按照目标坐标转换规则,将经度整数信息转换为经度整数信息占用位数上的数据,将经度分秒信息转换为经度分秒信息占用位数上的数据,以获得第一压缩数据,并由发送模块804发送至基站;可见,在终端的纬度坐标属于高纬度区域坐标时,通过将经度坐标的整数信息按照对应的目标坐标转换规则,也随经度分秒信息一起进行转换压缩,发送至基站进行还原,解决了高纬度地区经度坐标失真的问题,进而确保了被压缩的定位信息的还原准确率。
本发明实施例提供的各个模块的工作过程,请参照附图1所对应的方法流程图,具体工作过程不再赘述。
本发明实施例公开了一种定位信息的解压缩装置,应用于基站,请参见附图9,包括:
获取模块901,用于获取基站经度坐标;
接收模块902,用于接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据;
确定模块903,用于确定所述第一压缩数据对应的目标解压缩规则;
解压缩模块904,用于利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标。
本发明实施例所公开的一种定位信息的解压缩装置,应用于基站,通过获取模块901获取基站经度坐标,同时接收模块902从终端接收第一压缩数据,以便确定模块903确定出与第一压缩数据所对应的目标解压缩规则,进而由解压缩模块904利用目标解压缩规则和基站经度坐标,对第一压缩数据中转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据分别进行解压缩操作,以还原出终端的经度坐标;可见,增加对终端经度坐标的经度整数信息的解压缩操作,有利于解压缩操作的还原精准度,进而解决了因直接将基站经度整数信息与解压缩后终端的分秒信息相加所导致的高纬度地区经度坐标失真的问题。
本发明实施例提供的各个模块的工作过程,请参照附图4所对应的方法流程图,具体工作过程不再赘述。
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (17)

  1. 一种定位信息的压缩方法,其特征在于,应用于终端,包括:
    获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息;
    当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,所述目标数据占用位数包括经度整数信息占用位数和经度分秒信息占用位数;
    按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据;
    将转换后的所述经度整数信息占用位数上的数据和所述经度分秒信息占用位数上的数据作为第一压缩数据,发送所述第一压缩数据到基站。
  2. 根据权利要求1所述的压缩方法,其特征在于,所述当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,包括:
    当所述纬度坐标大于高纬度区域临界坐标时,判断所述纬度坐标是否属于第一高纬度区域;
    若所述纬度坐标属于所述第一高纬度区域,将所述第一高纬度区域作为所述目标高纬度区域,将所述第一高纬度区域对应的第一数据占用位数作为所述目标数据占用位数,将所述第一高纬度区域对应的第一坐标转换规则作为所述目标坐标转换规则,所述第一数据占用位数包括1位经度整数信息占用位数和12位经度分秒信息占用位数,所述第一坐标转换规则包括第一经度整数信息转换规则和第一经度分秒信息转换规则。
  3. 根据权利要求2所述的压缩方法,其特征在于,所述按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据, 包括:
    判断所述经度整数信息是否为偶数度;
    若所述经度整数信息为偶数度,按照所述目标坐标转换规则中的第一经度整数信息转换规则,将所述经度整数信息转换为0,作为所述1位经度整数信息占用位数上的数据;
    若所述经度整数信息为奇数度时,按照所述目标坐标转换规则中的第一经度整数信息转换规则,将所述经度整数信息转换为1,作为所述1位经度整数信息占用位数上的数据;
    按照所述目标坐标转换规则中的第一经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述12位经度分秒信息占用位数上的数据。
  4. 根据权利要求2所述的压缩方法,其特征在于,在判断出所述纬度坐标不属于所述第一高纬度区域之后,还包括:
    判断所述纬度坐标是否属于第二高纬度区域,所述第二高纬度区域大于所述第一高纬度区域;
    若所述纬度坐标属于所述第二高纬度区域,将所述第二高纬度区域作为所述目标高纬度区域,将所述第二高纬度区域对应的第二数据占用位数作为所述目标数据占用位数,将所述第二高纬度区域对应的第二坐标转换规则作为所述目标坐标转换规则,所述第二数据占用位数包括2位经度整数信息占用位数和11位经度分秒信息占用位数,所述第二坐标转换规则包括第二经度整数信息转换规则和第二经度分秒信息转换规则。
  5. 根据权利要求4所述的压缩方法,其特征在于,所述按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据,包括:
    按照所述目标坐标转换规则中的第二经度整数信息转换规则,将所述经度整数信息进行mod4运算,获得运算结果,并将所述运算结果转换为二进制数据,作为所述2位经度整数信息占用位数上的数据;
    按照所述目标坐标转换规则中的第二经度分秒信息转换规则,利用经 度分秒信息转换公式,将所述经度分秒信息转换为所述11位经度分秒信息占用位数上的数据。
  6. 根据权利要求4所述的压缩方法,其特征在于,在判断出所述纬度坐标不属于所述第二高纬度区域之后,还包括:
    判断所述纬度坐标是否属于第三高纬度区域,所述第三高纬度区域大于所述第二高纬度区域;
    若所述纬度坐标属于所述第三高纬度区域,将所述第三高纬度区域作为所述目标高纬度区域,将所述第三高纬度区域对应的第三数据占用位数作为所述目标数据占用位数,将所述第三高纬度区域对应的第三坐标转换规则作为所述目标坐标转换规则,所述第三数据占用位数包括3位经度整数信息占用位数和10位经度分秒信息占用位数,所述第三坐标转换规则包括第三经度整数信息转换规则和第三经度分秒信息转换规则。
  7. 根据权利要求6所述的压缩方法,其特征在于,所述按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据,包括:
    按照所述目标坐标转换规则中的第三经度整数信息转换规则,将所述经度整数信息进行mod8运算,获得运算结果,并将所述运算结果转换为二进制数据,作为所述3位经度整数信息占用位数上的数据;
    按照所述目标坐标转换规则中的第三经度分秒信息转换规则,利用经度分秒信息转换公式,将所述经度分秒信息转换为所述10位经度分秒信息占用位数上的数据。
  8. 根据权利要求1所述的压缩方法,其特征在于,还包括:
    当所述纬度坐标小于或等于所述高纬度区域临界坐标时,利用经度分秒信息转换公式,对所述经度分秒信息进行转换,获得第二压缩数据;
    发送所述第二压缩数据到所述基站。
  9. 一种定位信息的解压缩方法,其特征在于,应用于基站,包括:
    获取基站经度坐标;
    接收终端发送的第一压缩数据,所述第一压缩数据包括转换后的经度 整数信息占用位数上的数据和经度分秒信息占用位数上的数据;
    确定所述第一压缩数据对应的目标解压缩规则;
    利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标。
  10. 根据权利要求9所述的解压缩方法,其特征在于,所述确定所述第一压缩数据对应的目标解压缩规则,包括:
    当经度整数信息占用位数为1位,经度分秒信息占用位数为12位时,将第一解压缩规则作为所述目标解压缩规则,所述第一解压缩规则包括第一经度整数信息解压缩规则和第一经度分秒信息解压缩规则。
  11. 根据权利要求10所述的解压缩方法,其特征在于,利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标,包括:
    当所述基站经度坐标中的基站经度整数信息为偶数度,所述转换后的经度整数信息占用位数上的数据为0时,按照所述第一经度整数信息解压缩规则,将所述基站经度整数信息作为终端的经度整数信息;
    或者,当所述基站经度坐标中的基站经度整数信息为偶数度,所述转换后的经度整数信息占用位数上的数据为1时,按照所述第一经度整数信息解压缩规则,将所述基站经度整数信息减1后的数值作为所述终端的经度整数信息;
    或者,当所述基站经度坐标中的基站经度整数信息为奇数度,所述转换后的经度整数信息占用位数上的数据为0时,将所述基站经度整数信息减1后的数值作为所述终端的经度整数信息;
    或者,当所述基站经度坐标中的基站经度整数信息为奇数度,所述转换后的经度整数信息占用位数上的数据为1时,将所述基站经度整数信息作为所述终端的经度整数信息;
    按照所述第一经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
    将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标。
  12. 根据权利要求9所述的解压缩方法,其特征在于,所述确定所述第一压缩数据对应的目标解压缩规则,包括:
    当经度整数信息占用位数为2位,经度分秒信息占用位数为11位时,将第二解压缩规则作为所述目标解压缩规则,所述第二解压缩规则包括第二经度整数信息解压缩规则和第二经度分秒信息解压缩规则。
  13. 根据权利要求12所述的解压缩方法,其特征在于,利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标,包括:
    按照所述第二经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
    当所述终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第一偏移量相减,获得终端的经度整数信息;
    或者,当终端的经度分秒信息小于或等于所述偏移预设值时,将基站的经度整数信息与第一偏移量相加,获得终端的经度整数信息;
    将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标;
    其中,所述第一偏移量是所述基站经度坐标中的基站经度整数信息进行mod4运算后获得的第一运算结果,与所述转换后的经度整数信息占用位数上的数据进行数据格式转换后获得的第二运算结果相减获得的;当所述转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,将4作为所述第二运算结果。
  14. 根据权利要求9所述的解压缩方法,其特征在于,所述确定所述第一压缩数据对应的目标解压缩规则,包括:
    当经度整数信息占用位数为3位,经度分秒信息占用位数为10位时,将第三解压缩规则作为所述目标解压缩规则,所述第三解压缩规则包括第三经度整数信息解压缩规则和第三经度分秒信息解压缩规则。
  15. 根据权利要求14所述的解压缩方法,其特征在于,利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标,包括:
    按照所述第三经度分秒信息解压缩规则,对所述转换后的经度分秒信息占用位数上的数据进行分秒信息转换,获得终端的经度分秒信息;
    当所述终端的经度分秒信息大于偏移预设值时,将基站的经度整数信息与第二偏移量相减,获得终端的经度整数信息;
    或者,当终端的经度分秒信息小于或等于所述偏移预设值时,将基站的经度整数信息与第二偏移量相加,获得终端的经度整数信息;
    将所述经度整数信息和所述经度分秒信息相加,获得所述终端的经度坐标;
    其中,所述第二偏移量是所述基站经度坐标中的基站经度整数信息进行mod8运算后获得的第三运算结果,与所述转换后的经度整数信息占用位数上的数据进行数据格式转换后获得的第四运算结果相减获得的;当所述转换后的经度整数信息占用位数上的数据进行数据格式转换后的数值为0时,将8作为所述第四运算结果。
  16. 一种定位信息的压缩装置,其特征在于,应用于终端,包括:
    获取模块,用于获取终端的定位信息,所述定位信息包括经度坐标和纬度坐标,所述经度坐标包括经度整数信息和经度分秒信息;
    确定模块,用于当所述纬度坐标大于高纬度区域临界坐标时,确定所述纬度坐标所属的目标高纬度区域、所述目标高纬度区域对应的目标数据占用位数以及目标坐标转换规则,所述目标数据占用位数包括经度整数信息占用位数和经度分秒信息占用位数;
    转换模块,用于按照所述目标坐标转换规则,将所述经度整数信息转换为所述经度整数信息占用位数上的数据,将所述经度分秒信息转换为所述经度分秒信息占用位数上的数据;
    发送模块,用于将转换后的所述经度整数信息占用位数上的数据和所述经度分秒信息占用位数上的数据作为第一压缩数据,发送所述第一压缩数据到基站。
  17. 一种定位信息的解压缩装置,其特征在于,应用于基站,包括:
    获取模块,用于获取基站经度坐标;
    接收模块,用于接收终端发送的第一压缩数据,所述第一压缩数据包 括转换后的经度整数信息占用位数上的数据和经度分秒信息占用位数上的数据;
    确定模块,用于确定所述第一压缩数据对应的目标解压缩规则;
    解压缩模块,用于利用所述目标解压缩规则和所述基站经度坐标,对所述第一压缩数据进行解压缩操作,获得终端的经度坐标。
PCT/CN2018/096790 2018-07-24 2018-07-24 一种定位信息的压缩、解压缩方法及装置 WO2020019152A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/096790 WO2020019152A1 (zh) 2018-07-24 2018-07-24 一种定位信息的压缩、解压缩方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/096790 WO2020019152A1 (zh) 2018-07-24 2018-07-24 一种定位信息的压缩、解压缩方法及装置

Publications (1)

Publication Number Publication Date
WO2020019152A1 true WO2020019152A1 (zh) 2020-01-30

Family

ID=69181133

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/096790 WO2020019152A1 (zh) 2018-07-24 2018-07-24 一种定位信息的压缩、解压缩方法及装置

Country Status (1)

Country Link
WO (1) WO2020019152A1 (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167605A (zh) * 2013-03-07 2013-06-19 哈尔滨工业大学 一种卫星辅助信号覆盖图建立/更新的WiFi室外定位方法
CN103874017A (zh) * 2014-01-20 2014-06-18 杭州承联通信技术有限公司 一种卫星定位数据传输方法

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167605A (zh) * 2013-03-07 2013-06-19 哈尔滨工业大学 一种卫星辅助信号覆盖图建立/更新的WiFi室外定位方法
CN103874017A (zh) * 2014-01-20 2014-06-18 杭州承联通信技术有限公司 一种卫星定位数据传输方法

Similar Documents

Publication Publication Date Title
CN112822491B (zh) 一种图像数据的编码、解码方法及装置
WO2016112836A1 (zh) 一种定位信息传输的方法、装置及系统
CN103874017B (zh) 一种卫星定位数据传输方法
WO2016112548A1 (zh) 一种位置信息获取方法和设备
WO2021208856A1 (zh) 一种定位参考信号接收方法及用户设备
WO2014134805A1 (zh) 数据压缩方法、还原方法,装置及系统
US9059970B1 (en) Method of compressing and decompressing I/Q sample data in cloud radio access network
WO2020125527A1 (zh) 数据压缩方法、装置、计算机设备和存储介质
CN109831409A (zh) 数据传输方法、装置、计算机可读存储介质及电子设备
CN103428284A (zh) 基于云技术的车载网络通话方法
CN105763287A (zh) 数据传输方法及装置
CN102625001A (zh) 基于手机通讯获取对方归属地天气情况的系统及方法
JPH07193619A (ja) デジタル電話機及びその動作方法
WO2020019152A1 (zh) 一种定位信息的压缩、解压缩方法及装置
CN101615945A (zh) 基于时分多址的数字同频中转方法及系统
CN110769361B (zh) 一种定位信息的压缩、解压缩方法及装置
CN107079272B (zh) 一种建立无线承载的方法及网络设备
WO2019149210A1 (zh) 一种数据压缩方法、解压缩方法、发送端及接收端
CN113365210B (zh) 一种卫星定位数据压缩方法
CN102843217B (zh) 基于网络编码和中继的d2d通信系统及其实现方法
CN209767520U (zh) 一种超长待机的耳塞对讲机
WO2017008751A1 (zh) 一种定位信息传输的方法及通信设备
KR102389035B1 (ko) 압축 데이터 송수신 방법 및 이를 위한 장치
KR102629788B1 (ko) 데이터 전송 방법 및 장치
CN109890005B (zh) 多功能大数据通信系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18927691

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18927691

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 02/07/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18927691

Country of ref document: EP

Kind code of ref document: A1