Skip to content

GeoDbf

Namespace: ThinkGeo.Core

public class GeoDbf : System.IDisposable

Inheritance ObjectGeoDbf
Implements IDisposable

Properties

IsOpen

public bool IsOpen { get; }

Property Value

Boolean

ColumnCount

public int ColumnCount { get; }

Property Value

Int32

RecordCount

public int RecordCount { get; }

Property Value

Int32

PathFilename

public string PathFilename { get; set; }

Property Value

String

ReadWriteMode

public FileAccess ReadWriteMode { get; set; }

Property Value

FileAccess

Encoding

public Encoding Encoding { get; set; }

Property Value

Encoding

CultureInfo

public CultureInfo CultureInfo { get; set; }

Property Value

CultureInfo

Constructors

GeoDbf()

public GeoDbf()

GeoDbf(String)

public GeoDbf(string pathFilename)

Parameters

pathFilename String

GeoDbf(String, FileAccess)

public GeoDbf(string pathFilename, FileAccess readWriteMode)

Parameters

pathFilename String

readWriteMode FileAccess

GeoDbf(String, FileAccess, Encoding)

public GeoDbf(string pathFilename, FileAccess readWriteMode, Encoding encoding)

Parameters

pathFilename String

readWriteMode FileAccess

encoding Encoding

GeoDbf(String, FileAccess, Encoding, CultureInfo)

public GeoDbf(string pathFilename, FileAccess readWriteMode, Encoding encoding, CultureInfo cultureInfo)

Parameters

pathFilename String

readWriteMode FileAccess

encoding Encoding

cultureInfo CultureInfo

Methods

OnStreamLoading(StreamLoadingEventArgs)

protected void OnStreamLoading(StreamLoadingEventArgs e)

Parameters

e StreamLoadingEventArgs

Finalize()

protected void Finalize()

Dispose()

public void Dispose()

CopyDbfHeader(String, String)

public static void CopyDbfHeader(string sourcePathFilename, string destinationPathFilename)

Parameters

sourcePathFilename String

destinationPathFilename String

CopyDbfHeader(String, String, OverwriteMode)

public static void CopyDbfHeader(string sourcePathFilename, string destinationPathFilename, OverwriteMode overwriteMode)

Parameters

sourcePathFilename String

destinationPathFilename String

overwriteMode OverwriteMode

CreateDbfFile(String, IEnumerable<DbfColumn>)

public static void CreateDbfFile(string dbfPathFilename, IEnumerable<DbfColumn> dbfColumns)

Parameters

dbfPathFilename String

dbfColumns IEnumerable<DbfColumn>

CreateDbfFile(String, IEnumerable<DbfColumn>, OverwriteMode)

public static void CreateDbfFile(string dbfPathFilename, IEnumerable<DbfColumn> dbfColumns, OverwriteMode overwriteMode)

Parameters

dbfPathFilename String

dbfColumns IEnumerable<DbfColumn>

overwriteMode OverwriteMode

CreateDbfFile(String, IEnumerable<DbfColumn>, OverwriteMode, Encoding)

public static void CreateDbfFile(string dbfPathFilename, IEnumerable<DbfColumn> dbfColumns, OverwriteMode overwriteMode, Encoding encoding)

Parameters

dbfPathFilename String

dbfColumns IEnumerable<DbfColumn>

overwriteMode OverwriteMode

encoding Encoding

GetColumn(String)

public DbfColumn GetColumn(string columnName)

Parameters

columnName String

Returns

DbfColumn

GetColumn(Int32)

public DbfColumn GetColumn(int columnNumber)

Parameters

columnNumber Int32

Returns

DbfColumn

ReadRecord(Int32)

public Dictionary<string, object> ReadRecord(int recordNumber)

Parameters

recordNumber Int32

Returns

Dictionary<String, Object>

ReadFieldAsBoolean(Int32, Int32)

public bool ReadFieldAsBoolean(int recordNumber, int columnNumber)

Parameters

recordNumber Int32

columnNumber Int32

Returns

Boolean

ReadFieldAsBoolean(Int32, String)

public bool ReadFieldAsBoolean(int recordNumber, string columnName)

Parameters

recordNumber Int32

columnName String

Returns

Boolean

ReadFieldAsDateTime(Int32, String)

public DateTime ReadFieldAsDateTime(int recordNumber, string columnName)

Parameters

recordNumber Int32

columnName String

Returns

DateTime

ReadFieldAsDateTime(Int32, Int32)

public DateTime ReadFieldAsDateTime(int recordNumber, int columnNumber)

Parameters

recordNumber Int32

columnNumber Int32

Returns

DateTime

ReadFieldAsDouble(Int32, String)

public double ReadFieldAsDouble(int recordNumber, string columnName)

Parameters

recordNumber Int32

columnName String

Returns

Double

ReadFieldAsDouble(Int32, Int32)

public double ReadFieldAsDouble(int recordNumber, int columnNumber)

Parameters

recordNumber Int32

columnNumber Int32

Returns

Double

ReadFieldAsInteger(Int32, Int32)

public int ReadFieldAsInteger(int recordNumber, int columnNumber)

Parameters

recordNumber Int32

columnNumber Int32

Returns

Int32

ReadFieldAsInteger(Int32, String)

public int ReadFieldAsInteger(int recordNumber, string columnName)

Parameters

recordNumber Int32

columnName String

Returns

Int32

ReadFieldAsString(Int32, String)

public string ReadFieldAsString(int recordNumber, string columnName)

Parameters

recordNumber Int32

columnName String

Returns

String

ReadFieldAsString(Int32, Int32)

public string ReadFieldAsString(int recordNumber, int columnNumber)

Parameters

recordNumber Int32

columnNumber Int32

Returns

String

WriteField(Int32, String, Double)

public void WriteField(int recordNumber, string columnName, double value)

Parameters

recordNumber Int32

columnName String

value Double

WriteField(Int32, Int32, Int32)

public void WriteField(int recordNumber, int columnNumber, int value)

Parameters

recordNumber Int32

columnNumber Int32

value Int32

WriteField(Int32, String, Boolean)

public void WriteField(int recordNumber, string columnName, bool value)

Parameters

recordNumber Int32

columnName String

value Boolean

WriteField(Int32, Int32, Double)

public void WriteField(int recordNumber, int columnNumber, double value)

Parameters

recordNumber Int32

columnNumber Int32

value Double

WriteField(Int32, String, Int32)

public void WriteField(int recordNumber, string columnName, int value)

Parameters

recordNumber Int32

columnName String

value Int32

WriteField(Int32, Int32, String)

public void WriteField(int recordNumber, int columnNumber, string value)

Parameters

recordNumber Int32

columnNumber Int32

value String

WriteField(Int32, String, String)

public void WriteField(int recordNumber, string columnName, string value)

Parameters

recordNumber Int32

columnName String

value String

WriteField(Int32, Int32, Boolean)

public void WriteField(int recordNumber, int columnNumber, bool value)

Parameters

recordNumber Int32

columnNumber Int32

value Boolean

WriteField(Int32, Int32, DateTime)

public void WriteField(int recordNumber, int columnNumber, DateTime value)

Parameters

recordNumber Int32

columnNumber Int32

value DateTime

WriteField(Int32, String, DateTime)

public void WriteField(int recordNumber, string columnName, DateTime value)

Parameters

recordNumber Int32

columnName String

value DateTime

Open()

public void Open()

Close()

public void Close()

Flush()

public void Flush()

Pack()

public void Pack()

GetColumnNumber(String)

public int GetColumnNumber(string columnName)

Parameters

columnName String

Returns

Int32

GetColumnName(Int32)

public string GetColumnName(int columnNumber)

Parameters

columnNumber Int32

Returns

String

DeleteRecord(Int32)

public void DeleteRecord(int recordNumber)

Parameters

recordNumber Int32

UpdateColumnName(Int32, String)

public void UpdateColumnName(int columnNumber, string newColumnName)

Parameters

columnNumber Int32

newColumnName String

UndeleteRecord(Int32)

public void UndeleteRecord(int recordNumber)

Parameters

recordNumber Int32

IsRecordDeleted(Int32)

public bool IsRecordDeleted(int recordNumber)

Parameters

recordNumber Int32

Returns

Boolean

AddEmptyRecord()

public void AddEmptyRecord()

ReadRecordAsString(Int32)

public Dictionary<string, string> ReadRecordAsString(int recordNumber)

Parameters

recordNumber Int32

Returns

Dictionary<String, String>

WriteRecord(Int32, IEnumerable<Object>)

public void WriteRecord(int recordNumber, IEnumerable<object> values)

Parameters

recordNumber Int32

values IEnumerable<Object>

GetValidColumns(IEnumerable<DbfColumn>)

public static Collection<DbfColumn> GetValidColumns(IEnumerable<DbfColumn> columns)

Parameters

columns IEnumerable<DbfColumn>

Returns

Collection<DbfColumn>

GetValidColumns(IEnumerable<DbfColumn>, Encoding)

public static Collection<DbfColumn> GetValidColumns(IEnumerable<DbfColumn> columns, Encoding encoding)

Parameters

columns IEnumerable<DbfColumn>

encoding Encoding

Returns

Collection<DbfColumn>

GetValidColumnNames(IEnumerable<String>)

public static Collection<string> GetValidColumnNames(IEnumerable<string> columnNames)

Parameters

columnNames IEnumerable<String>

Returns

Collection<String>

GetValidColumnNames(IEnumerable<String>, Encoding)

public static Collection<string> GetValidColumnNames(IEnumerable<string> columnNames, Encoding encoding)

Parameters

columnNames IEnumerable<String>

encoding Encoding

Returns

Collection<String>

AddStringColumn(String, Int32)

public void AddStringColumn(string columnName, int length)

Parameters

columnName String

length Int32

AddIntegerColumn(String, Int32)

public void AddIntegerColumn(string columnName, int length)

Parameters

columnName String

length Int32

AddDoubleColumn(String, Int32, Int32)

public void AddDoubleColumn(string columnName, int length, int decimalLength)

Parameters

columnName String

length Int32

decimalLength Int32

AddBooleanColumn(String)

public void AddBooleanColumn(string columnName)

Parameters

columnName String

AddMemoColumn(String, Int32)

public void AddMemoColumn(string columnName, int length)

Parameters

columnName String

length Int32

AddDateColumn(String)

public void AddDateColumn(string columnName)

Parameters

columnName String

AddDateTimeField(String)

internal void AddDateTimeField(string columnName)

Parameters

columnName String

UpdateDbcFilename(String)

public void UpdateDbcFilename(string newDbcFilename)

Parameters

newDbcFilename String

AddColumn(String, DbfColumnType, Int32, Int32)

public void AddColumn(string columnName, DbfColumnType columnType, int length, int decimalLength)

Parameters

columnName String

columnType DbfColumnType

length Int32

decimalLength Int32

Events

StreamLoading

public event EventHandler<StreamLoadingEventArgs> StreamLoading;