10_geemap学习笔记 | 矢量数据

原文:10_shapefiles

import geemap
geemap.set_proxy(port=10809)
geemap.show_youtube('OlNlqfj4uHo')

在这里插入图片描述

Map =  geemap.Map(center = (38, 105))
Map

在这里插入图片描述

countries_shp = "G:/learnpy/geemap/examples/data/countries.shp"
countries = geemap.shp_to_ee(countries_shp)
Map.addLayer(countries, {}, 'Countries')

在这里插入图片描述

provences_shp = "G:/learnpy/shp/province.shp"
provences = geemap.shp_to_ee(provences_shp)
Map.addLayer(provences, {}, 'provences')

在这里插入图片描述

cities_shp = "G:/learnpy/shp/city.shp"
cities = geemap.shp_to_ee(cities_shp)
Map.addLayer(cities, {}, 'cities')

在这里插入图片描述

geemap.ee_to_shp(countries, filename="G:/learnpy/shp/countries.shp")
Generating URL ...
# Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/f11a323a724eadd452905b2542e9bd53-d6693155c222e8043e354f9a7c6a151e:getFeatures
# Please wait ...
# Data downloaded to G:\learnpy\shp\countries.shp

geemap.ee_export_vector(provences, filename="G:/learnpy/shp/provences1.csv")
# Generating URL ...
# Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/12ceface2cebb396a4c3c8a1663c88ca-299ecd224fe7eb5a6625d60bd1d7e37f:getFeatures
# Please wait ...
# Data downloaded to G:\learnpy\shp\provences1.csv

geemap.ee_export_vector(provences, filename = "G:/learnpy/shp/provences.kml")
# Generating URL ...
# Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/3acc9050c9756d4c8396550976c80b39-b0f0a2739708d8712dab9422ef9fdcc6:getFeatures
# Please wait ...
# Data downloaded to G:\learnpy\shp\provences.kml

geemap.ee_export_vector(provences, filename="G:/learnpy/shp/provences.kmz")
# Generating URL ...
# Downloading data from https://earthengine.googleapis.com/v1alpha/projects/earthengine-legacy/tables/efed6367c8be9d716a5be1c969a8af2c-cc8a3d7974bc8736defc19162b74f2a1:getFeatures
# Please wait ...
# Data downloaded to G:\learnpy\shp\provences.kmz
  • 4
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值