From 22365c220ed22d3936239c90aeebefe1f853b7a6 Mon Sep 17 00:00:00 2001 From: zwnk Date: Thu, 23 May 2019 21:00:42 +0200 Subject: [PATCH] Update 'shp_2_txt.cpp' --- shp_2_txt.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shp_2_txt.cpp b/shp_2_txt.cpp index 590dedb..20f4b60 100644 --- a/shp_2_txt.cpp +++ b/shp_2_txt.cpp @@ -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;