Browse Source

vlib: ignore OGR file for v.external

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47331 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 years ago
parent
commit
a5b68c114b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lib/vector/Vlib/open.c

+ 2 - 1
lib/vector/Vlib/open.c

@@ -719,7 +719,8 @@ int Vect_open_new(struct Map_info *Map, const char *name, int with_z)
     }
 
     /* determine output format native or ogr */
-    if (G_find_file2("", "OGR", G_mapset())) {
+    if (strcmp(G_program_name(), "v.external") != 0 &&
+	G_find_file2("", "OGR", G_mapset())) {
 	/* OGR */
 	FILE *fp;
 	struct Key_Value *key_val;