@@ -4,6 +4,8 @@ const LG = LibGEOS
44
55@testset " Geo interface" begin
66 pt = LibGEOS. Point (1.0 , 2.0 )
7+ @test GeoInterface. x (pt) == 1.0
8+ @test GeoInterface. y (pt) == 2.0
79 @test GeoInterface. coordinates (pt) ≈ [1 , 2 ] atol = 1e-5
810 @test GeoInterface. geomtrait (pt) == PointTrait ()
911 @test GeoInterface. ncoord (pt) == 2
@@ -12,6 +14,18 @@ const LG = LibGEOS
1214 @test GeoInterface. extent (pt) == Extent (X = (1.0 , 1.0 ), Y = (2.0 , 2.0 ))
1315 plot (pt)
1416
17+ pt = LibGEOS. Point (1.0 , 2.0 , 3.0 )
18+ @test GeoInterface. x (pt) == 1.0
19+ @test GeoInterface. y (pt) == 2.0
20+ @test GeoInterface. z (pt) == 3.0
21+ @test GeoInterface. coordinates (pt) ≈ [1 , 2 , 3 ] atol = 1e-5
22+ @test GeoInterface. ncoord (pt) == 3
23+ @test GeoInterface. getcoord (pt, 3 ) ≈ 3.0
24+ @test GeoInterface. testgeometry (pt)
25+ # This doesn't return the Z extent
26+ @test_broken GeoInterface. extent (pt) == Extent (X = (1.0 , 1.0 ), Y= (2.0 , 2.0 ), Z= (3.0 , 3.0 ))
27+ plot (pt)
28+
1529 pt = LibGEOS. Point (1 , 2 )
1630 @test GeoInterface. coordinates (pt) ≈ [1 , 2 ] atol = 1e-5
1731 @test GeoInterface. geomtrait (pt) == PointTrait ()
0 commit comments