@@ -20,7 +20,7 @@ using Test
2020 GeoInterface. geomtype (:: MyCurve ) = GeoInterface. LineStringTrait ()
2121 GeoInterface. ngeom (:: GeoInterface.LineStringTrait , geom:: MyCurve ) = 2
2222 GeoInterface. getgeom (:: GeoInterface.LineStringTrait , geom:: MyCurve , i) = MyPoint ()
23- convert (:: Type{MyCurve} , :: GeoInterface.LineStringTrait , geom) = geom
23+ Base . convert (:: Type{MyCurve} , :: GeoInterface.LineStringTrait , geom) = geom
2424
2525 GeoInterface. isgeometry (:: MyPolygon ) = true
2626 GeoInterface. geomtype (:: MyPolygon ) = GeoInterface. PolygonTrait ()
@@ -39,7 +39,7 @@ using Test
3939 @testset " LineString" begin
4040 geom = MyCurve ()
4141 @test testgeometry (geom)
42- @test ! isnothing (GeoInterface . convert (MyCurve, geom))
42+ @test ! isnothing (convert (MyCurve, geom))
4343
4444 @test GeoInterface. npoint (geom) == 2 # defaults to ngeom
4545 @test GeoInterface. coordinates (geom) == [[1 , 2 ], [1 , 2 ]]
7272 struct Row end
7373 struct Point end
7474
75- isgeometry (:: Point ) = true
76- geomtype (:: Point ) = GeoInterface. PointTrait ()
77- ncoord (:: GeoInterface.PointTrait , geom:: Point ) = 2
78- getcoord (:: GeoInterface.PointTrait , geom:: Point , i) = [1 , 2 ][i]
75+ GeoInterface . isgeometry (:: Point ) = true
76+ GeoInterface . geomtype (:: Point ) = GeoInterface. PointTrait ()
77+ GeoInterface . ncoord (:: GeoInterface.PointTrait , geom:: Point ) = 2
78+ GeoInterface . getcoord (:: GeoInterface.PointTrait , geom:: Point , i) = [1 , 2 ][i]
7979
8080 GeoInterface. isfeature (:: Row ) = true
8181 GeoInterface. geometry (r:: Row ) = Point ()
0 commit comments