A high performance library for working with vector tiles.
Provides C++ headers that support rendering geodata into vector tiles and rendering vector tiles into images.
- Mapnik > = v2.2.x:
libmapnik
andmapnik-config
- Protobuf:
libprotobuf
andprotoc
Vector tiles in this code represent a direct serialization of Mapnik layers optimized for space efficient storage and fast deserialization. For those familiar with the Mapnik API vector tiles here can be considered a named array of mapnik::featureset_ptr
whose geometries have been pre-tiled.
For more details see vector-tile-spec.
apt-get install libprotobuf7 libprotobuf-dev protobuf-compiler
apt-add-repository ppa:mapnik/v2.2.0
apt-get update && apt-get install libmapnik libmapnik-dev
brew install protobuf
brew install mapnik
Just type:
make
This builds the protobuf C++ wrappers: vector_tile.pb.cc
and vector_tile.pb.h
Then include vector_tile.pb.cc
in your code. The rest is header only.
Run the C++ tests like:
make test
See examples in examples/c++