Changeset 1601:3970d7dd6303
- Timestamp:
- 03/02/10 10:49:27 (5 months ago)
- Branch:
- default
- Files:
-
- 1 deleted
- 7 edited
-
apps/las2oci.cpp (modified) (5 diffs)
-
include/Makefile.am (modified) (1 diff)
-
include/liblas/detail/reader/reader.hpp (modified) (1 diff)
-
include/liblas/detail/writer/writer.hpp (modified) (1 diff)
-
include/liblas/interfaces.hpp (deleted)
-
include/liblas/lasreader.hpp (modified) (1 diff)
-
include/liblas/laswriter.hpp (modified) (1 diff)
-
include/liblas/liblas.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
apps/las2oci.cpp
r1600 r1601 108 108 } 109 109 110 std::string ReadSQLData(char * filename)110 std::string ReadSQLData(char const* filename) 111 111 { 112 112 std::istream* infile = OpenInput(filename, true); … … 852 852 s_srid << srid; 853 853 } 854 855 double x0, x1, y0, y1, z0, z1; 854 856 855 double tolerance = 0.05; 857 856 extent* e = GetExtent( &(query->bounds), bUse3d ); 857 858 if (IsGeographic(connection, srid)) { 859 e->x0 = -180.0; e->x1 = 180.0; 860 e->y0 = -90.0; e->y1 = 90.0; 861 e->z0 = 0.0; e->z1 = 20000.0; 862 863 tolerance = 0.000000005; 864 } 865 866 858 867 if (bSetExtents){ 859 x0 = xmin; x1 = xmax; 860 y0 = ymin; y1 = ymax; 861 z0 = zmin; z1 = zmax; 862 } else { 863 x0 = query->bounds.getLow(0); 864 x1 = query->bounds.getHigh(0); 865 y0 = query->bounds.getLow(1); 866 y1 = query->bounds.getHigh(1); 867 868 if (bUse3d) { 869 try { 870 z0 = query->bounds.getLow(2); 871 z1 = query->bounds.getHigh(2); 872 } catch (Tools::IndexOutOfBoundsException& e) { 873 z0 = 0; 874 z1 = 20000; 875 } 876 // } else if (bGeographic) { 877 // x0 = -180.0; 878 // x1 = 180.0; 879 // y0 = -90.0; 880 // y1 = 90.0; 881 // z0 = 0.0; 882 // z1 = 20000.0; 883 // tolerance = 0.000000005; 884 } else { 885 z0 = 0.0; 886 z1 = 20000.0; 887 } 888 } 889 868 e->x0 = xmin; e->x1 = xmax; 869 e->y0 = ymin; e->y1 = ymax; 870 e->z0 = zmin; e->z1 = zmax; 871 } 890 872 891 873 … … 893 875 "','blk_extent', MDSYS.SDO_DIM_ARRAY("; 894 876 895 oss << "MDSYS.SDO_DIM_ELEMENT('X', " << x0 << "," <<x1 <<"," << tolerance << "),"896 "MDSYS.SDO_DIM_ELEMENT('Y', " << y0 << "," <<y1 <<"," << tolerance << ")";877 oss << "MDSYS.SDO_DIM_ELEMENT('X', " << e->x0 << "," << e->x1 <<"," << tolerance << ")," 878 "MDSYS.SDO_DIM_ELEMENT('Y', " << e->y0 << "," << e->y1 <<"," << tolerance << ")"; 897 879 898 if ( bUse3d) {880 if (e->bUse3d) { 899 881 oss << ","; 900 oss <<"MDSYS.SDO_DIM_ELEMENT('Z', "<< z0 << "," <<z1 << "," << tolerance << ")";882 oss <<"MDSYS.SDO_DIM_ELEMENT('Z', "<< e->z0 << "," << e->z1 << "," << tolerance << ")"; 901 883 } 902 884 oss << ")," << s_srid.str() << ")"; … … 905 887 if (statement != 0) delete statement; else return false; 906 888 oss.str(""); 889 890 delete e; 907 891 908 892 return true; … … 1045 1029 1046 1030 bool is_geo = IsGeographic(connection, srid); 1047 1048 std::cout <<"Is Geographic? :" << is_geo << std::endl; 1031 1049 1032 if (srid == 0) { 1050 1033 s_srid << "NULL"; -
include/Makefile.am
r1571 r1601 5 5 liblas/exception.hpp \ 6 6 liblas/guid.hpp \ 7 liblas/interfaces.hpp \8 7 liblas/iterator.hpp \ 9 8 liblas/lasclassification.hpp \ -
include/liblas/detail/reader/reader.hpp
r1571 r1601 46 46 #include <liblas/detail/reader/point.hpp> 47 47 #include <liblas/detail/reader/header.hpp> 48 #include <liblas/ interfaces.hpp>48 #include <liblas/liblas.hpp> 49 49 50 50 // std -
include/liblas/detail/writer/writer.hpp
r1573 r1601 44 44 45 45 #include <liblas/detail/fwd.hpp> 46 #include <liblas/ interfaces.hpp>46 #include <liblas/liblas.hpp> 47 47 #include <liblas/detail/writer/point.hpp> 48 48 #include <liblas/detail/writer/header.hpp> -
include/liblas/lasreader.hpp
r1579 r1601 45 45 46 46 #include <liblas/detail/fwd.hpp> 47 #include <liblas/ interfaces.hpp>47 #include <liblas/liblas.hpp> 48 48 49 49 #include <liblas/lasheader.hpp> -
include/liblas/laswriter.hpp
r1579 r1601 47 47 #include <liblas/laspoint.hpp> 48 48 #include <liblas/detail/fwd.hpp> 49 #include <liblas/ interfaces.hpp>49 #include <liblas/liblas.hpp> 50 50 51 51 // std -
include/liblas/liblas.hpp
r1531 r1601 47 47 48 48 #include <liblas/cstdint.hpp> 49 #include <liblas/detail/fwd.hpp> 49 50 #include <fstream> 50 51 #include <string> … … 146 147 147 148 }; 148 149 150 151 class ReaderI 152 { 153 public: 154 155 virtual LASHeader const& ReadHeader() = 0; 156 virtual LASPoint const& ReadNextPoint(const LASHeader& header) = 0; 157 virtual LASPoint const& ReadPointAt(std::size_t n, const LASHeader& header) = 0; 158 159 virtual void Reset(const LASHeader& header) = 0; 160 virtual void SetInputSRS(const LASSpatialReference& srs) = 0; 161 virtual void SetOutputSRS(const LASSpatialReference& srs, const LASHeader& header) = 0; 162 163 virtual ~ReaderI() {}; 164 }; 165 166 class WriterI 167 { 168 public: 169 170 virtual LASHeader const& WriteHeader(const LASHeader& header) = 0; 171 virtual void UpdateHeader(const LASHeader& header) = 0; 172 virtual void WritePoint(const LASPoint& point, const LASHeader& header) = 0; 173 174 virtual void SetInputSRS(const LASSpatialReference& srs) = 0; 175 virtual void SetOutputSRS(const LASSpatialReference& srs, const LASHeader& header) = 0; 176 177 virtual ~WriterI() {}; 178 179 }; 149 180 } // namespace liblas 150 181
Note: See TracChangeset
for help on using the changeset viewer.
