Parcourir la 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 il y a 14 ans
Parent
commit
a5b68c114b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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;