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

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Apr 28 03:36:07 PDT 2017


Author: martinl
Date: 2017-04-28 03:36:07 -0700 (Fri, 28 Apr 2017)
New Revision: 70976

Modified:
   grass/trunk/lib/vector/Vlib/build.c
   grass/trunk/lib/vector/Vlib/copy.c
Log:
vlib: skip build message when using PostGIS Topology (cosmetics)

Modified: grass/trunk/lib/vector/Vlib/build.c
===================================================================
--- grass/trunk/lib/vector/Vlib/build.c	2017-04-28 10:34:31 UTC (rev 70975)
+++ grass/trunk/lib/vector/Vlib/build.c	2017-04-28 10:36:07 UTC (rev 70976)
@@ -867,7 +867,7 @@
     }
 
     plus = &(Map->plus);
-    if (build > GV_BUILD_NONE && !Map->temporary) {
+    if (build > GV_BUILD_NONE && !Map->temporary && Map->format != GV_FORMAT_POSTGIS) {
 	G_message(_("Building topology for vector map <%s>..."),
 		  Vect_get_full_name(Map));
     }

Modified: grass/trunk/lib/vector/Vlib/copy.c
===================================================================
--- grass/trunk/lib/vector/Vlib/copy.c	2017-04-28 10:34:31 UTC (rev 70975)
+++ grass/trunk/lib/vector/Vlib/copy.c	2017-04-28 10:36:07 UTC (rev 70976)
@@ -96,8 +96,6 @@
         Vect_rewind(In);
         Vect_set_constraint_type(In, GV_POINT | GV_LINES);
         type = Vect_read_next_line(In, NULL, NULL);
-        if (!(type & (GV_POINTS | GV_LINES)))
-            G_fatal_error(_("Unsupported feature type %d"), type);
             
         /* create feature table with given feature type */
         if (0 > Vect_write_line(Out, type, NULL, NULL)) {



More information about the grass-commit mailing list