huifer / tianditu-python

天地图切片(瓦片)以及POI下载
Apache License 2.0
123 stars 34 forks source link

增加路径创建,代码run_spider传递参数错误 #9

Closed liuxinfengabc closed 4 years ago

liuxinfengabc commented 4 years ago

run_spider(z=14, minx=116.55, maxx=116.66, miny=39.94, maxy=39.91) 此处miny 应该大于maxy,否则无法下载图片 增加创建路径: if os.path.exists(BASE_PATH)==False: os.mkdir(BASE_PATH)

if os.path.exists(BASE_PATH_res) == False:
    os.mkdir(BASE_PATH_res)