source: subversion/utils/wayclean/wayclean.cpp @ 2058

Last change on this file since 2058 was 1944, checked in by nick, 13 years ago

update to wayclean to match libosm updates

File size: 530 bytes
Line 
1#include "Parser.h"
2#include "Client.h"
3#include "Node.h"
4#include "Way.h"
5#include <iostream>
6#include <fstream>
7#include <sstream>
8#include <cstdlib>
9#include <vector>
10
11using std::cout;
12using std::cerr;
13using std::endl;
14
15
16int main(int argc,char* argv[])
17{
18        OSM::Components *compIn = OSM::Parser::parse(std::cin);
19
20        if (!compIn)
21        {
22                cerr << OSM::Parser::getError();
23                exit(1);
24        }
25
26        OSM::Components *compOut = compIn->cleanWays(); 
27        if(compOut)
28        {
29                compOut->toXML(std::cout);
30                delete compOut;
31        }
32
33        delete compIn;
34
35        return 0;
36}
Note: See TracBrowser for help on using the repository browser.