1- using Test, Plots, GeoInterface, LibGEOS, Extents
1+ using Test, Makie, Plots, GeoInterface, LibGEOS, Extents
22const GI = GeoInterface
33const LG = LibGEOS
44
@@ -13,7 +13,8 @@ const LG = LibGEOS
1313 @test GeoInterface. testgeometry (pt)
1414 @test GeoInterface. is3d (pt) == false
1515 @test GeoInterface. extent (pt) == Extent (X= (1.0 , 1.0 ), Y= (2.0 , 2.0 ))
16- plot (pt)
16+ Plots. plot (pt)
17+ Makie. plot (pt)
1718
1819 pt = LibGEOS. Point (1.0 , 2.0 , 3.0 )
1920 @test GeoInterface. x (pt) == 1.0
@@ -27,7 +28,9 @@ const LG = LibGEOS
2728 # This doesn't return the Z extent
2829 @test_broken GeoInterface. extent (pt) ==
2930 Extent (X = (1.0 , 1.0 ), Y = (2.0 , 2.0 ), Z = (3.0 , 3.0 ))
30- plot (pt)
31+ Plots. plot (pt)
32+ Makie. plot (pt)
33+ Makie. plot (pt)
3134
3235 pt = LibGEOS. Point (1 , 2 )
3336 @test GeoInterface. coordinates (pt) ≈ [1 , 2 ] atol = 1e-5
@@ -63,7 +66,10 @@ const LG = LibGEOS
6366 @test GeoInterface. coordinates (p) == [10 , 0 ]
6467 @test GeoInterface. testgeometry (mpt)
6568 @test GeoInterface. is3d (mpt) == false
66- plot (mpt)
69+ Plots. plot (mpt)
70+ Makie. plot (mpt)
71+
72+
6773
6874 @inferred GeoInterface. ncoord (mpt)
6975 @inferred GeoInterface. ngeom (mpt)
@@ -78,10 +84,12 @@ const LG = LibGEOS
7884 p = GeoInterface. getgeom (ls, 3 )
7985 @test p isa LibGEOS. Point
8086 @test GeoInterface. coordinates (p) == [9 , 2 ]
81- @test GeoInterface. testgeometry (ls)
87+ @test GeoInterface. testgeometry (ls)
8288 @test GeoInterface. is3d (ls) == false
83- plot (ls)
89+ Plots. plot (ls)
90+ Makie. plot (ls)
8491
92+
8593 @inferred GeoInterface. ncoord (ls)
8694 @inferred GeoInterface. ngeom (ls)
8795 @inferred GeoInterface. getgeom (ls)
@@ -98,7 +106,9 @@ const LG = LibGEOS
98106 @test GeoInterface. ngeom (mls) == 2
99107 @test GeoInterface. testgeometry (mls)
100108 @test GeoInterface. is3d (mls) == false
101- plot (mls)
109+ Plots. plot (mls)
110+ Makie. plot (mls)
111+
102112
103113 @inferred GeoInterface. ncoord (mls)
104114 @inferred GeoInterface. ngeom (mls)
@@ -116,7 +126,8 @@ const LG = LibGEOS
116126 @test GeoInterface. is3d (lr) == false
117127 @test GeoInterface. testgeometry (lr)
118128 # Cannot convert LinearRingTrait to series data for plotting
119- # plot(lr)
129+ # Plots.plot(lr)
130+ # Makie.plot(lr)
120131
121132 @inferred GeoInterface. ncoord (lr)
122133 @inferred GeoInterface. ngeom (lr)
@@ -137,7 +148,9 @@ const LG = LibGEOS
137148 @test GeoInterface. coordinates (ls) == coords[2 ]
138149 @test GeoInterface. testgeometry (polygon)
139150 @test GeoInterface. is3d (polygon) == false
140- plot (polygon)
151+ Plots. plot (polygon)
152+ Makie. plot (polygon)
153+
141154
142155 @inferred GeoInterface. ncoord (polygon)
143156 @inferred GeoInterface. ngeom (polygon)
@@ -162,7 +175,8 @@ const LG = LibGEOS
162175 @test GeoInterface. testgeometry (multipolygon)
163176 @test GeoInterface. is3d (multipolygon) == false
164177 @test GeoInterface. extent (multipolygon) == Extent (X= (0.0 , 10.0 ), Y= (0.0 , 10.0 ))
165- plot (multipolygon)
178+ Plots. plot (multipolygon)
179+ Makie. plot (multipolygon)
166180
167181 @inferred GeoInterface. ncoord (multipolygon)
168182 @inferred GeoInterface. ngeom (multipolygon)
@@ -247,7 +261,10 @@ const LG = LibGEOS
247261 @test GeoInterface. geomtrait (geomcollection) == GeometryCollectionTrait ()
248262 @test GeoInterface. testgeometry (geomcollection)
249263 @test GeoInterface. is3d (geomcollection) == false
250- plot (geomcollection)
264+ Plots. plot (geomcollection)
265+ # Can't plot geometry collection yet with Makie
266+ @test_broken Makie. plot (geomcollection)
267+
251268
252269 @inferred GeoInterface. ncoord (geomcollection)
253270 @inferred GeoInterface. ngeom (geomcollection)
0 commit comments