mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
18 lines
464 B
Python
18 lines
464 B
Python
#!/usr/bin/env python
|
|
"""Select rows from a fusion table."""
|
|
|
|
import ee
|
|
import ee.mapclient
|
|
|
|
ee.Initialize()
|
|
ee.mapclient.centerMap(-93, 40, 4)
|
|
|
|
# Select the 'Sonoran desert' feature from the TNC Ecoregions fusion table.
|
|
|
|
fc = (ee.FeatureCollection('ft:1Ec8IWsP8asxN-ywSqgXWMuBaxI6pPaeh6hC64lA')
|
|
.filter(ee.Filter().eq('ECO_NAME', 'Sonoran desert')))
|
|
|
|
# Paint it into a blank image.
|
|
image1 = ee.Image(0).mask(0)
|
|
ee.mapclient.addToMap(image1.paint(fc, 0, 5))
|