Ver código fonte

vlib(pg): copy features (set constraint type when determine feature type)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55847 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 anos atrás
pai
commit
8f6cee57c0
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      lib/vector/Vlib/copy.c

+ 2 - 1
lib/vector/Vlib/copy.c

@@ -94,7 +94,8 @@ int Vect_copy_map_lines_field(struct Map_info *In, int field,
         if (!(type & (GV_POINTS | GV_LINES)))
             G_fatal_error(_("Unsupported feature type %d"), type);
             
-         /* create feature table with given feature type */
+        /* create feature table with given feature type */
+        Vect_set_constraint_type(In, GV_POINT | GV_LINES);
         Vect_write_line(Out, type, NULL, NULL);
     }