cboettig commited on
Commit
34711e7
·
1 Parent(s): 9cbaa3f
pages/02_staticmap.py → fire.py RENAMED
File without changes
pages/01_leafmap.py CHANGED
@@ -1,5 +1,15 @@
1
  import leafmap
2
  import solara
 
 
 
 
 
 
 
 
 
 
3
 
4
  zoom = solara.reactive(2)
5
  center = solara.reactive((20, 0))
@@ -9,7 +19,11 @@ class Map(leafmap.Map):
9
  def __init__(self, **kwargs):
10
  super().__init__(**kwargs)
11
  # Add what you want below
12
- self.add_stac_gui()
 
 
 
 
13
 
14
 
15
  @solara.component
 
1
  import leafmap
2
  import solara
3
+ import solara
4
+ import pystac_client
5
+ import planetary_computer
6
+ import odc.stac
7
+ import geopandas as gpd
8
+ import dask.distributed
9
+ import matplotlib.pyplot as plt
10
+
11
+ # Stashed public copies of NPS polygons and CalFire polygons
12
+
13
 
14
  zoom = solara.reactive(2)
15
  center = solara.reactive((20, 0))
 
19
  def __init__(self, **kwargs):
20
  super().__init__(**kwargs)
21
  # Add what you want below
22
+ nps = gpd.read_file("/vsicurl/https://minio.carlboettiger.info/public-biodiversity/NPS.gdb")
23
+ calfire = gpd.read_file("/vsicurl/https://minio.carlboettiger.info/public-biodiversity/fire22_1.gdb", layer = "firep22_1")
24
+ jtree = nps[nps.PARKNAME == "Joshua Tree"].to_crs(calfire.crs)
25
+ self.add_geojson(jtree)
26
+ #self.add_stac_gui()
27
 
28
 
29
  @solara.component