QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Encapsulates the context of a geocoding operation. More...
#include <qgsgeocodercontext.h>
Public Member Functions | |
QgsGeocoderContext (const QgsCoordinateTransformContext &transformContext) | |
Constructor for QgsGeocoderContext, with the specified transformContext. | |
QgsGeometry | areaOfInterest () const |
Returns the optional area of interest, which can be used to indicate the desired geographic area where geocoding results are desired. | |
QgsCoordinateReferenceSystem | areaOfInterestCrs () const |
Returns the coordinate reference system for the area of interest, which can be used to indicate the desired geographic area where geocoding results are desired. | |
void | setAreaOfInterest (const QgsGeometry &area) |
Sets the optional area of interest, which can be used to indicate the desired geographic area where geocoding results are desired. | |
void | setAreaOfInterestCrs (const QgsCoordinateReferenceSystem &crs) |
Sets the crs for the area of interest, which can be used to indicate the desired geographic area where geocoding results are desired. | |
void | setTransformContext (const QgsCoordinateTransformContext &context) |
Sets the coordinate transform context, which should be used whenever the geocoder constructs a coordinate transform. | |
QgsCoordinateTransformContext | transformContext () const |
Returns the coordinate transform context, which should be used whenever the geocoder constructs a coordinate transform. | |
Encapsulates the context of a geocoding operation.
Definition at line 31 of file qgsgeocodercontext.h.
QgsGeocoderContext::QgsGeocoderContext | ( | const QgsCoordinateTransformContext & | transformContext | ) |
Constructor for QgsGeocoderContext, with the specified transformContext.
Definition at line 22 of file qgsgeocodercontext.cpp.
|
inline |
Returns the optional area of interest, which can be used to indicate the desired geographic area where geocoding results are desired.
The area of interest can be a polygon geometry, in which case it represents the extent to use for filtering candidate results, or a point geometry, in which case it represents a "target point" for prioritizing closer results.
The coordinate reference system for the area of interest can be retrieved via areaOfInterestCrs().
Definition at line 71 of file qgsgeocodercontext.h.
|
inline |
Returns the coordinate reference system for the area of interest, which can be used to indicate the desired geographic area where geocoding results are desired.
Definition at line 96 of file qgsgeocodercontext.h.
|
inline |
Sets the optional area of interest, which can be used to indicate the desired geographic area where geocoding results are desired.
The area of interest can be a polygon geometry, in which case it represents the extent to use for filtering candidate results, or a point geometry, in which case it represents a "target point" for prioritizing closer results.
The coordinate reference system for the area of interest can be set via setAreaOfInterestCrs().
Definition at line 87 of file qgsgeocodercontext.h.
|
inline |
Sets the crs for the area of interest, which can be used to indicate the desired geographic area where geocoding results are desired.
Definition at line 105 of file qgsgeocodercontext.h.
|
inline |
Sets the coordinate transform context, which should be used whenever the geocoder constructs a coordinate transform.
Definition at line 55 of file qgsgeocodercontext.h.
|
inline |
Returns the coordinate transform context, which should be used whenever the geocoder constructs a coordinate transform.
Definition at line 47 of file qgsgeocodercontext.h.