diff --git a/plugins/input/shape/shape_io.cpp b/plugins/input/shape/shape_io.cpp index f757a7a77..ac2c7e01b 100644 --- a/plugins/input/shape/shape_io.cpp +++ b/plugins/input/shape/shape_io.cpp @@ -206,12 +206,16 @@ void shape_io::read_polygon(mapnik::geometry_container & geom) double y = record.read_double(); poly->move_to(x, y); - for (int j=start+1;jline_to(x, y); } + x = record.read_double(); + y = record.read_double(); + poly->close(x, y); + geom.push_back(poly); } // z-range