Changeset 1601:3970d7dd6303


Ignore:
Timestamp:
03/02/10 10:49:27 (5 months ago)
Author:
Howard Butler <hobu.inc@…>
Branch:
default
Message:

remove interfaces.hpp #168

Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • apps/las2oci.cpp

    r1600 r1601  
    108108} 
    109109 
    110 std::string ReadSQLData(char* filename) 
     110std::string ReadSQLData(char const* filename) 
    111111{ 
    112112    std::istream* infile = OpenInput(filename, true); 
     
    852852        s_srid << srid; 
    853853    } 
    854      
    855     double x0, x1, y0, y1, z0, z1; 
     854 
    856855    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 
    858867    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    }      
    890872 
    891873      
     
    893875        "','blk_extent', MDSYS.SDO_DIM_ARRAY("; 
    894876     
    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 << ")"; 
    897879            
    898     if (bUse3d) { 
     880    if (e->bUse3d) { 
    899881        oss << ","; 
    900         oss <<"MDSYS.SDO_DIM_ELEMENT('Z', "<< z0 << "," << z1 << "," << tolerance << ")"; 
     882        oss <<"MDSYS.SDO_DIM_ELEMENT('Z', "<< e->z0 << "," << e->z1 << "," << tolerance << ")"; 
    901883    } 
    902884    oss << ")," << s_srid.str() << ")"; 
     
    905887    if (statement != 0) delete statement; else return false; 
    906888    oss.str(""); 
     889     
     890    delete e; 
    907891     
    908892    return true; 
     
    10451029 
    10461030    bool is_geo = IsGeographic(connection, srid); 
    1047      
    1048     std::cout <<"Is Geographic? :" << is_geo << std::endl; 
     1031 
    10491032    if (srid == 0) { 
    10501033        s_srid << "NULL"; 
  • include/Makefile.am

    r1571 r1601  
    55    liblas/exception.hpp \ 
    66    liblas/guid.hpp \ 
    7     liblas/interfaces.hpp \ 
    87    liblas/iterator.hpp \ 
    98    liblas/lasclassification.hpp \ 
  • include/liblas/detail/reader/reader.hpp

    r1571 r1601  
    4646#include <liblas/detail/reader/point.hpp> 
    4747#include <liblas/detail/reader/header.hpp> 
    48 #include <liblas/interfaces.hpp> 
     48#include <liblas/liblas.hpp> 
    4949 
    5050// std 
  • include/liblas/detail/writer/writer.hpp

    r1573 r1601  
    4444 
    4545#include <liblas/detail/fwd.hpp> 
    46 #include <liblas/interfaces.hpp> 
     46#include <liblas/liblas.hpp> 
    4747#include <liblas/detail/writer/point.hpp> 
    4848#include <liblas/detail/writer/header.hpp> 
  • include/liblas/lasreader.hpp

    r1579 r1601  
    4545 
    4646#include <liblas/detail/fwd.hpp> 
    47 #include <liblas/interfaces.hpp> 
     47#include <liblas/liblas.hpp> 
    4848 
    4949#include <liblas/lasheader.hpp> 
  • include/liblas/laswriter.hpp

    r1579 r1601  
    4747#include <liblas/laspoint.hpp> 
    4848#include <liblas/detail/fwd.hpp> 
    49 #include <liblas/interfaces.hpp> 
     49#include <liblas/liblas.hpp> 
    5050 
    5151// std 
  • include/liblas/liblas.hpp

    r1531 r1601  
    4747 
    4848#include <liblas/cstdint.hpp> 
     49#include <liblas/detail/fwd.hpp> 
    4950#include <fstream> 
    5051#include <string> 
     
    146147 
    147148}; 
    148      
     149 
     150 
     151class ReaderI 
     152{ 
     153public: 
     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 
     166class WriterI 
     167{ 
     168public: 
     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}; 
    149180} // namespace liblas 
    150181 
Note: See TracChangeset for help on using the changeset viewer.