if( DBFIsAttributeNULL( myHDBF, i, theIndexOfField ) )
{
anAttr.myIsNull = true;
+ DBF_FieldType FT = DBF_FieldType_None;
+ if( eType == FTString )
+ FT = DBF_FieldType_String;
+ else if( eType == FTInteger )
+ FT = DBF_FieldType_Integer;
+ else if( eType == FTDouble )
+ FT = DBF_FieldType_Double;
+ else if( eType == FTInvalid )
+ FT = DBF_FieldType_Invalid;
+ anAttr.myFieldType = FT;
}
else
{
//Null attr
CPPUNIT_ASSERT_EQUAL( true, theAttrV[35].myIsNull);
CPPUNIT_ASSERT_EQUAL( true, theAttrV[35].myRawValue.empty());
- CPPUNIT_ASSERT_EQUAL( HYDROData_ShapeFile::DBF_FieldType_None, theAttrV[35].myFieldType);
+ CPPUNIT_ASSERT_EQUAL( HYDROData_ShapeFile::DBF_FieldType_String, theAttrV[35].myFieldType);
theAttrV.clear();
aSHPFile.DBF_GetAttributeList(1, theAttrV ); //second field