sinhrks / cesiumpy

Lightweight Python wrapper of Cesium.js for 3D geospatial visualization
Apache License 2.0
77 stars 35 forks source link

Getting `ValueError: Unable to convert to cesiumpy entity` for loading a shapefile #69

Open CMCDragonkai opened 7 years ago

CMCDragonkai commented 7 years ago

Was trying to use:

res = cesiumpy.io.read_shape("pipelines.shp")
v = cseiumpy.Viewer()
v.entities.add(res, material="red")
v

And it gave me that ValueError exception. The pipeline shape file can be downloaded here: https://data.gov.au/dataset/oil-and-gas-pipelines-of-australia

I'm running Python 2 with latest master cesiumpy==0.4.0.dev0 and Shapely==1.5.17.

sinhrks commented 7 years ago

Thx. It looks displayed properly on my env. Can u attach full traceback?

2016-10-23 20 50 01

sinhrks commented 7 years ago

my env: