python - 如何在 pyqt5 中显示 geemap.link_map
问题描述
基于以下代码,我想在pyqt5中显示一个geemap
class NewMap(QWidget):
def __init__(self):
super().__init__()
self.setMinimumSize(QSize(600, 650))
self.setWindowTitle("open image")
self.setGeometry(350, 60, 500, 470)
ee.Initialize()
image = ee.ImageCollection('COPERNICUS/S2') \
.filterDate('2018-09-01', '2018-09-30') \
.map(lambda img: img.divide(10000)) \
.median()
vis_params = [
{'bands': ['B4', 'B3', 'B2'], 'min': 0, 'max': 0.3, 'gamma': 1.3},
{'bands': ['B8', 'B11', 'B4'], 'min': 0, 'max': 0.3, 'gamma': 1.3},
{'bands': ['B8', 'B4', 'B3'], 'min': 0, 'max': 0.3, 'gamma': 1.3},
{'bands': ['B12', 'B12', 'B4'], 'min': 0, 'max': 0.3, 'gamma': 1.3}
]
labels = [
'Natural Color (B4/B3/B2)',
'Land/Water (B8/B11/B4)',
'Color Infrared (B8/B4/B3)',
'Vegetation (B12/B11/B4)'
]
geemap.linked_maps(rows=2, cols=2, height="400px", center=[38.4151, 21.2712],
zoom=12,
ee_objects=[image], vis_params=vis_params, labels=labels,
label_position="topright")
它也不能添加到 geemap.Map() 我如何在 pyqt5 中显示 geemap.liked_maps?
解决方案
推荐阅读
- vb.net - 如何检查是否在Visual Basic中启用了复选框
- apache - 难道不可能有多个别名吗?
- ios - 为什么相同的代码不能在标签栏控制器的多个实例上运行?
- machine-learning - 在二进制分类中获得每类最重要特征的最佳方法?
- python - 为什么我的函数中出现错误?
- javascript - 如何制作具有锐角弧的画布弧
- elasticsearch - Elasticsearch 完成字段不返回关于使用 _analyze api 响应中返回的令牌进行搜索的建议
- python - Pandas:删除 DataFrame 中值为零的行
- python - Python使用ctrl + c取消进程而不退出程序?
- r - 如何根据文件列表 rbind 文件列表