1 |
ddd9a810
|
Adam M. Wilson
|
import ee
|
2 |
|
|
from ee import mapclient
|
3 |
|
|
|
4 |
|
|
import logging
|
5 |
|
|
logging.basicConfig()
|
6 |
|
|
|
7 |
|
|
MY_SERVICE_ACCOUNT = '511722844190@developer.gserviceaccount.com' # replace with your service account
|
8 |
|
|
MY_PRIVATE_KEY_FILE = '/Users/adamw/EarthEngine-privatekey.p12' # replace with you private key file path
|
9 |
|
|
|
10 |
|
|
ee.Initialize(ee.ServiceAccountCredentials(MY_SERVICE_ACCOUNT, MY_PRIVATE_KEY_FILE))
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
|
|
image = ee.Image('srtm90_v4')
|
15 |
|
|
map = ee.mapclient.MapClient()
|
16 |
|
|
map.addOverlay(mapclient.MakeOverlay(image.getMapId({'min': 0, 'max': 3000})))
|