Skip to Content
使用 Apache Sedona 进行云原生地理空间分析 (Chinese Edition)
book

使用 Apache Sedona 进行云原生地理空间分析 (Chinese Edition)

by Pawel Tokaj, Jia Yu, Mo Sarwat
December 2025
Beginner to intermediate
325 pages
4h 23m
Chinese
O'Reilly Media, Inc.
Content preview from 使用 Apache Sedona 进行云原生地理空间分析 (Chinese Edition)

第9章. 使用Apache Sedona与Cloud数据提供商

本作品已使用人工智能进行翻译。欢迎您提供反馈和意见:translation-feedback@oreilly.com

您可将 Apache Sedona 与不同云供应商提供的众多软件即服务(SaaS)和平台即服务(PaaS)产品结合使用。 本章重点介绍Sedona与主流供应商的集成方案,包括Databricks、AWS EMR与Glue、Microsoft Fabric、GCP Dataproc及Wherobots Cloud。本章侧重于不同系统环境下的Apache Sedona安装与使用方法,但可根据核心系统划分为三类:

  • Apache Spark

  • Apache Flink

  • Snowflake(SedonaSnow)

本书已系统阐述Apache Sedona Spark的基础原理,因此针对基于Apache Spark的产品,我们将重点聚焦于安装流程。 同时提供SedonaSnow和Wherobots的示例及功能对比。若您使用的系统基于Apache Spark或Flink却未找到安装流程,请查阅Apache Sedona官方文档。若官方文档仍缺失安装指南,可向Apache Sedona代码库提交问题报告,或遵循您所用系统的官方文档。

前提条件

唯一不变的是变化。每个系统都会随着时间演进。为确保您使用与我们相同的版本,本章示例采用以下版本:

  • Apache Spark 3.5.x

  • Scala 2.12

  • Python 3.11

  • Apache Sedona 1.8.0

  • GeoTools 33.1

  • Apache Flink 1.19.1

  • Databricks 运行时 16.4 LTS

若尚未安装,请先在 Spark 集群上部署 Apache Sedona。随后需向 Apache Spark 应用程序添加两个 jar 文件。首个 jar 文件包含为 Apache Spark 提供的所有地理空间扩展逻辑,例如 KNN、空间分区、GeoParquet 读取器等:

org.apache.sedona:sedona-spark-shaded-{SPARK_V}_{SCALA_V}:jar:{SEDONA_V}
  • SPARK_V是您使用的 Spark主版本号和次版本号,例如 3.5。

  • SCALA_V是您使用的 Scala 的主版本号.次版本号,例如 2.12。

  • SEDONA_V是您使用的 Sedona 的主版本号.次版本号.补丁版本号,例如 1.8.0。

因此,针对Spark 3.5、Scala 2.12和Sedona 1.8.0环境的jar文件路径示例如下:

org.apache.sedona:sedona-spark-shaded-3.5_2.12:jar:1.8.0

Apache Sedona使用的GeoTools实现几何运算(如的intersects算法)。因许可限制,我们无法直接将其包含在源代码中。此外,Apache Sedona需要修改版的GeoTools,因此将其作为独立于官方GeoTools的Maven工件管理。您需额外提供的jar文件为:

org.datasyslab:geotools-wrapper:jar:{SEDONA_V}-{GEOTOOLS_V}
  • SEDONA_V是您使用的 Sedona 的主版本号.次版本号.补丁版本号,例如 1.8.0。

  • GEOTOOLS_V是所用 GeoTools 的主版本号.次版本号 ...

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

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
A Five-Step Guide to Improving Your Employer Brand

A Five-Step Guide to Improving Your Employer Brand

Kimberly A. Whitler, Richard Mosley
Three Essentials for Agentic AI Security

Three Essentials for Agentic AI Security

Paolo Dal Cin, Daniel Kendzior, Yusof Seedat, Renato Marinho
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 0642572292300