Skip to content

mugwort-rc/python-tippecanoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-tippecanoe

License (inherit original)

Mapbox tippecanoe python extension.

generated by pypp (boost.python code generator)

Build

git clone https://github.com/mapbox/tippecanoe
cd tippecanoe
git clone https://github.com/mugwort-rc/python-tippecanoe python
cd python
python setup.py build

Usage

>>> import tippecanoe as tip
>>> geom = tip.mvt_geometry(tip.mvt_moveto, 0, 0)
>>> feat = tip.mvt_feature()
>>> feat.geometry.append(geom)
>>> layer = tip.mvt_layer()
>>> layer.name = "example"
>>> layer.features.append(feat)
>>> tile = tip.mvt_tile()
>>> tile.layers.append(layer)
>>> pbf_data = tile.encode()
>>> pbf_data
'\x1a\x16x\x00\n\x07example(\x00\x12\x07\x18\x00"\x03\t\x00\x00'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors