浏览代码

v.out.postgis: fix feature type (use only points, lines or boundaries)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54013 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父节点
当前提交
de1cc80732
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      vector/v.out.postgis/create.c

+ 1 - 0
vector/v.out.postgis/create.c

@@ -19,6 +19,7 @@ void create_table(struct Map_info *In, struct Map_info *Out)
     /* create PostGIS table if doesn't exist
        determine feature type from the first feature */
     Vect_rewind(In);
+    Vect_set_constraint_type(In, GV_POINT | GV_LINES);
     type = Vect_read_next_line(In, NULL, NULL);
     Vect_rewind(In);