Namespace for the DataAccess API of TerraLib. More...
Classes | |
class | AbstractConnectionPool |
This class defines the basic interface for a connection pool. More... | |
class | Add |
The addition operator. More... | |
class | And |
Boolean logic operator: AND. More... | |
class | AttributeConverterManager |
A singleton to keep all the registered Attribute Converters. More... | |
struct | AttributeRestriction |
A struct that represents an attribute restriction. More... | |
class | AttributeRestrictionVisitor |
A visitor that retrieves attribute restrictions from a Query hierarchy. More... | |
class | Avg |
Avg statistical function. More... | |
class | BatchExecutor |
A class that models an object that submits commands in batch to the data source. More... | |
class | BinaryFunction |
A base class for binary functions. More... | |
class | BinaryOp |
A base class for binary operations. More... | |
class | BinaryOpEncoder |
A query encoder for binary operations. More... | |
struct | CharEncodingConverter |
class | CheckConstraint |
A class that describes a check constraint. More... | |
class | ConnectionPoolManager |
A singleton for managing the connection pools available in the system. More... | |
class | Constraint |
class | Count |
Count statistical function. More... | |
class | DataSet |
A dataset is the unit of information manipulated by the data access module of TerraLib. More... | |
class | DataSetAdapter |
An adapter for DataSet. More... | |
class | DataSetCapabilities |
A class that informs what the dataset implementation of a given data source can perform. More... | |
class | DataSetName |
A class that models the name of a dataset used in a From clause. More... | |
class | DataSetType |
A class that models the description of a dataset. More... | |
class | DataSetTypeCapabilities |
A class that informs what kind of constraint and index is supported by a given data source. More... | |
class | DataSetTypeConverter |
An converter for DataSetType. More... | |
class | DataSource |
An abstract class for data providers like a DBMS, Web Services or a regular file. More... | |
class | DataSourceCapabilities |
A class that represents the known capabilities of a specific data source, i.e. this class informs all information about what the data source can perform. Here you will find if the data source implementation supports primary keys, foreign keys, if it can be used in a thread environment and much more information. More... | |
class | DataSourceCatalog |
It represents the system catalog of a DataSource. More... | |
class | DataSourceCatalogManager |
This is a singleton for managing all the data source catalog instances available in the system. More... | |
class | DataSourceFactory |
A factory for data sources. More... | |
class | DataSourceInfo |
A class that represents a data source component. More... | |
class | DataSourceInfoManager |
A singleton to keep all the registered data sources. More... | |
class | DataSourceManager |
This is a singleton for managing all data source instances available in the system. More... | |
class | DataSourceTransactor |
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things into it. More... | |
class | DataTypeCapabilities |
A class that represents the supported data types of a specific data source. More... | |
class | Div |
The division operator. More... | |
class | EqualTo |
It models the comparison operator. More... | |
class | Expression |
This is an abstract class that models a query expression. More... | |
class | Field |
The Field class can be used to model an expression that takes part of the output items of a SELECT. More... | |
class | FilteredDataSet |
This class represents a filtered data set. More... | |
class | ForeignKey |
It models a foreign key constraint for a DataSetType. More... | |
class | FromFunctionCall |
A Select can be used as a source of information in another query. More... | |
class | FromItem |
An abstract class that models a source of data in a query. More... | |
class | Function |
A class that models a Function expression. More... | |
class | FunctionCatalog |
A FunctionCatalog can be used to keep track of registered functions. More... | |
class | FunctionCatalogManager |
A FunctionCatalogManager is a singleton that can be used to manage function catalogs of data source implementations. More... | |
class | FunctionDefn |
The definition of a function that can be used in a query object. More... | |
class | FunctionEncoder |
An SQL encoder for general function expressions. More... | |
class | FunctionNames |
A static class with global function name definitions. More... | |
class | FunctionNoArgsEncoder |
An SQL encoder for functions with no arguments that is invoked just by its name. More... | |
class | FunctionParameter |
A FunctionParameter models the parameter of a function definition. More... | |
class | GreaterThan |
It models the inequality operator greater than (>). More... | |
class | GreaterThanOrEqualTo |
It models the inequality operator greater than or equal to (>=). More... | |
class | GroupByItem |
A class that can be used in a GROUP BY clause. More... | |
class | Having |
A class that can be used to model a filter expression that can be applied to a query. More... | |
class | In |
A class that represents the IN operator. More... | |
class | Index |
It describes an index associated to a DataSetType. More... | |
class | IsNull |
Tells if a value is NULL. More... | |
class | Join |
A Join clause combines two FromItems. More... | |
class | JoinCondition |
A condition to be used in a Join clause. More... | |
class | JoinConditionOn |
JoinConditionOn is a boolean expression and it specifies which items in a join are considered to match. More... | |
class | JoinConditionUsing |
JoinConditionUsing class can be used to model a USING clause in a Join. More... | |
class | LessThan |
It models the inequality operator less than (<). More... | |
class | LessThanOrEqualTo |
It models the inequality operator less than or equal to (<=). More... | |
class | Like |
It is intended to encode a character string comparison operator with pattern matching. More... | |
class | Literal |
This class models a literal value. More... | |
class | LiteralBool |
This class models a bool Literal value. More... | |
class | LiteralByteArray |
A class that models a literal for ByteArray values. More... | |
class | LiteralDateTime |
A class that models a literal for Date and Time values. More... | |
class | LiteralDouble |
A class that models a literal for double values. More... | |
class | LiteralEnvelope |
A class that models a literal for Envelope values. More... | |
class | LiteralGeom |
A class that models a literal for Geometry values. More... | |
class | LiteralInt16 |
class | LiteralInt32 |
class | LiteralInt64 |
class | LiteralString |
This class models a string Literal value. More... | |
class | Max |
Max statistical function. More... | |
class | Min |
Min statistical function. More... | |
class | Module |
This singleton defines the TerraLib Data Access module entry. More... | |
class | Mul |
The multiply operator. More... | |
class | Not |
Boolean NOT operator. More... | |
class | NotEqualTo |
Tells if two values are not equal. More... | |
class | ObjectId |
This class represents an unique id for a data set element. More... | |
class | ObjectIdSet |
This class represents a set of unique ids created in the same context. i.e. from the same data set. More... | |
class | Or |
class | OrderByItem |
A class that can be used in an ORDER BY clause to sort the items of a resulting query. More... | |
class | PreparedQuery |
A class that model a prepared query. More... | |
class | PrimaryKey |
It describes a primary key (pk) constraint. More... | |
class | PropertyName |
A class that models the name of any property of an object. More... | |
class | Query |
A Query is independent from the data source language/dialect. More... | |
class | QueryCapabilities |
A class that informs the query support of a given data source. More... | |
class | QueryVisitor |
A visitor interface for the Query hierarchy. More... | |
class | ScopedTransaction |
An utility class to coordinate transactions. More... | |
class | Select |
A Select models a query to be used when retrieving data from a DataSource. More... | |
class | Sequence |
It describes a sequence (a number generator). More... | |
class | SpatialQueryProcessor |
A basic query processor for spatial restrictions. More... | |
struct | SpatialRestriction |
A struct that represents a spatial restriction. More... | |
class | SpatialRestrictionVisitor |
A visitor for retrieves spatial restrictions from a Query hierarchy. More... | |
class | SQLDialect |
It represents the SQL query dialect accepted by a given data source. More... | |
class | SQLFunctionEncoder |
A base class for encoders of SQL function expressions. More... | |
class | SQLVisitor |
A visitor for building an SQL statement from a given Query hierarchy. More... | |
class | ST_Area |
Spatial area operator. More... | |
class | ST_Beyond |
Spatial Distance Buffer Beyond operator. More... | |
class | ST_Boundary |
ST_Boundary statistical function. More... | |
class | ST_Buffer |
Spatial Buffer operator. More... | |
class | ST_Centroid |
Spatial centroid operator. More... | |
class | ST_Collect |
ST_Collect statistical function. More... | |
class | ST_Contains |
Spatial contains operator. More... | |
class | ST_ConvexHull |
class | ST_Crosses |
Spatial crosses operator. More... | |
class | ST_Difference |
Spatial difference operator. More... | |
class | ST_Disjoint |
Spatial Disjoint operator. More... | |
class | ST_DistanceBuffer |
Spatial Distance Buffer operator. More... | |
class | ST_Dump |
ST_Dump statistical function. More... | |
class | ST_DumpRings |
ST_DumpRings statistical function. More... | |
class | ST_DWithin |
Spatial Distance Buffer Within operator. More... | |
class | ST_Envelope |
Spatial envelope operator. More... | |
class | ST_EnvelopeIntersects |
An operator that considers the intersection among approximations or envelopes of geometries. More... | |
class | ST_Equals |
Spatial equals operator. More... | |
class | ST_Intersection |
Spatial intersection operator. More... | |
class | ST_Intersects |
Spatial intersects operator. More... | |
class | ST_Length |
Spatial length operator. More... | |
class | ST_MakePolygon |
ST_MakePolygon statistical function. More... | |
class | ST_NumGeometries |
ST_NumGeometries statistical function. More... | |
class | ST_Overlaps |
Spatial overlaps operator. More... | |
class | ST_Perimeter |
Spatial perimeter operator. More... | |
class | ST_Relate |
Spatial relation function. More... | |
class | ST_Touches |
Spatial touches operator. More... | |
class | ST_Transform |
class | ST_Union |
ST_Union statistical function. More... | |
class | ST_Within |
Spatial within operator. More... | |
class | StdDev |
StdDev statistical function. More... | |
class | Sub |
The subtraction operator. More... | |
class | SubSelect |
A Select can be used as a source of information in another query. More... | |
class | Substring |
Allows the extraction of substrings. More... | |
class | Sum |
Sum aggregate operator. More... | |
class | TemplateEncoder |
A query encoder for binary operator expressions. More... | |
class | UnaryFunction |
A base class for unary functions. More... | |
class | UnaryOp |
A base class for unary operators. More... | |
class | UnaryOpEncoder |
A query encoder for unary operator expressions. More... | |
class | UniqueKey |
It describes a unique key (uk) constraint. More... | |
class | Variance |
Variance statistical function. More... | |
class | Where |
A class that can be used to model a filter expression that can be applied to a query. More... | |
Typedefs | |
typedef boost::function3 < te::dt::AbstractData *, DataSet *, const std::vector< std::size_t > &, int > | AttributeConverter |
The type of attribute converter functions. More... | |
typedef boost::shared_ptr < DataSet > | DataSetPtr |
typedef boost::shared_ptr < DataSetType > | DataSetTypePtr |
typedef boost::shared_ptr < DataSourceCatalog > | DataSourceCatalogPtr |
typedef boost::shared_ptr < DataSourceInfo > | DataSourceInfoPtr |
typedef boost::shared_ptr < DataSource > | DataSourcePtr |
typedef boost::shared_ptr < DataSourceTransactor > | DataSourceTransactorPtr |
typedef boost::ptr_vector < Expression > | Distinct |
A class that models a Distinct clause on a query. More... | |
typedef boost::ptr_vector< Field > | Fields |
Fields is just a boost::ptr_vector of Field pointers. More... | |
typedef boost::ptr_vector < FromItem > | From |
It models the FROM clause for a query. More... | |
typedef boost::ptr_vector < GroupByItem > | GroupBy |
A class that can be used to model a GROUP BY clause. More... | |
typedef boost::ptr_vector < OrderByItem > | OrderBy |
A class that can be used to model an ORDER BY clause. More... | |
Enumerations | |
enum | { UNKNOWN_DATASET_TYPE, TABLE_TYPE, SYSTEM_TABLE_TYPE, VIEW_TYPE, QUERY_TYPE, INDEX_TYPE, SEQUENCE_TYPE, TRIGGER_TYPE, REGULAR_FILE_TYPE } |
An anonymous enum with the type of datasets retrieved from data sources. More... | |
enum | ConstraintType { UNKNOWN, PRIMARY_KEY, FOREIGN_KEY, UNIQUE_KEY, CHECK } |
A ConstraintType can have one of the following types: More... | |
enum | FKActionType { NO_ACTION, RESTRICT, CASCADE, SET_NULL, SET_DEFAULT } |
Type of action performed on the foreign key data. More... | |
enum | IndexType { B_TREE_TYPE, R_TREE_TYPE, QUAD_TREE_TYPE, HASH_TYPE } |
Index type. More... | |
enum | JoinType { JOIN, INNER_JOIN, LEFT_JOIN, RIGHT_JOIN, FULL_OUTER_JOIN, CROSS_JOIN, NATURAL_JOIN } |
The type of join in a query. More... | |
enum | SortOrder { DESC, ASC } |
Sort order type: asc or desc. More... | |
Functions | |
TEDATAACCESSEXPORT std::auto_ptr< Fields > | BuildFields (const std::vector< std::string > &properties) |
TEDATAACCESSEXPORT std::auto_ptr< Select > | BuildSelect (const std::string &dsname) |
TEDATAACCESSEXPORT std::auto_ptr< Select > | BuildSelect (const std::string &dsname, const std::string &propertyName) |
TEDATAACCESSEXPORT std::auto_ptr< Select > | BuildSelect (const std::string &dsname, const std::vector< std::string > &properties) |
TEDATAACCESSEXPORT std::auto_ptr< Select > | BuildSelect (const std::string &dsname, const std::vector< std::string > &properties, const std::string &geometryProperty, const te::gm::Envelope *e, int srid, te::gm::SpatialRelation r) |
TEDATAACCESSEXPORT std::auto_ptr< Select > | BuildSelect (const std::string &dsname, const std::vector< std::string > &properties, const std::string &geometryProperty, te::gm::Geometry *g, te::gm::SpatialRelation r) |
TEDATAACCESSEXPORT std::auto_ptr< Select > | BuildSelect (const std::string &dsname, const std::vector< std::string > &properties, const ObjectIdSet *oids) |
TEDATAACCESSEXPORT std::auto_ptr< Expression > | BuildSpatialOp (Expression *e1, Expression *e2, te::gm::SpatialRelation r) |
TEDATAACCESSEXPORT void | Create (DataSource *ds, DataSetType *dt, DataSet *d, std::size_t limit=0) |
It creates the dataset definition in a data source and then fill it with data from the input dataset. More... | |
TEDATAACCESSEXPORT void | Create (DataSource *ds, DataSetType *dt, DataSet *d, const std::map< std::string, std::string > &options, std::size_t limit=0) |
It creates the dataset definition in a data source and then fill it with data from the input dataset. More... | |
TEDATAACCESSEXPORT DataSetAdapter * | CreateAdapter (DataSet *ds, DataSetTypeConverter *converter, bool isOwner=false) |
TEDATAACCESSEXPORT ObjectId * | GenerateOID (DataSet *dataset, const std::vector< std::string > &names) |
TEDATAACCESSEXPORT ObjectIdSet * | GenerateOIDSet (DataSet *dataset, const DataSetType *type) |
TEDATAACCESSEXPORT ObjectIdSet * | GenerateOIDSet (DataSet *dataset, const std::vector< std::string > &names) |
TEDATAACCESSEXPORT te::dt::AbstractData * | GenericAttributeConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT std::string | getBasePkey (te::da::ObjectId *oid, std::pair< std::string, int > &dsProps) |
TEDATAACCESSEXPORT DataSet * | GetDataSet (const std::string &name, const std::string &datasourceId) |
TEDATAACCESSEXPORT std::string | GetDataSetCategoryName (int category) |
TEDATAACCESSEXPORT void | GetDataSetNames (std::vector< std::string > &datasetNames, const std::string &datasourceId) |
TEDATAACCESSEXPORT DataSetType * | GetDataSetType (const std::string &name, const std::string &datasourceId) |
TEDATAACCESSEXPORT DataSourcePtr | GetDataSource (const std::string &datasourceId, const bool opened=true) |
Search for a data source with the informed id in the DataSourceManager. More... | |
TEDATAACCESSEXPORT void | GetEmptyOIDSet (const DataSetType *type, ObjectIdSet *&set) |
Returns an empty ObjectIdSet, with the definitions of fields that compose it. More... | |
TEDATAACCESSEXPORT te::gm::Envelope * | GetExtent (const std::string &datasetName, const std::string &propertyName, const std::string &datasourceId) |
TEDATAACCESSEXPORT te::gm::GeometryProperty * | GetFirstGeomProperty (const DataSetType *dt) |
TEDATAACCESSEXPORT std::size_t | GetFirstPropertyPos (const te::da::DataSet *dataset, int datatype) |
TEDATAACCESSEXPORT te::rst::RasterProperty * | GetFirstRasterProperty (const DataSetType *dt) |
TEDATAACCESSEXPORT te::dt::Property * | GetFirstSpatialProperty (const DataSetType *dt) |
TEDATAACCESSEXPORT std::size_t | GetFirstSpatialPropertyPos (const te::da::DataSet *dataset) |
It returns the first dataset spatial property or NULL if none is found. More... | |
TEDATAACCESSEXPORT void | GetOIDDatasetProps (const DataSetType *type, std::pair< std::string, int > &dsProps) |
TEDATAACCESSEXPORT void | GetOIDPropertyNames (const DataSetType *type, std::vector< std::string > &pnames) |
TEDATAACCESSEXPORT void | GetOIDPropertyPos (const DataSetType *type, std::vector< std::size_t > &ppos) |
TEDATAACCESSEXPORT std::vector < int > | GetPropertyDataTypes (const te::da::DataSet *dataset) |
TEDATAACCESSEXPORT int | GetPropertyIndex (te::da::DataSet *dataSet, const std::string propName) |
TEDATAACCESSEXPORT void | GetPropertyInfo (const DataSetType *const dt, std::vector< std::string > &pnames, std::vector< int > &ptypes) |
TEDATAACCESSEXPORT void | GetPropertyInfo (const DataSet *const dataset, std::vector< std::string > &pnames, std::vector< int > &ptypes) |
TEDATAACCESSEXPORT std::size_t | GetPropertyPos (const DataSet *dataset, const std::string &name) |
TEDATAACCESSEXPORT std::size_t | GetPropertyPos (const DataSetType *dt, const std::string &name) |
TEDATAACCESSEXPORT std::string | GetSQLValueNames (const DataSetType *dt) |
TEDATAACCESSEXPORT std::string | GetSQLValueNames (const DataSet *dataset) |
TEDATAACCESSEXPORT double | GetSummarizedValue (std::vector< double > &values, const std::string &summary) |
It gets the summarized value. More... | |
TEDATAACCESSEXPORT std::string | GetSummarizedValue (const std::vector< std::string > &values, const std::string &sumary) |
It gets the summarized value. More... | |
TEDATAACCESSEXPORT double | GetValueAsDouble (const te::da::DataSet *ds, const size_t pos) |
It gets the value as double. More... | |
TEDATAACCESSEXPORT bool | HasDataSet (const std::string &datasourceId) |
TEDATAACCESSEXPORT bool | HasLinkedTable (te::da::DataSetType *type) |
It checks if the datasettype has a linked table. More... | |
TEDATAACCESSEXPORT bool | IsValidName (const std::string &name, std::string &invalidChar) |
It checks if the name is not valid as the existence of invalid characters, reserved words, and others. More... | |
TEDATAACCESSEXPORT void | LoadFull (te::da::DataSetType *dataset, const std::string &datasourceId) |
TEDATAACCESSEXPORT void | LoadProperties (te::da::DataSetType *dataset, const std::string &datasourceId) |
JoinCondition * | new_clone (const JoinCondition &a) |
For use with boost conteiners. More... | |
Query * | new_clone (const Query &a) |
For use with boost conteiners. More... | |
Expression * | new_clone (const Expression &a) |
For use with boost conteiners. More... | |
FromItem * | new_clone (const FromItem &a) |
For use with boost conteiners. More... | |
TEDATAACCESSEXPORT te::dt::AbstractData * | PointToMConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT te::dt::AbstractData * | PointToXConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT te::dt::AbstractData * | PointToYConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT te::dt::AbstractData * | PointToZConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT double | Round (const double &value, const size_t &precision) |
It gets the round value. More... | |
TEDATAACCESSEXPORT te::dt::AbstractData * | TupleToStringConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT te::dt::AbstractData * | XYMToPointConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT te::dt::AbstractData * | XYToPointConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT te::dt::AbstractData * | XYZMToPointConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
TEDATAACCESSEXPORT te::dt::AbstractData * | XYZToPointConverter (DataSet *dataset, const std::vector< std::size_t > &indexes, int dstType) |
Namespace for the DataAccess API of TerraLib.
typedef boost::function3<te::dt::AbstractData*, DataSet*, const std::vector<std::size_t>&, int> te::da::AttributeConverter |
The type of attribute converter functions.
The functions following the typedef signature have:
type: e::dt::AbstractData*
input parameter: input data set (DataSet*)
input parameter: the position list of adapted properties in the input dataset (const std::vector<std::size_t>&)
input parameter: destination data type (int)
Definition at line 50 of file AttributeConverters.h.
typedef boost::shared_ptr<DataSet> te::da::DataSetPtr |
typedef boost::shared_ptr< DataSetType > te::da::DataSetTypePtr |
Definition at line 653 of file DataSetType.h.
typedef boost::shared_ptr<DataSourceCatalog> te::da::DataSourceCatalogPtr |
Definition at line 493 of file DataSourceCatalog.h.
typedef boost::shared_ptr<DataSourceInfo> te::da::DataSourceInfoPtr |
Definition at line 103 of file DataSourceInfo.h.
typedef boost::shared_ptr<DataSource> te::da::DataSourcePtr |
Definition at line 1435 of file DataSource.h.
typedef boost::shared_ptr<DataSourceTransactor> te::da::DataSourceTransactorPtr |
Definition at line 1246 of file DataSourceTransactor.h.
typedef boost::ptr_vector<Expression> te::da::Distinct |
A class that models a Distinct clause on a query.
Definition at line 37 of file Distinct.h.
typedef boost::ptr_vector<Field> te::da::Fields |
typedef boost::ptr_vector<FromItem> te::da::From |
typedef boost::ptr_vector<GroupByItem> te::da::GroupBy |
typedef boost::ptr_vector<OrderByItem> te::da::OrderBy |
anonymous enum |
enum te::da::FKActionType |
Type of action performed on the foreign key data.
enum te::da::IndexType |
enum te::da::JoinType |
enum te::da::SortOrder |
std::auto_ptr< te::da::Fields > te::da::BuildFields | ( | const std::vector< std::string > & | properties | ) |
Definition at line 769 of file Utils.cpp.
Referenced by BuildSelect().
std::auto_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname | ) |
Definition at line 779 of file Utils.cpp.
Referenced by BuildSelect().
std::auto_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
const std::string & | propertyName | ||
) |
Definition at line 784 of file Utils.cpp.
References BuildSelect().
std::auto_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
const std::vector< std::string > & | properties | ||
) |
Definition at line 792 of file Utils.cpp.
References BuildFields().
std::auto_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
const std::vector< std::string > & | properties, | ||
const std::string & | geometryProperty, | ||
const te::gm::Envelope * | e, | ||
int | srid, | ||
te::gm::SpatialRelation | r | ||
) |
Definition at line 808 of file Utils.cpp.
References BuildFields(), and BuildSpatialOp().
std::auto_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
const std::vector< std::string > & | properties, | ||
const std::string & | geometryProperty, | ||
te::gm::Geometry * | g, | ||
te::gm::SpatialRelation | r | ||
) |
Definition at line 841 of file Utils.cpp.
References BuildFields(), and BuildSpatialOp().
std::auto_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
const std::vector< std::string > & | properties, | ||
const ObjectIdSet * | oids | ||
) |
Definition at line 873 of file Utils.cpp.
References BuildFields(), te::da::ObjectIdSet::getExpression(), and te::da::ObjectIdSet::getPropertyNames().
std::auto_ptr< te::da::Expression > te::da::BuildSpatialOp | ( | Expression * | e1, |
Expression * | e2, | ||
te::gm::SpatialRelation | r | ||
) |
Definition at line 722 of file Utils.cpp.
References te::gm::CONTAINS, te::gm::CROSSES, te::gm::DISJOINT, te::gm::EQUALS, te::gm::INTERSECTS, te::gm::OVERLAPS, te::gm::TOUCHES, and te::gm::WITHIN.
Referenced by BuildSelect().
void te::da::Create | ( | DataSource * | ds, |
DataSetType * | dt, | ||
DataSet * | d, | ||
std::size_t | limit = 0 |
||
) |
It creates the dataset definition in a data source and then fill it with data from the input dataset.
This function will create the dataset schema definition and will save all the dataset data.
t | The data source transactor. |
dt | The source dataset definition. |
d | The source dataset data. |
limit | The number of items to be used from the input dataset. If set to 0 (default) all items are used. |
Exception | It throws an exception if the dataset can not be created. |
Definition at line 626 of file Utils.cpp.
Referenced by te::qt::plugins::terralib4::TL4ConverterWizard::commit().
void te::da::Create | ( | DataSource * | ds, |
DataSetType * | dt, | ||
DataSet * | d, | ||
const std::map< std::string, std::string > & | options, | ||
std::size_t | limit = 0 |
||
) |
It creates the dataset definition in a data source and then fill it with data from the input dataset.
This method will create the dataset schema definition and will save all the dataset data.
dt | The source dataset definition. |
d | The source dataset data. |
options | A list of optional modifiers. It is driver specific. |
limit | The number of items to be used from the input dataset. If set to 0 (default) all items are used. |
Exception | It throws an exception if the dataset can not be created. |
Definition at line 633 of file Utils.cpp.
References te::da::DataSource::add(), te::da::DataSource::createDataSet(), and te::dt::Property::getName().
te::da::DataSetAdapter * te::da::CreateAdapter | ( | DataSet * | ds, |
DataSetTypeConverter * | converter, | ||
bool | isOwner = false |
||
) |
Definition at line 644 of file Utils.cpp.
References te::da::DataSetAdapter::add(), te::da::DataSetTypeConverter::getConvertedPropertyIndexes(), te::da::DataSetTypeConverter::getConverters(), te::dt::Property::getName(), te::dt::CompositeProperty::getProperty(), te::da::DataSetTypeConverter::getResult(), te::dt::Property::getType(), and te::dt::CompositeProperty::size().
Referenced by te::qt::widgets::DataExchangerWizard::exchange(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::DirectExchangerDialog::exchangeToFile(), te::cl::ROISet::exportToFile(), te::map::DataSetAdapterLayer::getData(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::PostGIS2SHPDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2ADODialog::onOkPushButtonClicked(), te::attributefill::VectorToVectorOp::save(), te::addressgeocoding::AddressGeocodingOp::save(), te::attributefill::RasterToVector::save(), and te::map::DataSetAdapterLayer::setConverter().
te::da::ObjectId * te::da::GenerateOID | ( | DataSet * | dataset, |
const std::vector< std::string > & | names | ||
) |
Definition at line 446 of file Utils.cpp.
References te::da::ObjectId::addValue(), te::da::DataSet::getValue(), and te::da::DataSet::isNull().
Referenced by te::qt::widgets::Selection::executeSelection(), GenerateOIDSet(), getObjectId(), te::qt::widgets::DataSetTableModel::getObjectIdSet(), te::da::SpatialQueryProcessor::getOIDSet(), te::edit::PickFeature(), te::vp::MultipartToSinglepart::runSelected(), and ToHighlight().
te::da::ObjectIdSet * te::da::GenerateOIDSet | ( | DataSet * | dataset, |
const DataSetType * | type | ||
) |
Definition at line 412 of file Utils.cpp.
References GetOIDPropertyNames().
Referenced by te::da::SpatialQueryProcessor::getOIDSet(), te::qt::widgets::QueryDialog::onApplyPushButtonClicked(), and te::qt::widgets::QueryDataSourceDialog::onApplySelToolButtonClicked().
te::da::ObjectIdSet * te::da::GenerateOIDSet | ( | DataSet * | dataset, |
const std::vector< std::string > & | names | ||
) |
Definition at line 423 of file Utils.cpp.
References GenerateOID(), te::da::DataSet::getPropertyDataType(), GetPropertyPos(), te::da::DataSet::moveNext(), and TE_TR.
te::dt::AbstractData * te::da::GenericAttributeConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 40 of file AttributeConverters.cpp.
References te::common::Singleton< DataConverterManager >::getInstance(), te::dt::AbstractData::getTypeCode(), te::da::DataSet::getValue(), and te::da::DataSet::isNull().
Referenced by te::da::Module::initialize().
std::string te::da::getBasePkey | ( | te::da::ObjectId * | oid, |
std::pair< std::string, int > & | dsProps | ||
) |
Definition at line 388 of file Utils.cpp.
References te::da::ObjectId::getValue().
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), and te::qt::widgets::HistogramChart::highlight().
te::da::DataSet * te::da::GetDataSet | ( | const std::string & | name, |
const std::string & | datasourceId | ||
) |
Definition at line 213 of file Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance().
Referenced by te::st::STDataLoader::getCoverage(), and te::st::STDataLoaderFromMemDS::loadDataSet().
std::string te::da::GetDataSetCategoryName | ( | int | category | ) |
Definition at line 164 of file Utils.cpp.
References INDEX_TYPE, QUERY_TYPE, REGULAR_FILE_TYPE, SEQUENCE_TYPE, SYSTEM_TABLE_TYPE, TABLE_TYPE, TRIGGER_TYPE, UNKNOWN_DATASET_TYPE, and VIEW_TYPE.
Referenced by te::qt::widgets::DataSetCategoryItem::data().
void te::da::GetDataSetNames | ( | std::vector< std::string > & | datasetNames, |
const std::string & | datasourceId | ||
) |
Definition at line 153 of file Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance().
Referenced by te::qt::widgets::QueryLayerBuilderWizard::getDataSets(), te::qt::widgets::QueryBuilderWizard::getDataSets(), te::qt::widgets::TableLinkDialog::getDataSets(), te::qt::widgets::HiddenDataSetLayerSelector::getLayers(), and te::qt::widgets::QueryDataSourceDialog::onDataSourceSelected().
te::da::DataSetType * te::da::GetDataSetType | ( | const std::string & | name, |
const std::string & | datasourceId | ||
) |
Definition at line 228 of file Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance().
Referenced by te::st::STDataLoaderFromMemDS::loadDataSet(), te::qt::widgets::QueryDataSourceDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onApplySelToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onDataSetItemClicked(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::vp::BufferQuery::run(), and te::vp::BufferMemory::run().
te::da::DataSourcePtr te::da::GetDataSource | ( | const std::string & | datasourceId, |
const bool | opened = true |
||
) |
Search for a data source with the informed id in the DataSourceManager.
If the data source is not found in that manager it will try to get some information in the DataSourceInfoManager and will create a new data source instance, storing a reference to the new data source in the manager.
datasourceId | The data source to look for. |
opened | Automatically open the data source. |
Exception | It throws an exception if the informed data source could not be retrieved. |
Definition at line 262 of file Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), and TE_TR.
Referenced by te::qt::widgets::QueryDataSourceDialog::buildMap(), te::map::QueryLayer::computeExtent(), DataSetAdapterLayerReader(), te::map::DataSetLayerRenderer::draw(), te::qt::widgets::VectorizationWizard::execute(), te::vp::GeometricOpWizard::execute(), te::wms::WMSLayer::getData(), te::map::DataSetLayer::getData(), te::map::DataSetAdapterLayer::getData(), te::map::QueryLayer::getData(), te::st::STDataLoaderFromDS::getDataSet(), te::qt::plugins::cellspace::CreateCellularSpaceDialog::getLayer(), te::map::GetRaster(), te::map::GetRasterProperty(), te::wms::WMSLayer::getSchema(), te::map::DataSetLayer::getSchema(), te::map::QueryLayer::getSchema(), te::st::ObservationDataSetLayer::getSchema(), te::st::TimeSeriesDataSetLayer::getSchema(), te::st::TrajectoryDataSetLayer::getSchema(), te::st::STDataLoaderFromDS::getSpatialExtent(), te::wms::WMSLayer::isValid(), te::map::DataSetLayer::isValid(), te::map::QueryLayer::isValid(), te::map::DataSetAdapterLayer::isValid(), te::st::TimeSeriesDataSetLayer::isValid(), te::st::TrajectoryDataSetLayer::isValid(), te::sa::SkaterDialog::loadGPM(), te::sa::SpatialStatisticsDialog::loadGPM(), te::sa::BayesLocalDialog::loadGPM(), te::qt::widgets::QueryDataSourceDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onApplySelToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onDataSourceSelected(), te::qt::widgets::QueryDialog::onInputLayerActivated(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::sa::BayesGlobalDialog::onOkPushButtonClicked(), te::sa::ProximityMatrixCreatorDialog::onOkPushButtonClicked(), te::sa::SamplePointsGeneratorDialog::onOkPushButtonClicked(), te::sa::BayesLocalDialog::onOkPushButtonClicked(), te::sa::SkaterDialog::onOkPushButtonClicked(), te::sa::SpatialStatisticsDialog::onOkPushButtonClicked(), te::vp::PolygonToLineDialog::onOkPushButtonClicked(), te::vp::LineToPolygonDialog::onOkPushButtonClicked(), te::vp::IntersectionDialog::onOkPushButtonClicked(), te::addressgeocoding::ConfigInputLayerDialog::onOkPushButtonClicked(), te::layout::MapLayerChoiceOutside::onOkPushButtonClicked(), te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked(), te::attributefill::VectorToRasterDialog::onOkPushButtonClicked(), te::addressgeocoding::MainWindowDialog::onOkPushButtonClicked(), te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), te::vp::BufferDialog::onOkPushButtonClicked(), te::attributefill::VectorToVectorDialog::onOkPushButtonClicked(), te::vp::AggregationDialog::onOkPushButtonClicked(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::map::DataSetAdapterLayer::setConverter(), te::vp::AggregationDialog::setFunctionsByLayer(), te::qt::widgets::SHP2PostGISDialog::setLayers(), te::qt::widgets::SHP2ADODialog::setLayers(), te::qt::widgets::PostGIS2SHPDialog::setLayers(), and te::qt::plugins::ogr::Plugin::showWindow().
void te::da::GetEmptyOIDSet | ( | const DataSetType * | type, |
ObjectIdSet *& | set | ||
) |
Returns an empty ObjectIdSet, with the definitions of fields that compose it.
type[in] | A pointer to a valid data set type. Do not pass null. |
set[out] | The ObjectIdSet containing only the the fields definitions. This pointer will be instantiated inside the method. |
Definition at line 286 of file Utils.cpp.
References te::da::ObjectIdSet::addProperty(), te::dt::Property::getName(), GetOIDPropertyPos(), te::dt::CompositeProperty::getProperty(), and te::dt::Property::getType().
Referenced by te::qt::widgets::Selection::executeSelection(), te::da::SpatialQueryProcessor::getOIDSet(), te::qt::widgets::DataSetTableView::saveEditions(), and te::qt::widgets::DataSetTableView::setLayerSchema().
te::gm::Envelope * te::da::GetExtent | ( | const std::string & | datasetName, |
const std::string & | propertyName, | ||
const std::string & | datasourceId | ||
) |
Exception | It throws an exception if the extent can not be determined. |
Definition at line 136 of file Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), and TE_TR.
Referenced by te::qt::widgets::DataSetDisplay::draw(), generateLayer(), te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked(), and te::qt::widgets::DataSet2Layer::operator()().
te::gm::GeometryProperty * te::da::GetFirstGeomProperty | ( | const DataSetType * | dt | ) |
Definition at line 557 of file Utils.cpp.
References te::dt::CompositeProperty::findFirstPropertyOfType(), and te::dt::GEOMETRY_TYPE.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::KernelOperation::buildRaster(), te::sa::KernelMapOperation::buildTree(), te::sa::KernelRatioOperation::buildTree(), te::ogr::Convert2OGR(), te::ogr::Transactor::createDataSet(), te::vp::IntersectionMemory::createDataSetType(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), DataSetAdapterLayerReader(), te::map::DataSetLayerRenderer::draw(), te::qt::widgets::DataSetDisplay::draw(), te::map::QueryLayerRenderer::draw(), te::map::AbstractLayerRenderer::draw(), te::map::DrawGeometries(), te::map::DataSetLayerRenderer::drawGrouping(), te::qt::widgets::DataExchangerWizard::exchange(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::DirectExchangerDialog::exchangeToFile(), te::qt::widgets::Selection::executeSelection(), te::qt::plugins::terralib4::TL4ConverterWizard::finish(), generateLayer(), te::qt::widgets::DatapPropertiesWidget::getConverter(), te::vp::BufferOp::GetDataSetType(), te::vp::GeometricOp::GetDataSetType(), te::ogr::Transactor::getDataSetType(), te::wfs::Transactor::getDataSetType(), te::map::GetGeomType(), te::qt::widgets::Info::getInfo(), te::qt::widgets::ClassifierWizardPage::getInputParams(), te::qt::widgets::ClippingWizardPage::getLayerClipping(), te::qt::widgets::QueryLayerBuilderWizard::getQueryLayer(), te::qt::widgets::TableLinkDialog::getQueryLayer(), te::map::GetSelectedExtent(), te::qt::widgets::WhereClauseWidget::onAddWhereClausePushButtonClicked(), te::sa::GeostatisticalMethodsDialog::onApplyPushButtonClicked(), te::qt::widgets::DatapPropertiesWidget::onInputDataToolButtonTriggered(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::sa::SamplePointsGeneratorDialog::onOkPushButtonClicked(), te::sa::SpatialStatisticsDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked(), te::qt::widgets::ROIManagerWidget::onPointPicked(), te::qt::widgets::DataSet2Layer::operator()(), te::vp::IntersectionMemory::pairwiseIntersection(), te::edit::PickFeature(), te::vp::PolygonToLineMemory::run(), te::vp::LineToPolygonMemory::run(), te::vp::AggregationQuery::run(), te::vp::BufferQuery::run(), te::vp::IntersectionQuery::run(), te::vp::AggregationMemory::run(), te::vp::IntersectionMemory::run(), te::attributefill::VectorToRaster::run(), te::attributefill::RasterToVector::run(), te::attributefill::VectorToVectorDialog::setFunctionsByLayer(), te::addressgeocoding::ConfigInputLayerDialog::setLayers(), te::layout::MapLayerChoiceOutside::setLayers(), and te::qt::widgets::ROIManagerWidget::setList().
std::size_t te::da::GetFirstPropertyPos | ( | const te::da::DataSet * | dataset, |
int | datatype | ||
) |
Definition at line 481 of file Utils.cpp.
References te::da::DataSet::getNumProperties(), and te::da::DataSet::getPropertyDataType().
Referenced by te::edit::Snap::add(), te::qt::widgets::TiePointLocatorWidget::adjCoordPicked(), te::map::QueryLayer::computeExtent(), te::sa::SamplePointsGeneratorStratified::createClassMap(), te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), te::qt::widgets::DataSetDisplay::draw(), te::wms::WMSLayerRenderer::draw(), te::qt::af::MapDisplay::drawDataSet(), te::map::DrawGeometries(), te::map::DataSetLayerRenderer::drawGrouping(), te::map::DrawRaster(), te::qt::widgets::TiePointLocatorWidget::drawTiePoints(), te::sa::KernelRatioOperation::execute(), te::qt::widgets::RegisterWizard::execute(), te::qt::widgets::FilterWizard::execute(), te::qt::widgets::ClassifierWizard::execute(), te::qt::widgets::ContrastWizard::execute(), te::qt::widgets::MixtureModelWizard::execute(), te::qt::widgets::ClippingWizard::executeDimensionClipping(), te::qt::widgets::ClippingWizard::executeExtentClipping(), te::qt::widgets::MosaicWizard::executeGeoMosaic(), te::qt::widgets::FusionWizard::executeIHS(), te::qt::widgets::ClippingWizard::executeLayerClipping(), te::qt::widgets::FusionWizard::executePCA(), te::qt::widgets::MosaicWizard::executeSequenceMosaic(), te::qt::widgets::MosaicWizard::executeTiePointMosaic(), te::qt::widgets::FusionWizard::executeWisper(), te::md::Extract(), te::qt::widgets::MultiResolutionWidget::fromFolder(), te::qt::widgets::MultiResolutionWidget::fromLayer(), te::qt::widgets::ComposeBandsWizardPage::getComposeParameters(), te::qt::widgets::ComposeBandsWizardPage::getDecomposeParameters(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::qt::widgets::Info::getGeometryInfo(), te::map::GetGeomType(), te::qt::widgets::HistogramDataWidget::getHistogram(), te::qt::widgets::ColorTransformWizardPage::getIHSRaster(), te::qt::widgets::SegmenterWizardPage::getInputParams(), te::qt::widgets::ClassifierWizardPage::getInputParams(), getLayerRaster(), te::qt::widgets::VectorizationWizardPage::getRaster(), te::map::GetRaster(), te::qt::widgets::ArithmeticOpWizardPage::getRasterBands(), te::qt::widgets::ColorTransformWizardPage::getRasterBands(), te::qt::widgets::ColorTransformWizardPage::getRGBRaster(), te::qt::widgets::ScatterDataWidget::getScatter(), te::qt::widgets::TiePointLocatorWidget::getTiePoints(), te::qt::widgets::TiePointLocatorWidget::getTiePointsIdxCoords(), te::qt::widgets::HistogramDataWidget::HistogramDataWidget(), te::qt::widgets::ContrastWizardPage::listBands(), te::qt::widgets::FilterWizardPage::listBands(), te::qt::widgets::SegmenterWizardPage::listBands(), te::qt::widgets::ClassifierWizardPage::listBands(), te::qt::widgets::MixtureModelWizardPage::listBands(), te::qt::widgets::RasterNavigatorWidget::listBands(), te::qt::widgets::FusionWizardPage::listBandsHigher(), te::qt::widgets::FusionWizardPage::listBandsLower(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), te::qt::widgets::ComposeBandsWizardPage::onAddToolButtonClicked(), te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked(), te::qt::widgets::RasterNavigatorWidget::onCoordTrackedChanged(), te::qt::widgets::ClippingWizardPage::onEnvelopeAcquired(), te::qt::widgets::LayerSearchWidget::onFilter(), te::qt::widgets::ComposeBandsWizardPage::onLayerCmbActivated(), te::qt::widgets::MixtureModelWizardPage::onPointPicked(), te::qt::widgets::HistogramDataWidget::onPropertyComboBoxIndexChanged(), te::qt::widgets::ArithmeticOpWizard::paramsFromOp1(), te::qt::widgets::ArithmeticOpWizard::paramsFromOp2(), te::qt::widgets::ArithmeticOpWizard::paramsFromOp3(), te::qt::widgets::ArithmeticOpWizard::paramsFromOp4(), te::qt::widgets::ArithmeticOpWizard::paramsFromOp5(), te::qt::widgets::ArithmeticOpWizard::paramsFromOp6(), te::qt::widgets::TiePointLocatorWidget::refCoordPicked(), te::sa::KernelOperation::runDataSetKernel(), te::qt::widgets::ScatterDataWidget::ScatterDataWidget(), te::qt::widgets::RasterNavigatorWidget::set(), te::qt::widgets::TiePointLocatorWidget::setAdjustLayer(), te::qt::widgets::VectorizationWizardPage::setLayer(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::qt::widgets::GroupingDialog::setLayers(), te::qt::widgets::ComposeBandsWizardPage::setList(), te::qt::widgets::MosaicWizardPage::setList(), and te::qt::widgets::TiePointLocatorWidget::setReferenceLayer().
te::rst::RasterProperty * te::da::GetFirstRasterProperty | ( | const DataSetType * | dt | ) |
Definition at line 571 of file Utils.cpp.
References te::dt::CompositeProperty::findFirstPropertyOfType(), and te::dt::RASTER_TYPE.
Referenced by te::map::DataSetLayerRenderer::draw(), te::wms::WMSLayerRenderer::draw(), te::map::QueryLayerRenderer::draw(), te::map::AbstractLayerRenderer::draw(), te::map::DrawRaster(), te::qt::widgets::Info::getInfo(), te::attributefill::RasterToVectorDialog::onRasterComboBoxChanged(), te::qt::widgets::StyleDockWidget::onSymbolizerSelected(), te::wms::WMS2Layer::operator()(), te::qt::widgets::DataSet2Layer::operator()(), and te::attributefill::RasterToVector::run().
te::dt::Property * te::da::GetFirstSpatialProperty | ( | const DataSetType * | dt | ) |
Definition at line 534 of file Utils.cpp.
References te::dt::GEOMETRY_TYPE, te::dt::CompositeProperty::getProperty(), te::dt::Property::getType(), te::dt::RASTER_TYPE, and te::dt::CompositeProperty::size().
Referenced by te::attributefill::VectorToVectorDialog::getCurrentToLayerGeomType(), and te::vp::MultipartToSinglepart::run().
std::size_t te::da::GetFirstSpatialPropertyPos | ( | const te::da::DataSet * | dataset | ) |
It returns the first dataset spatial property or NULL if none is found.
dataset | The dataset to search for a spatial property. |
Definition at line 462 of file Utils.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSet::getNumProperties(), te::da::DataSet::getPropertyDataType(), and te::dt::RASTER_TYPE.
Referenced by te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::GPMConstructorAdjacencyStrategy::constructStrategy(), te::sa::GPMConstructorDistanceStrategy::constructStrategy(), te::cellspace::CellularSpacesOperations::createCellSpace(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::attributefill::VectorToVectorMemory::getClassWithHighestIntersectionArea(), te::attributefill::VectorToVectorMemory::getIntersections(), te::attributefill::VectorToVectorMemory::getKDtree(), te::attributefill::VectorToVectorMemory::getMinimumDistance(), te::attributefill::VectorToVectorMemory::getPercentageOfEachClassByArea(), te::attributefill::VectorToVectorMemory::getPercentageOfTotalArea(), te::attributefill::VectorToVectorMemory::getRtree(), te::cellspace::CellularSpacesOperations::getRtree(), te::attributefill::VectorToVectorMemory::getWeightedByArea(), te::attributefill::VectorToVectorMemory::getWeightedSumByArea(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::vp::IntersectionMemory::pairwiseIntersection(), te::vp::BufferQuery::prepareDataSet(), te::vp::MultipartToSinglepart::runAll(), te::vp::MultipartToSinglepart::runSelected(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpQuery::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpQuery::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::vp::GeometricOpQuery::SetAllObjects(), and te::map::DataSetAdapterLayer::setConverter().
void te::da::GetOIDDatasetProps | ( | const DataSetType * | type, |
std::pair< std::string, int > & | dsProps | ||
) |
Definition at line 355 of file Utils.cpp.
References te::dt::Property::getDatasetName(), te::da::DataSetType::getPrimaryKey(), and te::da::PrimaryKey::getProperties().
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), and te::qt::widgets::HistogramChart::highlight().
void te::da::GetOIDPropertyNames | ( | const DataSetType * | type, |
std::vector< std::string > & | pnames | ||
) |
Definition at line 309 of file Utils.cpp.
References te::dt::BYTE_ARRAY_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::GEOMETRY_TYPE, te::da::DataSetType::getNumberOfUniqueKeys(), te::da::DataSetType::getPrimaryKey(), te::da::PrimaryKey::getProperties(), te::da::UniqueKey::getProperties(), te::dt::CompositeProperty::getProperties(), te::da::DataSetType::getUniqueKey(), te::dt::NUMERIC_TYPE, and te::dt::RASTER_TYPE.
Referenced by te::qt::widgets::Selection::executeSelection(), GenerateOIDSet(), GetOIDPropertyPos(), te::qt::plugins::edit::ToolBar::onSaveActivated(), and te::edit::PickFeature().
void te::da::GetOIDPropertyPos | ( | const DataSetType * | type, |
std::vector< std::size_t > & | ppos | ||
) |
Definition at line 401 of file Utils.cpp.
References GetOIDPropertyNames(), and te::dt::CompositeProperty::getPropertyPosition().
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), GetEmptyOIDSet(), and te::qt::af::ChartDisplayDockWidget::selectionChanged().
std::vector< int > te::da::GetPropertyDataTypes | ( | const te::da::DataSet * | dataset | ) |
Definition at line 708 of file Utils.cpp.
References te::da::DataSet::getNumProperties(), and te::da::DataSet::getPropertyDataType().
Referenced by te::pgis::Transactor::add().
int te::da::GetPropertyIndex | ( | te::da::DataSet * | dataSet, |
const std::string | propName | ||
) |
Definition at line 919 of file Utils.cpp.
References te::da::DataSet::getNumProperties(), and te::da::DataSet::getPropertyName().
Referenced by te::attributefill::VectorToVectorMemory::getClassWithHighestIntersectionArea(), te::attributefill::VectorToVectorMemory::getClassWithHighestOccurrence(), te::sa::GeostatisticalMethodsDialog::onApplyPushButtonClicked(), te::sa::GeostatisticalMethodsDialog::onChangeAttrToolButtonClicked(), and te::stat::StatisticsDialog::setStatistics().
void te::da::GetPropertyInfo | ( | const DataSetType *const | dt, |
std::vector< std::string > & | pnames, | ||
std::vector< int > & | ptypes | ||
) |
Definition at line 598 of file Utils.cpp.
References te::dt::Property::getName(), te::dt::CompositeProperty::getProperty(), te::dt::Property::getType(), and te::dt::CompositeProperty::size().
Referenced by te::stmem::DataSet::DataSet(), and te::mem::DataSet::DataSet().
void te::da::GetPropertyInfo | ( | const DataSet *const | dataset, |
std::vector< std::string > & | pnames, | ||
std::vector< int > & | ptypes | ||
) |
Definition at line 613 of file Utils.cpp.
References te::da::DataSet::getNumProperties(), te::da::DataSet::getPropertyDataType(), and te::da::DataSet::getPropertyName().
std::size_t te::da::GetPropertyPos | ( | const DataSet * | dataset, |
const std::string & | name | ||
) |
Definition at line 500 of file Utils.cpp.
References te::da::DataSet::getNumProperties(), and te::da::DataSet::getPropertyName().
Referenced by te::st::STDataLoaderFromMemDS::buildDataSet(), te::vp::BufferMemory::dissolveMemory(), te::qt::af::MapDisplay::drawDataSet(), te::map::QueryLayerRenderer::drawDatSetGeometries(), te::map::QueryLayerRenderer::drawLayerGeometries(), te::map::AbstractLayerRenderer::drawLayerGeometries(), te::map::AbstractLayerRenderer::drawLayerGrouping(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::AbstractLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::mem::DataSource::dropProperty(), GenerateOIDSet(), te::da::DataSet::getArray(), te::da::DataSet::getAsString(), te::da::DataSet::getBool(), te::da::DataSet::getByteArray(), te::da::DataSet::getChar(), te::st::STDataLoader::getCoverage(), te::da::DataSet::getDateTime(), te::da::DataSet::getDouble(), te::da::DataSet::getFloat(), te::da::DataSet::getGeometry(), te::qt::widgets::Info::getGeometryInfo(), te::da::DataSet::getInt16(), te::da::DataSet::getInt32(), te::da::DataSet::getInt64(), te::qt::widgets::ChartLayerWidget::getMaxValue(), te::da::DataSet::getNumeric(), te::qt::widgets::ObservationPropertiesWidget::getOutputValues(), te::da::DataSet::getRaster(), te::qt::widgets::ScatterDataWidget::getScatter(), te::st::ObservationDataSet::getSpatialExtent(), te::da::DataSet::getString(), te::da::DataSet::getUChar(), te::da::DataSet::getValue(), te::qt::widgets::ChartRenderer::getValues(), te::da::DataSet::isNull(), te::st::STDataLoaderFromMemDS::loadDataSet(), te::qt::widgets::HistogramDataWidget::onPropertyComboBoxIndexChanged(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::mem::DataSource::renameProperty(), te::vp::AggregationMemory::run(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::mem::DataSetItem::setBool(), te::mem::DataSetItem::setByteArray(), te::mem::DataSetItem::setChar(), te::mem::DataSetItem::setDateTime(), te::mem::DataSetItem::setDouble(), te::mem::DataSetItem::setFloat(), te::mem::DataSetItem::setGeometry(), te::mem::DataSetItem::setInt16(), te::mem::DataSetItem::setInt32(), te::mem::DataSetItem::setInt64(), te::mem::DataSetItem::setNumeric(), te::mem::DataSetItem::setRaster(), te::mem::DataSetItem::setString(), te::mem::DataSetItem::setUChar(), and te::mem::DataSetItem::setValue().
std::size_t te::da::GetPropertyPos | ( | const DataSetType * | dt, |
const std::string & | name | ||
) |
Definition at line 517 of file Utils.cpp.
References te::dt::Property::getName(), te::dt::CompositeProperty::getProperties(), and te::dt::CompositeProperty::getProperty().
std::string te::da::GetSQLValueNames | ( | const DataSetType * | dt | ) |
Definition at line 670 of file Utils.cpp.
References te::dt::Property::getName(), te::dt::CompositeProperty::getProperty(), and te::dt::CompositeProperty::size().
Referenced by te::sqlite::DataSourceTransactor::add(), and te::pgis::Transactor::add().
std::string te::da::GetSQLValueNames | ( | const DataSet * | dataset | ) |
Definition at line 689 of file Utils.cpp.
References te::da::DataSet::getNumProperties(), and te::da::DataSet::getPropertyName().
double te::da::GetSummarizedValue | ( | std::vector< double > & | values, |
const std::string & | summary | ||
) |
It gets the summarized value.
values | The input values. |
summary | The summary mode. It can be: "MIN", "MAX", "SUM", "AVERAGE", "MEDIAN", "STDDEV" or "VARIANCE" |
Definition at line 1196 of file Utils.cpp.
Referenced by te::map::QueryLayerRenderer::drawDatSetGeometries(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::qt::widgets::GroupingWidget::getLinkedDataAsDouble(), te::qt::widgets::GroupingWidget::getLinkedDataAsString(), and te::qt::widgets::ChartLayerWidget::getMaxValue().
std::string te::da::GetSummarizedValue | ( | const std::vector< std::string > & | values, |
const std::string & | sumary | ||
) |
double te::da::GetValueAsDouble | ( | const te::da::DataSet * | ds, |
const size_t | pos | ||
) |
It gets the value as double.
ds | The input dataset. |
pos | The column position. |
Definition at line 1337 of file Utils.cpp.
References te::dt::CHAR_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::da::DataSet::getChar(), te::da::DataSet::getDouble(), te::da::DataSet::getFloat(), te::da::DataSet::getInt16(), te::da::DataSet::getInt32(), te::da::DataSet::getInt64(), te::da::DataSet::getNumeric(), te::da::DataSet::getPropertyDataType(), te::da::DataSet::getUChar(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::NUMERIC_TYPE, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by te::map::QueryLayerRenderer::drawDatSetGeometries(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem(), te::qt::widgets::ChartLayerWidget::getMaxValue(), and te::qt::widgets::ChartRenderer::getValues().
bool te::da::HasDataSet | ( | const std::string & | datasourceId | ) |
Definition at line 200 of file Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance().
bool te::da::HasLinkedTable | ( | te::da::DataSetType * | type | ) |
It checks if the datasettype has a linked table.
type | The Datasettype. |
Definition at line 1175 of file Utils.cpp.
References te::da::DataSetType::getPrimaryKey(), and te::da::PrimaryKey::getProperties().
Referenced by te::map::QueryLayerRenderer::drawLayerGeometries(), te::map::QueryLayerRenderer::drawLayerGroupingMem(), te::qt::af::MapDisplay::drawLayerSelection(), te::qt::widgets::GroupingWidget::getDataAsDouble(), te::qt::widgets::GroupingWidget::getDataAsString(), te::qt::widgets::ChartLayerWidget::getMaxValue(), te::qt::widgets::HistogramDataWidget::HistogramDataWidget(), te::qt::widgets::HistogramDataWidget::onPropertyComboBoxIndexChanged(), te::qt::widgets::ScatterDataWidget::ScatterDataWidget(), te::qt::widgets::ChartLayerWidget::setLayer(), and te::qt::widgets::GroupingWidget::setLayers().
bool te::da::IsValidName | ( | const std::string & | name, |
std::string & | invalidChar | ||
) |
It checks if the name is not valid as the existence of invalid characters, reserved words, and others.
name | Name that will be checked. |
invalidChar | Records the invalid character. |
Definition at line 934 of file Utils.cpp.
References te::common::Convert2LCase(), and te::common::Convert2UCase().
Referenced by te::da::DataSourceTransactor::isDataSetNameValid(), te::da::DataSourceTransactor::isPropertyNameValid(), and te::attributefill::VectorToVectorMemory::normalizeClassName().
void te::da::LoadFull | ( | te::da::DataSetType * | dataset, |
const std::string & | datasourceId | ||
) |
Definition at line 70 of file Utils.cpp.
References te::da::DataSetType::add(), te::common::Singleton< DataSourceManager >::getInstance(), te::dt::Property::getName(), and te::dt::CompositeProperty::size().
void te::da::LoadProperties | ( | te::da::DataSetType * | dataset, |
const std::string & | datasourceId | ||
) |
Definition at line 120 of file Utils.cpp.
References te::da::DataSetType::add(), te::common::Singleton< DataSourceManager >::getInstance(), and te::dt::Property::getName().
Referenced by te::qt::widgets::DataSetDisplay::draw(), te::qt::widgets::PostGIS2SHPDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2ADODialog::onOkPushButtonClicked(), te::wms::WMS2Layer::operator()(), te::qt::widgets::DataSet2Layer::operator()(), and te::qt::widgets::DataSetOptionsWizardPage::set().
|
inline |
For use with boost conteiners.
Definition at line 61 of file JoinCondition.h.
References te::da::JoinCondition::clone().
|
inline |
For use with boost conteiners.
Definition at line 63 of file Query.h.
References te::da::Query::clone().
|
inline |
For use with boost conteiners.
Definition at line 64 of file Expression.h.
References te::da::Expression::clone().
|
inline |
For use with boost conteiners.
Definition at line 97 of file FromItem.h.
References te::da::FromItem::clone().
te::dt::AbstractData * te::da::PointToMConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 144 of file AttributeConverters.cpp.
References te::da::DataSet::getGeometry().
Referenced by te::da::Module::initialize().
te::dt::AbstractData * te::da::PointToXConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 114 of file AttributeConverters.cpp.
References te::da::DataSet::getGeometry().
Referenced by te::da::Module::initialize().
te::dt::AbstractData * te::da::PointToYConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 124 of file AttributeConverters.cpp.
References te::da::DataSet::getGeometry().
Referenced by te::da::Module::initialize().
te::dt::AbstractData * te::da::PointToZConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 134 of file AttributeConverters.cpp.
References te::da::DataSet::getGeometry().
Referenced by te::da::Module::initialize().
double te::da::Round | ( | const double & | value, |
const size_t & | precision | ||
) |
It gets the round value.
value | The input value. |
Definition at line 1329 of file Utils.cpp.
Referenced by te::rst::Copy(), and te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem().
te::dt::AbstractData * te::da::TupleToStringConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 154 of file AttributeConverters.cpp.
References te::da::DataSet::getAsString().
Referenced by te::da::Module::initialize().
te::dt::AbstractData * te::da::XYMToPointConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 89 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble().
Referenced by te::da::Module::initialize().
te::dt::AbstractData * te::da::XYToPointConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 66 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble().
Referenced by te::da::Module::initialize().
te::dt::AbstractData * te::da::XYZMToPointConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 101 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble().
Referenced by te::da::Module::initialize().
te::dt::AbstractData * te::da::XYZToPointConverter | ( | DataSet * | dataset, |
const std::vector< std::size_t > & | indexes, | ||
int | dstType | ||
) |
Definition at line 77 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble().
Referenced by te::da::Module::initialize().