[GRASS-SVN] r55489 - grass/trunk/vector/v.out.postgis
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Mar 22 08:53:12 PDT 2013
Author: martinl
Date: 2013-03-22 08:53:12 -0700 (Fri, 22 Mar 2013)
New Revision: 55489
Modified:
grass/trunk/vector/v.out.postgis/main.c
Log:
v.out.postgis: bugfix (don't use temporary vector map)
Modified: grass/trunk/vector/v.out.postgis/main.c
===================================================================
--- grass/trunk/vector/v.out.postgis/main.c 2013-03-22 13:55:25 UTC (rev 55488)
+++ grass/trunk/vector/v.out.postgis/main.c 2013-03-22 15:53:12 UTC (rev 55489)
@@ -121,7 +121,10 @@
/* 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);
More information about the grass-commit
mailing list