c++ geobuf with python binding
Project description
geobuf
C++ port of https://github.com/mapbox/geobuf, and with python binding.
Python binding
Install
# from pypi
pip install pybind11_geobuf
# from source
git clone --recursive https://github.com/cubao/geobuf-cpp
pip install ./geobuf-cpp
# or just
pip install git+https://github.com/cubao/geobuf-cpp.git
(you can build wheels for later reuse by pip wheel git+https://github.com/cubao/geobuf-cpp.git
)
See tests/test_geobuf.py
for usage.
Dependencies
All dependencies are header-only, including:
rapidjson
for JSON read/writegeojson-cpp
for GeoJSON representation- dependencies
- forked from mapbox, with some modifications to
geojson-cpp
andgeometry.hpp
- added
z
to mapbox::geojson::point - added
custom_properties
to geometry/feature/feature_collection
- added
protozero
for protobuf encoding/decoding
dbg-macro
and doctest
are dev dependencies.
Simple roundtrip tests pass, have identical results to JS implementation.
Will be throughly tested later.
Development
pull all code:
git submodule update --init --recursive
compile & test:
make build
make test_all
make roundtrip_test_js
make roundtrip_test_cpp
TODO:
- diff js/py/c++
- fix precision test
- python binding
- wasm binding
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pybind11_geobuf-0.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77c42a42555c5579226aa3f684248ce489bd79c84f85e474fdafe912fc90c6ee |
|
MD5 | 1c583eed7262a96976cd165d765acbd4 |
|
BLAKE2b-256 | f34d8a0854a36e703d8d047d118a0544843a98fe444e058dceb9229673c5e99b |
Close
Hashes for pybind11_geobuf-0.0.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3e8765a627656dee91402a81a4ae7f62b3831fdeea649b269f7791bab66415b |
|
MD5 | ed5d86e39474b7c3e0cb3c7f41f91eda |
|
BLAKE2b-256 | b177be721888c5c0f64b8a0bd301164a96a0da0bdb3e50284a1bb8a7ad3e85d8 |
Close
Hashes for pybind11_geobuf-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdfa9935f818f02c9bee8d0de6dde1b7a9c68e4abfe5502d2e6c6b2363ae7098 |
|
MD5 | eecb907f8101e784d9004f4096a2f727 |
|
BLAKE2b-256 | 574b7f7128dcba376a12135ef34ba6e3b09f66b52a0bd1bce56f04b2dd136b90 |
Close
Hashes for pybind11_geobuf-0.0.2-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a79a5e48798eb6fe823043642d8e1b03def652c232d194d1c3943de13a59dcf |
|
MD5 | 373a4de63b67aad80b58fd7864a93e4c |
|
BLAKE2b-256 | cf625f5139227898ec10cd4fe1cde7e62ddcf39478017f37b733028735a055b6 |
Close
Hashes for pybind11_geobuf-0.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d23cce7e4f76365472f4e78377765ff1ad4d5ed389cb8dbaa73101c23830c8f1 |
|
MD5 | 548f2af618a7612b2809470df87a9ca4 |
|
BLAKE2b-256 | 1e9ac899071c5405d69304efd2819280fc1fefaf9126883e02954be6b551ecb4 |
Close
Hashes for pybind11_geobuf-0.0.2-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1c962b280c51c3eaf0338031068abb43a1343dc6161db26a5f591aaf08b9b4f |
|
MD5 | eee9e25e8777035f73e8b6b404e63807 |
|
BLAKE2b-256 | 62b981374a3ca8604571d7ebbced0c9131294824a9a6c1a36ce1e37b2c629b8b |
Close
Hashes for pybind11_geobuf-0.0.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646eb4743cc5bcd22f5d47c21432515be61657076ecbc55c9c85f9920167d389 |
|
MD5 | 7c0aea4403d7daf506a9949061635823 |
|
BLAKE2b-256 | c6dc39a46c36cc918ff8c689b1c31ca1148c42db7912bb87af28ddb8486bfc3a |
Close
Hashes for pybind11_geobuf-0.0.2-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc6f669db18d73c3ffadb6994d8402a36048723f57965fb3c82d76504f468e71 |
|
MD5 | 74b4f0342c3eb811953cca16d91fb4c2 |
|
BLAKE2b-256 | e3bd314a94ed3d7b97c15bb5a6482e47c075b0460d2dd8c2e5361b6fb5244bb1 |