[Liblas-commits] hg: use blk_id instead of obj_id

liblas-commits at liblas.org liblas-commits at liblas.org
Wed Oct 21 16:55:20 EDT 2009


changeset 21a88d859fb2 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=21a88d859fb2
summary: use blk_id instead of obj_id

diffstat:

 apps/las2oci.cpp |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 892246f18c76 -r 21a88d859fb2 apps/las2oci.cpp
--- a/apps/las2oci.cpp	Tue Oct 20 11:07:50 2009 -0500
+++ b/apps/las2oci.cpp	Wed Oct 21 15:52:29 2009 -0500
@@ -317,7 +317,7 @@
                                             b->getHigh(0) <<","<<
                                             b->getHigh(1) <<","<<
                                             b->getHigh(2)<<"))";
-    oss << "INSERT INTO "<< tableName << "(OBJ_ID, NUM_POINTS, BLK_EXTENT, POINTS) VALUES ( " 
+    oss << "INSERT INTO "<< tableName << "(BLK_ID, NUM_POINTS, BLK_EXTENT, POINTS) VALUES ( " 
                          << result.GetID() <<"," << num_points << ", " << oss_geom.str() <<", EMPTY_BLOB())";
 
     OWStatement* statement = 0;
@@ -331,7 +331,8 @@
     delete statement; statement = 0;
     oss.str("");
     
-    oss << "SELECT POINTS FROM " << tableName << " WHERE OBJ_ID=" << result.GetID() << " FOR UPDATE";
+    // FIXME (BLK_ID *and* OBJ_ID must be used as part of the query.)
+    oss << "SELECT POINTS FROM " << tableName << " WHERE BLK_ID=" << result.GetID() << " FOR UPDATE";
     
     // we only expect one blob to come back
     OCILobLocator** locator =(OCILobLocator**) VSIMalloc( sizeof(OCILobLocator*) * 1 );


More information about the Liblas-commits mailing list