jperiodlangley / cesiumpy

Lightweight Python wrapper of Cesium.js for 3D geospatial visualization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cesiumpy

Latest Docs https://travis-ci.org/sinhrks/cesiumpy.svg?branch=master https://coveralls.io/repos/sinhrks/cesiumpy/badge.svg?branch=master&service=github

Lightweight Python wrapper for Cesium.js. Mainly intended to be used with Jupyter Notebook.

Installation

Use pip.

pip install cesiumpy

Example

Running following script on Jupyter Notebook will show an embedded interactive 3D map.

>>> import cesiumpy

>>> v = cesiumpy.Viewer()
>>> v.entities.add(cesiumpy.Box(dimensions=(40e4, 30e4, 50e4),
...                             material=cesiumpy.color.RED, position=(-120, 40, 0))
>>> v

https://raw.githubusercontent.com/sinhrks/cesiumpy/master/doc/source/_static/viewer01.png

Documentation

Bundled Datasets

Dependencies

  • geopy, traitlets, six and enum34 (Python 3.3 or earlier)
  • (Optional) scipy and shapely

About

Lightweight Python wrapper of Cesium.js for 3D geospatial visualization

License:Apache License 2.0


Languages

Language:Python 100.0%