forked from TrueCloudLab/frostfs-node
[#782] locode: Fix imports, var init
Signed-off-by: nesterfifa <vemeyzer@gmail.com>
This commit is contained in:
parent
f31b4c1a7b
commit
6999993fd2
1 changed files with 2 additions and 3 deletions
|
@ -4,12 +4,11 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/paulmach/orb/quadtree"
|
||||
|
||||
locodedb "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/locode/db"
|
||||
"github.com/paulmach/orb"
|
||||
"github.com/paulmach/orb/geojson"
|
||||
"github.com/paulmach/orb/planar"
|
||||
"github.com/paulmach/orb/quadtree"
|
||||
)
|
||||
|
||||
const continentProperty = "Continent"
|
||||
|
@ -92,7 +91,7 @@ func (db *DB) buildQuadtree() error {
|
|||
})
|
||||
|
||||
for _, feature := range db.features {
|
||||
multiPolygon := make(orb.MultiPolygon, 0)
|
||||
var multiPolygon orb.MultiPolygon
|
||||
|
||||
if polygon, ok := feature.Geometry.(orb.Polygon); ok {
|
||||
multiPolygon = append(multiPolygon, polygon)
|
||||
|
|
Loading…
Reference in a new issue