Explorar el Código

v.out.postgis: build from scratch, fix message

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58298 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa hace 11 años
padre
commit
65633a77f8
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      vector/v.out.postgis/main.c

+ 2 - 1
vector/v.out.postgis/main.c

@@ -154,6 +154,7 @@ int main(int argc, char *argv[])
     Vect_close(&In);
 
     /* build topology for output map */
+    Vect_build_partial(&Out, GV_BUILD_NONE);
     if (Vect_build(&Out) != 1)
         G_fatal_error(_("Building %s topology failed"),
                       flags.topo->answer ? "PostGIS" : "pseudo");
@@ -168,7 +169,7 @@ int main(int argc, char *argv[])
                    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_num_lines(&Out), 
                    Vect_get_name(&Out));
     
     /* close output map */