Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions src/python/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pybind_extension(
":s2cell_bindings",
":s2cell_id_bindings",
":s2latlng_bindings",
":s2latlng_rect_bindings",
":s2point_bindings",
],
)
Expand Down Expand Up @@ -155,6 +156,16 @@ pybind_library(
],
)

pybind_library(
name = "s2latlng_rect_bindings",
srcs = ["s2latlng_rect_bindings.cc"],
deps = [
"//:s2",
"@abseil-cpp//absl/hash",
"@abseil-cpp//absl/strings",
],
)

pybind_library(
name = "s2cell_bindings",
srcs = ["s2cell_bindings.cc"],
Expand Down Expand Up @@ -223,6 +234,12 @@ py_test(
deps = [":s2geometry_pybind"],
)

py_test(
name = "s2latlng_rect_test",
srcs = ["s2latlng_rect_test.py"],
deps = [":s2geometry_pybind"],
)

py_test(
name = "s2cell_id_test",
srcs = ["s2cell_id_test.py"],
Expand Down
4 changes: 4 additions & 0 deletions src/python/module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ void bind_s2cap(py::module& m);
void bind_s2cell(py::module& m);
void bind_s2cell_id(py::module& m);
void bind_s2latlng(py::module& m);
void bind_s2latlng_rect(py::module& m);
void bind_s2point(py::module& m);
// keep-sorted end

Expand Down Expand Up @@ -50,4 +51,7 @@ PYBIND11_MODULE(s2geometry_bindings, m) {

// Deps: r2rect, s1chord_angle, s2cap, s2cell_id, s2latlng, s2point
bind_s2cell(m);

// Deps: r1interval, s1angle, s1interval, s2cell, s2cell_id, s2latlng, s2point
bind_s2latlng_rect(m);
}
Loading
Loading