GEE下载CDL(Cropland Data Layer)30米耕地利用数据

var roi = table //上传ROI的shp数据
var dataset = ee.ImageCollection('USDA/NASS/CDL')
.filter(ee.Filter.date('2019-01-01', '2019-12-31'))
.first();
var cropLandcover = dataset.select('cropland').clip(roi);

//显示在地图中
Map.centerObject(roi, 10);  
Map.addLayer(cropLandcover, {}, 'Crop Landcover');
Map.addLayer(roi, {color: "red"}, "roi");

//导出数据
Export.image.toDrive({
      image: cropLandcover,
      description: 'cropLandcover',
      region: roi,
    })

你可能感兴趣的:(GEE,经验分享)