We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f48a5ce commit 7c50076Copy full SHA for 7c50076
test/test_geos_functions.jl
@@ -170,6 +170,10 @@ end
170
@test LibGEOS.getSize(cs_) == 1
171
@test LibGEOS.getDimensions(cs_) == 2
172
@test LibGEOS.getCoordinates(cs_) == [[5.0, 3.0]]
173
+ # z coordinate stays NaN for 2D geometry
174
+ @test isnan(LibGEOS.getZ(cs_, 1))
175
+ LibGEOS.setZ!(cs_, 1, 2.0)
176
177
178
cs_2 = LibGEOS.createCoordSeq([5.0, 3.0])
179
@test LibGEOS.getSize(cs_2) == 1
@@ -186,7 +190,7 @@ end
186
190
@test LibGEOS.getCoordinates(cs_3, 2) == [1.0, 2.0]
187
191
@test LibGEOS.getCoordinates(cs_3, 3) == [1.0, 3.0]
188
192
189
-
193
+ cs_ = LibGEOS.createCoordSeq(0, 0, 0)
194
for i = 1:5
195
x = i * 10.0
196
y = i * 10.0 + 1.0
0 commit comments