2008-10-02 16:23:55 -05:00
|
|
|
#include <string>
|
2010-09-25 21:59:01 +02:00
|
|
|
#include <iostream>
|
2008-10-02 16:23:55 -05:00
|
|
|
|
|
|
|
|
#include "TileAssembler.h"
|
|
|
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
|
{
|
2013-08-24 22:56:29 +01:00
|
|
|
if (argc != 3)
|
2008-10-02 16:23:55 -05:00
|
|
|
{
|
2010-09-25 21:59:01 +02:00
|
|
|
std::cout << "usage: " << argv[0] << " <raw data dir> <vmap dest dir>" << std::endl;
|
2009-05-31 15:09:00 -05:00
|
|
|
return 1;
|
|
|
|
|
}
|
2008-10-02 16:23:55 -05:00
|
|
|
|
2010-09-25 21:59:01 +02:00
|
|
|
std::string src = argv[1];
|
|
|
|
|
std::string dest = argv[2];
|
2009-05-31 15:09:00 -05:00
|
|
|
|
2010-09-25 21:59:01 +02:00
|
|
|
std::cout << "using " << src << " as source directory and writing output to " << dest << std::endl;
|
2009-05-31 15:09:00 -05:00
|
|
|
|
2010-09-25 21:59:01 +02:00
|
|
|
VMAP::TileAssembler* ta = new VMAP::TileAssembler(src, dest);
|
2009-05-31 15:09:00 -05:00
|
|
|
|
2013-08-24 22:56:29 +01:00
|
|
|
if (!ta->convertWorld2())
|
2008-10-02 16:23:55 -05:00
|
|
|
{
|
2010-09-25 21:59:01 +02:00
|
|
|
std::cout << "exit with errors" << std::endl;
|
2009-05-31 15:09:00 -05:00
|
|
|
delete ta;
|
2008-10-02 16:23:55 -05:00
|
|
|
return 1;
|
|
|
|
|
}
|
2009-05-31 15:09:00 -05:00
|
|
|
|
|
|
|
|
delete ta;
|
2010-09-25 21:59:01 +02:00
|
|
|
std::cout << "Ok, all done" << std::endl;
|
2008-10-02 16:23:55 -05:00
|
|
|
return 0;
|
|
|
|
|
}
|