|
| QgsCoordinateTransform () |
| Default constructor, creates an invalid QgsCoordinateTransform. More...
|
|
| QgsCoordinateTransform (const QgsCoordinateReferenceSystem &source, const QgsCoordinateReferenceSystem &destination, const QgsCoordinateTransformContext &context, Qgis::CoordinateTransformationFlags flags=Qgis::CoordinateTransformationFlags()) |
| Constructs a QgsCoordinateTransform to transform from the source to destination coordinate reference system. More...
|
|
| QgsCoordinateTransform (const QgsCoordinateReferenceSystem &source, const QgsCoordinateReferenceSystem &destination, const QgsProject *project, Qgis::CoordinateTransformationFlags flags=Qgis::CoordinateTransformationFlags()) |
| Constructs a QgsCoordinateTransform to transform from the source to destination coordinate reference system, when used with the given project. More...
|
|
Q_DECL_DEPRECATED | QgsCoordinateTransform (const QgsCoordinateReferenceSystem &source, const QgsCoordinateReferenceSystem &destination, int sourceDatumTransformId, int destinationDatumTransformId) |
| Constructs a QgsCoordinateTransform to transform from the source to destination coordinate reference system, with the specified datum transforms (see QgsDatumTransform). More...
|
|
| QgsCoordinateTransform (const QgsCoordinateTransform &o) |
| Copy constructor. More...
|
|
| ~QgsCoordinateTransform () |
|
bool | allowFallbackTransforms () const |
| Returns whether "ballpark" fallback transformations will be used in the case that the specified coordinate operation fails (such as when coordinates from outside a required grid shift file are transformed). More...
|
|
QgsCoordinateTransformContext | context () const |
| Returns the context in which the coordinate transform will be calculated. More...
|
|
QString | coordinateOperation () const |
| Returns a Proj string representing the coordinate operation which will be used to transform coordinates. More...
|
|
QgsCoordinateReferenceSystem | destinationCrs () const |
| Returns the destination coordinate reference system, which the transform will transform coordinates to. More...
|
|
Q_DECL_DEPRECATED int | destinationDatumTransformId () const |
| Returns the ID of the datum transform to use when projecting to the destination CRS. More...
|
|
void | disableFallbackOperationHandler (bool disabled) |
| Sets whether the default fallback operation handler is disabled for this transform instance. More...
|
|
bool | fallbackOperationOccurred () const |
| Returns true if a fallback operation occurred for the most recent transform. More...
|
|
QgsDatumTransform::TransformDetails | instantiatedCoordinateOperationDetails () const |
| Returns the transform details representing the coordinate operation which is being used to transform coordinates. More...
|
|
bool | isShortCircuited () const |
| Returns true if the transform short circuits because the source and destination are equivalent. More...
|
|
bool | isValid () const |
| Returns true if the coordinate transform is valid, ie both the source and destination CRS have been set and are valid. More...
|
|
QgsCoordinateTransform & | operator= (const QgsCoordinateTransform &o) |
| Assignment operator. More...
|
|
double | scaleFactor (const QgsRectangle &referenceExtent) const |
| Computes an estimated conversion factor between source and destination units: More...
|
|
void | setAllowFallbackTransforms (bool allowed) |
| Sets whether "ballpark" fallback transformations can be used in the case that the specified coordinate operation fails (such as when coordinates from outside a required grid shift file are transformed). More...
|
|
void | setBallparkTransformsAreAppropriate (bool appropriate) |
| Sets whether approximate "ballpark" results are appropriate for this coordinate transform. More...
|
|
void | setContext (const QgsCoordinateTransformContext &context) |
| Sets the context in which the coordinate transform should be calculated. More...
|
|
void | setCoordinateOperation (const QString &operation) const |
| Sets a Proj string representing the coordinate operation which will be used to transform coordinates. More...
|
|
void | setDestinationCrs (const QgsCoordinateReferenceSystem &crs) |
| Sets the destination coordinate reference system. More...
|
|
Q_DECL_DEPRECATED void | setDestinationDatumTransformId (int datumId) |
| Sets the datumId ID of the datum transform to use when projecting to the destination CRS. More...
|
|
void | setSourceCrs (const QgsCoordinateReferenceSystem &crs) |
| Sets the source coordinate reference system. More...
|
|
Q_DECL_DEPRECATED void | setSourceDatumTransformId (int datumId) |
| Sets the datumId ID of the datum transform to use when projecting from the source CRS. More...
|
|
QgsCoordinateReferenceSystem | sourceCrs () const |
| Returns the source coordinate reference system, which the transform will transform coordinates from. More...
|
|
Q_DECL_DEPRECATED int | sourceDatumTransformId () const |
| Returns the ID of the datum transform to use when projecting from the source CRS. More...
|
|
QgsPointXY | transform (const QgsPointXY &point, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const SIP_THROW(QgsCsException) |
| Transform the point from the source CRS to the destination CRS. More...
|
|
QgsRectangle | transform (const QgsRectangle &rectangle, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const SIP_THROW(QgsCsException) |
| Transforms a rectangle to the destination CRS. More...
|
|
QgsVector3D | transform (const QgsVector3D &point, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
| Transform the point specified in 3D coordinates from the source CRS to the destination CRS. More...
|
|
QgsPointXY | transform (double x, double y, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
| Transform the point specified by x,y from the source CRS to the destination CRS. More...
|
|
QgsRectangle | transformBoundingBox (const QgsRectangle &rectangle, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward, bool handle180Crossover=false) const SIP_THROW(QgsCsException) |
| Transforms a rectangle from the source CRS to the destination CRS. More...
|
|
void | transformCoords (int numPoint, double *x, double *y, double *z, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const SIP_THROW(QgsCsException) |
| Transform an array of coordinates to the destination CRS. More...
|
|
void | transformInPlace (double &x, double &y, double &z, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const SIP_THROW(QgsCsException) |
| Transforms an array of x, y and z double coordinates in place, from the source CRS to the destination CRS. More...
|
|
void | transformInPlace (float &x, float &y, double &z, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
| Transforms an array of x, y and z float coordinates in place, from the source CRS to the destination CRS. More...
|
|
void | transformInPlace (float &x, float &y, float &z, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
| Transforms an array of x, y and z float coordinates in place, from the source CRS to the destination CRS. More...
|
|
void | transformInPlace (QVector< double > &x, QVector< double > &y, QVector< double > &z, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
| Transforms a vector of x, y and z double coordinates in place, from the source CRS to the destination CRS. More...
|
|
void | transformInPlace (QVector< float > &x, QVector< float > &y, QVector< float > &z, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const |
| Transforms a vector of x, y and z float coordinates in place, from the source CRS to the destination CRS. More...
|
|
void | transformPolygon (QPolygonF &polygon, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward) const SIP_THROW(QgsCsException) |
| Transforms a polygon to the destination coordinate system. More...
|
|