|
104 | 104 | function _fromtable( |
105 | 105 | sch::Tables.Schema{names,types}, |
106 | 106 | rows; |
107 | | - name::String="", |
| 107 | + name::String = "", |
108 | 108 | )::IFeatureLayer where {names,types} |
109 | 109 | # TODO maybe constrain `names` and `types` types |
110 | 110 | strnames = string.(sch.names) |
@@ -173,15 +173,15 @@ end |
173 | 173 |
|
174 | 174 | function _fromtable( |
175 | 175 | ::Tables.Schema{names,nothing}, |
176 | | - rows; |
177 | | - name::String="", |
| 176 | + rows; |
| 177 | + name::String = "", |
178 | 178 | )::IFeatureLayer where {names} |
179 | 179 | cols = Tables.columns(rows) |
180 | 180 | types = (eltype(collect(col)) for col in cols) |
181 | 181 | return _fromtable(Tables.Schema(names, types), rows; name) |
182 | 182 | end |
183 | 183 |
|
184 | | -function _fromtable(::Nothing, rows, name::String="")::IFeatureLayer |
| 184 | +function _fromtable(::Nothing, rows, name::String = "")::IFeatureLayer |
185 | 185 | state = iterate(rows) |
186 | 186 | state === nothing && return IFeatureLayer() |
187 | 187 | row, _ = state |
@@ -225,7 +225,7 @@ Layer: towns |
225 | 225 | Field 2 (location): [OFTString], missing, New Delhi |
226 | 226 | ``` |
227 | 227 | """ |
228 | | -function IFeatureLayer(table; name::String="")::IFeatureLayer |
| 228 | +function IFeatureLayer(table; name::String = "")::IFeatureLayer |
229 | 229 | # Check tables interface's conformance |
230 | 230 | !Tables.istable(table) && |
231 | 231 | throw(DomainError(table, "$table has not a Table interface")) |
|
0 commit comments