Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add reverse option to constructor of Polygon class

  • Loading branch information...
commit 9ad2fca1372e5fec01454953c90082f82ee57b60 1 parent d6ff7c2
@joto joto authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 include/osmium/geometry/polygon.hpp
View
4 include/osmium/geometry/polygon.hpp
@@ -22,6 +22,7 @@ You should have received a copy of the Licenses along with Osmium. If not, see
*/
+#include <iomanip>
#include <algorithm>
#include <osmium/geometry/from_way.hpp>
@@ -42,8 +43,9 @@ namespace Osmium {
* Create Polygon geometry from a list of nodes.
*/
Polygon(const Osmium::OSM::WayNodeList& way_node_list,
+ bool reverse=false,
osm_object_id_t id=0)
- : FromWay(way_node_list, false, id) {
+ : FromWay(way_node_list, reverse, id) {
if (!way_node_list.is_closed()) {
throw Osmium::Exception::IllegalGeometry();
}

0 comments on commit 9ad2fca

Please sign in to comment.
Something went wrong with that request. Please try again.