Made ogr-decode and genapts use their own poly_counter-files in their own directories.
This commit is contained in:
parent
09c7327a80
commit
14403c2d8d
2 changed files with 5 additions and 4 deletions
|
@ -222,15 +222,16 @@ int main( int argc, char **argv ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// make work directory
|
// make work directory
|
||||||
|
string airportareadir=work_dir+"/AirportArea";
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
fg_mkdir( work_dir.c_str() );
|
fg_mkdir( airportareadir.c_str() );
|
||||||
#else
|
#else
|
||||||
string command = "mkdir -p " + work_dir;
|
string command = "mkdir -p " + airportareadir;
|
||||||
system( command.c_str() );
|
system( command.c_str() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// initialize persistant polygon counter
|
// initialize persistant polygon counter
|
||||||
string counter_file = work_dir + "/poly_counter";
|
string counter_file = airportareadir+"/poly_counter";
|
||||||
poly_index_init( counter_file );
|
poly_index_init( counter_file );
|
||||||
|
|
||||||
sg_gzifstream in( input_file );
|
sg_gzifstream in( input_file );
|
||||||
|
|
|
@ -495,7 +495,7 @@ int main( int argc, char **argv ) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// initialize persistant polygon counter
|
// initialize persistant polygon counter
|
||||||
string counter_file = work_dir + "/../poly_counter";
|
string counter_file = work_dir + "/poly_counter";
|
||||||
poly_index_init( counter_file );
|
poly_index_init( counter_file );
|
||||||
|
|
||||||
SG_LOG( SG_GENERAL, SG_DEBUG, "Opening datasource " << datasource << " for reading." );
|
SG_LOG( SG_GENERAL, SG_DEBUG, "Opening datasource " << datasource << " for reading." );
|
||||||
|
|
Loading…
Reference in a new issue