CATTOPY CIMGT不检索Pyspark笔记本中的瓷砖
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,我的Pyspark环境未正确设置。问题已解决。
Turns out my pyspark environment was not set up correctly. Issue is resolved.