mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
Python API: added support for specifying a geometry column when accessing a Fusion Table as a vector data source.
19 lines
567 B
JavaScript
19 lines
567 B
JavaScript
// Count Features
|
|
// #section FeatureCollection:8
|
|
//
|
|
// Count Panoramio photos near SF that mention bridges.
|
|
|
|
var photosNearSF = ee.FeatureCollection(
|
|
'ft:1qpKIcYQMBsXLA9RLWCaV9D0Hus2cMQHhI-ViKHo');
|
|
var brigdePhotos = photosNearSF.filter(ee.Filter.or(
|
|
ee.Filter.contains('title', 'Bridge'),
|
|
ee.Filter.contains('title', 'bridge')));
|
|
|
|
addToMap(photosNearSF, {color: '0040b0'});
|
|
addToMap(brigdePhotos, {color: 'e02070'});
|
|
centerMap(-122.39, 37.7857, 12);
|
|
|
|
alert('There are ' +
|
|
brigdePhotos.aggregate_count('.all') +
|
|
' bridge photos around SF.');
|