[GRASS-SVN] r58243 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 17 03:08:07 PST 2013


Author: martinl
Date: 2013-11-17 03:08:06 -0800 (Sun, 17 Nov 2013)
New Revision: 58243

Modified:
   grass/trunk/lib/vector/Vlib/copy.c
Log:
vlib/pg: fix copying map features for external formats when using temporary maps

Modified: grass/trunk/lib/vector/Vlib/copy.c
===================================================================
--- grass/trunk/lib/vector/Vlib/copy.c	2013-11-17 00:29:55 UTC (rev 58242)
+++ grass/trunk/lib/vector/Vlib/copy.c	2013-11-17 11:08:06 UTC (rev 58243)
@@ -82,7 +82,8 @@
         G_fatal_error(_("Unable to copy features. Input vector map <%s> is not open"),
                       Vect_get_full_name(In));
 
-    format = Vect_maptype(Out);
+    format = Out->format; /* do not use Vect_maptype(), we need native
+                             format for temporary maps here */
     topo = TOPO_NONE;
     if (format == GV_FORMAT_NATIVE) {
         topo = TOPO_NATIVE;



More information about the grass-commit mailing list