Spaces:
Sleeping
Sleeping
add EE credentials
Browse files
app.py
CHANGED
@@ -8,6 +8,11 @@ import pandas as pd
|
|
8 |
from fastkml import kml
|
9 |
import geojson
|
10 |
|
|
|
|
|
|
|
|
|
|
|
11 |
ee.Initialize()
|
12 |
|
13 |
def convert_3d_to_2d(geometry):
|
|
|
8 |
from fastkml import kml
|
9 |
import geojson
|
10 |
|
11 |
+
ee_credentials = os.environ.get("EE")
|
12 |
+
os.makedirs(os.path.expanduser("~/.config/earthengine/"), exist_ok=True)
|
13 |
+
with open(os.path.expanduser("~/.config/earthengine/credentials"), "w") as f:
|
14 |
+
f.write(ee_credentials)
|
15 |
+
|
16 |
ee.Initialize()
|
17 |
|
18 |
def convert_3d_to_2d(geometry):
|