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 5. Raster Data Analysis

In many modern OLAP and OLTP databases and data processing engines, you can use some of the geospatial vector functions, but raster processing is, in most cases, missing. Combining them in one library is a rare thing. Apache Sedona provides the capability to analyze and process both vector and raster data types. Raster data is semi-structured data collected by aerial and satellite imagery. To get the information from it, we need sophisticated functions, which Apache Sedona provides for you. In this chapter, we will explain the raster data model used in Apache Sedona and then proceed to discuss loading and writing to raster data. Processing raster data includes operations on pixels in one band and multiple bands. We will cover different raster spatial functions, as well as the zonal statistics and map algebra operations. Spatial join in Apache Sedona is optimized not only for vector data but also for raster data. We will conclude the chapter with an insurance risk modeling use case that combines vector and raster data.

The Raster Data Model

A raster is a spatial data model that defines space as an array of cells called pixels arranged into rows and columns. It is a discrete representation of the space. The simplest raster consists of a single 2D array with values (Figure 5-1). Each raster consists of rows and cells, and the numbering starts from the top left corner and ends at the bottom right. Each coordinate refers to the centroid of the pixel. ...

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

Geospatial Data Analytics on AWS

Geospatial Data Analytics on AWS

Scott Bateman, Janahan Gnanachandran, Jeff DeMuth
Advanced Analytics with PySpark

Advanced Analytics with PySpark

Akash Tandon, Sandy Ryza, Uri Laserson, Sean Owen, Josh Wills

Publisher Resources

ISBN: 9781098173982Errata Page