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... | |
| class | Cast |
| Cast a expression function. More... | |
| struct | CharEncodingConverter |
| class | CheckConstraint |
| A class that describes a check constraint. More... | |
| class | Coalesce |
| Coalesce operator. 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 | GeometryType |
| Spatial geometry type. 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 | Insert |
| The Insert object can add the return of a select object. 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 | SelectExpression |
| A Select can be used as a source of information in another query. 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... | |
| struct | SRIDAssociation |
| class | ST_AddPoint |
| Spatial add point operator. 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_Extent |
| Spatial extent operator. More... | |
| class | ST_Intersection |
| Spatial intersection operator. More... | |
| class | ST_Intersects |
| Spatial intersects operator. More... | |
| class | ST_IsClosed |
| Spatial is cloded operator. More... | |
| class | ST_IsEmpty |
| Spatial is empty operator. More... | |
| class | ST_IsValid |
| Spatial is valid operator. More... | |
| class | ST_Length |
| Spatial length operator. More... | |
| class | ST_MakePolygon |
| ST_MakePolygon statistical function. More... | |
| class | ST_MakeValid |
| Spatial operator that tries to make geometry valid. More... | |
| class | ST_Multi |
| Spatial multi operator. More... | |
| class | ST_NPoints |
| Spatial number of points operator. 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_SetSRID |
| Spatial Set SRID operator. More... | |
| class | ST_StartPoint |
| Spatial start point operator. 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 void | AssociateDataSetTypeConverterSRID (DataSetTypeConverter *converter, const int &inputSRID, const int &outputSRID=TE_UNKNOWN_SRS) |
| TEDATAACCESSEXPORT std::unique_ptr< Fields > | BuildFields (const std::vector< std::string > &properties) |
| TEDATAACCESSEXPORT std::unique_ptr< Select > | BuildSelect (const std::string &dsname) |
| TEDATAACCESSEXPORT std::unique_ptr< Select > | BuildSelect (const std::string &dsname, const std::string &propertyName) |
| TEDATAACCESSEXPORT std::unique_ptr< Select > | BuildSelect (const std::string &dsname, const std::vector< std::string > &properties) |
| TEDATAACCESSEXPORT std::unique_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::unique_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::unique_ptr< Select > | BuildSelect (const std::string &dsname, const std::vector< std::string > &properties, const ObjectIdSet *oids) |
| TEDATAACCESSEXPORT std::unique_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 std::unique_ptr< te::da::DataSet > | HideColumns (te::da::DataSet *ds, te::da::DataSetType *dst, const std::vector< std::string > &columns) |
| It hide columns of a DataSet using DataSetAdapter. 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 51 of file AttributeConverters.h.
| typedef boost::shared_ptr<DataSet> te::da::DataSetPtr |
Definition at line 677 of file dataaccess/dataset/DataSet.h.
| 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 107 of file DataSourceInfo.h.
| typedef boost::shared_ptr<DataSource> te::da::DataSourcePtr |
Definition at line 1449 of file src/terralib/dataaccess/datasource/DataSource.h.
| typedef boost::shared_ptr<DataSourceTransactor> te::da::DataSourceTransactorPtr |
Definition at line 1251 of file src/terralib/dataaccess/datasource/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 |
An anonymous enum with the type of datasets retrieved from data sources.
| Enumerator | |
|---|---|
| UNKNOWN_DATASET_TYPE | |
| TABLE_TYPE | |
| SYSTEM_TABLE_TYPE | |
| VIEW_TYPE | |
| QUERY_TYPE | |
| INDEX_TYPE | |
| SEQUENCE_TYPE | |
| TRIGGER_TYPE | |
| REGULAR_FILE_TYPE | |
Definition at line 75 of file src/terralib/dataaccess/Enums.h.
A ConstraintType can have one of the following types:
| Enumerator | |
|---|---|
| UNKNOWN |
Used when the constraint type is unknown. |
| PRIMARY_KEY |
Primary key constraint. |
| FOREIGN_KEY |
Foreign key constraint. |
| UNIQUE_KEY |
Unique key constraint. |
| CHECK |
Check constraint. |
Definition at line 65 of file src/terralib/dataaccess/Enums.h.
| enum te::da::FKActionType |
Type of action performed on the foreign key data.
Definition at line 93 of file src/terralib/dataaccess/Enums.h.
| enum te::da::IndexType |
Index type.
| Enumerator | |
|---|---|
| B_TREE_TYPE |
Btree index type. |
| R_TREE_TYPE |
RTree index type. |
| QUAD_TREE_TYPE |
QuadTree index type. |
| HASH_TYPE |
Hash index type. |
Definition at line 107 of file src/terralib/dataaccess/Enums.h.
| enum te::da::JoinType |
The type of join in a query.
| Enumerator | |
|---|---|
| JOIN |
... |
| INNER_JOIN |
... |
| LEFT_JOIN |
left-outer-join |
| RIGHT_JOIN |
right-outer-jin... |
| FULL_OUTER_JOIN |
full-outer-jon... |
| CROSS_JOIN |
... |
| NATURAL_JOIN |
... |
Definition at line 49 of file src/terralib/dataaccess/Enums.h.
| enum te::da::SortOrder |
Sort order type: asc or desc.
| Enumerator | |
|---|---|
| DESC |
Descendent order type. |
| ASC |
Ascendent order type. |
Definition at line 38 of file src/terralib/dataaccess/Enums.h.
| void te::da::AssociateDataSetTypeConverterSRID | ( | DataSetTypeConverter * | converter, |
| const int & | inputSRID, | ||
| const int & | outputSRID = TE_UNKNOWN_SRS |
||
| ) |
Definition at line 673 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::da::DataSetTypeConverter::add(), te::gm::GeometryProperty::clone(), te::da::DataSetTypeConverter::getConvertee(), GetFirstGeomProperty(), te::dt::Property::getName(), te::dt::CompositeProperty::getPropertyPosition(), te::da::DataSetTypeConverter::getResult(), te::da::DataSetTypeConverter::remove(), te::gm::GeometryProperty::setSRID(), and TE_UNKNOWN_SRS.
Referenced by te::qt::widgets::DataSetOptionsWizardPage::applyChanges(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::DirectExchangerDialog::exchangeToFile(), te::vp::Merge::executeMemory(), exportVectortoGPKG(), te::vp::GetDataStructFromLayer(), te::attributefill::VectorToVectorMemory::getOutputDataSetType(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::ROIManagerWidget::onLayerComboBoxChanged(), te::vp::PolygonToLineDialog::onOkPushButtonClicked(), te::vp::LineToPolygonDialog::onOkPushButtonClicked(), te::attributefill::VectorToRasterDialog::onOkPushButtonClicked(), te::vp::IntersectionDialog::onOkPushButtonClicked(), te::vp::GeometricOpDialog::onOkPushButtonClicked(), te::vp::MergeDialog::onOkPushButtonClicked(), te::vp::BufferDialog::onOkPushButtonClicked(), te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), te::vp::UnionDialog::onOkPushButtonClicked(), te::qt::widgets::ROIManagerWidget::onOpenLayerROIToolButtonClicked(), te::vp::BufferQuery::run(), and te::attributefill::VectorToVectorMemory::run().
| std::unique_ptr< te::da::Fields > te::da::BuildFields | ( | const std::vector< std::string > & | properties | ) |
Definition at line 811 of file src/terralib/dataaccess/utils/Utils.cpp.
Referenced by BuildSelect().
| std::unique_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname | ) |
Definition at line 821 of file src/terralib/dataaccess/utils/Utils.cpp.
Referenced by BuildSelect(), and ObjectId_query().
| std::unique_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
| const std::string & | propertyName | ||
| ) |
Definition at line 826 of file src/terralib/dataaccess/utils/Utils.cpp.
References BuildSelect(), p, and te::gm::CurvePolygon::push_back().
| std::unique_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
| const std::vector< std::string > & | properties | ||
| ) |
Definition at line 834 of file src/terralib/dataaccess/utils/Utils.cpp.
References BuildFields().
| std::unique_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 850 of file src/terralib/dataaccess/utils/Utils.cpp.
References BuildFields(), and BuildSpatialOp().
| std::unique_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 883 of file src/terralib/dataaccess/utils/Utils.cpp.
References BuildFields(), and BuildSpatialOp().
| std::unique_ptr< te::da::Select > te::da::BuildSelect | ( | const std::string & | dsname, |
| const std::vector< std::string > & | properties, | ||
| const ObjectIdSet * | oids | ||
| ) |
Definition at line 915 of file src/terralib/dataaccess/utils/Utils.cpp.
References BuildFields(), te::da::ObjectIdSet::getExpression(), and te::da::ObjectIdSet::getPropertyNames().
| std::unique_ptr< te::da::Expression > te::da::BuildSpatialOp | ( | Expression * | e1, |
| Expression * | e2, | ||
| te::gm::SpatialRelation | r | ||
| ) |
Definition at line 764 of file src/terralib/dataaccess/utils/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 629 of file src/terralib/dataaccess/utils/Utils.cpp.
Referenced by BOOST_AUTO_TEST_SUITE(), te::qt::plugins::terralib4::TL4ConverterWizard::commit(), Copy(), Copy2DiskShp(), te::qt::widgets::exportChart(), exportVectortoGPKG(), SaveTIN_shp(), saveToShp(), and saveUsingOGR().
| 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 636 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::da::DataSource::add(), te::da::DataSource::createDataSet(), d, and te::dt::Property::getName().
| te::da::DataSetAdapter * te::da::CreateAdapter | ( | DataSet * | ds, |
| DataSetTypeConverter * | converter, | ||
| bool | isOwner = false |
||
| ) |
Definition at line 647 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::da::DataSetAdapter::add(), DataSetAdapter(), te::da::DataSetTypeConverter::getConvertedPropertyIndexes(), te::da::DataSetTypeConverter::getConverters(), te::dt::Property::getName(), te::dt::CompositeProperty::getProperty(), te::da::DataSetTypeConverter::getResult(), te::dt::Property::getType(), p, and te::dt::CompositeProperty::size().
Referenced by te::qt::widgets::DataExchangerWizard::exchange(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::qt::widgets::DirectExchangerDialog::exchangeToFile(), exportVectortoGPKG(), te::map::DataSetAdapterLayer::getData(), te::vp::GetDataStructFromLayer(), te::attributefill::VectorToVectorMemory::getOutputDataSetType(), HideColumns(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::ROIManagerWidget::onLayerComboBoxChanged(), te::qt::widgets::PostGIS2SHPDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2ADODialog::onOkPushButtonClicked(), te::vp::MergeDialog::onOkPushButtonClicked(), te::vp::UnionDialog::onOkPushButtonClicked(), te::qt::widgets::ROIManagerWidget::onOpenLayerROIToolButtonClicked(), te::qt::widgets::DataSetOptionsWizardPage::previewData(), te::vp::PolygonToLineMemory::run(), te::vp::LineToPolygonMemory::run(), te::vp::IntersectionMemory::run(), te::vp::BufferQuery::run(), te::vp::BufferMemory::run(), te::attributefill::RasterToVector::run(), te::attributefill::VectorToVectorMemory::run(), te::attributefill::VectorToVectorOp::save(), te::addressgeocoding::AddressGeocodingOp::save(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), and te::map::DataSetAdapterLayer::setConverter().
| te::da::ObjectId * te::da::GenerateOID | ( | DataSet * | dataset, |
| const std::vector< std::string > & | names | ||
| ) |
Definition at line 449 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::da::DataSet::getValue(), te::da::DataSet::isNull(), and ObjectId().
Referenced by te::qt::widgets::Selection::executeSelection(), te::edit::DeleteGeometryByAreaTool::executeSelection(), GenerateOIDSet(), getObjectId(), te::qt::widgets::DataSetTableModel::getObjectIdSet(), te::da::SpatialQueryProcessor::getOIDSet(), te::vp::MakeGeometryValid::makeValidMemory(), te::edit::MoveGeometryTool::mousePressEvent(), te::edit::PickFeature(), te::edit::SplitPolygonTool::pickFeatures(), te::vp::MultipartToSinglepart::runSelected(), te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize(), and ToHighlight().
| te::da::ObjectIdSet * te::da::GenerateOIDSet | ( | DataSet * | dataset, |
| const DataSetType * | type | ||
| ) |
Definition at line 415 of file src/terralib/dataaccess/utils/Utils.cpp.
References GetOIDPropertyNames().
Referenced by te::da::SpatialQueryProcessor::getOIDSet(), ObjectId(), ObjectId_query(), te::qt::widgets::QueryDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onApplySelToolButtonClicked(), te::qt::af::BaseApplication::onLayerInvertSelectionTriggered(), and te::qt::plugins::edit::ToolBar::onSaveActivated().
| te::da::ObjectIdSet * te::da::GenerateOIDSet | ( | DataSet * | dataset, |
| const std::vector< std::string > & | names | ||
| ) |
Definition at line 426 of file src/terralib/dataaccess/utils/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 38 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 391 of file src/terralib/dataaccess/utils/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 215 of file src/terralib/dataaccess/utils/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 166 of file src/terralib/dataaccess/utils/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 155 of file src/terralib/dataaccess/utils/Utils.cpp.
References ds, and 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 231 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance().
Referenced by te::qt::widgets::TableLinkDialog::getDataSets(), te::mnt::Tin::getMax(), te::vp::GetOutputDataSetType(), te::vp::Identity::getOutputDataSetType(), te::vp::Difference::getOutputDataSetType(), te::st::STDataLoaderFromMemDS::loadDataSet(), te::vp::MakeGeometryValid::makeValidMemory(), te::vp::MakeGeometryValid::makeValidQuery(), te::qt::widgets::QueryDataSourceDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onApplySelToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onDataSetItemClicked(), te::qt::widgets::QueryDataSourceDialog::onExecutePushButtonClicked(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::qt::widgets::QueryDataSourceDialog::onPkTableComboBoxSelected(), te::mnt::Tin::SaveTin(), te::vp::BufferOp::~BufferOp(), and te::vp::GeometricOp::~GeometricOp().
| 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 266 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), and TE_TR.
Referenced by te::qt::plugins::vp::AbstractAction::addNewLayer(), te::qt::widgets::SegmenterAdvancedOptionsWizardPage::applyVectorization(), te::qt::widgets::QueryDataSourceDialog::buildMap(), te::qt::widgets::CharEncodingMenuWidget::checkLayerDataSourceType(), te::map::QueryLayer::computeExtent(), te::qt::widgets::CreateLayerWidget::createLayer(), te::qt::plugins::ogr::CreateLayers(), te::edit::CreateShapeFileLayer(), te::qt::plugins::vp::AbstractAction::createSpatialIndex(), DataSetAdapterLayerReader(), te::qt::widgets::VectorizationWizard::execute(), te::qt::widgets::SaveSelectedObjectsWidget::execute(), te::qt::plugins::terramobile::GeoPackageBuilderWizard::execute(), te::qt::widgets::CloudDetectionDialog::execute(), te::wms::WMSLayer::getData(), te::map::DataSetAdapterLayer::getData(), te::map::DataSetLayer::getData(), te::ws::ogc::wms::WMSLayer::getData(), te::map::QueryLayer::getData(), te::st::STDataLoaderFromDS::getDataSet(), te::ws::ogc::wms::WMSLayer::getFeatureInfo(), te::qt::plugins::cellspace::CreateCellularSpaceDialog::getLayer(), te::qt::widgets::CreateLayerWidget::getLayer(), te::ws::ogc::wms::WMSLayer::getMap(), te::mnt::CreateIsolinesDialog::getMinMax(), te::map::QueryLayer::getQueryAsString(), te::map::GetRasterProperty(), te::wms::WMSLayer::getSchema(), te::map::QueryLayer::getSchema(), te::map::DataSetLayer::getSchema(), te::ws::ogc::wms::WMSLayer::getSchema(), te::st::ObservationDataSetLayer::getSchema(), te::st::TimeSeriesDataSetLayer::getSchema(), te::st::TrajectoryDataSetLayer::getSchema(), te::st::STDataLoaderFromDS::getSpatialExtent(), te::wms::WMSLayer::isValid(), te::map::DataSetAdapterLayer::isValid(), te::map::QueryLayer::isValid(), te::map::DataSetLayer::isValid(), te::ws::ogc::wms::WMSLayer::isValid(), te::st::TimeSeriesDataSetLayer::isValid(), te::st::TrajectoryDataSetLayer::isValid(), te::qt::widgets::LayerPropertiesInfo::LayerPropertiesInfo(), te::qt::widgets::QueryDataSourceDialog::loadDataSourcesInformation(), te::sa::SkaterDialog::loadGPM(), te::sa::SpatialStatisticsDialog::loadGPM(), te::sa::BayesLocalDialog::loadGPM(), te::map::DataSetLayer::loadSchema(), te::qt::widgets::QueryDataSourceDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onApplySelToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onCreateLayerToolButtonClicked(), te::qt::widgets::QueryDataSourceDialog::onDataSourceSelected(), te::qt::widgets::QueryDataSourceDialog::onExecutePushButtonClicked(), te::vp::CheckGeomValidityDialog::onFixPushButtonClicked(), te::mnt::MNTGenerationDialog::onInputComboBoxChanged(), te::mnt::ProfileDialog::onInputComboBoxChanged(), te::qt::widgets::QueryDialog::onInputLayerActivated(), te::mnt::TINGenerationDialog::onIsolinesComboBoxChanged(), te::mnt::MNTGenerationDialog::onIsolinesComboBoxChanged(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::qt::widgets::ROIManagerWidget::onLayerComboBoxChanged(), te::sa::ProximityMatrixCreatorDialog::onOkPushButtonClicked(), te::sa::BayesGlobalDialog::onOkPushButtonClicked(), te::sa::BayesLocalDialog::onOkPushButtonClicked(), te::sa::SamplePointsGeneratorDialog::onOkPushButtonClicked(), te::sa::SkaterDialog::onOkPushButtonClicked(), te::mnt::SmoothIsolinesDialog::onOkPushButtonClicked(), te::mnt::VolumeDialog::onOkPushButtonClicked(), te::sa::SpatialStatisticsDialog::onOkPushButtonClicked(), te::mnt::SlopeDialog::onOkPushButtonClicked(), te::vp::PolygonToLineDialog::onOkPushButtonClicked(), te::addressgeocoding::ConfigInputLayerDialog::onOkPushButtonClicked(), te::vp::LineToPolygonDialog::onOkPushButtonClicked(), te::mnt::CreateIsolinesDialog::onOkPushButtonClicked(), te::mnt::TINGenerationDialog::onOkPushButtonClicked(), te::attributefill::VectorToRasterDialog::onOkPushButtonClicked(), te::vp::MultipartToSinglepartDialog::onOkPushButtonClicked(), te::mnt::ImageGenerationDialog::onOkPushButtonClicked(), te::vp::IntersectionDialog::onOkPushButtonClicked(), te::addressgeocoding::MainWindowDialog::onOkPushButtonClicked(), te::vp::GeometricOpDialog::onOkPushButtonClicked(), te::vp::MergeDialog::onOkPushButtonClicked(), te::mnt::ProfileDialog::onOkPushButtonClicked(), te::vp::BufferDialog::onOkPushButtonClicked(), te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), te::vp::UnionDialog::onOkPushButtonClicked(), te::vp::DifferenceDialog::onOkPushButtonClicked(), te::vp::IdentityDialog::onOkPushButtonClicked(), te::attributefill::VectorToVectorDialog::onOkPushButtonClicked(), te::vp::DissolveDialog::onOkPushButtonClicked(), te::mnt::TINGenerationDialog::onSamplesComboBoxChanged(), te::mnt::MNTGenerationDialog::onSamplesComboBoxChanged(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::qt::plugins::terramobile::GeoPackageSynchronizerDialog::onSynchronizePushButtonClicked(), te::ws::ogc::wms::WMSLayer::saveGetMap(), te::map::DataSetAdapterLayer::setConverter(), te::vp::DissolveDialog::setFunctionsByLayer(), te::qt::widgets::SHP2ADODialog::setLayers(), te::qt::widgets::SHP2PostGISDialog::setLayers(), te::qt::widgets::PostGIS2SHPDialog::setLayers(), and te::qt::widgets::GroupingWidget::updateStyle().
| 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 288 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::dt::Property::getName(), GetOIDPropertyPos(), te::dt::CompositeProperty::getProperty(), te::dt::Property::getType(), and set().
Referenced by te::qt::widgets::Selection::executeSelection(), te::da::SpatialQueryProcessor::getOIDSet(), te::qt::widgets::DataSetTableView::saveEditions(), te::qt::widgets::DataSetTableView::setLayerSchema(), and te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize().
| 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 138 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::common::Singleton< DataSourceManager >::getInstance(), and TE_TR.
Referenced by createLayer(), CreateMaskCellSpace(), 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 560 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::dt::CompositeProperty::findFirstPropertyOfType(), te::dt::GEOMETRY_TYPE, and p.
Referenced by AssociateDataSetTypeConverterSRID(), te::sa::SpatialWeightsExchanger::associateGeometry(), BufferOGRToOGR(), BufferOGRToPGIS(), BufferPGISToOGR(), BufferPGISToPGIS(), te::sa::KernelOperation::buildRaster(), te::sa::KernelMapOperation::buildTree(), te::sa::KernelRatioOperation::buildTree(), te::edit::Convert2LayerGeomType(), te::gpkg::Convert2OGR(), te::ogr::Convert2OGR(), CopyingData(), te::ogr::Transactor::createDataSet(), te::gpkg::Transactor::createDataSet(), CreateDataSetLayer(), createLayer(), CreateMaskCellSpace(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), DataSetAdapterLayerReader(), DissolveOGRToOGR(), DissolveOGRToPGIS(), DissolvePGISToOGR(), DissolvePGISToPGIS(), te::qt::widgets::DataSetDisplay::draw(), te::map::QueryLayerRenderer::draw(), te::map::AbstractLayerRenderer::draw(), te::map::DrawGeometries(), DrawPNG(), te::edit::MergeGeometriesTool::editingFinished(), te::qt::plugins::edit::ToolBar::enableActionsByGeomType(), te::qt::widgets::DirectExchangerDialog::exchangeToDatabase(), te::vp::Union::executeMemory(), te::vp::Identity::executeMemory(), te::vp::Difference::executeMemory(), te::vp::Intersection::executeMemory(), te::vp::Merge::executeMemory(), te::vp::Difference::executeQuery(), te::vp::Intersection::executeQuery(), te::vp::Dissolve::executeQuery(), te::qt::widgets::Selection::executeSelection(), te::edit::DeleteGeometryByAreaTool::executeSelection(), te::qt::plugins::terramobile::exportToGPKG(), te::qt::plugins::terralib4::TL4ConverterWizard::finish(), generateLayer(), te::qt::widgets::DatapPropertiesWidget::getConverter(), te::vp::GeometricOp::GetDataSetType(), te::ogr::Transactor::getDataSetType(), te::gpkg::Transactor::getDataSetType(), te::wfs::Transactor::getDataSetType(), te::vp::BufferOp::GetDataSetType(), te::vp::GetDataStructFromLayer(), te::map::GetGeomType(), te::qt::widgets::DefaultFeatureInfoMaker::getInfo(), te::edit::EditInfoTool::getInfo(), te::qt::widgets::ClassifierWizardPage::getInputParams(), te::qt::widgets::ClippingWizardPage::getLayerClipping(), te::qt::widgets::ClippingWizardPage::getLayerClippingAttribute(), te::mnt::getMNTType(), te::vp::Union::getOutputDataSetType(), te::vp::GetOutputDataSetType(), te::vp::Identity::getOutputDataSetType(), te::vp::Intersection::getOutputDataSetType(), te::vp::Difference::getOutputDataSetType(), te::vp::IntersectionOp::getOutputDsType(), te::qt::widgets::QueryLayerBuilderWizard::getQueryLayer(), te::qt::widgets::TableLinkDialog::getQueryLayer(), te::edit::MergeGeometriesTool::getRefEnvelope(), te::map::GetSelectedExtent(), te::vp::LineToPolygonQuery::getSelectQueryClosedLines(), te::vp::LineToPolygonQuery::getSelectQueryForceCloseLines(), te::vp::GetSelectQueryFromLayer(), te::mnt::Tin::LoadTinQGIS(), te::vp::MakeGeometryValid::makeValidMemory(), te::vp::MakeGeometryValid::makeValidQuery(), MapDisplay(), te::qt::plugins::rp::RasterizationAction::onActionActivated(), te::qt::widgets::WhereClauseWidget::onAddWhereClausePushButtonClicked(), te::sa::GeostatisticalMethodsDialog::onApplyPushButtonClicked(), te::qt::widgets::QueryDialog::onCreateLayerPushButtonClicked(), te::sa::KernelMapDialog::onInputLayerComboBoxActivated(), te::sa::KernelRatioDialog::onInputLayerComboBoxActivated(), te::vp::BufferDialog::onLayerComboBoxChanged(), te::qt::widgets::ROIManagerWidget::onLayerComboBoxChanged(), te::qt::af::BaseApplication::onLayerRemoveTriggered(), te::sa::SamplePointsGeneratorDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::onOkPushButtonClicked(), te::sa::SpatialStatisticsDialog::onOkPushButtonClicked(), te::qt::widgets::DataPropertiesDialog::onOkPushButtonClicked(), te::mnt::ProfileDialog::onOkPushButtonClicked(), te::vp::DifferenceDialog::onOkPushButtonClicked(), te::vp::DissolveDialog::onOkPushButtonClicked(), te::qt::widgets::ROIManagerWidget::onOpenLayerROIToolButtonClicked(), te::qt::plugins::tv::TimeViewerDockWidget::onSliderChanged(), te::attributefill::RasterToVectorDialog::onVectorComboBoxChanged(), te::qt::widgets::DataSet2Layer::operator()(), te::vp::IntersectionMemory::pairwiseIntersection(), te::edit::PickFeature(), te::mnt::Volume::run(), te::vp::PolygonToLineQuery::run(), te::vp::LineToPolygonMemory::run(), te::vp::PolygonToLineMemory::run(), te::vp::IntersectionQuery::run(), te::vp::BufferQuery::run(), te::vp::BufferMemory::run(), te::attributefill::VectorToRaster::run(), te::attributefill::RasterToVector::run(), te::mnt::Profile::runTINProfile(), te::vp::GeometricOpQuery::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpQuery::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::vp::GeometricOpQuery::SetAllObjects(), te::attributefill::VectorToVectorDialog::setFunctionsByLayer(), te::qt::widgets::StyleControllerWidget::setLayer(), te::qt::plugins::terramobile::GeoPackageBuilderWizard::setLayerList(), te::mnt::LayerSearchDialog::setLayers(), te::addressgeocoding::ConfigInputLayerDialog::setLayers(), te::attributefill::RasterToVectorDialog::setLayers(), te::mnt::ProfileDialog::setLayers(), te::qt::widgets::LayerPropertiesInfo::setLayerVecProperties(), te::map::DataSetLayer::setSRID(), te::qt::plugins::tv::TimeViewerDockWidget::setupLayer(), te::qt::plugins::tv::TimeViewerDockWidget::setupLayerInt(), te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize(), te::vp::Dissolve::threadUnion(), and te::edit::MoveGeometryTool::updateCursor().
| std::size_t te::da::GetFirstPropertyPos | ( | const te::da::DataSet * | dataset, |
| int | datatype | ||
| ) |
Definition at line 484 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::da::DataSet::getNumProperties(), and te::da::DataSet::getPropertyDataType().
Referenced by te::edit::Snap::add(), te::qt::widgets::MixtureModelWizardPage::addGeometryComponent(), te::qt::widgets::MixtureModelWizardPage::addPointComponent(), te::qt::widgets::TiePointLocatorWidget::adjCoordMoved(), te::qt::widgets::TiePointLocatorWidget::adjCoordPicked(), te::map::QueryLayer::computeExtent(), CoverageSeriesExamples(), te::sa::SamplePointsGeneratorStratified::createClassMap(), CreateRasterLayer(), te::qt::widgets::createScatter(), DataSet(), DataSetGetExtent(), te::qt::widgets::DataSetDisplay::draw(), te::wms::WMSLayerRenderer::draw(), te::qt::af::MapDisplay::drawDataSet(), te::map::DrawGeometries(), DrawingRasterObject(), DrawPNG(), te::map::DrawRaster(), te::qt::widgets::TiePointLocatorWidget::drawTiePoints(), te::sa::KernelRatioOperation::execute(), te::qt::widgets::PostClassificationWidget::execute(), te::qt::widgets::RegisterWizard::execute(), te::qt::widgets::PCAWizard::execute(), exportRastertoGPKG(), te::md::Extract(), te::qt::widgets::MultiResolutionWidget::fromFolder(), te::qt::widgets::MultiResolutionWidget::fromLayer(), te::qt::widgets::ColorTransformDialog::getBRaster(), te::qt::plugins::pgisRaster::PostGISDataSetSelectorDialog::getDataSetInfo(), te::qt::widgets::RasterNavigatorWidget::getExtentRaster(), te::qt::widgets::DefaultFeatureInfoMaker::getGeometryInfo(), te::map::GetGeomType(), te::qt::widgets::ColorTransformDialog::getGRaster(), te::qt::widgets::ColorTransformDialog::getHRaster(), te::qt::widgets::ClassifierWizardPage::getInputParams(), te::qt::widgets::ColorTransformDialog::getIRaster(), getLayerRaster(), te::qt::widgets::ColorTransformDialog::getLRaster(), te::mnt::CreateIsolinesDialog::getMinMax(), te::qt::widgets::VectorizationWizardPage::getRaster(), te::mnt::ImageGenerationDialog::getRaster(), te::map::GetRaster(), te::qt::widgets::ColorTransformDialog::getRasterBands(), te::qt::widgets::getRasterVisibleArea(), te::qt::widgets::ColorTransformDialog::getRRaster(), te::qt::widgets::ScatterDataWidget::getScatter(), te::qt::widgets::ColorTransformDialog::getSRaster(), te::qt::widgets::TiePointLocatorWidget::getTiePoints(), te::qt::widgets::TiePointLocatorWidget::getTiePointsIdxCoords(), te::qt::widgets::SegmenterWizardPage::listBands(), te::qt::widgets::RasterNavigatorWidget::listBands(), te::qt::widgets::MixtureModelWizardPage::listBands(), te::qt::widgets::FusionWizardPage::listBandsHigher(), te::qt::widgets::FusionWizardPage::listBandsLower(), GAP::LoadPolygons(), te::mnt::Tin::LoadTin(), te::mnt::Tin::LoadTinQGIS(), te::qt::widgets::ReadPixelTool::mouseReleaseEvent(), SelectionTool::mouseReleaseEvent(), te::qt::widgets::ComposeBandsWizardPage::onAddToolButtonClicked(), te::qt::widgets::TiePointLocatorWidget::onAddToolButtonClicked(), te::qt::widgets::TiePointLocatorWidget::onAutoAcquireTiePointsToolButtonClicked(), te::qt::widgets::RasterNavigatorWidget::onCoordTrackedChanged(), te::mnt::CreateIsolinesDialog::onDummyLineEditEditingFinished(), te::qt::widgets::LayerSearchWidget::onFilter(), te::mnt::CreateIsolinesDialog::onInputComboBoxChanged(), te::mnt::MNTGenerationDialog::onInputComboBoxChanged(), te::mnt::ImageGenerationDialog::onInputComboBoxChanged(), te::mnt::ProfileDialog::onInputComboBoxChanged(), te::mnt::TINGenerationDialog::onIsolinesComboBoxChanged(), te::mnt::MNTGenerationDialog::onIsolinesComboBoxChanged(), te::qt::widgets::ComposeBandsWizardPage::onLayerCmbActivated(), te::qt::widgets::LoadArithmeticOpDialog::onLayerComboBoxActivated(), te::mnt::MNTGenerationDialog::onOkPushButtonClicked(), te::mnt::ProfileDialog::onOkPushButtonClicked(), te::attributefill::RasterToVectorDialog::onOkPushButtonClicked(), te::qt::widgets::LoadArithmeticOpDialog::onOperationComboBoxActivated(), te::mnt::TINGenerationDialog::onSamplesComboBoxChanged(), te::mnt::MNTGenerationDialog::onSamplesComboBoxChanged(), te::qt::widgets::TiePointLocatorWidget::onTiePointsTableWidgetItemChanged(), PostGISRaster_DataSourceAPI(), RasterizePolygonSet(), RasterSymbologyWidgets(), RasterToVectorInPGIS(), RasterToVectorInSHP(), te::mnt::TINGeneration::ReadBreakLines(), te::mnt::ReadPoints(), te::mnt::ReadSamples(), te::qt::widgets::TiePointLocatorWidget::refCoordMoved(), te::qt::widgets::TiePointLocatorWidget::refCoordPicked(), RetrieveUsingSpatialFilter(), te::mnt::Volume::run(), te::sa::KernelOperation::runDataSetKernel(), te::mnt::Profile::runTINProfile(), te::qt::widgets::ScatterDataWidget::ScatterDataWidget(), te::qt::widgets::RasterNavigatorWidget::set(), te::qt::widgets::TiePointLocatorWidget::setAdjustLayer(), te::qt::widgets::VectorizationWizardPage::setLayer(), te::qt::widgets::PCAWizardPage::setLayer(), te::qt::widgets::RasterSlicingWizardPage::setLayer(), te::qt::widgets::LayerPropertiesInfo::setLayerRasterProperties(), te::qt::widgets::GroupingDialog::setLayers(), te::qt::widgets::ComposeBandsWizardPage::setList(), te::qt::widgets::MosaicWizardPage::setList(), te::qt::widgets::TiePointLocatorWidget::setReferenceLayer(), te::qt::widgets::TiePointLocatorWidget::shotFirstPoint(), te::qt::widgets::TiePointLocatorWidget::shotSecondtPoint(), and TrajectoryExamples().
| te::rst::RasterProperty * te::da::GetFirstRasterProperty | ( | const DataSetType * | dt | ) |
Definition at line 574 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::dt::CompositeProperty::findFirstPropertyOfType(), p, and te::dt::RASTER_TYPE.
Referenced by te::ws::ogc::wms::WMSLayerRenderer::draw(), te::wms::WMSLayerRenderer::draw(), te::map::QueryLayerRenderer::draw(), te::map::AbstractLayerRenderer::draw(), te::map::DrawRaster(), te::ws::ogc::wms::WMSLayer::getData(), te::qt::widgets::DefaultFeatureInfoMaker::getInfo(), te::mnt::Profile::getPrepareRaster(), te::mnt::CreateIsolines::getPrepareRaster(), te::map::GetRaster(), te::qt::widgets::CloudDetectionDialog::getRasterFromROI(), te::qt::widgets::ColorTransformDialog::getRasterFromROI(), te::qt::plugins::rp::ContrastAction::onActionActivated(), te::mnt::ProfileDialog::onInputComboBoxChanged(), te::qt::af::BaseApplication::onLayerRemoveTriggered(), te::attributefill::RasterToVectorDialog::onRasterComboBoxChanged(), te::qt::widgets::CloudDetectionDialog::onSearchShadowLayerToolButtonClicked(), te::wms::WMS2Layer::operator()(), te::qt::widgets::DataSet2Layer::operator()(), te::qt::widgets::ContrastDialogForm::resetWindow(), te::qt::widgets::ColorTransformDialog::rgb2hlsRComboBoxActivated(), te::qt::widgets::ColorTransformDialog::rgbRComboBoxActivated(), te::mnt::Slope::run(), te::mnt::Volume::run(), te::mnt::Shadow::run(), te::mnt::CreateIsolines::run(), te::qt::widgets::RasterSymbolizerWidget::setLayer(), te::mnt::CreateIsolinesDialog::setLayers(), te::mnt::MNTGenerationDialog::setLayers(), te::mnt::ImageGenerationDialog::setLayers(), and te::map::DataSetLayer::setSRID().
| te::dt::Property * te::da::GetFirstSpatialProperty | ( | const DataSetType * | dt | ) |
Definition at line 537 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::dt::GEOMETRY_TYPE, te::dt::CompositeProperty::getProperty(), te::dt::Property::getType(), p, te::dt::RASTER_TYPE, and te::dt::CompositeProperty::size().
Referenced by te::vp::Union::executeMemory(), te::attributefill::VectorToVectorDialog::getCurrentToLayerGeomType(), te::qt::widgets::DataSetItem::getGeomPropertyName(), te::vp::Merge::getOutputDataSetType(), 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 465 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::dt::GEOMETRY_TYPE, te::da::DataSet::getNumProperties(), te::da::DataSet::getPropertyDataType(), and te::dt::RASTER_TYPE.
Referenced by DisplayWindow::addVectorialLayer(), te::sa::SpatialWeightsExchanger::associateGeometry(), te::sa::GPMConstructorDistanceStrategy::constructStrategy(), te::sa::GPMConstructorAdjacencyStrategy::constructStrategy(), te::cellspace::CellularSpacesOperations::createCellSpace(), CreateMSTGraph(), te::sa::GPMConstructorAbstractStrategy::createVertexObjects(), te::qt::widgets::RasterizationWizard::execute(), te::vp::Intersection::executeMemory(), te::attributefill::VectorToVectorMemory::getClassWithHighestIntersectionArea(), getDataSetExtent(), te::edit::EditInfoTool::getInfo(), te::attributefill::VectorToVectorMemory::getIntersections(), te::attributefill::VectorToVectorMemory::getKDtree(), te::attributefill::VectorToVectorMemory::getMinimumDistance(), te::attributefill::VectorToVectorMemory::getMinimumDistanceFromCentroid(), te::attributefill::VectorToVectorMemory::getPercentageOfEachClassByArea(), te::attributefill::VectorToVectorMemory::getPercentageOfTotalArea(), te::vp::GetRtree(), te::cellspace::CellularSpacesOperations::getRtree(), te::attributefill::VectorToVectorMemory::getRtree(), te::attributefill::VectorToVectorMemory::getWeightedByArea(), te::attributefill::VectorToVectorMemory::getWeightedSumByArea(), te::edit::MoveGeometryTool::mousePressEvent(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::vp::CheckGeomValidityDialog::onVerifyPushButtonClicked(), te::vp::IntersectionMemory::pairwiseIntersection(), te::edit::SplitPolygonTool::pickFeatures(), te::vp::BufferQuery::prepareDataSet(), te::vp::MultipartToSinglepart::runAll(), te::vp::MultipartToSinglepart::runSelected(), te::vp::GeometricOpMemory::SetAggregByAttribute(), te::vp::GeometricOpMemory::SetAggregObj(), te::vp::GeometricOpMemory::SetAllObjects(), te::map::DataSetAdapterLayer::setConverter(), te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize(), TsDataSourceTransactor::tcGetDataSetByEnvRec(), TsDataSource::tcGetDataSetByEnvRec(), TsDataSourceTransactor::tcGetDataSetByEnvRec1(), TsDataSource::tcGetDataSetByEnvRec1(), TsDataSourceTransactor::tcGetDataSetByGeometry(), and TsDataSource::tcGetDataSetByGeometry().
| void te::da::GetOIDDatasetProps | ( | const DataSetType * | type, |
| std::pair< std::string, int > & | dsProps | ||
| ) |
Definition at line 357 of file src/terralib/dataaccess/utils/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 311 of file src/terralib/dataaccess/utils/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(), te::edit::DeleteGeometryByAreaTool::executeSelection(), GenerateOIDSet(), GetOIDPropertyPos(), te::edit::MergeGeometriesTool::getRefEnvelope(), te::vp::MakeGeometryValid::makeValidMemory(), te::edit::EditInfoTool::mousePressEvent(), te::edit::MoveGeometryTool::mousePressEvent(), ObjectId_query(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::edit::PickFeature(), te::edit::SplitPolygonTool::pickFeatures(), and te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize().
| void te::da::GetOIDPropertyPos | ( | const DataSetType * | type, |
| std::vector< std::size_t > & | ppos | ||
| ) |
Definition at line 404 of file src/terralib/dataaccess/utils/Utils.cpp.
References GetOIDPropertyNames(), and te::dt::CompositeProperty::getPropertyPosition().
Referenced by te::qt::widgets::createHistogram(), te::qt::widgets::createScatter(), GetEmptyOIDSet(), te::edit::EditInfoTool::getInfo(), te::qt::plugins::edit::ToolBar::onSaveActivated(), and te::qt::af::ChartDisplayDockWidget::selectionChanged().
| std::vector< int > te::da::GetPropertyDataTypes | ( | const te::da::DataSet * | dataset | ) |
Definition at line 750 of file src/terralib/dataaccess/utils/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 961 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::da::DataSet::getNumProperties(), and te::da::DataSet::getPropertyName().
Referenced by te::map::AbstractLayerRenderer::drawDatSetTexts(), te::attributefill::VectorToVectorMemory::getClassWithHighestIntersectionArea(), te::attributefill::VectorToVectorMemory::getClassWithHighestOccurrence(), te::attributefill::VectorToVectorMemory::getPercentageOfEachClassByArea(), te::attributefill::VectorToVectorMemory::getPercentagePerClass(), te::attributefill::VectorToVectorMemory::getTotalNumberOfDistinctValues(), te::attributefill::VectorToVectorMemory::getWeightedByArea(), te::attributefill::VectorToVectorMemory::getWeightedSumByArea(), te::sa::GeostatisticalMethodsDialog::onApplyPushButtonClicked(), te::sa::GeostatisticalMethodsDialog::onChangeAttrToolButtonClicked(), te::stat::StatisticsDialog::setStatistics(), and te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize().
| void te::da::GetPropertyInfo | ( | const DataSetType *const | dt, |
| std::vector< std::string > & | pnames, | ||
| std::vector< int > & | ptypes | ||
| ) |
Definition at line 601 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::dt::Property::getName(), te::dt::CompositeProperty::getProperty(), te::dt::Property::getType(), p, and te::dt::CompositeProperty::size().
Referenced by te::stmem::DataSet::DataSet(), te::mem::DataSet::DataSet(), and ObjectId_query().
| void te::da::GetPropertyInfo | ( | const DataSet *const | dataset, |
| std::vector< std::string > & | pnames, | ||
| std::vector< int > & | ptypes | ||
| ) |
Definition at line 616 of file src/terralib/dataaccess/utils/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 503 of file src/terralib/dataaccess/utils/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(), generateHistogram(), GenerateOIDSet(), generateScatter(), 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::DefaultFeatureInfoMaker::getGeometryInfo(), te::edit::EditInfoTool::getInfo(), 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::edit::MergeGeometriesTool::getRefEnvelope(), 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(), GAP::LoadPolygons(), te::vp::MakeGeometryValid::makeValidMemory(), te::vp::BufferDialog::onOkPushButtonClicked(), te::qt::widgets::HistogramDataWidget::onPropertyComboBoxIndexChanged(), te::qt::plugins::edit::ToolBar::onSaveActivated(), te::edit::SplitPolygonTool::pickFeatures(), te::mem::DataSource::renameProperty(), te::vp::LineToPolygonMemory::run(), te::vp::PolygonToLineMemory::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(), te::mem::DataSetItem::setValue(), and te::qt::plugins::terramobile::GeoPackageSynchronizer::synchronize().
| std::size_t te::da::GetPropertyPos | ( | const DataSetType * | dt, |
| const std::string & | name | ||
| ) |
Definition at line 520 of file src/terralib/dataaccess/utils/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 712 of file src/terralib/dataaccess/utils/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 731 of file src/terralib/dataaccess/utils/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 1261 of file src/terralib/dataaccess/utils/Utils.cpp.
References d.
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 | ||
| ) |
It gets the summarized value.
| values | The input values. |
| summary | The summary mode. It can be: "MIN" or "MAX" |
Definition at line 1359 of file src/terralib/dataaccess/utils/Utils.cpp.
References d.
| 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 1402 of file src/terralib/dataaccess/utils/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::drawLayerLinkedGroupingMem(), te::qt::widgets::ChartLayerWidget::getMaxValue(), and te::qt::widgets::ChartRenderer::getValues().
| bool te::da::HasDataSet | ( | const std::string & | datasourceId | ) |
Definition at line 202 of file src/terralib/dataaccess/utils/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 1217 of file src/terralib/dataaccess/utils/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::DirectExchangerDialog::exchangeToDatabase(), 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().
| std::unique_ptr< te::da::DataSet > te::da::HideColumns | ( | te::da::DataSet * | ds, |
| te::da::DataSetType * | dst, | ||
| const std::vector< std::string > & | columns | ||
| ) |
It hide columns of a DataSet using DataSetAdapter.
| ds | The DataSet that will have hidden columns. |
| dst | The DataSetType used to hide columns. |
| columns | names to be hidden. |
Definition at line 1238 of file src/terralib/dataaccess/utils/Utils.cpp.
References CreateAdapter(), te::da::DataSourceCapabilities::setDataTypeCapabilities(), te::da::DataSourceCapabilities::setSupportAll(), and te::da::DataTypeCapabilities::setSupportAll().
Referenced by te::vp::Merge::executeMemory(), and te::vp::PrepareAdd().
| 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 976 of file src/terralib/dataaccess/utils/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 72 of file src/terralib/dataaccess/utils/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 122 of file src/terralib/dataaccess/utils/Utils.cpp.
References te::da::DataSetType::add(), te::common::Singleton< DataSourceManager >::getInstance(), and te::dt::Property::getName().
Referenced by createLayer(), te::qt::widgets::DataSetDisplay::draw(), te::qt::widgets::PostGIS2SHPDialog::onOkPushButtonClicked(), te::qt::widgets::SHP2ADODialog::onOkPushButtonClicked(), te::qt::widgets::SHP2PostGISDialog::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().
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 dataaccess/query/Expression.h.
References te::da::Expression::clone(), operator!=(), operator&&(), operator<(), operator<=(), operator==(), operator>(), operator>=(), operator||(), operator~(), and TEDATAACCESSEXPORT.
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 157 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 127 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 137 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 147 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 1394 of file src/terralib/dataaccess/utils/Utils.cpp.
Referenced by te::map::QueryLayerRenderer::drawLayerLinkedGroupingMem().
| te::dt::AbstractData * te::da::TupleToStringConverter | ( | DataSet * | dataset, |
| const std::vector< std::size_t > & | indexes, | ||
| int | dstType | ||
| ) |
Definition at line 167 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 95 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble(), p, te::gm::PointMType, and te::gm::Point::setM().
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 65 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble(), p, te::gm::Point::setX(), and te::gm::Point::setY().
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 110 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble(), p, te::gm::PointZMType, te::gm::Point::setM(), and te::gm::Point::setZ().
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 80 of file AttributeConverters.cpp.
References te::da::DataSet::getDouble(), p, te::gm::PointZType, and te::gm::Point::setZ().
Referenced by te::da::Module::initialize().