Ticket #34960: datadir.diff

File datadir.diff, 3.6 KB (added by klee@…, 12 years ago)
  • src/dtcc/CoordinateSystems/datum/DatumLibraryImplementation.cpp

    diff -ruN CCS.orig/src/dtcc/CoordinateSystems/datum/DatumLibraryImplementation.cpp CCS/src/dtcc/CoordinateSystems/datum/DatumLibraryImplementation.cpp
    old new  
    20062006  else
    20072007  {
    20082008    FileName7 = new char[ file_name_length ];
    2009     strcpy( FileName7, "../../data/" );
     2009    strcpy( FileName7, MSPCCS_DATA_DEFAULT );
    20102010  }
    20112011  strcat( FileName7, "7_param.dat" );
    20122012
     
    21242124    else
    21252125    {
    21262126       FileName3 = new char[ file_name_length ];
    2127        strcpy( FileName3, "../../data/" );
     2127       strcpy( FileName3, MSPCCS_DATA_DEFAULT );
    21282128    }
    21292129    strcat( FileName3, "3_param.dat" );
    21302130
     
    22442244  }
    22452245  else
    22462246  {
    2247     strcpy( FileName, "../../data/" );
     2247    strcpy( FileName, MSPCCS_DATA_DEFAULT );
    22482248  }
    22492249  strcat( FileName, "3_param.dat" );
    22502250
     
    23242324  }
    23252325  else
    23262326  {
    2327     strcpy( FileName, "../../data/" );
     2327    strcpy( FileName, MSPCCS_DATA_DEFAULT );
    23282328  }
    23292329  strcat( FileName, "7_param.dat" );
    23302330
  • src/dtcc/CoordinateSystems/ellipse/EllipsoidLibraryImplementation.cpp

    diff -ruN CCS.orig/src/dtcc/CoordinateSystems/ellipse/EllipsoidLibraryImplementation.cpp CCS/src/dtcc/CoordinateSystems/ellipse/EllipsoidLibraryImplementation.cpp
    old new  
    349349    }
    350350    else
    351351    {
    352       strcpy( FileName, "../../data/" );
     352      strcpy( FileName, MSPCCS_DATA_DEFAULT );
    353353    }
    354354    strcat( FileName, "ellips.dat" );
    355355
     
    439439    }
    440440    else
    441441    {
    442       strcpy( FileName, "../../data/" );
     442      strcpy( FileName, MSPCCS_DATA_DEFAULT );
    443443    }
    444444    strcat( FileName, "ellips.dat" );
    445445    if( ( fp = fopen( FileName, "w" ) ) == NULL )
     
    686686  else
    687687  {
    688688    FileName = new char[ 22 ];
    689     strcpy( FileName, "../../data/" );
     689    strcpy( FileName, MSPCCS_DATA_DEFAULT );
    690690  }
    691691  strcat( FileName, "ellips.dat" );
    692692
  • src/dtcc/GeoidLibrary.cpp

    diff -ruN CCS.orig/src/dtcc/GeoidLibrary.cpp CCS/src/dtcc/GeoidLibrary.cpp
    old new  
    10531053  else
    10541054  {
    10551055    file_name = new char[ 21 ];
    1056     strcpy( file_name, "../../data/" );
     1056    strcpy( file_name, MSPCCS_DATA_DEFAULT );
    10571057  }
    10581058  strcat( file_name, "egm96.grd" );
    10591059
     
    11481148  else
    11491149  {
    11501150    file_name =new char[ 21 ];
    1151     strcpy( file_name, "../../data/" );
     1151    strcpy( file_name, MSPCCS_DATA_DEFAULT );
    11521152  }
    11531153  strcat( file_name, "egm84.grd" );
    11541154
     
    12161216  else
    12171217  {
    12181218    file_name =new char[ 22 ];
    1219     strcpy( file_name, "../../data/" );
     1219    strcpy( file_name, MSPCCS_DATA_DEFAULT );
    12201220  }
    12211221  strcat( file_name, "wwgrid.bin" );
    12221222
  • src/dtcc/egm2008_geoid_grid.cpp

    diff -ruN CCS.orig/src/dtcc/egm2008_geoid_grid.cpp CCS/src/dtcc/egm2008_geoid_grid.cpp
    old new  
    9797
    9898   if ( NULL == pathName )
    9999   {
    100       strcpy( pathName, "../../data" );
     100      pathName = MSPCCS_DATA_DEFAULT;
    101101   }
    102102
    103103   length          = strlen( pathName );
     
    122122   //if ( NULL == dataPath )
    123123   //{
    124124   //   undefEnvVar = 1;
    125    //   strcpy( dataPath, "../../data" );
     125   //   strcpy( dataPath, MSPCCS_DATA_DEFAULT );
    126126   //}
    127127   //
    128128   //// Assemble the path and file name