[GRASS-SVN] r56470 - grass/trunk/vector/v.out.postgis
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed May 29 05:09:47 PDT 2013
Author: martinl
Date: 2013-05-29 05:09:46 -0700 (Wed, 29 May 2013)
New Revision: 56470
Modified:
grass/trunk/vector/v.out.postgis/main.c
Log:
v.out.postgis: correct done message
Modified: grass/trunk/vector/v.out.postgis/main.c
===================================================================
--- grass/trunk/vector/v.out.postgis/main.c 2013-05-29 12:08:34 UTC (rev 56469)
+++ grass/trunk/vector/v.out.postgis/main.c 2013-05-29 12:09:46 UTC (rev 56470)
@@ -162,9 +162,14 @@
G_fatal_error(_("No features exported. PostGIS layer <%s> not created."),
Vect_get_name(&Out));
- G_done_msg(_("%d features (%s) written to <%s>."),
- Vect_get_num_lines(&Out), Vect_get_finfo_geometry_type(&Out),
- Vect_get_name(&Out));
+ if (!flags.topo->answer)
+ G_done_msg(_("%d features (%s type) written to <%s>."),
+ Vect_sfa_get_num_features(&Out), Vect_get_finfo_geometry_type(&Out),
+ Vect_get_name(&Out));
+ else
+ G_done_msg(_("%d primitives written to <%s>."),
+ Vect_get_num_lines(&Out), Vect_get_finfo_geometry_type(&Out),
+ Vect_get_name(&Out));
/* close output map */
Vect_close(&Out);
More information about the grass-commit
mailing list