TransWikia.com

Google Earth Engine - displaying forest landcover

Geographic Information Systems Asked on August 16, 2020

My question concerns code from a former thread.

I tried to apply the code in the answer to the new V20 data set, but I doesn’t seem to work the same way. If I change the version it doesn’t visualize the data and everything seems to be masked.

To try and solve the problem and because I’m interested in the 2018 data I changed the code to:

//Load Corine Image 2018
var corine = ee.Image('COPERNICUS/CORINE/V20/100m/2018');
print('CORINE:', corine);
Map.addLayer(corine, {}, 'CORINE');

// Get location of forest (=23-25)
//print(corine.propertyNames());
//var lc_value = corine.get('landcover_class_values');
//print(lc_value);

//Mask all layers that are not forest
var forest = corine.updateMask(corine.gte(23).and(corine.lte(25)))
print('Forest:', forest);
Map.addLayer(forest, {}, 'Forest');

but I still can’t visualize the data. I hope someone is able to tell where the problem is, as I’m new to earth engine and still learning the syntax.

Thanks in advance!

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP