"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/qgsvirtuallayerdefinition.h" between
QGIS-final-3_14_15.tar.gz and QGIS-final-3_14_16.tar.gz

About: QGIS (Quantum GIS) is a Geographic Information System that supports vector, raster, and database formats. Latest release (3.14.x series).

qgsvirtuallayerdefinition.h  (QGIS-final-3_14_15):qgsvirtuallayerdefinition.h  (QGIS-final-3_14_16)
skipping to change at line 98 skipping to change at line 98
* layer_ref=layer_id[:name] represents a live layer reference d by its ID. An optional name can be given * layer_ref=layer_id[:name] represents a live layer reference d by its ID. An optional name can be given
* layer=provider:source[:name[:encoding]] represents a layer given by its p rovider key, its source url (URL-encoded). * layer=provider:source[:name[:encoding]] represents a layer given by its p rovider key, its source url (URL-encoded).
* An optional name and encoding can be given * An optional name and encoding can be given
* geometry=column_name[:type:srid] gives the definition of the geome try column. * geometry=column_name[:type:srid] gives the definition of the geome try column.
* Type can be either a WKB type code or a string (point, linestring, etc.) * Type can be either a WKB type code or a string (point, linestring, etc.)
* srid is an integer * srid is an integer
* uid=column_name is the name of a column with uniq ue integer values. * uid=column_name is the name of a column with uniq ue integer values.
* nogeometry is a flag to force the layer to b e a non-geometry layer * nogeometry is a flag to force the layer to b e a non-geometry layer
* query=sql represents the SQL query. Must be URL-encoded * query=sql represents the SQL query. Must be URL-encoded
* field=column_name:[int|real|text] represents a field with its name and its type * field=column_name:[int|real|text] represents a field with its name and its type
* subsetstring=subset_string represents the subsetstring
*/ */
static QgsVirtualLayerDefinition fromUrl( const QUrl &url ); static QgsVirtualLayerDefinition fromUrl( const QUrl &url );
//! Convert the definition into a QUrl //! Convert the definition into a QUrl
QUrl toUrl() const; QUrl toUrl() const;
//! Convert into a QString that can be read by the virtual layer provider //! Convert into a QString that can be read by the virtual layer provider
QString toString() const; QString toString() const;
//! Add a live layer source layer //! Add a live layer source layer
skipping to change at line 188 skipping to change at line 189
//! Convenience method to test whether the definition has referenced (live) layers //! Convenience method to test whether the definition has referenced (live) layers
bool hasReferencedLayers() const; bool hasReferencedLayers() const;
//! Convenient method to test if the geometry is defined (not NoGeometry and not Unknown) //! Convenient method to test if the geometry is defined (not NoGeometry and not Unknown)
bool hasDefinedGeometry() const bool hasDefinedGeometry() const
{ {
return geometryWkbType() != QgsWkbTypes::NoGeometry && geometryWkbType() ! = QgsWkbTypes::Unknown; return geometryWkbType() != QgsWkbTypes::NoGeometry && geometryWkbType() ! = QgsWkbTypes::Unknown;
} }
/**
* Returns the subset string.
* \since QGIS 3.16
*/
QString subsetString() const;
/**
* Sets the \a subsetString
* \since QGIS 3.16
*/
void setSubsetString( const QString &subsetString );
private: private:
SourceLayers mSourceLayers; SourceLayers mSourceLayers;
QString mQuery; QString mQuery;
QString mUid; QString mUid;
QString mGeometryField; QString mGeometryField;
QString mFilePath; QString mFilePath;
QgsFields mFields; QgsFields mFields;
bool mLazy = false; bool mLazy = false;
QgsWkbTypes::Type mGeometryWkbType = QgsWkbTypes::Unknown; QgsWkbTypes::Type mGeometryWkbType = QgsWkbTypes::Unknown;
long mGeometrySrid = 0; long mGeometrySrid = 0;
QString mSubsetString;
}; };
// clazy:excludeall=qstring-allocations // clazy:excludeall=qstring-allocations
#endif #endif
 End of changes. 3 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)