In [1]:
import os
import geopandas as gpd
In [2]:
df = gpd.read_file(os.path.join('data', 'ca.json'))
df.head()
Out[2]:
In [3]:
g = df.loc[0, "geometry"]
g
Out[3]:
In [4]:
type(g)
Out[4]:
In [5]:
import cesiumpy
In [6]:
v = cesiumpy.Viewer()
v.entities.add(cesiumpy.Wall(positions=g,
maximumHeights=10e5, minimumHeights=0,
material=cesiumpy.color.RED))
v
Out[6]:
In [ ]: