Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

合并边界报错 #110

Closed
hejiagail opened this issue Nov 12, 2023 · 4 comments
Closed

合并边界报错 #110

hejiagail opened this issue Nov 12, 2023 · 4 comments

Comments

@hejiagail
Copy link

尝试合并边界:
beijing = get_adm_maps(province='北京市', only_polygon=True, record='first')
tianjin = get_adm_maps(province='天津市', only_polygon=True, record='first')
hebei = get_adm_maps(province='河北省', only_polygon=True, record='first')

jingjinji = beijing + tianjin + hebei
报错:
TypeError Traceback (most recent call last)
Cell In[33], line 9
6 tianjin = get_adm_maps(province='天津市', only_polygon=True, record='first')
7 hebei = get_adm_maps(province='河北省', only_polygon=True, record='first')
----> 9 jingjinji = beijing + tianjin + hebei
11 fig = plt.figure(figsize=(5,5))
12 ax = fig.add_subplot(111, projection=ccrs.PlateCarree())

TypeError: unsupported operand type(s) for +: 'MultiPolygon' and 'MultiPolygon'

@Clarmy
Copy link
Member

Clarmy commented Nov 13, 2023

版本号是多少?

@hejiagail
Copy link
Author

cnmaps 为1.1.0版本, python 是3.11

@Clarmy
Copy link
Member

Clarmy commented Nov 13, 2023

@hejiagail 升级到最新版本,用pip 安装: pip install -U cnmaps

@hejiagail
Copy link
Author

好的,已解决,感谢🙏

@Clarmy Clarmy closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants