[Liblas-commits] hg-main-tree: use Ivan's WriteClob function to
write and bind th...
liblas-commits at liblas.org
liblas-commits at liblas.org
Sun Apr 10 22:11:05 EDT 2011
details: http://hg.libpc.orghg-main-tree/rev/77e5ecc85843
changeset: 516:77e5ecc85843
user: Howard Butler <hobu.inc at gmail.com>
date: Sun Apr 10 21:10:59 2011 -0500
description:
use Ivan's WriteClob function to write and bind the WKT column into the SDO_GEOMETRY constructor
diffstat:
src/drivers/oci/Writer.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 0ccb18a1f492 -r 77e5ecc85843 src/drivers/oci/Writer.cpp
--- a/src/drivers/oci/Writer.cpp Sun Apr 10 14:45:12 2011 -0500
+++ b/src/drivers/oci/Writer.cpp Sun Apr 10 21:10:59 2011 -0500
@@ -562,10 +562,12 @@
strncpy(wkt, base_table_boundary_wkt.c_str(), base_table_boundary_wkt.size());
if (!base_table_boundary_column.empty())
{
- OCILobLocator** locator =(OCILobLocator**) VSIMalloc( sizeof(OCILobLocator*) * 1 );
- statement->DefineClob( locator, 1 );
- statement->BindClob(wkt,(long)base_table_boundary_wkt.size());
+
+ OCILobLocator* locator ;
+ statement->WriteCLob( &locator, wkt );
+ statement->Bind(&locator);
statement->Bind((long int*)&srid);
+
}
try {
More information about the Liblas-commits
mailing list