add empty method on new_geometry::polygon
This commit is contained in:
parent
95ca3a02f8
commit
cb6f5a7ca4
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ struct polygon
|
|||
interior_rings.emplace_back(std::move(ring));
|
||||
}
|
||||
|
||||
inline bool empty() const { return exterior_ring.empty(); }
|
||||
|
||||
inline std::size_t num_rings() const
|
||||
{
|
||||
return 1 + interior_rings.size();
|
||||
|
|
Loading…
Add table
Reference in a new issue