In SharpMap.Data.Providers.DBaseReader.cs at line 961
//case "System.Boolean":
case TypeCode.Boolean:
var tempChar = BitConverter.ToChar(tmpBuffer, 0);
return ((tempChar == 'T') || (tempChar == 't') || (tempChar == 'Y') || (tempChar == 'y'));
when i export a shapefile from PostGIS, the DbaseField.Lenght == 1, but the BitConverter.ToChar must have 2 bits,
so i fix it by this way
if(dbf.DataTypeCode == TypeCode.Boolean && dbf.Length == 1) { tmpBuffer = new byte[2]; }
In SharpMap.Data.Providers.DBaseReader.cs at line 961
//case "System.Boolean":
case TypeCode.Boolean:
var tempChar = BitConverter.ToChar(tmpBuffer, 0);
return ((tempChar == 'T') || (tempChar == 't') || (tempChar == 'Y') || (tempChar == 'y'));
when i export a shapefile from PostGIS, the DbaseField.Lenght == 1, but the BitConverter.ToChar must have 2 bits,
so i fix it by this way
if(dbf.DataTypeCode == TypeCode.Boolean && dbf.Length == 1) { tmpBuffer = new byte[2]; }