corrija o erro no script do google earth engine: ottobacias4 =…
- User
corrija o erro no script do google earth engine: ottobacias4 = ee.FeatureCollection("users/maximomenezesgee/ottobacias_n4_urucuia_teste2"), ottobacias4_2 = ee.FeatureCollection("users/maximomenezesgee/ottobacias_n5_urucuia_alinhadocom4_teste2"); O script: Map.setOptions('SATELLITE'); // 'ROADMAP', 'SATELLITE', 'HYBRID' ou 'TERRAIN'
//________________________________________________________________
var scale_factor = ee.Image("users/maximomenezesgee/Arenizacao_Percentil_Urucuia_Otto4"); var imageLimiar = ee.Image("users/maximomenezesgee/Arenizacao_Percentil_Urucuia_Otto4_freq");
var ottobacias4 = ee.FeatureCollection("users/maximomenezesgee/ottobacias_n4_urucuia_teste2"); var ottobacias4_2 = ee.FeatureCollection("users/maximomenezesgee/ottobacias_n5_urucuia_alinhadocom4_teste2");
//________________________________________________________________
Map.addLayer(ottobacias4_2,{}, 'ottobacias4')
//Visualizar imagem //Map.addLayer(scale_factor, {bands:['R_p80','G_p80','B_p80'],min:0, max:2000}, 'RGB_2')
var slice1 = imageLimiar.updateMask(imageLimiar.lte(8))
var slice2 = imageLimiar.updateMask(imageLimiar.gte(9).and(imageLimiar.lte(12)))
var slice3 = imageLimiar.updateMask(imageLimiar.gte(13))
Map.addLayer(slice1,{min:1,max:16, palette: ['#FF0000','#FF7F00','#FFFF00', '#00FF00', '#0000FF', '#4B0082', '#9400D3'], //['#9400D3','#4B0082','#0000FF', '#00FF00', '#FFFF00', '#FF7F00', '#FF0000'] }, 'Arenizacao_freq1', true);
Map.addLayer(slice2,{min:1,max:16, palette: ['#FF0000','#FF7F00','#FFFF00', '#00FF00', '#0000FF', '#4B0082', '#9400D3'], //['#9400D3','#4B0082','#0000FF', '#00FF00', '#FFFF00', '#FF7F00', '#FF0000'] }, 'Arenizacao_freq2', true);
Map.addLayer(slice3,{min:1,max:16, palette: ['#FF0000','#FF7F00','#FFFF00', '#00FF00', '#0000FF', '#4B0082', '#9400D3'], //['#9400D3','#4B0082','#0000FF', '#00FF00', '#FFFF00', '#FF7F00', '#FF0000'] }, 'Arenizacao_freq3', true);
//var imageVisParam = {"opacity":1,"bands":["LULC"],"min":0,"max":5,"palette":["3300ff","ff0000","fff800","b743ff","49ff00"]};
//Map.addLayer(landCover, imageVisParam, 'LULC', null, 0.6);
//________________________________________________________________
print(ottobacias4, 'ottobacias4')//wts_cd_pfa
//var nomesUCs = ottobacias4.aggregate_array('wts_cd_pfa').distinct().sort();
var nomesUCs = ottobacias4_2.aggregate_array('wts_cd_pfa2').distinct().sort();
print(nomesUCs, 'nomesUCs')
// Função para exportar cada FeatureCollection var exportarFeatureCollection = function(nomeUC, featureCollection) { var nomeArquivo = 'Ottobacias_4_Urucuia_' + nomeUC; //var nomeArquivo = ee.String(UCs_MMA.first().get('NomeAbrev')).cat('_').cat(nomeUC); //var nomeAbrevList = UCs_MMA.aggregate_array('NomeAbrev');
//Exportar shape Export.table.toDrive({ collection: featureCollection, description: nomeArquivo, folder: 'Planet_Poligonos_Veredas', fileFormat: 'SHP' });
- Assistant