pre-commit run --show-diff-on-failure --color=always --all-files [skip ci]

This commit is contained in:
Artem Pavlenko 2024-02-26 14:48:49 +00:00
parent c067399041
commit 38193817de
4 changed files with 16 additions and 13 deletions

View file

@ -45,7 +45,8 @@ struct geometry_is_empty
{
for (auto const& ring : poly)
{
if (!ring.empty()) return false;
if (!ring.empty())
return false;
}
return true;
}
@ -56,7 +57,8 @@ struct geometry_is_empty
{
for (auto const& line : mline)
{
if (!line.empty()) return false;
if (!line.empty())
return false;
}
return true;
}
@ -65,7 +67,8 @@ struct geometry_is_empty
{
for (auto const& poly : mpoly)
{
if (!operator()(poly)) return false;
if (!operator()(poly))
return false;
}
return true;
}

View file

@ -66,7 +66,8 @@ struct create_linestring
std::size_t size = points.size();
// if (size < 2)
//{
// throw std::runtime_error("RFC 7946: For type \"LineString\", the \"coordinates\" member is an array of two or more positions.");
// throw std::runtime_error("RFC 7946: For type \"LineString\", the \"coordinates\" member is an array of
// two or more positions.");
// }
line.reserve(size);
for (auto&& pt : points)

View file

@ -20,7 +20,6 @@
*
*****************************************************************************/
#include "catch.hpp"
#include <mapnik/geometry/is_empty.hpp>