Routino SVN Repository Browser

Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino

ViewVC logotype

Annotation of /trunk/src/planetsplitter.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6 - (hide annotations) (download) (as text)
Sat Jan 3 12:25:24 2009 UTC (16 years, 3 months ago) by amb
File MIME type: text/x-csrc
File size: 1089 byte(s)
Added the ways to the output.

1 amb 2 /***************************************
2 amb 6 $Header: /home/amb/CVS/routino/src/planetsplitter.c,v 1.3 2009-01-03 12:25:23 amb Exp $
3 amb 2
4     OSM planet file splitter.
5     ******************/ /******************
6     Written by Andrew M. Bishop
7    
8 amb 4 This file Copyright 2008,2009 Andrew M. Bishop
9 amb 2 It may be distributed under the GNU Public License, version 2, or
10     any higher version. See section COPYING of the GNU Public license
11     for conditions under which this file may be redistributed.
12     ***************************************/
13    
14    
15     #include <stdio.h>
16     #include <stdlib.h>
17    
18     #include "functions.h"
19     #include "types.h"
20    
21    
22     int main(int argc,char** argv)
23     {
24     /* Parse the file */
25    
26     ParseXML(stdin);
27    
28     /* Write out the variables */
29    
30     printf("Saving Nodes"); fflush(stdout);
31     SaveNodeList("data/nodes.mem");
32     printf("\rSaved Nodes \n"); fflush(stdout);
33    
34 amb 6 printf("Saving Ways"); fflush(stdout);
35     SaveWayList("data/ways.mem");
36     printf("\rSaved Ways \n"); fflush(stdout);
37    
38 amb 2 printf("Saving Segments"); fflush(stdout);
39     SaveSegmentList("data/segments.mem");
40     printf("\rSaved Segments \n"); fflush(stdout);
41    
42     return(0);
43     }

Properties

Name Value
cvs:description Planet file splitter.