[#782] locode: Fix imports, var init
Some checks failed
DCO action / DCO (pull_request) Successful in 14m44s
Tests and linters / Staticcheck (pull_request) Successful in 16m33s
Vulncheck / Vulncheck (pull_request) Failing after 16m51s
Build / Build Components (1.21) (pull_request) Successful in 18m47s
Build / Build Components (1.20) (pull_request) Successful in 19m24s
Tests and linters / Tests (1.20) (pull_request) Failing after 20m0s
Tests and linters / Tests (1.21) (pull_request) Failing after 19m58s
Tests and linters / Tests with -race (pull_request) Failing after 19m55s
Tests and linters / Lint (pull_request) Successful in 22m48s
Some checks failed
DCO action / DCO (pull_request) Successful in 14m44s
Tests and linters / Staticcheck (pull_request) Successful in 16m33s
Vulncheck / Vulncheck (pull_request) Failing after 16m51s
Build / Build Components (1.21) (pull_request) Successful in 18m47s
Build / Build Components (1.20) (pull_request) Successful in 19m24s
Tests and linters / Tests (1.20) (pull_request) Failing after 20m0s
Tests and linters / Tests (1.21) (pull_request) Failing after 19m58s
Tests and linters / Tests with -race (pull_request) Failing after 19m55s
Tests and linters / Lint (pull_request) Successful in 22m48s
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"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/paulmach/orb/quadtree"
|
|
||||||
|
|
||||||
locodedb "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/locode/db"
|
locodedb "git.frostfs.info/TrueCloudLab/frostfs-node/pkg/util/locode/db"
|
||||||
"github.com/paulmach/orb"
|
"github.com/paulmach/orb"
|
||||||
"github.com/paulmach/orb/geojson"
|
"github.com/paulmach/orb/geojson"
|
||||||
"github.com/paulmach/orb/planar"
|
"github.com/paulmach/orb/planar"
|
||||||
|
"github.com/paulmach/orb/quadtree"
|
||||||
)
|
)
|
||||||
|
|
||||||
const continentProperty = "Continent"
|
const continentProperty = "Continent"
|
||||||
|
@ -92,7 +91,7 @@ func (db *DB) buildQuadtree() error {
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, feature := range db.features {
|
for _, feature := range db.features {
|
||||||
multiPolygon := make(orb.MultiPolygon, 0)
|
var multiPolygon orb.MultiPolygon
|
||||||
|
|
||||||
if polygon, ok := feature.Geometry.(orb.Polygon); ok {
|
if polygon, ok := feature.Geometry.(orb.Polygon); ok {
|
||||||
multiPolygon = append(multiPolygon, polygon)
|
multiPolygon = append(multiPolygon, polygon)
|
||||||
|
|
Loading…
Add table
Reference in a new issue