mirror of https://github.com/tidwall/tile38.git
Fix
This commit is contained in:
parent
c00dcc6632
commit
92032f05f1
|
@ -219,10 +219,8 @@ func (g MultiPolygon) Clipped(bbox BBox) Object {
|
||||||
var new_coordinates [][][]Position
|
var new_coordinates [][][]Position
|
||||||
|
|
||||||
for _, polygon := range g.polygons {
|
for _, polygon := range g.polygons {
|
||||||
clippedMultiPolygon, _ := polygon.Clipped(bbox).(MultiPolygon)
|
clippedPolygon, _ := polygon.Clipped(bbox).(Polygon)
|
||||||
for _, pg := range clippedMultiPolygon.Coordinates {
|
new_coordinates = append(new_coordinates, clippedPolygon.Coordinates)
|
||||||
new_coordinates = append(new_coordinates, pg)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
res, _ := fillMultiPolygon(new_coordinates, nil, nil)
|
res, _ := fillMultiPolygon(new_coordinates, nil, nil)
|
||||||
|
|
Loading…
Reference in New Issue