Skip to Content
Cloud Native Geospatial Analytics with Apache Sedona
book

Cloud Native Geospatial Analytics with Apache Sedona

by Pawel Tokaj, Jia Yu, Mo Sarwat
December 2025
Intermediate to advanced
338 pages
8h 38m
English
O'Reilly Media, Inc.
Content preview from Cloud Native Geospatial Analytics with Apache Sedona

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

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Azure OpenAI Service for Cloud Native Applications

Azure OpenAI Service for Cloud Native Applications

Adrián González Sánchez
Data Pipelines with Apache Airflow

Data Pipelines with Apache Airflow

Bas Harenslak, Julian de Ruiter
Generative AI on AWS

Generative AI on AWS

Chris Fregly, Antje Barth, Shelbee Eigenbrode

Publisher Resources

ISBN: 9781098173982Errata Page