mirror of
https://github.com/google/earthengine-api.git
synced 2025-12-08 19:26:12 +00:00
19 lines
432 B
Python
19 lines
432 B
Python
#!/usr/bin/env python
|
|
"""Buffer Example.
|
|
|
|
Display the area within 2 kilometers of any San Francisco BART station.
|
|
"""
|
|
|
|
import ee
|
|
import ee.mapclient
|
|
|
|
ee.Initialize()
|
|
ee.mapclient.centerMap(-122.4, 37.7, 11)
|
|
|
|
bart_stations = ee.FeatureCollection(
|
|
'ft:1xCCZkVn8DIkB7i7RVkvsYWxAxsdsQZ6SbD9PCXw')
|
|
buffered = bart_stations.map(lambda f: f.buffer(2000))
|
|
unioned = buffered.union()
|
|
|
|
ee.mapclient.addToMap(unioned, {'color': '800080'})
|