I want to get the union of a list of multiple LineStrings and Polygons. The variable geoLeyte
contains this list, but if I want to use the .dissolve()
attribute, it gives an error. Who could help me?
var table = table.filter(ee.Filter.eq('ADM2_EN', 'Leyte'))
Map.centerObject(table)
Map.addLayer(table, {}, 'Leyte')
var geoLeyte = table.geometry().geometries()
var union = ee.Geometry.MultiPolygon(geoLeyte).dissolve()
print(union)
See code here https://code.earthengine.google.com/dcc98657ae22092ed4909e02c96965cf