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 12c6eb4 commit 2fa2020Copy full SHA for 2fa2020
src/geointerface.jl
@@ -43,7 +43,7 @@ GeoInterface.ngeom(::LineTrait, g::Line) = length(g)
43
GeoInterface.getgeom(::LineTrait, g::Line, i::Int) = g[i]
44
45
46
-GeoInterface.ngeom(::LineStringTrait, g::LineString) = length(g) + 1 # n line segments + 1
+GeoInterface.ngeom(::LineStringTrait, g::LineString) = length(g) # n connected points
47
GeoInterface.ncoord(::LineStringTrait, g::LineString{Dim}) where {Dim} = Dim
48
function GeoInterface.getgeom(::LineStringTrait, g::LineString, i::Int)
49
return GeometryBasics.coordinates(g)[i]
0 commit comments