Skip to main content

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 -U 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/write
  • geojson-cpp for GeoJSON representation
    • dependencies
    • forked from mapbox, with some modifications to geojson-cpp and geometry.hpp
      • added z to mapbox::geojson::point
      • added custom_properties to geometry/feature/feature_collection
  • protozero for protobuf encoding/decoding

dbg-macro and doctest are dev dependencies.

Simple roundtrip tests pass, have identical results to JS implementation.

Development

pull all code:

git submodule update --init --recursive

compile & test:

make build
make test_all

make roundtrip_test_js
make roundtrip_test_cpp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybind11_geobuf-0.2.1.tar.gz (3.7 MB view hashes)

Uploaded Source

Built Distributions

pybind11_geobuf-0.2.1-cp312-cp312-win_amd64.whl (665.2 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

pybind11_geobuf-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (863.1 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

pybind11_geobuf-0.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (774.8 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ ARM64

pybind11_geobuf-0.2.1-cp312-cp312-macosx_11_0_arm64.whl (763.0 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

pybind11_geobuf-0.2.1-cp312-cp312-macosx_10_9_x86_64.whl (871.8 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ x86-64

pybind11_geobuf-0.2.1-cp311-cp311-win_amd64.whl (661.4 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

pybind11_geobuf-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (857.1 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

pybind11_geobuf-0.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (777.5 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64

pybind11_geobuf-0.2.1-cp311-cp311-macosx_11_0_arm64.whl (751.9 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

pybind11_geobuf-0.2.1-cp311-cp311-macosx_10_9_x86_64.whl (839.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

pybind11_geobuf-0.2.1-cp310-cp310-win_amd64.whl (661.5 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

pybind11_geobuf-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (858.0 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pybind11_geobuf-0.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (777.2 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64

pybind11_geobuf-0.2.1-cp310-cp310-macosx_11_0_arm64.whl (751.9 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

pybind11_geobuf-0.2.1-cp310-cp310-macosx_10_9_x86_64.whl (839.7 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

pybind11_geobuf-0.2.1-cp39-cp39-win_amd64.whl (626.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

pybind11_geobuf-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (858.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pybind11_geobuf-0.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (778.5 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64

pybind11_geobuf-0.2.1-cp39-cp39-macosx_11_0_arm64.whl (752.1 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

pybind11_geobuf-0.2.1-cp39-cp39-macosx_10_9_x86_64.whl (839.9 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

pybind11_geobuf-0.2.1-cp38-cp38-win_amd64.whl (661.1 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

pybind11_geobuf-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (857.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pybind11_geobuf-0.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (777.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ ARM64

pybind11_geobuf-0.2.1-cp38-cp38-macosx_11_0_arm64.whl (752.0 kB view hashes)

Uploaded CPython 3.8 macOS 11.0+ ARM64

pybind11_geobuf-0.2.1-cp38-cp38-macosx_10_9_x86_64.whl (839.7 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

pybind11_geobuf-0.2.1-cp37-cp37m-win_amd64.whl (648.4 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

pybind11_geobuf-0.2.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (924.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pybind11_geobuf-0.2.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (841.4 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ ARM64

pybind11_geobuf-0.2.1-cp37-cp37m-macosx_10_9_x86_64.whl (811.6 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

pybind11_geobuf-0.2.1-cp36-cp36m-win_amd64.whl (648.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

pybind11_geobuf-0.2.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (924.6 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

pybind11_geobuf-0.2.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (844.0 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.17+ ARM64

pybind11_geobuf-0.2.1-cp36-cp36m-macosx_10_9_x86_64.whl (811.1 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page