浏览代码

v.out.postgis: bugfix (don't use temporary vector map)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55489 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父节点
当前提交
0855d783ac
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      vector/v.out.postgis/main.c

+ 4 - 1
vector/v.out.postgis/main.c

@@ -121,7 +121,10 @@ int main(int argc, char *argv[])
 	/* check fid column */
 	check_columns(&In, params.layer->answer, fid_column, geom_column);
     }
-    
+
+    /* don't use temporary maps, writes vector features immediately to
+       the output PostGIS layer */
+    putenv("GRASS_VECTOR_EXTERNAL_IMMEDIATE=1");
     if (-1 == Vect_open_new(&Out, olayer, Vect_is_3d(&In)))
         G_fatal_error(_("Unable to create PostGIS layer <%s>"),
                       olayer);