Skip to content

Commit bbf3760

Browse files
committed
Fixed a typo on name option for IFeatureLayer(table)
1 parent 63f8cb3 commit bbf3760

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tables.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ function _fromtable(
178178
)::IFeatureLayer where {names}
179179
cols = Tables.columns(rows)
180180
types = (eltype(collect(col)) for col in cols)
181-
return _fromtable(Tables.Schema(names, types), rows; name)
181+
return _fromtable(Tables.Schema(names, types), rows; name=name)
182182
end
183183

184-
function _fromtable(::Nothing, rows, name::String = "")::IFeatureLayer
184+
function _fromtable(::Nothing, rows; name::String = "")::IFeatureLayer
185185
state = iterate(rows)
186186
state === nothing && return IFeatureLayer()
187187
row, _ = state
188188
names = Tables.columnnames(row)
189-
return _fromtable(Tables.Schema(names, nothing), rows; name)
189+
return _fromtable(Tables.Schema(names, nothing), rows; name=name)
190190
end
191191

192192
"""
@@ -232,5 +232,5 @@ function IFeatureLayer(table; name::String = "")::IFeatureLayer
232232
# Extract table data
233233
rows = Tables.rows(table)
234234
schema = Tables.schema(table)
235-
return _fromtable(schema, rows; name)
235+
return _fromtable(schema, rows; name=name)
236236
end

0 commit comments

Comments
 (0)