+ fix formatting
This commit is contained in:
parent
57c8b55079
commit
7c229b457d
1 changed files with 3 additions and 3 deletions
|
@ -148,14 +148,14 @@ int main( int, char*[] )
|
|||
}
|
||||
|
||||
{
|
||||
std::string wkt_in("Polygon((0 0, 10 0,10 10, 0 10,0 0))");
|
||||
std::string wkt_in("Polygon((0 0,10 0,10 10,0 10,0 0))");
|
||||
boost::optional<std::string> result = polygon_bbox_clipping(mapnik::box2d<double>(50,50,150,150),wkt_in);
|
||||
BOOST_TEST(result);
|
||||
BOOST_TEST_EQ(*result,std::string("Polygon EMPTY"));
|
||||
BOOST_TEST_EQ(*result, std::string("GeometryCollection EMPTY"));
|
||||
}
|
||||
#endif
|
||||
{
|
||||
std::string wkt_in("Polygon((0 0, 100 200, 200 0, 0 0 ))");
|
||||
std::string wkt_in("Polygon((0 0,100 200,200 0,0 0 ))");
|
||||
boost::optional<std::string> result = polygon_bbox_clipping(mapnik::box2d<double>(50,50,150,150),wkt_in);
|
||||
BOOST_TEST(result);
|
||||
BOOST_TEST_EQ(*result,std::string("Polygon((50 50,50 100,75 150,125 150,150 100,150 50,50 50))"));
|
||||
|
|
Loading…
Add table
Reference in a new issue