Spaces:
Runtime error
Runtime error
Update pages/00_Teste3D.py
Browse files- pages/00_Teste3D.py +10 -5
pages/00_Teste3D.py
CHANGED
|
@@ -2,8 +2,7 @@
|
|
| 2 |
import solara
|
| 3 |
from leafmap.toolbar import change_basemap
|
| 4 |
import leafmap.maplibregl as leafmap
|
| 5 |
-
|
| 6 |
-
import geemap
|
| 7 |
|
| 8 |
zoom = solara.reactive(2)
|
| 9 |
center = solara.reactive((20, 0))
|
|
@@ -18,8 +17,14 @@ class Map(leafmap.Map):
|
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
-
|
| 22 |
-
self.add_cog_layer(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
data = 'https://github.com/rhamon-garcia/Vector_Data_Test/releases/download/teste/areas.geojson'
|
| 25 |
|
|
@@ -35,7 +40,7 @@ class Map(leafmap.Map):
|
|
| 35 |
|
| 36 |
#Adição do polígono em linha
|
| 37 |
paint = {'line-color': '#ff0000','line-width': 8}
|
| 38 |
-
self.add_geojson(data,layer_type="line", name="
|
| 39 |
|
| 40 |
|
| 41 |
self.add_layer_control()
|
|
|
|
| 2 |
import solara
|
| 3 |
from leafmap.toolbar import change_basemap
|
| 4 |
import leafmap.maplibregl as leafmap
|
| 5 |
+
|
|
|
|
| 6 |
|
| 7 |
zoom = solara.reactive(2)
|
| 8 |
center = solara.reactive((20, 0))
|
|
|
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+
ortomosaico = 'https://ps2.d2s.org/static/projects/b39faa4a-8d6c-4f46-a5d9-889128e7a25e/flights/af96ccd2-bfa4-4cdf-9af6-ebc9755c2c8e/data_products/0f0330f4-b882-44fc-8995-a9e4ce893209/1f63458b-20c5-4313-930e-be2dfa5a3cfc.tif'
|
| 21 |
+
self.add_cog_layer(ortomosaico,name='Ortomosaico',bands=['b1','b2','b3'])
|
| 22 |
+
|
| 23 |
+
vari = 'https://ps2.d2s.org/static/projects/b39faa4a-8d6c-4f46-a5d9-889128e7a25e/flights/af96ccd2-bfa4-4cdf-9af6-ebc9755c2c8e/data_products/3774acdf-f052-41ad-a420-e997fd34c1d5/0dc24e61-a6ff-4cac-86e3-c9dfe9d0e57e.tif'
|
| 24 |
+
self.add_cog_layer(vari,name='Índice VARI',bands=['b1','b2','b3'],visible=False)
|
| 25 |
+
|
| 26 |
+
MDT = 'https://ps2.d2s.org/static/projects/b39faa4a-8d6c-4f46-a5d9-889128e7a25e/flights/af96ccd2-bfa4-4cdf-9af6-ebc9755c2c8e/data_products/8efd828f-2524-4be8-8592-62b6eb60c050/6e0feb10-bab4-49c2-893e-0d7f4536301c.tif'
|
| 27 |
+
self.add_cog_layer(MDT,name='Modelo Digital de Terreno', colormap_name="terrain", visible=False)
|
| 28 |
|
| 29 |
data = 'https://github.com/rhamon-garcia/Vector_Data_Test/releases/download/teste/areas.geojson'
|
| 30 |
|
|
|
|
| 40 |
|
| 41 |
#Adição do polígono em linha
|
| 42 |
paint = {'line-color': '#ff0000','line-width': 8}
|
| 43 |
+
self.add_geojson(data,layer_type="line", name="Áreas de Restauração", paint=paint)
|
| 44 |
|
| 45 |
|
| 46 |
self.add_layer_control()
|