Bläddra i källkod

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 år sedan
förälder
incheckning
a3da804355
1 ändrade filer med 1 tillägg och 1 borttagningar
  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);
         Vect_reset_cats(line_c);
         if (!pg_info->toposchema_name) { /* simple features access */
         if (!pg_info->toposchema_name) { /* simple features access */
-            cat = (int) Line->offset;
+            cat = fid;
         }
         }
         else {                           /* PostGIS Topology (cats are cached) */
         else {                           /* PostGIS Topology (cats are cached) */
             cat = pg_info->cache.lines_cats[cache_idx];
             cat = pg_info->cache.lines_cats[cache_idx];