QGIS API Documentation
4.3.0-Master (9dce731a7a1)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
geocoding
qgsgeocodercontext.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsgeocodercontext.h
3
---------------
4
Date : August 2020
5
Copyright : (C) 2020 by Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSGEOCODERCONTEXT_H
17
#define QGSGEOCODERCONTEXT_H
18
19
#include "qgis_core.h"
20
#include "
qgscoordinatereferencesystem.h
"
21
#include "
qgscoordinatetransformcontext.h
"
22
#include "
qgsgeometry.h
"
23
30
class
CORE_EXPORT
QgsGeocoderContext
31
{
32
public
:
36
QgsGeocoderContext
(
const
QgsCoordinateTransformContext
&
transformContext
);
37
44
QgsCoordinateTransformContext
transformContext
()
const
{
return
mTransformContext; }
45
52
void
setTransformContext
(
const
QgsCoordinateTransformContext
&context ) { mTransformContext = context; }
53
68
QgsGeometry
areaOfInterest
()
const
{
return
mAreaOfInterest; }
69
84
void
setAreaOfInterest
(
const
QgsGeometry
&area ) { mAreaOfInterest = area; }
85
93
QgsCoordinateReferenceSystem
areaOfInterestCrs
()
const
{
return
mAreaOfInterestCrs; }
94
102
void
setAreaOfInterestCrs
(
const
QgsCoordinateReferenceSystem
&crs ) { mAreaOfInterestCrs = crs; }
103
104
private
:
105
QgsCoordinateTransformContext
mTransformContext;
106
QgsGeometry
mAreaOfInterest;
107
QgsCoordinateReferenceSystem
mAreaOfInterestCrs;
108
};
109
110
#endif
// QGSGEOCODERCONTEXT_H
QgsCoordinateReferenceSystem
Represents a coordinate reference system (CRS).
Definition
qgscoordinatereferencesystem.h:216
QgsCoordinateTransformContext
Contains information about the context in which a coordinate transform is executed.
Definition
qgscoordinatetransformcontext.h:61
QgsGeocoderContext::setAreaOfInterestCrs
void setAreaOfInterestCrs(const QgsCoordinateReferenceSystem &crs)
Sets the crs for the area of interest, which can be used to indicate the desired geographic area wher...
Definition
qgsgeocodercontext.h:102
QgsGeocoderContext::QgsGeocoderContext
QgsGeocoderContext(const QgsCoordinateTransformContext &transformContext)
Constructor for QgsGeocoderContext, with the specified transformContext.
Definition
qgsgeocodercontext.cpp:22
QgsGeocoderContext::setAreaOfInterest
void setAreaOfInterest(const QgsGeometry &area)
Sets the optional area of interest, which can be used to indicate the desired geographic area where g...
Definition
qgsgeocodercontext.h:84
QgsGeocoderContext::transformContext
QgsCoordinateTransformContext transformContext() const
Returns the coordinate transform context, which should be used whenever the geocoder constructs a coo...
Definition
qgsgeocodercontext.h:44
QgsGeocoderContext::setTransformContext
void setTransformContext(const QgsCoordinateTransformContext &context)
Sets the coordinate transform context, which should be used whenever the geocoder constructs a coordi...
Definition
qgsgeocodercontext.h:52
QgsGeocoderContext::areaOfInterestCrs
QgsCoordinateReferenceSystem areaOfInterestCrs() const
Returns the coordinate reference system for the area of interest, which can be used to indicate the d...
Definition
qgsgeocodercontext.h:93
QgsGeocoderContext::areaOfInterest
QgsGeometry areaOfInterest() const
Returns the optional area of interest, which can be used to indicate the desired geographic area wher...
Definition
qgsgeocodercontext.h:68
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:267
qgscoordinatereferencesystem.h
qgscoordinatetransformcontext.h
qgsgeometry.h
Generated on
for QGIS API Documentation by
1.17.0