rasdaman complete source
Static Public Member Functions | Static Public Attributes | List of all members
RasgeoUtil Class Reference

#include <rasgeo_util.hh>

Static Public Member Functions

static void doStuff (int argc, char **argv, ImportType iType) throw (ImportError, r_Error)
 
static void doImport (const char *Query, const char *TransparentSelectQuery, r_Marray_Type *&mddType, r_Ref< r_GMarray > &fileMDD) throw (ImportError, r_Error)
 
static r_Marray_Type * getTypeFromDatabase (const char *mddTypeName) throw (ImportError, r_Error)
 
static char * getFile (const char *inputFile, size_t &dtaSize) throw (ImportError)
 
static void convertTo (r_Data_Format fmt, char *&src, size_t &size, r_Minterval &interv, r_Base_Type *&tp, const char *options) throw (ImportError)
 
static void convertFrom (r_Data_Format fmt, char *&src, size_t &size, r_Minterval &interv, r_Base_Type *&tp, const char *options) throw (ImportError)
 
static void readScaleLevels (const char *argv) throw (ImportError)
 
static void initGMarray (r_Ref< r_GMarray > &tempMDD, const char *inputFile, r_Data_Format conversionFormat, r_Minterval &tempDataDomain, r_Marray_Type *&mddType, r_Tiling *&myTiling, const char *conversionParams) throw (r_Error, ImportError)
 
static void overlayGMarrays (r_Ref< r_GMarray > &target, const r_Ref< r_GMarray > &replaceBlackMDD, const r_Ref< r_GMarray > &backgroundMDD) throw (ImportError)
 
static void compareGMarrays (const r_Ref< r_GMarray > &baseMDD, r_Ref< r_GMarray > &topMDD) throw (ImportError)
 
static void openDatabase () throw (r_Error)
 
static void closeDatabase () throw (r_Error)
 
static void openTransaction (bool readwrite=true) throw (r_Error)
 
static void closeTransaction (bool doCommit) throw (r_Error)
 
static void compareScaledMDD (const r_Ref< r_GMarray > &baseMDD, const r_Minterval &clipDom, const r_Minterval &downScaledDomain, unsigned int length, const char *collectionName) throw (r_Error, ImportError)
 
static void updateScaledMDD (const r_Ref< r_GMarray > &baseMDD, const r_Minterval &clipDom, const r_Minterval &downScaledDomain, unsigned int length, const char *collectionName) throw (r_Error, ImportError)
 
static void scaleDomain (const r_Minterval &baseDomain, const r_Point &origin, double factor, r_Minterval &scaledDomain, r_Minterval &clipDomain, unsigned int &length, bool &underflow) throw (ImportError)
 
static void saveData (const char *fileNamePat, const char *data, r_Bytes length, const r_Minterval &mddDomain) throw (ImportError)
 
static const string generateImportQuery (const char *c, r_Minterval ovl, int useOId, r_OId oid) throw (ImportError, r_Error)
 
static const string generateSelectQuery (const char *c, r_Minterval ovl) throw (ImportError, r_Error)
 
static void executeQuery (r_OQL_Query &query, r_Set< r_Ref_Any > &result) throw (r_Error, ImportError)
 
static void executeQuery (r_OQL_Query &query) throw (r_Error, ImportError)
 
static void fast_scale_process_primitive_type (const r_Primitive_Type *primType, char *dest, const char *src, const r_Minterval &destIv, const r_Minterval &srcIv, const r_Minterval &iterDom, unsigned int type_len, unsigned int length, r_Scale_Function func) throw (ImportError)
 
static void fast_scale_process_structured_type (const r_Structure_Type *primType, char *dest, const char *src, const r_Minterval &destIv, const r_Minterval &srcIv, const r_Minterval &iterDom, unsigned int type_len, unsigned int length, r_Scale_Function func) throw (ImportError)
 
template<class T >
static void fast_scale_resample_array (T *dest, const T *src, const r_Minterval &destIv, const r_Minterval &srcIv, const r_Minterval &iterDom, unsigned int type_len, unsigned int length, bool round) throw (ImportError)
 
template<class T >
static void fast_scale_aggregate_array (T *dest, const T *src, const r_Minterval &destIv, const r_Minterval &srcIv, const r_Minterval &iterDom, unsigned int type_len, unsigned int length) throw (ImportError)
 
static bool allowedCollNameChar (const char *collName)
 check if string passed is a valid rasdasman collection name More...
 

Static Public Attributes

static const char * serverName
 
static r_ULong serverPort
 
static const char * baseName
 
static const char * userName
 
static const char * passwd
 
static const char * conversionTypeName
 
static r_Data_Format inputFormat
 
static const char * inputFormatParams
 
static r_Data_Format transferFormat
 
static const char * transferFormatParams
 
static r_Data_Format storageFormat
 
static const char * storageFormatParams
 
static const char * collName
 
static const char * setTypeName
 
static const char * mddTypeName
 
static r_OId mddOId
 
static bool mddOIdDef
 
static const char * fileName
 
static r_Database db
 
static r_Transaction ta
 
static r_Minterval mddDomain
 
static bool mddDomainDef
 
static bool testBed
 
static r_Tiling * theTiling
 
static bool polygonDefined
 
static r_PolygonCutOut polygon
 
static int polygonShrinker
 
static bool transparent
 
static string outsidePatternSel
 
static bool outsidePatternSelDef
 
static string insidePatternSel
 
static bool insidePatternSelDef
 
static string outsidePattern
 
static bool outsidePatternDef
 
static string insidePattern
 
static bool insidePatternDef
 
static const int queryBufferLength
 
static std::list< std::pair
< double, char * > > * 
scaleLevels
 
static int wrongBytes
 
static r_Scale_Function scaleFunction
 
static const string tilingDesc
 
static const string tilingParamsDesc
 
static size_t updateBufferSize
 
static const char * defaultImportBufferSize
 
static std::list< char * > * layerList
 
static unsigned int cellSize
 
static std::list< unsigned int > * patternsTrue
 
static std::list< unsigned int > * patternsFalse
 
static r_Minterval overlayDomain
 
static bool overlayDomainDef
 
static r_Range align
 
static bool tiledImport
 
static bool handleSignal
 
static bool debug
 
static double xmin
 
static double xmax
 
static double ymin
 
static double ymax
 
static double xres
 
static double yres
 
static unsigned int skipLines
 
static bool fileIsStdin
 
static bool noFlipY
 
static bool taSplit
 
static bool verbose
 

Member Function Documentation

static bool RasgeoUtil::allowedCollNameChar ( const char *  collName)
static

check if string passed is a valid rasdasman collection name

static void RasgeoUtil::closeDatabase ( )
throw (r_Error
)
static
static void RasgeoUtil::closeTransaction ( bool  doCommit)
throw (r_Error
)
static
static void RasgeoUtil::compareGMarrays ( const r_Ref< r_GMarray > &  baseMDD,
r_Ref< r_GMarray > &  topMDD 
)
throw (ImportError
)
static
static void RasgeoUtil::compareScaledMDD ( const r_Ref< r_GMarray > &  baseMDD,
const r_Minterval &  clipDom,
const r_Minterval &  downScaledDomain,
unsigned int  length,
const char *  collectionName 
)
throw (r_Error,
ImportError
)
static
static void RasgeoUtil::convertFrom ( r_Data_Format  fmt,
char *&  src,
size_t &  size,
r_Minterval &  interv,
r_Base_Type *&  tp,
const char *  options 
)
throw (ImportError
)
static
static void RasgeoUtil::convertTo ( r_Data_Format  fmt,
char *&  src,
size_t &  size,
r_Minterval &  interv,
r_Base_Type *&  tp,
const char *  options 
)
throw (ImportError
)
static
static void RasgeoUtil::doImport ( const char *  Query,
const char *  TransparentSelectQuery,
r_Marray_Type *&  mddType,
r_Ref< r_GMarray > &  fileMDD 
)
throw (ImportError,
r_Error
)
static
static void RasgeoUtil::doStuff ( int  argc,
char **  argv,
ImportType  iType 
)
throw (ImportError,
r_Error
)
static
static void RasgeoUtil::executeQuery ( r_OQL_Query &  query,
r_Set< r_Ref_Any > &  result 
)
throw (r_Error,
ImportError
)
static
static void RasgeoUtil::executeQuery ( r_OQL_Query &  query)
throw (r_Error,
ImportError
)
static
template<class T >
static void RasgeoUtil::fast_scale_aggregate_array ( T *  dest,
const T *  src,
const r_Minterval &  destIv,
const r_Minterval &  srcIv,
const r_Minterval &  iterDom,
unsigned int  type_len,
unsigned int  length 
)
throw (ImportError
)
static
static void RasgeoUtil::fast_scale_process_primitive_type ( const r_Primitive_Type *  primType,
char *  dest,
const char *  src,
const r_Minterval &  destIv,
const r_Minterval &  srcIv,
const r_Minterval &  iterDom,
unsigned int  type_len,
unsigned int  length,
r_Scale_Function  func 
)
throw (ImportError
)
static
static void RasgeoUtil::fast_scale_process_structured_type ( const r_Structure_Type primType,
char *  dest,
const char *  src,
const r_Minterval &  destIv,
const r_Minterval &  srcIv,
const r_Minterval &  iterDom,
unsigned int  type_len,
unsigned int  length,
r_Scale_Function  func 
)
throw (ImportError
)
static
template<class T >
static void RasgeoUtil::fast_scale_resample_array ( T *  dest,
const T *  src,
const r_Minterval &  destIv,
const r_Minterval &  srcIv,
const r_Minterval &  iterDom,
unsigned int  type_len,
unsigned int  length,
bool  round 
)
throw (ImportError
)
static
static const string RasgeoUtil::generateImportQuery ( const char *  c,
r_Minterval  ovl,
int  useOId,
r_OId  oid 
)
throw (ImportError,
r_Error
)
static
static const string RasgeoUtil::generateSelectQuery ( const char *  c,
r_Minterval  ovl 
)
throw (ImportError,
r_Error
)
static
static char* RasgeoUtil::getFile ( const char *  inputFile,
size_t &  dtaSize 
)
throw (ImportError
)
static
static r_Marray_Type* RasgeoUtil::getTypeFromDatabase ( const char *  mddTypeName)
throw (ImportError,
r_Error
)
static
static void RasgeoUtil::initGMarray ( r_Ref< r_GMarray > &  tempMDD,
const char *  inputFile,
r_Data_Format  conversionFormat,
r_Minterval &  tempDataDomain,
r_Marray_Type *&  mddType,
r_Tiling *&  myTiling,
const char *  conversionParams 
)
throw (r_Error,
ImportError
)
static
static void RasgeoUtil::openDatabase ( )
throw (r_Error
)
static
static void RasgeoUtil::openTransaction ( bool  readwrite = true)
throw (r_Error
)
static
static void RasgeoUtil::overlayGMarrays ( r_Ref< r_GMarray > &  target,
const r_Ref< r_GMarray > &  replaceBlackMDD,
const r_Ref< r_GMarray > &  backgroundMDD 
)
throw (ImportError
)
static
static void RasgeoUtil::readScaleLevels ( const char *  argv)
throw (ImportError
)
static
static void RasgeoUtil::saveData ( const char *  fileNamePat,
const char *  data,
r_Bytes  length,
const r_Minterval &  mddDomain 
)
throw (ImportError
)
static
static void RasgeoUtil::scaleDomain ( const r_Minterval &  baseDomain,
const r_Point &  origin,
double  factor,
r_Minterval &  scaledDomain,
r_Minterval &  clipDomain,
unsigned int &  length,
bool &  underflow 
)
throw (ImportError
)
static
static void RasgeoUtil::updateScaledMDD ( const r_Ref< r_GMarray > &  baseMDD,
const r_Minterval &  clipDom,
const r_Minterval &  downScaledDomain,
unsigned int  length,
const char *  collectionName 
)
throw (r_Error,
ImportError
)
static

Member Data Documentation

r_Range RasgeoUtil::align
static
const char* RasgeoUtil::baseName
static
unsigned int RasgeoUtil::cellSize
static
const char* RasgeoUtil::collName
static
const char* RasgeoUtil::conversionTypeName
static
r_Database RasgeoUtil::db
static
bool RasgeoUtil::debug
static
const char* RasgeoUtil::defaultImportBufferSize
static
bool RasgeoUtil::fileIsStdin
static
const char* RasgeoUtil::fileName
static
bool RasgeoUtil::handleSignal
static
r_Data_Format RasgeoUtil::inputFormat
static
const char* RasgeoUtil::inputFormatParams
static
string RasgeoUtil::insidePattern
static
bool RasgeoUtil::insidePatternDef
static
string RasgeoUtil::insidePatternSel
static
bool RasgeoUtil::insidePatternSelDef
static
std::list<char*>* RasgeoUtil::layerList
static
r_Minterval RasgeoUtil::mddDomain
static
bool RasgeoUtil::mddDomainDef
static
r_OId RasgeoUtil::mddOId
static
bool RasgeoUtil::mddOIdDef
static
const char* RasgeoUtil::mddTypeName
static
bool RasgeoUtil::noFlipY
static
string RasgeoUtil::outsidePattern
static
bool RasgeoUtil::outsidePatternDef
static
string RasgeoUtil::outsidePatternSel
static
bool RasgeoUtil::outsidePatternSelDef
static
r_Minterval RasgeoUtil::overlayDomain
static
bool RasgeoUtil::overlayDomainDef
static
const char* RasgeoUtil::passwd
static
std::list<unsigned int>* RasgeoUtil::patternsFalse
static
std::list<unsigned int>* RasgeoUtil::patternsTrue
static
r_PolygonCutOut RasgeoUtil::polygon
static
bool RasgeoUtil::polygonDefined
static
int RasgeoUtil::polygonShrinker
static
const int RasgeoUtil::queryBufferLength
static
r_Scale_Function RasgeoUtil::scaleFunction
static
std::list<std::pair<double, char*> >* RasgeoUtil::scaleLevels
static
const char* RasgeoUtil::serverName
static
r_ULong RasgeoUtil::serverPort
static
const char* RasgeoUtil::setTypeName
static
unsigned int RasgeoUtil::skipLines
static
r_Data_Format RasgeoUtil::storageFormat
static
const char* RasgeoUtil::storageFormatParams
static
r_Transaction RasgeoUtil::ta
static
bool RasgeoUtil::taSplit
static
bool RasgeoUtil::testBed
static
r_Tiling* RasgeoUtil::theTiling
static
bool RasgeoUtil::tiledImport
static
const string RasgeoUtil::tilingDesc
static
const string RasgeoUtil::tilingParamsDesc
static
r_Data_Format RasgeoUtil::transferFormat
static
const char* RasgeoUtil::transferFormatParams
static
bool RasgeoUtil::transparent
static
size_t RasgeoUtil::updateBufferSize
static
const char* RasgeoUtil::userName
static
bool RasgeoUtil::verbose
static
int RasgeoUtil::wrongBytes
static
double RasgeoUtil::xmax
static
double RasgeoUtil::xmin
static
double RasgeoUtil::xres
static
double RasgeoUtil::ymax
static
double RasgeoUtil::ymin
static
double RasgeoUtil::yres
static

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