Chapter 4. Points, Lines, and Polygons: Vector Data Analysis with Spatial SQL
Vector data is the most commonly used data type in spatial data analysis; it simplifies how we describe surrounding objects. You can tell the location of hops, road intersections, and earthquake epicenters using a set of coordinates called points. To describe road networks or rivers, you can use linestrings, and for buildings or prohibited areas or parks in cities, polygons. Long story short, vector primitives are the foundation of any geospatial framework, the key ingredients you can’t ignore.
MapReduce, a distributed execution framework introduced by Google, allowed analyzing an amount of data unimaginable before for vast masses. Then, Apache Hive simplified how we communicate with MapReduce by introducing an SQL wrapper on top of it. While this made analytics even more straightforward to execute, Apache Spark then did something even more remarkable by making processing and transforming the data more concise and significantly faster. The early era of big data frameworks tried to eliminate SQL, but SQL is one of the finest ways to express data transformations. The more people try to bury SQL, the more prominent it becomes.
The complexity of vector data analysis increases not only with the number of records you have in a DataFrame but also with how large your single vector observations are and how they are located relative to each other. Big data tools such as Apache Spark work well for large-scale data ...
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