From 14403c2d8dcc5a1ba97ef179895afb33d9f525a2 Mon Sep 17 00:00:00 2001 From: Ralf Gerlich Date: Tue, 1 Jan 2008 16:27:46 +0100 Subject: [PATCH] Made ogr-decode and genapts use their own poly_counter-files in their own directories. --- src/Airports/GenAirports/main.cxx | 7 ++++--- src/Prep/OGRDecode/ogr-decode.cxx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Airports/GenAirports/main.cxx b/src/Airports/GenAirports/main.cxx index ac1d3bc3..5876747e 100644 --- a/src/Airports/GenAirports/main.cxx +++ b/src/Airports/GenAirports/main.cxx @@ -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 ); diff --git a/src/Prep/OGRDecode/ogr-decode.cxx b/src/Prep/OGRDecode/ogr-decode.cxx index 1936d280..3ce7fb10 100644 --- a/src/Prep/OGRDecode/ogr-decode.cxx +++ b/src/Prep/OGRDecode/ogr-decode.cxx @@ -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." );