Browse Source

vlib: fix copying centroids when using PostGIS Topology (see 'v.out.postgis -l')

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70977 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 năm trước cách đây
mục cha
commit
c4191f465b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lib/vector/Vlib/copy.c

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

@@ -94,7 +94,7 @@ int Vect_copy_map_lines_field(struct Map_info *In, int field,
         
         
         /* get type of first feature from input vector map */
         /* get type of first feature from input vector map */
         Vect_rewind(In);
         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);
         type = Vect_read_next_line(In, NULL, NULL);
             
             
         /* create feature table with given feature type */
         /* create feature table with given feature type */