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

使用to_file报错。 #127

Open
mgs2-007 opened this issue Jul 9, 2024 · 1 comment
Open

使用to_file报错。 #127

mgs2-007 opened this issue Jul 9, 2024 · 1 comment

Comments

@mgs2-007
Copy link

mgs2-007 commented Jul 9, 2024

版本1.0.0

代码:

from cnmaps import get_adm_maps
china = get_adm_maps(level="国", record= "first", only_polygon=True, wgs84=True)
china.to_file('./china.geojson')  # 默认为 geojson 格式文件

问题:
File "/Users/……/Downloads/……/map/cnampsTest.py", line 3, in
china.to_file('./china.geojson') # 默认为 geojson 格式文件
AttributeError: 'MapPolygon' object has no attribute 'to_file'

另,我想把几个省的地图合并后导出轮廓的经纬度数据,可以做到吗?

@Clarmy
Copy link
Member

Clarmy commented Jul 10, 2024

@mgs2-007 可以,但是需要升级到最新版本。

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