mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
+ close polygon
This commit is contained in:
parent
1844217615
commit
618bc1ba0f
@ -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;j<end;j++)
|
||||
for (int j=start+1;j<end-1;j++)
|
||||
{
|
||||
x = record.read_double();
|
||||
y = record.read_double();
|
||||
poly->line_to(x, y);
|
||||
}
|
||||
x = record.read_double();
|
||||
y = record.read_double();
|
||||
poly->close(x, y);
|
||||
|
||||
geom.push_back(poly);
|
||||
}
|
||||
// z-range
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user