QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
35 void QgsGeocoderLocatorFilter::handleGeocodeResult(
const QgsGeocoderResult &result )
Abstract base class for filters which collect locator results.
QString displayName() const override
Qgis::GeometryOperationResult transform(const QgsCoordinateTransform &ct, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward, bool transformZ=false) SIP_THROW(QgsCsException)
Transforms this geometry as described by the coordinate transform ct.
const QgsMapSettings & mapSettings() const
Gets access to properties used for map rendering.
void setFetchResultsDelay(int delay)
Sets a delay (in milliseconds) for the filter to wait prior to fetching results.
void flashGeometries(const QList< QgsGeometry > &geometries, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem(), const QColor &startColor=QColor(255, 0, 0, 255), const QColor &endColor=QColor(255, 0, 0, 0), int flashes=3, int duration=500)
Causes a set of geometries to flash within the canvas.
Map canvas is a class for displaying all GIS data types on a canvas.
QString name() const override
A rectangle specified with double values.
QgsCoordinateReferenceSystem crs() const
Returns the coordinate reference system for the calculated geometry().
Custom exception class for Coordinate Reference System related exceptions.
QgsCoordinateTransformContext transformContext() const
Returns the coordinate transform context, which stores various information regarding which datum tran...
An abstract base class which implements a locator filter populated from a QgsGeocoderInterface.
QgsGeometry geometry() const
Returns the resultant geometry resulting from the geocoding operation.
static void logMessage(const QString &message, const QString &tag=QString(), Qgis::MessageLevel level=Qgis::MessageLevel::Warning, bool notifyUser=true)
Adds a message to the log instance (and creates it if necessary).
void zoomToFeatureExtent(QgsRectangle &rect)
Zooms to feature extent.
QgsCoordinateReferenceSystem destinationCrs() const
Returns the destination coordinate reference system for the map render.
QgsRectangle viewport() const
Returns the suggested viewport for the result, which reflects a recommended map extent for displaying...
QString prefix() const override
Represents a matching result from a geocoder search.
A geometry is the spatial representation of a feature.
QgsRectangle boundingBox() const
Returns the bounding box of the geometry.
QgsGeocoderLocatorFilter(const QString &name, const QString &displayName, const QString &prefix, QgsGeocoderInterface *geocoder, QgsMapCanvas *canvas, const QgsRectangle &boundingBox=QgsRectangle())
Constructor for QgsGeocoderLocatorFilter.
bool isNull() const
Test if the rectangle is null (all coordinates zero or after call to setMinimal()).
QgsGeocoderInterface * geocoder() const
Returns the geocoder attached to the filter.
QgsLocatorFilter * clone() const override SIP_FACTORY