Chapter 2. Getting Started with Apache Sedona
In this chapter, you will learn how to do the following:
-
Run, test, and deploy an Apache Sedona Python program.
-
Get started with Apache Sedona using Docker.
-
Use the spatial DataFrame data structure to work with data in Apache Sedona.
-
Use spatial SQL to query and manipulate geospatial data.
-
Visualize spatial data using SedonaKepler.
Throughout the book, we focus on the Apache Sedona OSS version. We primarily focus on the Jupyter Notebook environment, with some code also written as an Apache Sedona program that can be deployed and run on the cluster. We prepared many examples for the book, which you can find in the repository. Please follow the README file to run the examples properly. For convenience, we prepared docker-compose and CLI tools, which can be used interchangeably to run the examples for each chapter or subchapter. Most of the examples are in Python and SQL, but we also provide some Scala examples throughout the book. In Chapter 9, we also provide examples of how to use Apache Sedona with various cloud providers, such as AWS, GCP, or Azure.
How to Run the Apache Sedona Python Program
Apache Sedona is available on PyPI repositories and conda. You can install it using popular Python package managers like pip, uv, conda, or poetry. In this section, we will use uv, which is a powerful and fast Python package and project manager, written in Rust. Please follow the official documentation on how to install uv on your ...
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