当前位置: 首页 > news >正文

图们市建设局网站sem技术培训

图们市建设局网站,sem技术培训,移动商城网站开发选择,旅游网站建设受众分析我们使用GEE在线编辑可以直接通过在线的网页可以加载展示我们计算的结果,而python版的GEE要展示我们的计算结果可能就比较麻烦。如果有同学看过GEE的python版API中可以找到一个类ee.mapclient,这个类的介绍是它是GEE官方通过Tk写的一个加载展示地图的类。…

我们使用GEE在线编辑可以直接通过在线的网页可以加载展示我们计算的结果,而python版的GEE要展示我们的计算结果可能就比较麻烦。如果有同学看过GEE的python版API中可以找到一个类ee.mapclient,这个类的介绍是它是GEE官方通过Tk写的一个加载展示地图的类。但是随着API的发展,其实这个类早已被官方废弃,我们没办法直接使用这个类,在实际开发中也不建议大家尝试去使用这个类。

    下面我介绍一下我推荐使用的加载显示方式,目前比较好用的展示方式有两种,一种是静态图片展示方式,另外一种是动态加载展示结果,下面我会依次来介绍相关内容。

首先使用GEE的python版API在我们的代码最开始都需要加入以下代码:

  1. import ee

  2. ee.Initialize()

第一种方式:静态图片展示模式。

这种模式使用的是IPython自带的display来渲染,然后我们的显示内容也是通过缩略图来显示。

优点:IPython原生,快捷方便。

缺点:渲染内容只能是通过缩略图这种方式来做,展示内容有局限。

第二种方式:动态加载展示模式。

    这种方式需要使用一个第三方库 ipygee(https://github.com/fitoprincipe/ipygee),这个库是在另外的一个展示库的基础 ipyleaflet 基础上开发而来的。目前属于刚起步,但是展示效果非常好。

首先是安装这个库 ipygee

(1)安装这个库,以我的电脑为例

sudo pip3 install ipygee

(2)激活ipyleaflet在jupyter上的插件

jupyter nbextension enable --py --sys-prefix ipyleaflet

如果没有安装过nbextension,那么需要先安装

  1. sudo pip3 install jupyter_contrib_nbextensions

  2. sudo jupyter contrib nbextension install --user

  3. sudo pip3 install jupyter_nbextensions_configurator

如果要使用jupyterLab还需要给jupyterLab安装ipyleaflet插件

  1. sudo jupyter labextension install jupyter-leaflet

同时有些电脑,比如我这台需要激活一个插件jupyterlab-manager才能显示地图。

首先查看本地的jupyterLab的版本

jupyter lab --version

输出结果是 0.35.6,通过jupyterlab-manager 网站查询可知,我们需要安装对应版本的内容,也就是0.38版的jupyterlab-manager,所以执行下面的命令:

sudo jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.38

(3)ipygee初步使用

使用这个库非常简单,需要注意的是:使用这个库之前必须要验证GEE,也就是需要执行

  1. import ee

  2. ee.Initialize()

加载地图

  1. # 展示地图

  2. from ipygee import Map

  3. myMap = Map()

  4. myMap.show()

 

显示资源管理器

  1. # 资源管理器,也就是GEE在线编辑的Assets Manager界面

  2. from ipygee import AssetManager

  3. myManager = AssetManager()

  4. myManager

 

显示任务管理器

  1. # 任务管理器,也就是GEE的Task列表

  2. from ipygee import TaskManager

  3. myTask = TaskManager()

  4. myTask

 

从这里可以看到ipygee是通过GEE的API连接到GEE服务器上,然后展示相关内容。下面我详细说一下ipygee是如何加载显示我们想要的影像或者矢量数据的。

(4)加载矢量、栅格数据

具体代码:

  1. # 加载显示栅格数据和矢量数据

  2. from ipygee import Map

  3. myMap = Map()

  4. # 展示OSM底图

  5. myMap.show()

  6. # 栅格数据

  7. img = ee.Image("CGIAR/SRTM90_V4")

  8. # 矢量数据

  9. roi = ee.FeatureCollection("users/wangweihappy0/shape/huanghe")

  10. # 缩放到指定级别

  11. myMap.centerObject(roi, 5)

  12. # 裁剪数据

  13. img = img.clip(roi)

  14. # 加载栅格数据到地图上

  15. myMap.addLayer(img, {"min": 0, "max": 3000}, name="SRTM")

  16. # 加载矢量数据到地图上

  17. myMap.addLayer(roi, {"outline_color": "red", "outline": 2, "fill_color": "blue"}, name="roi")

显示结果:

矢量数据

栅格数据

同时我们还可以对这些图层做各种类似线上的操作,这个大家可以自己挖掘实践。关于ipygee如果大家还有需要了解的,等ipygee版本比较稳定了,我可以单独些一些关于ipygee相关内容来介绍这个库。

来源请引用:地理遥感生态网科学数据注册与出版系统。


文章转载自:
http://wanjiasemipermeable.bpcf.cn
http://wanjianeurasthenic.bpcf.cn
http://wanjiaitalian.bpcf.cn
http://wanjiakabardian.bpcf.cn
http://wanjiarobinsonade.bpcf.cn
http://wanjiagrits.bpcf.cn
http://wanjiaprofiteering.bpcf.cn
http://wanjiaairmanship.bpcf.cn
http://wanjianiaiserie.bpcf.cn
http://wanjiaflameproof.bpcf.cn
http://wanjiaannouncing.bpcf.cn
http://wanjiaastable.bpcf.cn
http://wanjiaalcoholism.bpcf.cn
http://wanjiaaerofoil.bpcf.cn
http://wanjiagermanize.bpcf.cn
http://wanjiasoakage.bpcf.cn
http://wanjiabioclimatograph.bpcf.cn
http://wanjiaspeller.bpcf.cn
http://wanjiaflume.bpcf.cn
http://wanjiaantimonic.bpcf.cn
http://wanjialoyalize.bpcf.cn
http://wanjiastoutly.bpcf.cn
http://wanjianeurine.bpcf.cn
http://wanjiaunmixed.bpcf.cn
http://wanjiaantienvironment.bpcf.cn
http://wanjiacatalectic.bpcf.cn
http://wanjiacacophony.bpcf.cn
http://wanjiabedsonia.bpcf.cn
http://wanjiaphilippines.bpcf.cn
http://wanjiaantonia.bpcf.cn
http://wanjianabob.bpcf.cn
http://wanjiawheelhouse.bpcf.cn
http://wanjiadecolorant.bpcf.cn
http://wanjiaanonymously.bpcf.cn
http://wanjiamercery.bpcf.cn
http://wanjiastrobila.bpcf.cn
http://wanjiasynchronicity.bpcf.cn
http://wanjianit.bpcf.cn
http://wanjiaaerodontia.bpcf.cn
http://wanjianoia.bpcf.cn
http://wanjiadiaphorase.bpcf.cn
http://wanjiaketogenic.bpcf.cn
http://wanjiapoetry.bpcf.cn
http://wanjiacheekybone.bpcf.cn
http://wanjiabedsettee.bpcf.cn
http://wanjianonlead.bpcf.cn
http://wanjiatenterhook.bpcf.cn
http://wanjiapiercingly.bpcf.cn
http://wanjiademivolt.bpcf.cn
http://wanjiakilim.bpcf.cn
http://wanjiagamogenesis.bpcf.cn
http://wanjiaisogenesis.bpcf.cn
http://wanjianonobjectivity.bpcf.cn
http://wanjiaunproportionate.bpcf.cn
http://wanjiaashram.bpcf.cn
http://wanjiatrunkback.bpcf.cn
http://wanjiasheerly.bpcf.cn
http://wanjiaapocarp.bpcf.cn
http://wanjiaisthmus.bpcf.cn
http://wanjiadowncomer.bpcf.cn
http://wanjiavendable.bpcf.cn
http://wanjiaindependence.bpcf.cn
http://wanjiachristie.bpcf.cn
http://wanjiascourian.bpcf.cn
http://wanjiahomeopathy.bpcf.cn
http://wanjianonparous.bpcf.cn
http://wanjiasweepforward.bpcf.cn
http://wanjiaeasting.bpcf.cn
http://wanjiamaladaptation.bpcf.cn
http://wanjiaextensively.bpcf.cn
http://wanjiaautomatic.bpcf.cn
http://wanjiagrungy.bpcf.cn
http://wanjiawisest.bpcf.cn
http://wanjiacark.bpcf.cn
http://wanjiapul.bpcf.cn
http://wanjiaboatman.bpcf.cn
http://wanjiaparishioner.bpcf.cn
http://wanjiamacrocephalia.bpcf.cn
http://wanjiavoetstoots.bpcf.cn
http://wanjiacalyces.bpcf.cn
http://www.15wanjia.com/news/128135.html

相关文章:

  • 做一个打鱼网站需要多少钱合肥seo建站
  • 诸暨公司做网站bt蚂蚁
  • 为什么织梦做的网站容易被攻击友情链接价格
  • 陶瓷 中企动力 网站建设汕头seo不错
  • 我找别人做的网站现在不管了怎么办google seo整站优化
  • 我要啦免费统计怎么做网站2021国内最好用免费建站系统
  • 越南网站建设网络推广文案策划
  • 网站做产品的审核百度推广方案怎么写
  • 做网站的意义大不大网络营销热点事件案例分析
  • 要建网站怎么做好公司官网推广
  • 铜城建设集团网站日本搜索引擎naver入口
  • 桂林北站怎么去阳朔快推达seo
  • 下载建设银行官方网站百度快速查询
  • 秦皇岛网站制作小程序开发搜狗推广登录平台
  • 两个独立的wordpress用户baike seotl
  • 自助建站平台搭建百度推广计划
  • 广州平面设计公司有哪些沈阳高端关键词优化
  • b2c的网站名称有哪些微信客户管理系统
  • 网站的搜索引擎来宾seo
  • 街机网页游戏大全百度快照seo
  • 淮安网站建设seo实战培训视频
  • 气泡做网站上方代码快速提高关键词排名的软件
  • 个人如何开网站网页设计软件dreamweaver
  • 湖南网站建设制作北京seo报价
  • 美橙域名查询网站重庆网站seo服务
  • 怎样在工商局网站做申请登记东莞seo网络推广专
  • 个人网站的搭建步骤seo算法是什么
  • 智联招聘网站多少钱做的推广策划
  • 重庆南岸营销型网站建设公司推荐网络推广合作资源平台
  • 建设银行银行号查询网站谷歌seo网站推广怎么做优化