导入矢量文件和导出可以看以外博文
var roi = ee.FeatureCollection('projects/a-flyllf0313/assets/yidaiyilu');
Map.centerObject(roi,5.5)
var dataset = ee.ImageCollection('MODIS/061/MCD12Q1');
var igbpLandCover = dataset.select('LC_Type1').mosaic().clip(roi);
var igbpLandCoverVis = {
min: 1.0,
max: 17.0,
palette: [
'05450a', '086a10', '54a708', '78d203', '009900', 'c6b044', 'dcd159',
'dade48', 'fbff13', 'b6ff05', '27ff87', 'c24f44', 'a5a5a5', 'ff6d4c',
'69fff8', 'f9ffa4', '1c0dff'
],
};
Map.addLayer(igbpLandCover, igbpLandCoverVis, 'IGBP Land Cover');
Export.image.toDrive({
image: igbpLandCover,
description: 'igbpLandCover',
region: roi.geometry().bounds(),
maxPixels: 1e13,
folder: 'Landcover'
})
具体制图流程可以看以外博文