Skip to content

Commit

Permalink
Add nextnamedtuple to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Sov-trotter committed Aug 26, 2020
1 parent 07f210c commit eff39c9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ Finally layers can be converted to DataFrames to perform miscellaneous spatial o
```@example tables
df = DataFrame(table)
```
In some cases the `nextfeature` might become a bit tedious to use. In which case the `ArchGDAL.nextnamedtuple()` method comes in handy. Though built upon `nextfeature`, simply calling it, yields the `feature` as a `NamedTuple`. Though one might have to use `ArchGDAL.resetreading!(layer)` method to reset the layer reading to the start.

```@example tables
ArchGDAL.resetrading!(layer)
feat1 = ArchGDAL.nextnamedtuple(layer)
feat2 = ArchGDAL.nextnamedtuple(layer)
```

0 comments on commit eff39c9

Please sign in to comment.