Browse Source

v.in.ascii: add text=none to restore geonames import

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69354 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 8 years ago
parent
commit
48bed4f147
1 changed files with 5 additions and 1 deletions
  1. 5 1
      vector/v.in.ascii/main.c

+ 5 - 1
vector/v.in.ascii/main.c

@@ -38,6 +38,8 @@ static char *get_td(const struct Option *option)
         sep = G_store("\"");
     else if (strcmp(option->answer, "singlequote") == 0)
         sep = G_store("\'");
+    else if (strcmp(option->answer, "none") == 0)
+        sep = NULL;
     else
         sep = G_store(option->answer);
 
@@ -101,7 +103,7 @@ int main(int argc, char *argv[])
     tdelim_opt->key = "text";
     tdelim_opt->label = "Text delimiter";
     tdelim_opt->answer = "doublequote";
-    tdelim_opt->description = _("Special characters: doublequote, singlequote");
+    tdelim_opt->description = _("Special characters: doublequote, singlequote, none");
     tdelim_opt->guisection = _("Input format");
 
     skip_opt = G_define_option();
@@ -332,6 +334,8 @@ int main(int argc, char *argv[])
 	    make_table = FALSE;
 	}
 
+	coltype2 = NULL;
+
 	if (make_table) {
 	    Fi = Vect_default_field_info(&Map, 1, NULL, GV_1TABLE);
 	    driver =