[Liblas-commits] hg: don't bomb if we don't have aux_columns
liblas-commits at liblas.org
liblas-commits at liblas.org
Mon Oct 19 14:17:17 EDT 2009
changeset 4539ed747928 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=4539ed747928
summary: don't bomb if we don't have aux_columns
diffstat:
apps/las2oci.cpp | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r c6f47214ac29 -r 4539ed747928 apps/las2oci.cpp
--- a/apps/las2oci.cpp Mon Oct 19 12:07:58 2009 -0500
+++ b/apps/las2oci.cpp Mon Oct 19 13:14:34 2009 -0500
@@ -491,10 +491,14 @@
ostringstream columns;
ostringstream values;
- columns << cloudColumnName_u << "," << aux_columns_u;
+ if (!aux_columns_u.empty() ) {
+ columns << cloudColumnName_u << "," << aux_columns_u;
- values << "pc," << aux_values_l;
-
+ values << "pc," << aux_values_l;
+ } else {
+ columns << cloudColumnName_u;
+ values << "pc";
+ }
oss << "declare\n"
" pc sdo_pc;\n"
More information about the Liblas-commits
mailing list