An Effective GML Documents Compressor

Jihong Guan, Shuigeng Zhou, Yan ChenIEICE Trans. Information and Systems 2008 · OpenReview

Abstract

As Geography Markup Language (GML) becomes the standard for geographic data storage and exchange, the volume of GML data is growing rapidly. However, GML's inherent verbosity, particularly in representing high-precision spatial coordinates, leads to significant storage and transmission overhead. This paper presents GPress, a specialized compressor designed to address these inefficiencies by isolating and applying delta compression to floating-point coordinate data.

The Challenge of GML Verbosity

GML is a specialized subset of XML, inheriting both its flexibility and its extreme verbosity. A unique characteristic of GML is the massive volume of spatial coordinate data represented as text strings. For high-resolution maps, a single coordinate can consume 15 to 20 bytes of text storage. Standard XML compressors like XMill or XMLPPM are optimized for text-rich documents and fail to efficiently compress these long strings of floating-point numbers.

Example of verbose GML coordinate data showing repetitive tags and high-precision floats.

The GPress Methodology

GPress addresses GML bloat through a three-pronged approach: structural separation, semantic grouping, and specialized spatial data compression. The system first strips XML tags and encodes the structure as integers. Non-spatial data is grouped by element name to improve standard text compression.

The core novelty of GPress lies in its Float Point Data Compressor. It isolates X and Y coordinates into separate containers and applies a specialized delta compression algorithm. By exploiting the spatial locality of geographic features—where adjacent points in a line or polygon are closely spaced—GPress calculates the mathematical difference (offset) between sequential coordinates. Instead of storing full text strings, it stores minimal flag bits and variable-length offsets.

The GPress system architecture, illustrating the pipeline from SAX parsing to specialized coordinate compression and final gzip packing.

Experimental Evaluation

GPress was evaluated using real-world GML datasets (10 KB to 135 MB) covering diverse geographic features across North America. The datasets were categorized by geometry types: points, lines, and polygons.

Key Results

  • Compression Efficiency: GPress consistently outperformed general XML compressors. It achieved an average Compression Ratio Improvement Ratio (CRIR) of approximately 20% over XMill for documents containing lines and polygons.
  • Geometry Impact: The effectiveness of delta compression is highest for lines and polygons due to their inherent spatial correlation. Point-only documents showed a lower but still significant improvement of 10%.
  • Performance: Compression time scales linearly. While GPress introduces a slight overhead (approx. 13% slower than XMill) due to coordinate parsing and delta calculation, this is a favorable trade-off for the substantial storage gains.

Conclusion and Future Work

GPress demonstrates that treating GML coordinate strings as mathematical values rather than simple text allows for significantly better compression. By leveraging spatial locality, GPress eliminates the text-encoding penalty of high-precision floats. Future research will focus on making GPress "query-aware," enabling spatial queries to be executed directly on compressed data without full decompression.

Summary updated

Abstract

As GML is becoming the de facto standard for geographic data storage, transmission and exchange, more and more geographic data exists in GML format. I …
BibTeX
@article{guan2008effective,
  author = {Jihong Guan and Shuigeng Zhou and Yan Chen},
  title = {{An Effective GML Documents Compressor}},
  journal = {IEICE Trans. Information and Systems},
  year = {2008},
  url = {https://openreview.net/forum?id=G2oAQtyZT9Y},
}
Figure