In [1]:
import os
import geopandas as gpd

In [2]:
df = gpd.read_file(os.path.join('data', 'ca.json'))
df.head()


Out[2]:
fips geometry id name
0 06 POLYGON ((-123.233256 42.006186, -122.378853 4... USA-CA California

In [3]:
g = df.loc[0, "geometry"]
g


Out[3]:

In [4]:
type(g)


Out[4]:
shapely.geometry.polygon.Polygon

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 [ ]: