浏览代码

v.external: mixed up IDs from PostGIS tables (see https://trac.osgeo.org/grass/ticket/3248)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70330 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 年之前
父节点
当前提交
a3da804355
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/vector/Vlib/read_pg.c

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

@@ -386,7 +386,7 @@ int V2_read_line_pg(struct Map_info *Map, struct line_pnts *line_p,
 
         Vect_reset_cats(line_c);
         if (!pg_info->toposchema_name) { /* simple features access */
-            cat = (int) Line->offset;
+            cat = fid;
         }
         else {                           /* PostGIS Topology (cats are cached) */
             cat = pg_info->cache.lines_cats[cache_idx];