2017-04-24 08:48:57 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgscoordinatetransform.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
2006-01-08 01:18:20 +00:00
|
|
|
|
2016-07-16 10:07:10 +10:00
|
|
|
|
2017-05-04 09:56:17 +02:00
|
|
|
|
2016-07-16 10:07:10 +10:00
|
|
|
class QgsCoordinateTransform
|
2006-01-08 01:18:20 +00:00
|
|
|
{
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Class for doing transforms between two map coordinate systems.
|
2017-04-24 08:48:57 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
This class can convert map coordinates to a different coordinate reference system.
|
|
|
|
It is normally associated with a map layer and is used to transform between the
|
|
|
|
layer's coordinate system and the coordinate system of the map canvas, although
|
|
|
|
it can be used in a more general sense to transform coordinates.
|
|
|
|
|
|
|
|
When used to transform between a layer and the map canvas, all references to source
|
|
|
|
and destination coordinate systems refer to layer and map canvas respectively. All
|
|
|
|
operations are from the perspective of the layer. For example, a forward transformation
|
|
|
|
transforms coordinates from the layer's coordinate system to the map canvas.
|
2017-04-24 08:48:57 +02:00
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
Since QGIS 3.0 QgsCoordinateReferenceSystem objects are implicitly shared.
|
2017-12-19 08:47:02 +10:00
|
|
|
|
|
|
|
.. seealso:: :py:class:`QgsDatumTransform`
|
|
|
|
|
|
|
|
.. seealso:: :py:class:`QgsCoordinateTransformContext`
|
2007-01-09 02:39:15 +00:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-04-24 08:48:57 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgscoordinatetransform.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2016-07-16 10:07:10 +10:00
|
|
|
|
|
|
|
enum TransformDirection
|
|
|
|
{
|
2017-04-24 08:48:57 +02:00
|
|
|
ForwardTransform,
|
|
|
|
ReverseTransform
|
2016-07-16 10:07:10 +10:00
|
|
|
};
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
QgsCoordinateTransform();
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
|
|
|
Default constructor, creates an invalid QgsCoordinateTransform.
|
|
|
|
%End
|
|
|
|
|
|
|
|
|
2017-11-05 21:00:24 +10:00
|
|
|
explicit QgsCoordinateTransform( const QgsCoordinateReferenceSystem &source,
|
|
|
|
const QgsCoordinateReferenceSystem &destination,
|
|
|
|
const QgsCoordinateTransformContext &context );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructs a QgsCoordinateTransform to transform from the ``source``
|
|
|
|
to ``destination`` coordinate reference system.
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
The ``context`` argument specifies the context under which the transform
|
|
|
|
will be applied, and is used for calculating necessary datum transforms
|
|
|
|
to utilize.
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-23 14:27:28 +10:00
|
|
|
Python scripts should generally use the constructor variant which accepts
|
|
|
|
a QgsProject instance instead of this constructor.
|
|
|
|
|
2017-12-23 14:30:08 +10:00
|
|
|
.. warning::
|
|
|
|
|
|
|
|
Do NOT use an empty/default constructed QgsCoordinateTransformContext()
|
2017-12-23 14:27:28 +10:00
|
|
|
object when creating QgsCoordinateTransform objects. This prevents correct
|
|
|
|
datum transform handling and may result in inaccurate transformations. Always
|
|
|
|
ensure that the QgsCoordinateTransformContext object is correctly retrieved
|
|
|
|
based on the current code context, or use the constructor variant which
|
|
|
|
accepts a QgsProject argument instead.
|
|
|
|
|
2017-11-05 21:00:24 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
explicit QgsCoordinateTransform( const QgsCoordinateReferenceSystem &source,
|
|
|
|
const QgsCoordinateReferenceSystem &destination,
|
|
|
|
const QgsProject *project );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructs a QgsCoordinateTransform to transform from the ``source``
|
|
|
|
to ``destination`` coordinate reference system, when used with the
|
|
|
|
given ``project``.
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
No reference to ``project`` is stored or utilized outside of the constructor,
|
|
|
|
and it is used to retrieve the project's transform context only.
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-23 16:36:46 +10:00
|
|
|
Python scripts should utilize the QgsProject.instance() project
|
2017-12-23 14:27:28 +10:00
|
|
|
instance when creating QgsCoordinateTransform. This will ensure
|
|
|
|
that any datum transforms defined in the project will be
|
|
|
|
correctly respected during coordinate transforms. E.g.
|
|
|
|
|
|
|
|
.. code-block:: python
|
|
|
|
|
|
|
|
transform = QgsCoordinateTransform(QgsCoordinateReferenceSystem("EPSG:3111"),
|
|
|
|
QgsCoordinateReferenceSystem("EPSG:4326"), QgsProject.instance())
|
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
explicit QgsCoordinateTransform( const QgsCoordinateReferenceSystem &source,
|
|
|
|
const QgsCoordinateReferenceSystem &destination,
|
|
|
|
int sourceDatumTransformId,
|
|
|
|
int destinationDatumTransformId );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructs a QgsCoordinateTransform to transform from the ``source``
|
|
|
|
to ``destination`` coordinate reference system, with the specified
|
2017-12-19 11:43:52 -04:00
|
|
|
datum transforms (see :py:class:`QgsDatumTransform`).
|
2017-12-15 14:20:57 +10:00
|
|
|
|
2017-11-05 21:00:24 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2017-04-24 08:48:57 +02:00
|
|
|
QgsCoordinateTransform( const QgsCoordinateTransform &o );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Copy constructor
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
2017-04-26 11:31:56 +02:00
|
|
|
|
2017-04-24 08:48:57 +02:00
|
|
|
~QgsCoordinateTransform();
|
2006-01-08 01:18:20 +00:00
|
|
|
|
API breaks and cleanups for QgsCoordinateTransform
- isInitialised() has been renamed to isValid()
- theCRS parameter in setSourceCrs has been renamed to 'crs'
- setDestCRS() has been renamed to setDestinationCrs() for consistency
- destCRS() has been renamed to destinationCrs() for consistency
- theSource, theDest, theSourceSrsId, theDestSrsId, theSourceWkt,
theDestWkt, theSourceCRSType parameters in the QgsCoordinateTransform
constructors have been renamed to source, destination, sourceSrsId,
destinationSrsId, sourceWkt, destinationWkt, sourceCrsType respectively
- 'p' argument in transform() has been renamed to 'point', 'theRect' to
'rectangle', 'poly' to 'polygon'
- setDestCRSID has been removed, use setDestinationCrs() instead
- 'theNode', 'theDoc' parameters in readXML and writeXML have been
renamed to 'node' and 'document' respectively
- readXML() and writeXML() have been renamed to readXml() and writeXml()
for consistency
2016-07-16 16:31:05 +10:00
|
|
|
bool isValid() const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns true if the coordinate transform is valid, ie both the source and destination
|
|
|
|
CRS have been set and are valid.
|
|
|
|
|
2017-04-24 08:48:57 +02:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
void setSourceCrs( const QgsCoordinateReferenceSystem &crs );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the source coordinate reference system.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param crs: CRS to transform coordinates from
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`sourceCrs()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setDestinationCrs()`
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setDestinationCrs( const QgsCoordinateReferenceSystem &crs );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the destination coordinate reference system.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param crs: CRS to transform coordinates to
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`destinationCrs()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setSourceCrs()`
|
2017-11-05 21:00:24 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setContext( const QgsCoordinateTransformContext &context );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the ``context`` in which the coordinate transform should be
|
|
|
|
calculated.
|
|
|
|
|
2017-11-05 21:00:24 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
2006-03-04 14:30:15 +00:00
|
|
|
|
2016-07-11 16:04:50 +10:00
|
|
|
QgsCoordinateReferenceSystem sourceCrs() const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the source coordinate reference system, which the transform will
|
|
|
|
transform coordinates from.
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setSourceCrs()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`destinationCrs()`
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
2006-03-04 14:30:15 +00:00
|
|
|
|
API breaks and cleanups for QgsCoordinateTransform
- isInitialised() has been renamed to isValid()
- theCRS parameter in setSourceCrs has been renamed to 'crs'
- setDestCRS() has been renamed to setDestinationCrs() for consistency
- destCRS() has been renamed to destinationCrs() for consistency
- theSource, theDest, theSourceSrsId, theDestSrsId, theSourceWkt,
theDestWkt, theSourceCRSType parameters in the QgsCoordinateTransform
constructors have been renamed to source, destination, sourceSrsId,
destinationSrsId, sourceWkt, destinationWkt, sourceCrsType respectively
- 'p' argument in transform() has been renamed to 'point', 'theRect' to
'rectangle', 'poly' to 'polygon'
- setDestCRSID has been removed, use setDestinationCrs() instead
- 'theNode', 'theDoc' parameters in readXML and writeXML have been
renamed to 'node' and 'document' respectively
- readXML() and writeXML() have been renamed to readXml() and writeXml()
for consistency
2016-07-16 16:31:05 +10:00
|
|
|
QgsCoordinateReferenceSystem destinationCrs() const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the destination coordinate reference system, which the transform will
|
|
|
|
transform coordinates to.
|
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setDestinationCrs()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`sourceCrs()`
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
QgsPointXY transform( const QgsPointXY &point, TransformDirection direction = ForwardTransform ) const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Transform the point from the source CRS to the destination CRS.
|
|
|
|
If the direction is ForwardTransform then coordinates are transformed from source to destination,
|
|
|
|
otherwise points are transformed from destination to source CRS.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param point: point to transform
|
|
|
|
:param direction: transform direction (defaults to ForwardTransform)
|
|
|
|
|
|
|
|
:return: transformed point
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
2006-03-04 14:30:15 +00:00
|
|
|
|
2017-06-01 12:18:43 +02:00
|
|
|
QgsPointXY transform( const double x, const double y, TransformDirection direction = ForwardTransform ) const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Transform the point specified by x,y from the source CRS to the destination CRS.
|
|
|
|
If the direction is ForwardTransform then coordinates are transformed from source to destination,
|
|
|
|
otherwise points are transformed from destination to source CRS.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param x: x coordinate of point to transform
|
|
|
|
:param y: y coordinate of point to transform
|
|
|
|
:param direction: transform direction (defaults to ForwardTransform)
|
|
|
|
|
|
|
|
:return: transformed point
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
QgsRectangle transformBoundingBox( const QgsRectangle &rectangle, TransformDirection direction = ForwardTransform, const bool handle180Crossover = false ) const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Transforms a rectangle from the source CRS to the destination CRS.
|
|
|
|
If the direction is ForwardTransform then coordinates are transformed from source to destination,
|
|
|
|
otherwise points are transformed from destination to source CRS.
|
|
|
|
This method assumes that the rectangle is a bounding box, and creates a bounding box
|
|
|
|
in the projected CRS, such that all points from the source rectangle are within
|
|
|
|
the returned rectangle.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param rectangle: rectangle to transform
|
|
|
|
:param direction: transform direction (defaults to ForwardTransform)
|
|
|
|
:param handle180Crossover: set to true if destination CRS is geographic and handling of extents
|
|
|
|
crossing the 180 degree longitude line is required
|
|
|
|
|
|
|
|
:return: rectangle in destination CRS
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
void transformInPlace( double &x, double &y, double &z, TransformDirection direction = ForwardTransform ) const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Transforms an array of x, y and z double coordinates in place, from the source CRS to the destination CRS.
|
|
|
|
If the direction is ForwardTransform then coordinates are transformed from source to destination,
|
|
|
|
otherwise points are transformed from destination to source CRS.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param x: array of x coordinates of points to transform
|
|
|
|
:param y: array of y coordinates of points to transform
|
|
|
|
:param z: array of z coordinates of points to transform. The z coordinates of the points
|
|
|
|
must represent height relative to the vertical datum of the source CRS (generally ellipsoidal
|
|
|
|
heights) and must be expressed in its vertical units (generally meters)
|
|
|
|
:param direction: transform direction (defaults to ForwardTransform)
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void transformPolygon( QPolygonF &polygon, TransformDirection direction = ForwardTransform ) const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Transforms a polygon to the destination coordinate system.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param polygon: polygon to transform (occurs in place)
|
|
|
|
:param direction: transform direction (defaults to forward transformation)
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
2017-12-11 12:32:46 +01:00
|
|
|
QgsRectangle transform( const QgsRectangle &rectangle, TransformDirection direction = ForwardTransform ) const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Transforms a rectangle to the destination CRS.
|
|
|
|
If the direction is ForwardTransform then coordinates are transformed from source to destination,
|
|
|
|
otherwise points are transformed from destination to source CRS.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param rectangle: rectangle to transform
|
|
|
|
:param direction: transform direction (defaults to ForwardTransform)
|
|
|
|
|
|
|
|
:return: transformed rectangle
|
2017-12-11 12:32:46 +01:00
|
|
|
%End
|
2016-07-17 16:38:28 +10:00
|
|
|
|
|
|
|
void transformCoords( int numPoint, double *x, double *y, double *z, TransformDirection direction = ForwardTransform ) const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Transform an array of coordinates to the destination CRS.
|
|
|
|
If the direction is ForwardTransform then coordinates are transformed from source to destination,
|
|
|
|
otherwise points are transformed from destination to source CRS.
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param numPoint: number of coordinates in arrays
|
|
|
|
:param x: array of x coordinates to transform
|
|
|
|
:param y: array of y coordinates to transform
|
|
|
|
:param z: array of z coordinates to transform
|
|
|
|
:param direction: transform direction (defaults to ForwardTransform)
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2015-12-31 07:27:58 +11:00
|
|
|
bool isShortCircuited() const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns true if the transform short circuits because the source and destination are equivalent.
|
2017-12-15 14:20:57 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
int sourceDatumTransformId() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the ID of the datum transform to use when projecting from the source
|
|
|
|
CRS.
|
|
|
|
|
|
|
|
This is usually calculated automatically from the transform's QgsCoordinateTransformContext,
|
|
|
|
but can be manually overwritten by a call to setSourceDatumTransformId().
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-19 08:48:32 +10:00
|
|
|
.. seealso:: :py:class:`QgsDatumTransform`
|
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`setSourceDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`destinationDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`datumTransformInfo()`
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
void setSourceDatumTransformId( int datumId );
|
2017-11-05 21:00:24 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the ``datumId`` ID of the datum transform to use when projecting from the source
|
|
|
|
CRS.
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
This is usually calculated automatically from the transform's QgsCoordinateTransformContext.
|
|
|
|
Calling this method will overwrite any automatically calculated datum transform.
|
2017-11-05 21:00:24 +10:00
|
|
|
|
2017-12-19 08:48:32 +10:00
|
|
|
.. seealso:: :py:class:`QgsDatumTransform`
|
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`sourceDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`setDestinationDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`datumTransformInfo()`
|
2017-11-05 21:00:24 +10:00
|
|
|
%End
|
2014-01-26 18:35:21 +01:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
int destinationDatumTransformId() const;
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the ID of the datum transform to use when projecting to the destination
|
|
|
|
CRS.
|
2017-12-15 14:20:57 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
This is usually calculated automatically from the transform's QgsCoordinateTransformContext,
|
|
|
|
but can be manually overwritten by a call to setDestinationDatumTransformId().
|
|
|
|
|
2017-12-19 08:48:32 +10:00
|
|
|
.. seealso:: :py:class:`QgsDatumTransform`
|
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`setDestinationDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`sourceDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`datumTransformInfo()`
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
2006-01-08 01:18:20 +00:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
void setDestinationDatumTransformId( int datumId );
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the ``datumId`` ID of the datum transform to use when projecting to the destination
|
|
|
|
CRS.
|
2017-12-15 14:20:57 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
This is usually calculated automatically from the transform's QgsCoordinateTransformContext.
|
|
|
|
Calling this method will overwrite any automatically calculated datum transform.
|
2017-12-15 14:20:57 +10:00
|
|
|
|
2017-12-19 08:48:32 +10:00
|
|
|
.. seealso:: :py:class:`QgsDatumTransform`
|
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`destinationDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`setSourceDatumTransformId()`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. seealso:: :py:func:`datumTransformInfo()`
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
static void invalidateCache();
|
2017-04-24 08:48:57 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Clears the internal cache used to initialize QgsCoordinateTransform objects.
|
|
|
|
This should be called whenever the srs database has
|
|
|
|
been modified in order to ensure that outdated CRS transforms are not created.
|
|
|
|
|
2017-12-15 14:20:57 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-04-24 08:48:57 +02:00
|
|
|
%End
|
2006-01-08 01:18:20 +00:00
|
|
|
|
|
|
|
};
|
2017-04-24 08:48:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/qgscoordinatetransform.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|