File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,27 @@ struct GeobufPlus
10
10
11
11
static std::string encode (const Planet &planet) { return " " ; }
12
12
13
- GeobufPlus (const std::string &header) {}
13
+ GeobufPlus () = default ;
14
14
15
+ void init (const std::string &header_bytes) {
16
+ }
15
17
mapbox::geojson::feature_collection decode (const std::string &bytes) const
16
18
{
19
+ return {};
20
+ }
21
+
22
+ mapbox::geojson::feature decode_one_feature (const char *ptr) const
23
+ {
24
+ return mapbox::geojson::feature{};
17
25
}
18
26
19
27
mapbox::geojson::feature_collection
20
28
decode (const void *data, const std::vector<int > &offsets) const
21
29
{
30
+ return {};
31
+ }
32
+
33
+ mapbox::feature::property_map decode_non_features (const char *tail_start, const char *tail_end) const {
22
34
}
23
35
24
36
static std::string encode (const Planet &planet) { return " " ; }
Original file line number Diff line number Diff line change 12
12
13
13
#include " geobuf/geobuf.hpp"
14
14
#include " geobuf/planet.hpp"
15
+ #include " geobuf/geobuf_plus.hpp"
15
16
#include " geobuf/pybind11_helpers.hpp"
16
17
17
18
#include < optional>
@@ -276,6 +277,13 @@ PYBIND11_MODULE(_pybind11_geobuf, m)
276
277
//
277
278
;
278
279
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
+
279
287
cubao::bind_rapidjson (m);
280
288
281
289
auto tf = m.def_submodule (" tf" );
You can’t perform that action at this time.
0 commit comments