dbf format is documented here
Shapefiles use dbf.
luarocks install dbf
then
dbf = require"dbf"
local f = dbf.open("dbf-file.dbf")
for l in f:lines() do
for k, v in pairs(l) do print(k, v) end
end
If you don't install with luarocks, then you need to make sure that Roberto's struct library is installed.
Lua >= 5.1 or LuaJIT >= 2.0.0.
- Incomplete
- Tests?
- Documentation?
- Moteus's gist reads and writes dbf