mirror of
https://github.com/google/earthengine-api.git
synced 2026-01-25 14:58:09 +00:00
Python API: added support for specifying a geometry column when accessing a Fusion Table as a vector data source.
14 lines
417 B
JavaScript
14 lines
417 B
JavaScript
// From a fusion table
|
|
// #section FeatureCollection:2
|
|
//
|
|
// Select the 'Sonoran desert' feature from the TNC Ecoregions fusion table.
|
|
|
|
var fc = ee.FeatureCollection('ft:1Ec8IWsP8asxN-ywSqgXWMuBaxI6pPaeh6hC64lA')
|
|
.filter(ee.Filter.eq('ECO_NAME', 'Sonoran desert'));
|
|
|
|
// Paint it into a blank image.
|
|
var image1 = ee.Image(0).mask(0);
|
|
addToMap(image1.paint(fc, 0 /* color */, 5 /* width */));
|
|
|
|
centerMap(-93, 40, 4);
|