[Liblas-commits] hg: use SDO_GEOMETRY construtor when creating the
boundary entry...
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Mar 28 09:46:49 EDT 2011
details: http://hg.liblas.orghg/rev/899d457f44a8
changeset: 2908:899d457f44a8
user: Howard Butler <hobu.inc at gmail.com>
date: Mon Mar 28 08:46:49 2011 -0500
description:
use SDO_GEOMETRY construtor when creating the boundary entry for SDO_PC (and insert the SRID along with it)
diffstat:
apps/las2oci.cpp | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 4f3feeea2515 -r 899d457f44a8 apps/las2oci.cpp
--- a/apps/las2oci.cpp Mon Mar 28 08:37:00 2011 -0500
+++ b/apps/las2oci.cpp Mon Mar 28 08:46:49 2011 -0500
@@ -421,8 +421,8 @@
}
if (!boundary_column_u.empty()){
- columns << "," << header_blob_column_u;
- values <<", :3";
+ columns << "," << boundary_column_u;
+ values <<", SDO_GEOMETRY(:3, :4)";
}
@@ -535,7 +535,11 @@
statement->Define( locator, 1 );
statement->Bind((char*)&(wkt[0]),(long)bounary_wkt.size());
-
+
+ long* srid_d = 0;
+ srid_d = (long*) malloc (1 * sizeof(long));
+ srid_d[0] = srid;
+ statement->Bind(srid_d);
}
More information about the Liblas-commits
mailing list