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

查找时一次性选择多个省/市/县 #83

Open
Clarmy opened this issue Aug 30, 2022 · 0 comments
Open

查找时一次性选择多个省/市/县 #83

Clarmy opened this issue Aug 30, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Clarmy
Copy link
Member

Clarmy commented Aug 30, 2022

get_adm_maps 选取省/市/县时,只能传入单个,如果我们想要同时选择河南省和安徽省,要么就要写一个循环查找这两个,要么就是一次性查找省级地图,以 geopandas 引擎返回后再在 GeoDataFrame 里筛选。

我认为应该在传入查找名称时,可以传入一个列表,然后在查库的时候就把这多个省市的数据直接查了,让地图查找更优雅。

类似这样的用法:

from cnmaps import get_adm_maps

some_provinces = get_adm_maps(province=['河南省', '安徽省'], levels='省')
@Clarmy Clarmy added the enhancement New feature or request label Aug 30, 2022
@Clarmy Clarmy added this to the v-1.2.* milestone Aug 30, 2022
@Clarmy Clarmy self-assigned this Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant