CN101483779A - Compressing method for two-dimension vector map - Google Patents
Compressing method for two-dimension vector map Download PDFInfo
- Publication number
- CN101483779A CN101483779A CN 200910095594 CN200910095594A CN101483779A CN 101483779 A CN101483779 A CN 101483779A CN 200910095594 CN200910095594 CN 200910095594 CN 200910095594 A CN200910095594 A CN 200910095594A CN 101483779 A CN101483779 A CN 101483779A
- Authority
- CN
- China
- Prior art keywords
- coordinate
- data
- prime
- vector
- data file
- 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
Links
Landscapes
- Compression, Expansion, Code Conversion, And Decoders (AREA)
Abstract
This invention relates to a compression method for 2-dimensional vector map, aiming to solve problems that massive computation amount and data conversion loss in existing compression method. Method according to this invention comprises vector data file compression and property data file compression. Vector data file compression comprises processing contents of vector data file contained in vector map according to layer classification, respectively encoding coordination data and property codes in layer data of same classification, compressing data amount of property codes with redundancy reduction method, compressing coordination data with irregularity coefficient forecast encoding method. Property data file compression comprises compressing property data file contained in vector map and matching with vector data file with BWT algorithm. This invention can enhance compression efficiency and reduce encode/decode complex.
Description
Technical field
The invention belongs to WebGIS map vector transmission and the field of storage relevant, relate to a kind of lossless compression method of two-dimension vector map with mobile GIS.
Background technology
Universal day by day along with the GIS application technology, numerical map has replaced traditional paper map to become the main carrier of storage geographical spatial data gradually.Just because the high speed development of network technology and Wireless Networking technology, WebGIS technology and mobile GIS technology are arisen at the historic moment, and these The Application of Technology all to the efficient storage of a large amount of numerical maps and fast transmission requirement has been proposed, numerical map efficiently be compressed into the key that addresses this problem.
Different with the compression method of grating map; because current application is generalized information system (as: MapInfo widely; ArcGIS) graph data of map vector can be separated with attribute data usually and deposit; with respect to attribute data; the graph data (promptly putting ordered sets) that comprises figure and topological relation information accounts for exhausted vast scale data volume, so the compression method of graph data becomes the key of map vector data compression efficiency.At present developed multiple algorithm in the lossy compression method field of map vector, as Douglas-Peucker algorithm etc., but owing to adopt the method for lossy compression method will cause unpredictable mistake than higher occasion in some required precision, the research of vector map lossless compression has had certain realistic meaning, but at present also fewer to the achievement in research in this field.Existing achievement in research has proposed the compression algorithm at the longitude and latitude coordinate system map vector in the map vector, but owing to different periods, different zones, different purposes make the coordinate system of various maps have very big difference, there is defective in the application of this algorithm.
As previously mentioned, existing achievement is not supported various map vector, and only supports the compression of longitude and latitude coordinate system map vector.Adopt this algorithm, must be converted into the longitude and latitude coordinate system such as national coordinate system, local coordinate system, and then compress earlier with other coordinate systems before the compression.Such method will inevitably increase operand, and since in the transfer process because the restriction of precision can not guarantee that data can't harm in transfer process.
Summary of the invention
The object of the present invention is to provide a kind of lossless compression method of two-dimension vector map.
The compression method of map vector of the present invention comprises vector data file compression and attribute data File Compress.
The compression of described vector data file is that the content in the vector data file that map vector is comprised is separately handled by layer type, specifically: at first the figure layer data of file mid point class, line class, Noodles is separated according to type, coordinate data in the figure layer data of the same type that will separate is separated with attribute codes then, coordinate data is separated with attribute codes encode at last:
Adopt the method amount of compressed data of eliminating redundancy for attribute codes, exactly identical data is merged, different pieces of information is carried out superposition;
Adopt coefficient of irregularity predictive coding method to compress for coordinate data.
Described attribute data File Compress is that the attribute data file with the vector data file coupling that map vector is comprised compresses by BWT (Burrows-Wheeler-Transformation) algorithm.The BWT algorithm is ripe data compression method.
The concrete steps of described coefficient of irregularity predictive coding method are:
Step 1, the number of significant digit of the coordinate figure of all coordinate datas is unified, X coordinate and Y coordinate all with the maximum coordinate figure of number of significant digit as standard, mend 0 behind the coordinate decimal point for the number of significant digit deficiency, convert after reunification coordinate figure to the long integer;
Step 2, keep the coordinate of first coordinate data, since second coordinate data, deduct the X coordinate figure of I-1 coordinate data with the X coordinate figure of I coordinate data, the offset value that obtains replaces the X coordinate figure of I coordinate data, and to offset value with long integer representation; Simultaneously, since second coordinate data, deduct the Y coordinate figure of I-1 coordinate data with the Y coordinate figure of I coordinate data, the offset value that obtains replaces the Y coordinate figure of I coordinate data, and to offset value with long integer representation;
Step 3, with the value of the side-play amount of long integer as conversion coefficient, storing the required byte number of this conversion coefficient is n
x
x
iThe numerical value of expression conversion coefficient, otherwise are represented under other all situations except that above three kinds of situations;
Step 4, before the conversion coefficient of each coordinate data, insert check code, the length of each check code is 1 byte, comprise eight, wherein first is that X coordinate flag bit, second and the 3rd are that X coordinate data section, the 4th are that the sign flag bit, the 5th of X coordinate is that Y coordinate flag bit, the 6th and the 7th are that Y coordinate data section, the 8th are the sign flag bits of Y coordinate;
Data section DataValue carries out assignment according to following formula
Step 5, the conversion coefficient and the corresponding check sign indicating number of each coordinate data are stored.
During decoding, at first the attribute data file is carried out the inverse transformation of BWT algorithm, reduction attribute data file.Vector data file then earlier by the inverse process reduction coordinate data of BWT algorithm and the conversion coefficient of attribute codes, obtains each property value of conversion coefficient according to check code then, by the inverse process reduction coordinate data of " based on the predictive coding of coefficient of irregularity "; According to the map vector form and annex the inverse process reduction file header of algorithm and attribute codes such as paintbrush paintbrush, finally obtain complete vector data file.
The present invention is on the basis of using for reference traditional text or Image Compression characteristics, account for the feature of most sign indicating number amounts at vector data in the map vector, lay particular emphasis at coding side and increase information clustering processing module, and employing " based on the predictive coding of coefficient of irregularity " transform method, can remove information unnecessary in the vector data and simplify data to be encoded, thereby can reduce the coding and decoding complexity,, improve the map vector compression ratio at last by ripe BWT compression algorithm conversion coefficient.The inventive method can improve compression efficiency, and reduces the coding and decoding complexity.
Embodiment
The lossless compression method of n dimensional vector n map adopts following steps:
The first step: the vector data file content in the two-dimension vector map is pressed layer type classification, and the coordinate data in the phase diagram layer data that will separate is then separated with attribute codes and is encoded;
Second step: adopt the method amount of compressed data of eliminating redundancy for attribute codes, exactly identical data is merged, different pieces of information is carried out superposition;
The 3rd step: adopt coefficient of irregularity predictive coding method to compress for coordinate data, the concrete steps of described coefficient of irregularity predictive coding method are:
Step 1, the number of significant digit of the coordinate figure of all coordinate datas is unified, X coordinate and Y coordinate all with the maximum coordinate figure of number of significant digit as standard, mend 0 behind the coordinate decimal point for the number of significant digit deficiency, convert after reunification coordinate figure to the long integer;
Step 2, keep the coordinate of first coordinate data, since second coordinate data, deduct the X coordinate figure of I-1 coordinate data with the X coordinate figure of I coordinate data, the offset value that obtains replaces the X coordinate figure of I coordinate data, and to offset value with long integer representation; Simultaneously, since second coordinate data, deduct the Y coordinate figure of I-1 coordinate data with the Y coordinate figure of I coordinate data, the offset value that obtains replaces the Y coordinate figure of I coordinate data, and to offset value with long integer representation;
Step 3, with the value of the side-play amount of long integer as conversion coefficient, storing the required byte number of this conversion coefficient is n
x
x
iThe numerical value of expression conversion coefficient;
Step 4, before the conversion coefficient of each coordinate data, insert check code, the length of each check code is 1 byte, comprise eight, wherein first is that X coordinate flag bit, second and the 3rd are that X coordinate data section, the 4th are that the sign flag bit, the 5th of X coordinate is that Y coordinate flag bit, the 6th and the 7th are that Y coordinate data section, the 8th are the sign flag bits of Y coordinate;
Data section DataValue carries out assignment according to following formula
Step 5, the conversion coefficient and the corresponding check sign indicating number of each coordinate data are stored.
The 4th step: attribute data file and vector data file in the two-dimension vector map mate one by one, the ratio data of this part is very little comparatively speaking, and the compression of attribute data file is that two-dimension vector map is comprised to compress with the data compression method BWT algorithm of attribute data file vector data file coupling by maturation.
Claims (1)
1, a kind of compression method of two-dimension vector map comprises vector data file compression and attribute data File Compress, it is characterized in that:
The compression of described vector data file is that the content in the vector data file that map vector is comprised is separately handled by layer type, specifically: at first the figure layer data of file mid point class, line class, Noodles is separated according to type, coordinate data in the figure layer data of the same type that will separate is separated with attribute codes then, coordinate data is separated with attribute codes encode at last:
Adopt the method amount of compressed data of eliminating redundancy for attribute codes, exactly identical data is merged, different pieces of information is carried out superposition;
Adopt coefficient of irregularity predictive coding method to compress for coordinate data;
Described attribute data File Compress is that the attribute data file with the vector data file coupling that map vector is comprised compresses by the BWT algorithm;
Wherein, the concrete steps that adopt coefficient of irregularity predictive coding method to compress for coordinate data are:
Step 1, the number of significant digit of the coordinate figure of all coordinate datas is unified, X coordinate and Y coordinate all with the maximum coordinate figure of number of significant digit as standard, mend 0 behind the coordinate decimal point for the number of significant digit deficiency, convert after reunification coordinate figure to the long integer;
Step 2, keep the coordinate of first coordinate data, since second coordinate data, deduct the X coordinate figure of I-1 coordinate data with the X coordinate figure of I coordinate data, the offset value that obtains replaces the X coordinate figure of I coordinate data, and to offset value with long integer representation; Simultaneously, since second coordinate data, deduct the Y coordinate figure of I-1 coordinate data with the Y coordinate figure of I coordinate data, the offset value that obtains replaces the Y coordinate figure of I coordinate data, and to offset value with long integer representation;
Step 3, with the value of the side-play amount of long integer as conversion coefficient, storing the required byte number of this conversion coefficient is n
x
x
iThe numerical value of expression conversion coefficient;
Step 4, before the conversion coefficient of each coordinate data, insert check code, the length of each check code is 1 byte, comprise eight, wherein first is that X coordinate flag bit, second and the 3rd are that X coordinate data section, the 4th are that the sign flag bit, the 5th of X coordinate is that Y coordinate flag bit, the 6th and the 7th are that Y coordinate data section, the 8th are the sign flag bits of Y coordinate;
Data section DataValue carries out assignment according to following formula
Step 5, the conversion coefficient and the corresponding check sign indicating number of each coordinate data are stored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910095594 CN101483779A (en) | 2009-01-22 | 2009-01-22 | Compressing method for two-dimension vector map |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910095594 CN101483779A (en) | 2009-01-22 | 2009-01-22 | Compressing method for two-dimension vector map |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101483779A true CN101483779A (en) | 2009-07-15 |
Family
ID=40880680
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910095594 Pending CN101483779A (en) | 2009-01-22 | 2009-01-22 | Compressing method for two-dimension vector map |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101483779A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101833780A (en) * | 2010-05-07 | 2010-09-15 | 南京大学 | Run expression and operation-based map drawing method |
CN101924562A (en) * | 2010-06-24 | 2010-12-22 | 北京师范大学 | Compression-type coding scheme of curve vector data based on integer wavelet transformation |
WO2011082648A1 (en) * | 2010-01-07 | 2011-07-14 | Dong futian | Method and device for simplifying space data |
CN102255873A (en) * | 2010-05-21 | 2011-11-23 | 南京师范大学 | Method for high efficient transmission of vector data on the basis of pixel non-destructive compression of ordered point set |
WO2012139506A1 (en) * | 2011-04-14 | 2012-10-18 | Dong futian | Method and device for spatial data's processing, simplification and progressive transmission |
CN103457610A (en) * | 2013-08-30 | 2013-12-18 | 百度在线网络技术(北京)有限公司 | Space data coding method and system |
CN103746705A (en) * | 2014-01-20 | 2014-04-23 | 成都乐创信息科技有限公司 | Method for compressing vector data |
CN110515942A (en) * | 2019-07-12 | 2019-11-29 | 同济大学 | A kind of storage and search method serializing lane line map |
CN111522899A (en) * | 2020-07-03 | 2020-08-11 | 武大吉奥信息技术有限公司 | Parallel compression method and device for high compression ratio of three-dimensional vector data |
CN111914045A (en) * | 2020-07-09 | 2020-11-10 | 珠海云洲智能科技有限公司 | Data compression method and device, terminal equipment and storage medium |
-
2009
- 2009-01-22 CN CN 200910095594 patent/CN101483779A/en active Pending
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9576381B2 (en) | 2010-01-07 | 2017-02-21 | Suzhou Xintu Geographic Information Technology Co., Ltd. | Method and device for simplifying space data |
WO2011082648A1 (en) * | 2010-01-07 | 2011-07-14 | Dong futian | Method and device for simplifying space data |
CN101833780B (en) * | 2010-05-07 | 2012-06-20 | 南京大学 | Run expression and operation-based map drawing method |
CN101833780A (en) * | 2010-05-07 | 2010-09-15 | 南京大学 | Run expression and operation-based map drawing method |
CN102255873A (en) * | 2010-05-21 | 2011-11-23 | 南京师范大学 | Method for high efficient transmission of vector data on the basis of pixel non-destructive compression of ordered point set |
CN102255873B (en) * | 2010-05-21 | 2014-01-01 | 南京师范大学 | Method for transmission of vector data on the basis of pixel non-destructive compression of ordered point set |
CN101924562A (en) * | 2010-06-24 | 2010-12-22 | 北京师范大学 | Compression-type coding scheme of curve vector data based on integer wavelet transformation |
WO2012139506A1 (en) * | 2011-04-14 | 2012-10-18 | Dong futian | Method and device for spatial data's processing, simplification and progressive transmission |
CN103457610A (en) * | 2013-08-30 | 2013-12-18 | 百度在线网络技术(北京)有限公司 | Space data coding method and system |
CN103746705A (en) * | 2014-01-20 | 2014-04-23 | 成都乐创信息科技有限公司 | Method for compressing vector data |
CN110515942A (en) * | 2019-07-12 | 2019-11-29 | 同济大学 | A kind of storage and search method serializing lane line map |
CN110515942B (en) * | 2019-07-12 | 2023-08-04 | 同济大学 | Storage and retrieval method of serialized lane line map |
CN111522899A (en) * | 2020-07-03 | 2020-08-11 | 武大吉奥信息技术有限公司 | Parallel compression method and device for high compression ratio of three-dimensional vector data |
CN111914045A (en) * | 2020-07-09 | 2020-11-10 | 珠海云洲智能科技有限公司 | Data compression method and device, terminal equipment and storage medium |
CN111914045B (en) * | 2020-07-09 | 2023-06-30 | 珠海云洲智能科技股份有限公司 | Data compression method, device, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101483779A (en) | Compressing method for two-dimension vector map | |
CN103858433B (en) | Layered entropy encoding and decoding | |
CN102122960B (en) | Multi-character combination lossless data compression method for binary data | |
CN102970043B (en) | A kind of compression hardware system based on GZIP and accelerated method thereof | |
CN101923569B (en) | Storage method of structure type data of real-time database | |
CN112953550B (en) | Data compression method, electronic device and storage medium | |
CN116016606B (en) | Sewage treatment operation and maintenance data efficient management system based on intelligent cloud | |
CN1316828A (en) | Data compaction, transmission, storage and program transmission | |
CN104168085A (en) | Data compression method based on redundant entropy conversion | |
CN103067022A (en) | Nondestructive compressing method, uncompressing method, compressing device and uncompressing device for integer data | |
CN101924562B (en) | Compression-type coding scheme of curve vector data based on integer wavelet transformation | |
CN106407285A (en) | RLE and LZW-based optimized bit file compression and decompression method | |
CN101751440A (en) | Data compression/decompression method and device thereof | |
CN101945286B (en) | Compression coding method, decoding decompression method, device and communication system | |
CN100349160C (en) | Data compression method by finite exhaustive optimization | |
CN103425669A (en) | Number segment and attribution encoding method, number segment and attribution encoding system, attribution query method and attribution query system | |
CN101661631A (en) | Point model rapid lossless compression processing method based on local minimum spanning tree | |
CN103078646A (en) | Dictionary lookup compression and decompression method and device | |
CN102084594A (en) | Method for treating digital data | |
CN105631000A (en) | Terminal-caching data compression method based on mobile terminal position characteristic information | |
CN101877005B (en) | Document mode-based GML compression method | |
CN101655551B (en) | Codec method and codec device for initial data compression of synthetic aperture radar with fixed frame size | |
CN103975593A (en) | Method and apparatus for generating a bitstream of repetitive structure discovery based 3d model compression | |
CN102571101A (en) | Transmission line malfunction travelling wave data compression method | |
CN202931290U (en) | Compression hardware system based on GZIP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20090715 |