Update 'shp_2_txt.cpp'

This commit is contained in:
zwnk 2019-05-23 21:00:42 +02:00
parent 93e634eb74
commit 22365c220e
1 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ int main(int argc, char const *argv[])
int i, iRecord;
char *pszFilename = NULL;
int nWidth, nDecimals;
char szTitle[12];
char szTitle[12];
string filename = "f:\\testing\\shp_2_txt\\MA.dbf";
ofstream txt_file("out.txt");
@ -32,11 +32,11 @@ int main(int argc, char const *argv[])
for( i = 0; i < DBFGetFieldCount(dbfh); i++ )
{
DBFFieldType eType;
eType = DBFGetFieldInfo( dbfh, i, szTitle, &nWidth, &nDecimals );
string dec_lat = "DEC_LAT";
string dec_lon = "DEC_LON";
string ellip_h = "ELLIP_HT";
DBFFieldType eType;
eType = DBFGetFieldInfo( dbfh, i, szTitle, &nWidth, &nDecimals );
string dec_lat = "DEC_LAT";
string dec_lon = "DEC_LON";
string ellip_h = "ELLIP_HT";
string ortho_h = "ORTHO_HT";
string str(szTitle);
string line;