前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Google Earth Engine——Layer error: Description length exceeds maximum.解决办法

Google Earth Engine——Layer error: Description length exceeds maximum.解决办法

作者头像
此星光明
发布2024-02-02 12:32:40
1840
发布2024-02-02 12:32:40
举报

问题:

图片上的问题主要在于imag5.sum().clip(table),

另外,如果是imagecollection的话不能直接裁剪,不许经过一系列运算,也就是镶嵌mosaic()或者.first()编程一张影像才可以进行裁剪和reduceRegion()等一些列最大值、最小值、平均值的计算

Map.addLayer(eeObject, visParams, name, shown, opacity)

Adds a given EE object to the map as a layer.

Returns the new map layer.

Arguments:

eeObject (Collection|Feature|Image|RawMapId):

The object to add to the map.

visParams (FeatureVisualizationParameters|ImageVisualizationParameters, optional):

The visualization parameters. For Images and ImageCollection, see ee.data.getMapId for valid parameters. For Features and FeatureCollections, the only supported key is "color", as a CSS 3.0 color string or a hex string in "RRGGBB" format. Ignored when eeObject is a map ID.

name (String, optional):

The name of the layer. Defaults to "Layer N".

shown (Boolean, optional):

A flag indicating whether the layer should be on by default.

一个标志,表示该层是否应该默认打开。

opacity (Number, optional):

The layer's opacity represented as a number between 0 and 1. Defaults to 1.

图层的不透明度,用0到1之间的数字表示,默认为1。

Returns: ui.Map.Layer

这里一般只选择用前三个参数就够用了!

Map.addLayer(result_ndvi, visParam, 'Matched study area ndvi image method2');

result_ndvi,争取将所有的参数都在外面计算完成,完了直接放变量在这个里面,避免计算超限等等不必要的错误。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2021-12-30,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 问题:
  • Map.addLayer(eeObject, visParams, name, shown, opacity)
    • Arguments:
      • Returns: ui.Map.Layer
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档