Genapts: add version number and tweak console output a little bit
This commit is contained in:
parent
c9ab625a03
commit
08b5b77864
1 changed files with 7 additions and 6 deletions
|
@ -25,6 +25,7 @@
|
||||||
#include <Polygon/index.hxx>
|
#include <Polygon/index.hxx>
|
||||||
#include <Geometry/util.hxx>
|
#include <Geometry/util.hxx>
|
||||||
#include <Geometry/poly_support.hxx>
|
#include <Geometry/poly_support.hxx>
|
||||||
|
#include <Include/version.h>
|
||||||
|
|
||||||
#include "scheduler.hxx"
|
#include "scheduler.hxx"
|
||||||
#include "beznode.hxx"
|
#include "beznode.hxx"
|
||||||
|
@ -260,17 +261,17 @@ int main(int argc, char **argv)
|
||||||
std::string airportareadir=work_dir+"/AirportArea";
|
std::string airportareadir=work_dir+"/AirportArea";
|
||||||
|
|
||||||
// this is the main program -
|
// this is the main program -
|
||||||
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Genapts850 version " << getTGVersion() << " running with " << num_threads << " threads" );
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Launch command was " << argv[0] );
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Launch command was " << argv[0] );
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Run genapts with " << num_threads << " threads" );
|
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Input file = " << input_file);
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Input file = " << input_file);
|
||||||
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Work directory = " << work_dir);
|
||||||
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Longitude = " << min.getLongitudeDeg() << ':' << max.getLongitudeDeg());
|
||||||
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Latitude = " << min.getLatitudeDeg() << ':' << max.getLatitudeDeg());
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Terrain sources = ");
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Terrain sources = ");
|
||||||
for ( unsigned int i = 0; i < elev_src.size(); ++i ) {
|
for ( unsigned int i = 0; i < elev_src.size(); ++i ) {
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, " " << work_dir << "/" << elev_src[i] );
|
GENAPT_LOG(SG_GENERAL, SG_INFO, " " << work_dir << "/" << elev_src[i] );
|
||||||
}
|
}
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Work directory = " << work_dir);
|
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Nudge = " << nudge);
|
GENAPT_LOG(SG_GENERAL, SG_INFO, "Nudge = " << nudge);
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Longitude = " << min.getLongitudeDeg() << ':' << max.getLongitudeDeg());
|
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Latitude = " << min.getLatitudeDeg() << ':' << max.getLatitudeDeg());
|
|
||||||
|
|
||||||
if (!max.isValid() || !min.isValid())
|
if (!max.isValid() || !min.isValid())
|
||||||
{
|
{
|
||||||
|
@ -279,7 +280,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
// make work directory
|
// make work directory
|
||||||
GENAPT_LOG(SG_GENERAL, SG_INFO, "Creating AirportArea directory");
|
GENAPT_LOG(SG_GENERAL, SG_DEBUG, "Creating AirportArea directory");
|
||||||
|
|
||||||
SGPath sgp( airportareadir );
|
SGPath sgp( airportareadir );
|
||||||
sgp.append( "dummy" );
|
sgp.append( "dummy" );
|
||||||
|
@ -363,4 +364,4 @@ int main(int argc, char **argv)
|
||||||
exit(0);
|
exit(0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue