Update 'shp_2_txt.cpp'
This commit is contained in:
parent
93e634eb74
commit
22365c220e
1 changed files with 6 additions and 6 deletions
|
@ -14,7 +14,7 @@ int main(int argc, char const *argv[])
|
||||||
int i, iRecord;
|
int i, iRecord;
|
||||||
char *pszFilename = NULL;
|
char *pszFilename = NULL;
|
||||||
int nWidth, nDecimals;
|
int nWidth, nDecimals;
|
||||||
char szTitle[12];
|
char szTitle[12];
|
||||||
string filename = "f:\\testing\\shp_2_txt\\MA.dbf";
|
string filename = "f:\\testing\\shp_2_txt\\MA.dbf";
|
||||||
|
|
||||||
ofstream txt_file("out.txt");
|
ofstream txt_file("out.txt");
|
||||||
|
@ -32,11 +32,11 @@ int main(int argc, char const *argv[])
|
||||||
|
|
||||||
for( i = 0; i < DBFGetFieldCount(dbfh); i++ )
|
for( i = 0; i < DBFGetFieldCount(dbfh); i++ )
|
||||||
{
|
{
|
||||||
DBFFieldType eType;
|
DBFFieldType eType;
|
||||||
eType = DBFGetFieldInfo( dbfh, i, szTitle, &nWidth, &nDecimals );
|
eType = DBFGetFieldInfo( dbfh, i, szTitle, &nWidth, &nDecimals );
|
||||||
string dec_lat = "DEC_LAT";
|
string dec_lat = "DEC_LAT";
|
||||||
string dec_lon = "DEC_LON";
|
string dec_lon = "DEC_LON";
|
||||||
string ellip_h = "ELLIP_HT";
|
string ellip_h = "ELLIP_HT";
|
||||||
string ortho_h = "ORTHO_HT";
|
string ortho_h = "ORTHO_HT";
|
||||||
string str(szTitle);
|
string str(szTitle);
|
||||||
string line;
|
string line;
|
||||||
|
|
Loading…
Reference in a new issue