diff -ruN CCS.orig/src/dtcc/CoordinateSystems/datum/DatumLibraryImplementation.cpp CCS/src/dtcc/CoordinateSystems/datum/DatumLibraryImplementation.cpp
old
|
new
|
|
2006 | 2006 | else |
2007 | 2007 | { |
2008 | 2008 | FileName7 = new char[ file_name_length ]; |
2009 | | strcpy( FileName7, "../../data/" ); |
| 2009 | strcpy( FileName7, MSPCCS_DATA_DEFAULT ); |
2010 | 2010 | } |
2011 | 2011 | strcat( FileName7, "7_param.dat" ); |
2012 | 2012 | |
… |
… |
|
2124 | 2124 | else |
2125 | 2125 | { |
2126 | 2126 | FileName3 = new char[ file_name_length ]; |
2127 | | strcpy( FileName3, "../../data/" ); |
| 2127 | strcpy( FileName3, MSPCCS_DATA_DEFAULT ); |
2128 | 2128 | } |
2129 | 2129 | strcat( FileName3, "3_param.dat" ); |
2130 | 2130 | |
… |
… |
|
2244 | 2244 | } |
2245 | 2245 | else |
2246 | 2246 | { |
2247 | | strcpy( FileName, "../../data/" ); |
| 2247 | strcpy( FileName, MSPCCS_DATA_DEFAULT ); |
2248 | 2248 | } |
2249 | 2249 | strcat( FileName, "3_param.dat" ); |
2250 | 2250 | |
… |
… |
|
2324 | 2324 | } |
2325 | 2325 | else |
2326 | 2326 | { |
2327 | | strcpy( FileName, "../../data/" ); |
| 2327 | strcpy( FileName, MSPCCS_DATA_DEFAULT ); |
2328 | 2328 | } |
2329 | 2329 | strcat( FileName, "7_param.dat" ); |
2330 | 2330 | |
diff -ruN CCS.orig/src/dtcc/CoordinateSystems/ellipse/EllipsoidLibraryImplementation.cpp CCS/src/dtcc/CoordinateSystems/ellipse/EllipsoidLibraryImplementation.cpp
old
|
new
|
|
349 | 349 | } |
350 | 350 | else |
351 | 351 | { |
352 | | strcpy( FileName, "../../data/" ); |
| 352 | strcpy( FileName, MSPCCS_DATA_DEFAULT ); |
353 | 353 | } |
354 | 354 | strcat( FileName, "ellips.dat" ); |
355 | 355 | |
… |
… |
|
439 | 439 | } |
440 | 440 | else |
441 | 441 | { |
442 | | strcpy( FileName, "../../data/" ); |
| 442 | strcpy( FileName, MSPCCS_DATA_DEFAULT ); |
443 | 443 | } |
444 | 444 | strcat( FileName, "ellips.dat" ); |
445 | 445 | if( ( fp = fopen( FileName, "w" ) ) == NULL ) |
… |
… |
|
686 | 686 | else |
687 | 687 | { |
688 | 688 | FileName = new char[ 22 ]; |
689 | | strcpy( FileName, "../../data/" ); |
| 689 | strcpy( FileName, MSPCCS_DATA_DEFAULT ); |
690 | 690 | } |
691 | 691 | strcat( FileName, "ellips.dat" ); |
692 | 692 | |
diff -ruN CCS.orig/src/dtcc/GeoidLibrary.cpp CCS/src/dtcc/GeoidLibrary.cpp
old
|
new
|
|
1053 | 1053 | else |
1054 | 1054 | { |
1055 | 1055 | file_name = new char[ 21 ]; |
1056 | | strcpy( file_name, "../../data/" ); |
| 1056 | strcpy( file_name, MSPCCS_DATA_DEFAULT ); |
1057 | 1057 | } |
1058 | 1058 | strcat( file_name, "egm96.grd" ); |
1059 | 1059 | |
… |
… |
|
1148 | 1148 | else |
1149 | 1149 | { |
1150 | 1150 | file_name =new char[ 21 ]; |
1151 | | strcpy( file_name, "../../data/" ); |
| 1151 | strcpy( file_name, MSPCCS_DATA_DEFAULT ); |
1152 | 1152 | } |
1153 | 1153 | strcat( file_name, "egm84.grd" ); |
1154 | 1154 | |
… |
… |
|
1216 | 1216 | else |
1217 | 1217 | { |
1218 | 1218 | file_name =new char[ 22 ]; |
1219 | | strcpy( file_name, "../../data/" ); |
| 1219 | strcpy( file_name, MSPCCS_DATA_DEFAULT ); |
1220 | 1220 | } |
1221 | 1221 | strcat( file_name, "wwgrid.bin" ); |
1222 | 1222 | |
diff -ruN CCS.orig/src/dtcc/egm2008_geoid_grid.cpp CCS/src/dtcc/egm2008_geoid_grid.cpp
old
|
new
|
|
97 | 97 | |
98 | 98 | if ( NULL == pathName ) |
99 | 99 | { |
100 | | strcpy( pathName, "../../data" ); |
| 100 | pathName = MSPCCS_DATA_DEFAULT; |
101 | 101 | } |
102 | 102 | |
103 | 103 | length = strlen( pathName ); |
… |
… |
|
122 | 122 | //if ( NULL == dataPath ) |
123 | 123 | //{ |
124 | 124 | // undefEnvVar = 1; |
125 | | // strcpy( dataPath, "../../data" ); |
| 125 | // strcpy( dataPath, MSPCCS_DATA_DEFAULT ); |
126 | 126 | //} |
127 | 127 | // |
128 | 128 | //// Assemble the path and file name |