[Liblas-commits] hg-main-tree: try to clean up bounds fetching from the options

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Jun 30 15:52:47 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f7bb59b55778
changeset: 822:f7bb59b55778
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Jun 30 14:52:40 2011 -0500
description:
try to clean up bounds fetching from the options

diffstat:

 src/drivers/oci/Writer.cpp |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 51b76e924db5 -r f7bb59b55778 src/drivers/oci/Writer.cpp
--- a/src/drivers/oci/Writer.cpp	Thu Jun 30 14:43:32 2011 -0500
+++ b/src/drivers/oci/Writer.cpp	Thu Jun 30 14:52:40 2011 -0500
@@ -452,6 +452,8 @@
     }
 
     double tolerance = 0.05;
+    
+
     pdal::Bounds<double> e = m_bounds;
 
     if (IsGeographic(srid)) {
@@ -768,7 +770,10 @@
     
     std::string eleminfo = CreatePCElemInfo();
 
-    pdal::Bounds<double> e = m_bounds;
+    std::string bounds_string  = tree.get<std::string>("base_table_bounds");
+    std::stringstream ss(bounds_string, std::stringstream::in | std::stringstream::out);
+    pdal::Bounds<double> e;
+    ss >> e;
 
     s_geom << "           mdsys.sdo_geometry("<< gtype <<", "<<s_srid.str()<<", null,\n"
 "              mdsys.sdo_elem_info_array"<< eleminfo <<",\n"


More information about the Liblas-commits mailing list