summaryrefslogtreecommitdiff
path: root/navit/maptool/maptool.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-03 10:17:02 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-01-03 10:17:02 +0000
commit1abfa3dc10ee58ac0f294ceda93def4ee088d719 (patch)
treeba614db1acd55901240b129ed9b3174a2a550aee /navit/maptool/maptool.c
parentd04bdc37c6512a2104a9f987a073c9b08d48bbcd (diff)
downloadnavit-1abfa3dc10ee58ac0f294ceda93def4ee088d719.tar.gz
Fix:maptool:Some cleanups
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3853 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/maptool/maptool.c')
-rw-r--r--navit/maptool/maptool.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/navit/maptool/maptool.c b/navit/maptool/maptool.c
index f8383797c..3b52e7c06 100644
--- a/navit/maptool/maptool.c
+++ b/navit/maptool/maptool.c
@@ -151,6 +151,7 @@ int main(int argc, char **argv)
int protobuf=0;
int f,pos;
char *result,*optarg_cp,*attr_name,*attr_value;
+ char *protobufdb=NULL,*protobufdb_operation=NULL;
#ifdef HAVE_POSTGRESQL
char *dbstr=NULL;
#endif
@@ -206,7 +207,7 @@ int main(int argc, char **argv)
{"slice-size", 1, 0, 'S'},
{0, 0, 0, 0}
};
- c = getopt_long (argc, argv, "6DNWS:a:bc"
+ c = getopt_long (argc, argv, "6B:DNO:WS:a:bc"
#ifdef HAVE_POSTGRESQL
"d:"
#endif
@@ -217,6 +218,9 @@ int main(int argc, char **argv)
case '6':
zip64=1;
break;
+ case 'B':
+ protobufdb=optarg;
+ break;
case 'D':
output=1;
break;
@@ -226,6 +230,10 @@ int main(int argc, char **argv)
case 'R':
process_relations=0;
break;
+ case 'O':
+ protobufdb_operation=optarg;
+ output=1;
+ break;
case 'P':
protobuf=1;
break;
@@ -323,6 +331,12 @@ int main(int argc, char **argv)
result=argv[optind];
maptool_init();
+#if 0
+ if (protobufdb_operation) {
+ osm_protobufdb_load(input_file, protobufdb);
+ return 0;
+ }
+#endif
if (input == 0) {
if (start == 1) {