CATTOPY CIMGT不检索Pyspark笔记本中的瓷砖

发布于 2025-01-24 11:02:25 字数 544 浏览 3 评论 0原文

CATTOPY版本0.18.0。这在Juptyer笔记本电脑中起作用:

import cartopy.io.img_tiles as cimgt
import matplotlib.pyplot as plt
extent =[-94, -84, 43, 37]
request=cimgt.GoogleTiles(desired_tile_form='RGB', style='street')
fig = plt.figure(figsize=(16, 12))
ax = plt.axes(projection=ccrs.PlateCarree())
ax.set_extent(extent)
ax.add_image(request, 6)
plt.show()

但是,当我尝试在带有Cartopy 0.18.0添加的cottopy的Pyspark笔记本中做完全相同的事情时,我会收到此错误:

ValueError: A non-empty list of tiles should be provided to merge.

想法吗?

Cartopy version 0.18.0. This works in a juptyer notebook:

import cartopy.io.img_tiles as cimgt
import matplotlib.pyplot as plt
extent =[-94, -84, 43, 37]
request=cimgt.GoogleTiles(desired_tile_form='RGB', style='street')
fig = plt.figure(figsize=(16, 12))
ax = plt.axes(projection=ccrs.PlateCarree())
ax.set_extent(extent)
ax.add_image(request, 6)
plt.show()

However, when I attempt to do the exact same thing in a pyspark notebook with Cartopy 0.18.0 added as a package library, I get this error:

ValueError: A non-empty list of tiles should be provided to merge.

Thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

等待圉鍢 2025-01-31 11:02:25

事实证明,我的Pyspark环境未正确设置。问题已解决。

Turns out my pyspark environment was not set up correctly. Issue is resolved.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文