Skip to content

Commit b848bf7

Browse files
committed
not ready
1 parent bcd9dde commit b848bf7

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/geobuf/geobuf_plus.hpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,27 @@ struct GeobufPlus
1010

1111
static std::string encode(const Planet &planet) { return ""; }
1212

13-
GeobufPlus(const std::string &header) {}
13+
GeobufPlus() = default;
1414

15+
void init(const std::string &header_bytes) {
16+
}
1517
mapbox::geojson::feature_collection decode(const std::string &bytes) const
1618
{
19+
return {};
20+
}
21+
22+
mapbox::geojson::feature decode_one_feature(const char *ptr) const
23+
{
24+
return mapbox::geojson::feature{};
1725
}
1826

1927
mapbox::geojson::feature_collection
2028
decode(const void *data, const std::vector<int> &offsets) const
2129
{
30+
return {};
31+
}
32+
33+
mapbox::feature::property_map decode_non_features(const char *tail_start, const char *tail_end) const {
2234
}
2335

2436
static std::string encode(const Planet &planet) { return ""; }

src/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include "geobuf/geobuf.hpp"
1414
#include "geobuf/planet.hpp"
15+
#include "geobuf/geobuf_plus.hpp"
1516
#include "geobuf/pybind11_helpers.hpp"
1617

1718
#include <optional>
@@ -276,6 +277,13 @@ PYBIND11_MODULE(_pybind11_geobuf, m)
276277
//
277278
;
278279

280+
using GeobufPlus = cubao::GeobufPlus;
281+
py::class_<GeobufPlus>(m, "GeobufPlus", py::module_local()) //
282+
.def(py::init<>())
283+
.def("init", &GeobufPlus::init, "header_bytes"_a)
284+
//
285+
;
286+
279287
cubao::bind_rapidjson(m);
280288

281289
auto tf = m.def_submodule("tf");

0 commit comments

Comments
 (0)