@@ -3,13 +3,14 @@ package gqlmodel
3
3
import (
4
4
"testing"
5
5
6
+ "github.com/reearth/reearth/server/pkg/id"
6
7
"github.com/reearth/reearth/server/pkg/nlslayer"
7
8
"github.com/stretchr/testify/assert"
8
9
)
9
10
10
11
func TestToNLSLayerSketchInfo (t * testing.T ) {
11
12
feature1 , err := nlslayer .NewFeature (
12
- nlslayer .NewFeatureID (),
13
+ id .NewFeatureID (),
13
14
"Feature" ,
14
15
nlslayer .NewPoint ("Point" , []float64 {1 , 2 }),
15
16
)
@@ -19,7 +20,7 @@ func TestToNLSLayerSketchInfo(t *testing.T) {
19
20
feature1 .UpdateProperties (& map [string ]any {"key1" : "value1" })
20
21
21
22
feature2 , err := nlslayer .NewFeature (
22
- nlslayer .NewFeatureID (),
23
+ id .NewFeatureID (),
23
24
"Feature" ,
24
25
nlslayer .NewLineString ("LineString" , [][]float64 {{1 , 2 }, {3 , 4 }}),
25
26
)
@@ -29,7 +30,7 @@ func TestToNLSLayerSketchInfo(t *testing.T) {
29
30
feature2 .UpdateProperties (& map [string ]any {"key2" : "value2" })
30
31
31
32
feature3 , err := nlslayer .NewFeature (
32
- nlslayer .NewFeatureID (),
33
+ id .NewFeatureID (),
33
34
"Feature" ,
34
35
nlslayer .NewPolygon ("Polygon" , [][][]float64 {{{1 , 2 }, {3 , 4 }, {5 , 6 }, {1 , 2 }}}),
35
36
)
@@ -39,7 +40,7 @@ func TestToNLSLayerSketchInfo(t *testing.T) {
39
40
feature3 .UpdateProperties (& map [string ]any {"key3" : "value3" })
40
41
41
42
feature4 , err := nlslayer .NewFeature (
42
- nlslayer .NewFeatureID (),
43
+ id .NewFeatureID (),
43
44
"Feature" ,
44
45
nlslayer .NewMultiPolygon ("MultiPolygon" , [][][][]float64 {{{{1 , 2 }, {3 , 4 }, {5 , 6 }, {1 , 2 }}}}),
45
46
)
@@ -49,7 +50,7 @@ func TestToNLSLayerSketchInfo(t *testing.T) {
49
50
feature4 .UpdateProperties (& map [string ]any {"key4" : "value4" })
50
51
51
52
feature5 , err := nlslayer .NewFeature (
52
- nlslayer .NewFeatureID (),
53
+ id .NewFeatureID (),
53
54
"Feature" ,
54
55
nlslayer .NewGeometryCollection (
55
56
"GeometryCollection" ,
0 commit comments