Skip to content
Browse files

fix ogr polygon creation to not reverse ring

  • Loading branch information...
1 parent 578f8f5 commit 802b649d9af7190d1c51154348a7fb5638c576e0 @joto joto committed Feb 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/osmium/geometry/polygon.hpp
View
2 include/osmium/geometry/polygon.hpp
@@ -134,7 +134,7 @@ namespace Osmium {
OGRPolygon* create_ogr_geometry() const {
OGRPolygon* p = new OGRPolygon();
OGRLinearRing* r = new OGRLinearRing();
- for (Osmium::OSM::WayNodeList::const_reverse_iterator it = m_way_node_list->rbegin(); it != m_way_node_list->rend(); ++it) {
+ for (Osmium::OSM::WayNodeList::const_iterator it = m_way_node_list->begin(); it != m_way_node_list->end(); ++it) {
r->addPoint(it->lon(), it->lat());
}
p->addRingDirectly(r);

0 comments on commit 802b649

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