GAP Class Reference

#include <GAP.h>

Public Member Functions

 GAP ()
 
bool LoadPolygons (std::string &filename, std::string &inDsetName, Pol_OUT out)
 
int pointLocate (te::gm::Coord2D &pt, te::gm::Polygon *pol)
 
bool Polygon2Lines (te::gm::Polygon *pol)
 
bool Polygon2Points (te::gm::Polygon *pol, int32_t id)
 
bool Polygon2RTree (te::gm::Polygon *pol, te::sam::rtree::Index< te::gm::Line * > &rtree)
 
bool run ()
 
void Save (te::da::DataSource *source, te::da::DataSet *result, te::da::DataSetType *outDsType)
 
bool SavePol (std::vector< std::pair< size_t, te::gm::Polygon * > > &pols, std::string step)
 
bool step0 (std::vector< std::pair< size_t, te::gm::Polygon * > > &pols, std::vector< std::pair< size_t, te::gm::Polygon * > > &polsout)
 
bool step00 (std::vector< std::pair< size_t, te::gm::Polygon * > > &polsout)
 
bool step1 (std::vector< std::pair< size_t, te::gm::Polygon * > > &pols, std::vector< std::pair< size_t, te::gm::Polygon * > > &polsout)
 
bool step2 (std::vector< std::pair< size_t, te::gm::Polygon * > > &pols, std::vector< std::pair< size_t, te::gm::Polygon * > > &polsout)
 
bool step3 (std::vector< std::pair< size_t, te::gm::Polygon * > > &pols, std::vector< std::pair< size_t, te::gm::Polygon * > > &polsout)
 
bool step4 (std::vector< std::pair< size_t, te::gm::Polygon * > > &pols, std::vector< std::pair< size_t, te::gm::Polygon * > > &polsout)
 
void verify_polygon (std::vector< te::gm::Coord2D > &pt_out)
 
bool verifyIntersections (te::gm::Coord2D &pt0, te::gm::Coord2D &pc, te::sam::rtree::Index< te::gm::Line * > &rtree_pol)
 
 ~GAP ()
 

Protected Attributes

double m_dist_min
 
std::string m_filename1
 
std::string m_filename2
 
std::string m_filenameout
 
std::string m_inDS1
 
std::string m_inDS2
 
std::string m_inDSout
 
std::vector< te::gm::Line * > m_line
 
KD_TREEm_nodetree
 
KD_TREEm_nodetree_step2
 
std::map< int32_t, double > m_original_area
 
std::map< size_t, te::gm::Polygon * > m_pol
 
std::vector< GAP_interm_pol_points
 
te::sam::rtree::Index< te::gm::Line * > m_rtree
 
int m_srid
 
double m_tol = 0.1e-7
 

Detailed Description

Definition at line 99 of file GAP.h.

Constructor & Destructor Documentation

GAP::GAP ( )

Definition at line 525 of file GAP.cpp.

GAP::~GAP ( )
inline

Definition at line 104 of file GAP.h.

References te::xsd::serialize::Save().

Member Function Documentation

int GAP::pointLocate ( te::gm::Coord2D pt,
te::gm::Polygon pol 
)

Definition at line 1748 of file GAP.cpp.

References p, te::gm::GEOSWriter::write(), te::gm::Coord2D::x, and te::gm::Coord2D::y.

bool GAP::run ( )

Definition at line 545 of file GAP.cpp.

References Point_out, Polygon_out, and RTree_out.

Referenced by main().

bool GAP::step2 ( std::vector< std::pair< size_t, te::gm::Polygon * > > &  pols,
std::vector< std::pair< size_t, te::gm::Polygon * > > &  polsout 
)

Member Data Documentation

double GAP::m_dist_min
protected

Definition at line 134 of file GAP.h.

std::string GAP::m_filename1
protected

Definition at line 135 of file GAP.h.

std::string GAP::m_filename2
protected

Definition at line 137 of file GAP.h.

std::string GAP::m_filenameout
protected

Definition at line 139 of file GAP.h.

std::string GAP::m_inDS1
protected

Definition at line 136 of file GAP.h.

std::string GAP::m_inDS2
protected

Definition at line 138 of file GAP.h.

std::string GAP::m_inDSout
protected

Definition at line 140 of file GAP.h.

std::vector<te::gm::Line*> GAP::m_line
protected

Definition at line 145 of file GAP.h.

KD_TREE* GAP::m_nodetree
protected

Definition at line 148 of file GAP.h.

KD_TREE* GAP::m_nodetree_step2
protected

Definition at line 149 of file GAP.h.

std::map<int32_t, double> GAP::m_original_area
protected

Definition at line 155 of file GAP.h.

std::map<size_t, te::gm::Polygon*> GAP::m_pol
protected

Definition at line 144 of file GAP.h.

std::vector<GAP_inter> GAP::m_pol_points
protected

Definition at line 157 of file GAP.h.

te::sam::rtree::Index<te::gm::Line*> GAP::m_rtree
protected

Definition at line 146 of file GAP.h.

int GAP::m_srid
protected

Definition at line 142 of file GAP.h.

double GAP::m_tol = 0.1e-7
protected

Definition at line 159 of file GAP.h.


The documentation for this class was generated from the following files: