mirror of https://github.com/tidwall/tile38.git
Fix
This commit is contained in:
parent
2be4eab627
commit
d09508edd3
|
@ -221,10 +221,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