File: qgsgeocodercontext.sip.in

package info (click to toggle)
qgis 3.40.13%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,185,160 kB
  • sloc: cpp: 1,615,781; python: 372,865; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,829; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 155
file content (112 lines) | stat: -rw-r--r-- 3,844 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/geocoding/qgsgeocodercontext.h                              *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/




class QgsGeocoderContext
{
%Docstring(signature="appended")
Encapsulates the context of a geocoding operation.

.. versionadded:: 3.18
%End

%TypeHeaderCode
#include "qgsgeocodercontext.h"
%End
  public:

    QgsGeocoderContext( const QgsCoordinateTransformContext &transformContext );
%Docstring
Constructor for QgsGeocoderContext, with the specified
``transformContext``.
%End

    QgsCoordinateTransformContext transformContext() const;
%Docstring
Returns the coordinate transform context, which should be used whenever
the geocoder constructs a coordinate transform.

.. seealso:: :py:func:`setTransformContext`
%End

    void setTransformContext( const QgsCoordinateTransformContext &context );
%Docstring
Sets the coordinate transform ``context``, which should be used whenever
the geocoder constructs a coordinate transform.

.. seealso:: :py:func:`transformContext`
%End

    QgsGeometry areaOfInterest() const;
%Docstring
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 :py:func:`~QgsGeocoderContext.areaOfInterestCrs`.

.. seealso:: :py:func:`setAreaOfInterest`

.. seealso:: :py:func:`areaOfInterestCrs`
%End

    void setAreaOfInterest( const QgsGeometry &area );
%Docstring
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
:py:func:`~QgsGeocoderContext.setAreaOfInterestCrs`.

.. seealso:: :py:func:`areaOfInterest`

.. seealso:: :py:func:`setAreaOfInterestCrs`
%End

    QgsCoordinateReferenceSystem areaOfInterestCrs() const;
%Docstring
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.

.. seealso:: :py:func:`areaOfInterest`

.. seealso:: :py:func:`setAreaOfInterestCrs`
%End

    void setAreaOfInterestCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the ``crs`` for the area of interest, which can be used to indicate
the desired geographic area where geocoding results are desired.

.. seealso:: :py:func:`areaOfInterestCrs`

.. seealso:: :py:func:`setAreaOfInterest`
%End

};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/core/geocoding/qgsgeocodercontext.h                              *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/