MCPcopy
hub / github.com/google/earthengine-api / convertMaskConfig

Function convertMaskConfig

javascript/src/encodable.js:998–1007  ·  view source on GitHub ↗
(maskConfig)

Source from the content-addressed store, hash-verified

996 * @return {!ee.api.TilesetMaskBand}
997 */
998 const convertMaskConfig = (maskConfig) => {
999 let bandIds = [];
1000 if (maskConfig != null && Array.isArray(maskConfig['bandId'])) {
1001 bandIds = maskConfig['bandId'].map((bandId) => bandId || '');
1002 }
1003 // TODO(user): Tileset ID is always set to the default of the empty
1004 // string, if we decide to set the tilesetId on the OnePlatform tileset
1005 // we need to change this.
1006 return new ee.api.TilesetMaskBand({tilesetId: tileset['id'] || '', bandIds});
1007 };
1008
1009 tileset['fileBands'].forEach((fileBand) => {
1010 if (fileBand['maskForAllBands']) {

Callers 1

encodable.jsFile · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected