Legacy Archive (2016): Originally written in Chinese on doubixie.com and translated into English for this edition. All archive posts · Home

A Survey of Spark-Based High-Performance Parallel and Distributed Geospatial Big Data Processing Technologies and Platforms

Original Chinese title: 基于Spark的高性能并行及分布式地理空间大数据处理技术和平台综述

Introduction:
We are living in an era of rapid data growth.

The ways we acquire data, the frequency of collection, storage volumes, data types, and storage formats are all growing at an unprecedented pace, while our methods for processing, understanding, and utilizing that data have lagged behind—leaving us stuck in the dilemma of “information explosion” and “information anxiety.” In the geospatial domain, anyone with a smartphone can now collect location data at any time along with location-tagged video, images, audio, temperature, humidity, speed, orientation, and more. Spatial imagery from satellites and drones is growing even faster, and all kinds of IoT sensors are streaming massive volumes of data every second. There is an urgent need for new IT approaches to process, analyze, and leverage this data so it can provide effective, timely, and accurate support for resource management, environmental protection, urban development, and disaster response.

— GISpark

Traditional GIS software has focused primarily on acquiring, storing, and managing data (of known schemas), supplemented by thematic map displays across spatial and temporal dimensions, along with spatial analysis methods such as spatial statistics, geographic zoning, path analysis, and site-selection optimization. These capabilities have played a vital role in urban construction, transportation, weather forecasting, regional development, and decision support.

Overall, however, traditional GIS still centers on moving data around and displaying it directly, lacking deep data understanding and multi-dimensional analytical methods. Moreover, existing data management and analysis algorithms are difficult to scale onto large-scale distributed parallel computing systems. They cannot meet the demands of exploratory analysis on unstructured, unknown data, fast processing of massive datasets and complex spatiotemporal relationships, large-scale data mining and advanced complex modeling, nor can they easily bring more people in to collaborate smoothly on cross-disciplinary research.

Challenges

  1. System Scalability: Petabyte-scale spatial data storage systems that allow applications to read data efficiently whenever needed.
  2. Interactive Performance: High-efficiency spatial data processing systems must respond within a timeframe users can tolerate.

Focusing on these two challenges, this post surveys the published literature on Spark-based cluster systems for large-scale spatial data, summarized below.

0. What Is Spark

Spark is an Apache project billed as “lightning-fast cluster computing.” It has a thriving open-source community and is currently the most active Apache project.

[Archived image unavailable in 2013–2019 mirror: /images/1.jpg]

Spark technology framework diagram

Spark introduces a concept called a Resilient Distributed Dataset (RDD), an immutable, fault-tolerant, distributed collection of objects that can be operated on in parallel. An RDD can hold any type of object and is created by loading an external dataset or distributing a collection from the driver application.

RDDs support two types of operations:

  1. Transformations are operations (such as map, filter, join, union, etc.) performed on an RDD that create a new RDD to hold the result.
  2. Actions are operations (such as reduce, count, first, etc.) that perform a computation on an RDD and return a value.

1. MongoDB

MongoDB enables data exchange between Hadoop and MongoDB through the MongoDB Connector, improving the efficiency of reading and computing over big data. Building on this, Niskanen integrates MongoDB with Spark using the Spark API.

2. GEOSPARK

GEOSPARK
is an in-memory cluster system for processing large-scale spatial data. Built on the Apache Spark core, it adds support for spatial data types, indexing, and operations. Key technical highlights include:

  1. Uses Apache Spark as the computing framework.
  2. Designs Spatial Resilient Distributed Datasets (SRDDs) on top of RDDs—such as Point RDD and Polygon RDD—and builds APIs around SRDDs so developers can easily write the spatial analysis programs they need.
  3. Organizes and partitions indexed SRDDs using a grid structure across multiple nodes for parallel computation. When building spatial indexes, it also automatically decides whether to create a local index based on the size of the SRDD on each partition, optimizing CPU and memory utilization during computation.

[Archived image unavailable in 2013–2019 mirror: /images/2.png]

GEOSPARK has a three-layer architecture:

  1. Bottom layer — Apache Spark Layer: Handles data reading, writing, and persistence (interacting with HDFS and other storage systems).

  2. Spatial Resilient Distributed Dataset layer, which includes three capabilities:

    1. Supports spatial data in various formats and converts them into SRDDs (points, lines, polygons, etc.).
    2. SRDD Partitioning: Partitions all loaded SRDDs by creating a global grid file, dividing the total storage space into a uniform grid with unique grid IDs and assigning all data into grid cells.
    3. SRDD Indexing: Supports Quad-Tree and R-Tree indexes, while also providing a local indexing mechanism for each SRDD.
  3. Spatial Query Processing layer: Primarily implements spatial queries.

3. Chinese Academy of Surveying and Mapping

Jiping Liu et al. designed a distributed stream-computing-based method and system for spatial data processing, primarily targeting real-time monitoring of large-scale moving objects. It uses a Kafka messaging system to periodically ingest geospatial data and feeds it into a Spark cluster for computation and analysis.

4. State Key Laboratory of Resources and Environmental Information System, Institute of Geographic Sciences and Natural Resources Research, CAS

Xin Wen et al. designed a distributed spatial data analysis framework based on Shark/Spark, consisting of two parts:

  1. Distributed computing layer: Uses the high-performance Spark engine for computation. Unlike other distributed frameworks, Spark introduces Resilient Distributed Datasets (RDDs) for in-memory computation, saving substantial disk input/output (I/O) compared to MapReduce, and uses Shark (Hive on Spark) as the data warehouse to translate queries into RDD operations on Spark.
  2. Data management layer: Uses a hybrid storage approach combining spatial databases with HDFS. By reusing Hive’s StorageHandler mechanism in Shark, it accesses databases or files beyond HDFS. While this enables spatial data loading and distributed spatial querying, it lacks spatial indexing, resulting in modest efficiency.

[Archived image unavailable in 2013–2019 mirror: /images/3.png]

5. GISpark

GISpark is a distributed computing platform provided by SuperMap for large-scale geospatial information processing, modeling, and analysis.
Its foundation is built on OpenStack cloud computing and Docker containerization, with storage backed by large-scale virtualized storage systems such as HDFS, Ceph, and MongoDB for spatiotemporal data. It can handle massive vector, imagery, and streaming datasets while remaining compatible with existing GIS systems.

Using Spark as its distributed parallel computing framework, it integrates the GIScript geospatial scripting engine and various open-source GIS model libraries, alongside the Anaconda scientific computing environment and the Jupyter Notebook interactive web interface. Packed with classic algorithms and model libraries, it provides a continuously evolving modeling system for spatiotemporal big data processing and integrated spatiotemporal analysis.

On the machine learning side, it integrates multiple ML libraries such as TensorFlow and Orange, covering deep learning, object recognition, network analysis, unsupervised classification, dimensionality reduction, random forests, support vector machines, and more. Naturally, it also supports integrating SuperMap GIS’s powerful capabilities in geospatial data processing, cartography, visualization, map publishing, and spatial analysis services, as well as various other commercial software modules.

Users can either consume SuperMap’s services directly or deploy the entire platform themselves. Currently, cloud infrastructure and spatial data loading/processing are already in place, with ongoing development targeting cartography, spatial visualization, advanced spatial analysis, and real-time geospatial network stream processing.

6. GeoMesa Spark

GeoMesa is an open-source distributed cloud computing system developed under the Apache license for large-scale spatial analysis, primarily used to manage and analyze massive spatiotemporal datasets (IoT data, social media, trajectories, and mobile phone data).
GeoMesa Spark provides APIs built on Spark and GeoMesa storage technology for spatial computation, enabling users to create and write RDDs and store and manage them in GeoMesa.

7. Magellan

Magellan is an open-source Spark-based geospatial analytics system that leverages Catalyst for spatial data joins and SparkSQL for spatial queries, with PySpark integration for Python applications. It supports spatial data in ESRI formats, spatial querying, and basic spatial operations (Union, Distance, Intersection, Symmetric Difference, Convex Hull, Envelope, Buffer, Simplify, Valid, Area, Length), providing both Scala and Python APIs.

8. SpatialSpark

SpatialSpark is an open-source project from my lab. Starting in the spring of 2014, our lab shifted its research focus from single-machine computing to distributed geospatial data processing. A major driver was the widespread research and application interest sparked by Hadoop-based distributed geospatial systems—most notably the early work by Mohamed Mokbel’s group at the University of Minnesota (UMN) (SpatialHadoop) and Fusheng Wang’s group at Emory University (later moved to Stony Brook University) (HadoopGIS).

After carefully analyzing their source code, my advisor, Prof. Jianting Zhang, noted that despite Hadoop’s large user base, its architecture suffers from significant drawbacks. One key issue is that to simplify parallelization and support fault tolerance, it relies heavily on unnecessary disk reads and writes. Meanwhile, SpatialHadoop uses JTS and HadoopGIS uses GEOS—open-source libraries—as their underlying geometry engines (for evaluating spatial relationships). Both JTS and its C++ counterpart GEOS were largely designed nearly twenty years ago. Although long-term maintenance has proven their reliability to a degree, algorithms and implementations engineered for computer architectures of two decades ago can hardly achieve optimal performance on modern hardware.

[Archived image unavailable in 2013–2019 mirror: /images/4.png]

Our team pursued distributed geospatial data processing along two tracks: first, integrating single-node parallel spatial indexing, filtering, and refinement algorithms with modern big data systems (such as Spark and Impala); second, building a lightweight distributed execution engine from the ground up to support spatial data processing more natively and efficiently.

We first chose the open-source Cloudera Impala for our first research track, largely because Impala’s backend is written in C++ and had begun supporting SSE4-based SIMD vector operations (mainly for string processing) as well as LLVM-based Just-In-Time (JIT) compilation optimizations. These and other advanced features were very attractive for building a high-performance spatial big data engine.

After spending over six months thoroughly studying Impala’s design and implementation, the team successfully achieved our goal and built the ISP prototype system. It operates at the granularity of Impala row batches, extracting spatial data and building spatial indexes on the fly to support spatial queries (across both multi-core CPUs and GPUs). Even though Impala did not support multi-core CPUs within a single instance, we overcame numerous technical hurdles to design and implement multi-threaded concurrency using OpenMP and Intel TBB. Alongside that, the team built SpatialSpark, a Spark-based prototype system for geospatial big data processing. Unlike Impala—which is an end-user query engine—Spark is designed as a development environment for parallel data processing, making it much easier to extend applications on Spark than on Impala.

Our experimental results show that SpatialSpark achieves higher runtime efficiency than implementations based on Impala and GEOS. Because SpatialSpark relies on in-memory processing and leverages Scala and Spark’s architecture to express and execute parallelism in spatial operations (currently focused on queries) more effectively, it tends to deliver superior performance whenever cluster memory is sufficient.

Summary

As we can see, most teams are still focused on building foundational infrastructure. On the geospatial information service platform side, the current priority across the board is ingesting heterogeneous spatial data and managing and reading it efficiently. Some leading teams have also begun tackling spatial data processing and analysis, yet advanced spatial analysis, cartography, and spatial visualization remain largely unexplored—while multi-dimensional spatiotemporal analytics and machine learning frameworks represent the clear direction ahead and the goal everyone is striving toward.

My Next Steps

  1. Extend SpatialSpark to build a practical, Spark-based big data processing system.
  2. Integrate visualization technologies with geospatial big data processing systems.
  3. Apply high-performance spatial big data processing systems to the seed industry. Given my heavy demand for advanced spatial analytics in the seed sector, a central focus over the next two years will be developing and integrating domain models and algorithms on top of high-performance spatial processing technologies. As an initial entry point, I plan to focus on high-temperature heat stress in maize—combining remote sensing and weather station data to extract high-density usable temperature fields, constructing fine-scale planting environment units, and using in-memory computing for high-performance remote sensing temperature retrieval, spatial interpolation, overlay analysis, correlation analysis, zonal statistics, and spatial clustering. This will support multi-source, comprehensive, real-time spatiotemporal data fusion and modeling for major meteorological disasters in promoting new maize varieties.