Skip to content

geometry

Rodrigo E. Principe edited this page Jun 7, 2019 · 4 revisions

geometry

maskInside(image, geometry)

Mask pixels inside a geometry. It return a function to map over an ImageCollection.

var i = ee.Image.random(1)
var masked = tools.geometry.maskInside(i, geometry)
Map.addLayer(masked, {}, 'maskInside')

// over a collection
var col = ee.ImageCollection('collectionID')
var masked_col = col.map(function(i) {return tools.geometry.maskInside(i, geometry)})

https://code.earthengine.google.com/ea3f52d103f985dc2b65ecb213cabd5a

paint(geometry, options)

Paints geometries. Similar to ee.Image.paint but with some differences. Argument options must be an object with none, one or more of the following:

  • fillColor
  • borderColor
  • border (border's thickness)
  • idFld (field that contains a numeric property)

https://code.earthengine.google.com/87c00a8b9796d601553051c84652694f

Clone this wiki locally