#include "MapSource.h" void usage(); void help(); //////////// modes //////////////////////////////// // // render an OSM file: // Input: XMLfile OSMfile width height [bbox] // // render live data in 256x256 tiles: // Input: XMLfile bbox int main(int argc,char *argv[]) { if(argc<2 || (argc>=2 && !strcmp(argv[1],"-h"))) { usage(); help(); exit(0); } MapSource s ; s.process_cmd_line_args(argc,argv); if(!s.isValid()) { cerr << "Invalid combination of command-line parameters!" << endl<