Chapter 3. Loading Geospatial Data into Apache Sedona
For many years the shapefile was the primary geospatial file format. It worked well for smaller datasets and when people analyzed data on local machines. Because modern technology changes rapidly and data proliferates, shapefiles are no longer sufficient due to the lack of support for complex data types like arrays, hard-to-maintain files, scaling issues, column name limits, and much more. People tried to fix the bottlenecks of shapefiles by introducing new data formats such as GeoJSON and GeoPackage. These are suitable data formats in some instances, but also have limitations. In recent years, we have seen the rise of GeoParquet as a standard for storing geospatial analytical data. This helped unlock the native geospatial support in Apache Parquet and Apache Iceberg formats.
Any mature analytical system must allow users to load data from the most common data formats, and Sedona provides this capability. However, some of the data formats mentioned here are not well designed for distributed systems.
In this chapter, we will discuss the foundations of geospatial data formats, such as data serialization techniques like well-known binary and well-known text. We will also discuss which formats to use when processing data efficiently in a distributed fashion.
In the first part of this chapter, we will discuss challenges related to storing tabular vector data formats. Then, we will review vector data serialization techniques and discuss ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access