DBF File
DBF files can be read with the gdal.vect StorageManager and read and writen to with the DBF StorageManager.
DBF StorageManager
The GeoDMS Dbf StorageManager is in use for reading (small) and writing dbf files.
Example:
unit<uint32> Table: StorageName = "%projDir%/data/DBF.dbf",
{
attribute<int32> IntegerAtt;
attribute<float32> FloatAtt;
attribute<bool> BoolAtt;
attribute<string> StringAtt;
}
Gdal.vect StorageManager
It is advised to use the gdal.vect StorageManager for reading large DBF files as it supports segmented data.
Example:
unit<uint32> Table
: StorageName = "%projDir%/data/DBF.dbf",
, StorageType = "gdal.vect"
{
attribute<int32> IntegerAtt;
attribute<float32> FloatAtt;
attribute<bool> BoolAtt;
attribute<string> StringAtt;
}
Value Types
For dbf storages the value types of the values units in the GeoDMS should match with regard to the data types of the attributes in the dbf file.
The following value types are allowed for the dbf data types:
- (u)int8/16/32/64 for byte, integer and long integer
- float32/64 for single/double
- bool for boolean
- string for string
Other data types (for example date) can not (yet) be read from dbf storages.