[GRASS-SVN] r58248 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 17 10:22:12 PST 2013


Author: martinl
Date: 2013-11-17 10:22:12 -0800 (Sun, 17 Nov 2013)
New Revision: 58248

Modified:
   grass/trunk/lib/vector/Vlib/read_pg.c
Log:
vlib/pg: fix typo in sql statement (getting 0D topological elements in random order)

Modified: grass/trunk/lib/vector/Vlib/read_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/read_pg.c	2013-11-17 18:20:55 UTC (rev 58247)
+++ grass/trunk/lib/vector/Vlib/read_pg.c	2013-11-17 18:22:12 UTC (rev 58248)
@@ -1366,7 +1366,7 @@
         if (type & GV_POINTS) {
             sprintf(stmt,
                     "SELECT tt.geom,tt.containing_face,ft.fid FROM \"%s\".node AS tt "
-                    "LEFT JOIN \"%s\" AS ft ON (%s).type = 1 and (%s).id = edge_id "
+                    "LEFT JOIN \"%s\" AS ft ON (%s).type = 1 and (%s).id = node_id "
                     "WHERE node_id = %d",
                     pg_info->toposchema_name, pg_info->table_name, pg_info->topogeom_column,
                     pg_info->topogeom_column, fid);



More information about the grass-commit mailing list