欢迎光临散文网 会员登陆 & 注册

gee如何显示自己上传的地图文件

2023-05-22 14:20 作者:qmy乐乐  | 我要投稿

在GEE当中都有一个函数叫做

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.

Returns: ui.Map.Layer

eeObject (Collection|Feature|Image|RawMapId)。

要添加到地图中的对象。

visParams (FeatureVisualizationParameters|ImageVisualizationParameters, optional):

可视化参数。对于图像和图像集合,有效参数见ee.data.getMapId。对于特征和特征集合,唯一支持的键是 "color",是一个CSS 3.0颜色字符串或 "RRGGBB "格式的十六进制字符串。当eeObject是一个地图ID时被忽略。

name(字符串,可选)。

图层的名称。默认为 "N层"。

shown(布尔值,可选)。

表示该图层是否应该默认打开的标志。

opacity(数字,可选)。

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

返回:ui.Map.Layer

================================

导入上传的地图数据

var table2= ee.FeatureCollection("projects/*******/*****/central_asia_boundary");

Map.centerObject(table2,5)

Map.addLayer(table2,{},'central_asia_boundary')


gee如何显示自己上传的地图文件的评论 (共 条)

分享到微博请遵守国家法律