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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 28 03:52:34 PDT 2017


Author: martinl
Date: 2017-04-28 03:52:34 -0700 (Fri, 28 Apr 2017)
New Revision: 70977

Modified:
   grass/trunk/lib/vector/Vlib/copy.c
Log:
vlib: fix copying centroids when using PostGIS Topology (see 'v.out.postgis -l')

Modified: grass/trunk/lib/vector/Vlib/copy.c
===================================================================
--- grass/trunk/lib/vector/Vlib/copy.c	2017-04-28 10:36:07 UTC (rev 70976)
+++ grass/trunk/lib/vector/Vlib/copy.c	2017-04-28 10:52:34 UTC (rev 70977)
@@ -94,7 +94,7 @@
         
         /* get type of first feature from input vector map */
         Vect_rewind(In);
-        Vect_set_constraint_type(In, GV_POINT | GV_LINES);
+        Vect_set_constraint_type(In, GV_POINTS | GV_LINES);
         type = Vect_read_next_line(In, NULL, NULL);
             
         /* create feature table with given feature type */



More information about the grass-commit mailing list