[GRASS-SVN] r72102 - grass/branches/releasebranch_7_2/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 20 02:53:45 PST 2018


Author: martinl
Date: 2018-01-20 02:53:45 -0800 (Sat, 20 Jan 2018)
New Revision: 72102

Modified:
   grass/branches/releasebranch_7_2/lib/vector/Vlib/read_pg.c
Log:
v.external: mixed up IDs from PostGIS tables, fix #3248

Modified: grass/branches/releasebranch_7_2/lib/vector/Vlib/read_pg.c
===================================================================
--- grass/branches/releasebranch_7_2/lib/vector/Vlib/read_pg.c	2018-01-19 21:36:37 UTC (rev 72101)
+++ grass/branches/releasebranch_7_2/lib/vector/Vlib/read_pg.c	2018-01-20 10:53:45 UTC (rev 72102)
@@ -386,7 +386,7 @@
 
         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];



More information about the grass-commit mailing list