1
0
Fork 0

Made ogr-decode and genapts use their own poly_counter-files in their own directories.

This commit is contained in:
Ralf Gerlich 2008-01-01 16:27:46 +01:00
parent 09c7327a80
commit 14403c2d8d
2 changed files with 5 additions and 4 deletions

View file

@ -222,15 +222,16 @@ int main( int argc, char **argv ) {
}
// make work directory
string airportareadir=work_dir+"/AirportArea";
#ifdef _MSC_VER
fg_mkdir( work_dir.c_str() );
fg_mkdir( airportareadir.c_str() );
#else
string command = "mkdir -p " + work_dir;
string command = "mkdir -p " + airportareadir;
system( command.c_str() );
#endif
// initialize persistant polygon counter
string counter_file = work_dir + "/poly_counter";
string counter_file = airportareadir+"/poly_counter";
poly_index_init( counter_file );
sg_gzifstream in( input_file );

View file

@ -495,7 +495,7 @@ int main( int argc, char **argv ) {
#endif
// initialize persistant polygon counter
string counter_file = work_dir + "/../poly_counter";
string counter_file = work_dir + "/poly_counter";
poly_index_init( counter_file );
SG_LOG( SG_GENERAL, SG_DEBUG, "Opening datasource " << datasource << " for reading." );