diff --git a/src/polylines.jl b/src/polylines.jl index b9119e8..60d7d4e 100644 --- a/src/polylines.jl +++ b/src/polylines.jl @@ -35,7 +35,7 @@ function GI.getgeom(::GI.MultiLineStringTrait, geom::AbstractPolyline{P}, i::Int # C integers start at zero so we add 1 to the range start (geom.parts[i]+1):(geom.parts[i+1]) else - # For the last inestring use the vector lastindex as the last point + # For the last linestring use the vector lastindex as the last point (geom.parts[i]+1):lastindex(geom.points) end return LineString(geom, range) diff --git a/src/table.jl b/src/table.jl index fd9204d..05bbd64 100644 --- a/src/table.jl +++ b/src/table.jl @@ -7,7 +7,7 @@ import GeoInterface, DBFTables, Tables A struct representing a single record in a shapefile. -Property names accessable by `row.x` are `geometry` for the +Property names accessible by `row.x` are `geometry` for the geometry object, and the names of the columns in `record`. """ struct Row{T} @@ -49,7 +49,7 @@ compatible table, where each row is is a an object such as a (`Point`](@ref), The `Shapefile.Table` constructor can read either a `String` path to a shapefile, or a [`Shapefile.Handle`](@ref) and a `DBFTables.Table`. -Property names accessable by `table.x` are `geometry` for the +Property names accessible by `table.x` are `geometry` for the geometry object, and the names of the columns in `dbf`. """ struct Table{T} diff --git a/test/runtests.jl b/test/runtests.jl index f874c3d..165afe3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -230,7 +230,7 @@ for test in test_tuples read(fd, jltype) end - # records the offest after this geometry record + # records the offset after this geometry record push!(offsets, position(fd)) end end diff --git a/test/writer.jl b/test/writer.jl index bf830d3..ea19da8 100644 --- a/test/writer.jl +++ b/test/writer.jl @@ -110,7 +110,7 @@ @test t.geometry == [Point(0,0) for i in 1:10] end -for i in eachindex(test_tuples)[1:end-1] # We dont write 15 - multipatch +for i in eachindex(test_tuples)[1:end-1] # We don't write 15 - multipatch i == 2 && continue # skip case of only missing data