Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TimSC/mbtiles-cpp
MBTiles reader and Mapbox Vector Tiles 2.0/2.1 reader/writer in C++
https://github.com/TimSC/mbtiles-cpp
Last synced: 25 days ago
JSON representation
MBTiles reader and Mapbox Vector Tiles 2.0/2.1 reader/writer in C++
- Host: GitHub
- URL: https://github.com/TimSC/mbtiles-cpp
- Owner: TimSC
- License: mit
- Created: 2016-08-19T23:41:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-31T02:41:50.000Z (about 5 years ago)
- Last Synced: 2024-08-03T19:08:42.921Z (4 months ago)
- Language: C++
- Homepage:
- Size: 105 KB
- Stars: 34
- Watchers: 5
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vector-tiles - mbtiles-cpp - C++ library for decoding of mbtiles and vector data into function callbacks. (Parsers & Generators)
README
# mbtiles-cpp
MBTiles reader and vector map pbf v2.0/2.1 reader/writer. C++ library for encoding and decoding of mbtiles and vector data into function callbacks. It can be integrated by compiling it inline with your code by adding appropriate files to your project.The MBTiles spec is at https://github.com/mapbox/mbtiles-spec
Vector tile spec is at https://github.com/mapbox/vector-tile-spec
UTFGrid spec is at https://github.com/mapbox/utfgrid-spec
MBTiles available at https://openmaptiles.org/ and https://www.mapbox.com/
This software may be redistributed under the MIT license.
git clone --recursive [email protected]:TimSC/mbtiles-cpp.git
sudo apt-get install libsqlite3-dev g++ libprotobuf-dev zlib1g-dev
mkdir build
cd build
cmake ..
make
Update pbf files
----------------To update the protobuf files, get vector_tile.proto from https://github.com/mapbox/vector-tile-spec, remove the line "option optimize_for = LITE_RUNTIME;", then
mkdir vector_tile21
protoc vector_tile.proto --cpp_out vector_tile21
protobuf lite is avoided because it doesn't contain SerializeToOstream functionality.