QGIS/python/core/raster/qgsrasterprojector.sip

68 lines
2.1 KiB
Plaintext
Raw Normal View History

2015-07-29 11:52:14 +02:00
/** Raster projector */
2012-09-13 13:38:39 +02:00
class QgsRasterProjector : QgsRasterInterface
{
%TypeHeaderCode
#include <qgsrasterprojector.h>
#include <qgscoordinatereferencesystem.h>
%End
public:
/** \brief QgsRasterProjector implements approximate projection support for
* it calculates grid of points in source CRS for target CRS + extent
* which are used to calculate affine transformation matrices.
*/
QgsRasterProjector(
const QgsCoordinateReferenceSystem& theSrcCRS,
const QgsCoordinateReferenceSystem& theDestCRS,
2014-01-26 18:35:21 +01:00
int theSrcDatumTransform,
int theDestDatumTransform,
const QgsRectangle& theDestExtent,
2014-01-26 18:35:21 +01:00
int theDestRows, int theDestCols,
double theMaxSrcXRes, double theMaxSrcYRes,
const QgsRectangle& theExtent
2014-01-26 18:35:21 +01:00
);
QgsRasterProjector(
const QgsCoordinateReferenceSystem& theSrcCRS,
const QgsCoordinateReferenceSystem& theDestCRS,
const QgsRectangle& theDestExtent,
int theDestRows, int theDestCols,
double theMaxSrcXRes, double theMaxSrcYRes,
const QgsRectangle& theExtent
);
QgsRasterProjector(
const QgsCoordinateReferenceSystem& theSrcCRS,
const QgsCoordinateReferenceSystem& theDestCRS,
double theMaxSrcXRes, double theMaxSrcYRes,
const QgsRectangle& theExtent
);
QgsRasterProjector();
/** \brief The destructor */
~QgsRasterProjector();
virtual QgsRasterProjector *clone() const /Factory/;
int bandCount() const;
int dataType( int bandNo ) const;
/** \brief set source and destination CRS */
2014-01-27 09:22:24 +01:00
void setCRS( const QgsCoordinateReferenceSystem & theSrcCRS, const QgsCoordinateReferenceSystem & theDestCRS,
int srcDatumTransform = -1, int destDatumTransform = -1 );
/** \brief Get source CRS */
QgsCoordinateReferenceSystem srcCrs() const;
/** \brief Get destination CRS */
QgsCoordinateReferenceSystem destCrs() const;
/** \brief set maximum source resolution */
void setMaxSrcRes( double theMaxSrcXRes, double theMaxSrcYRes );
2012-10-11 16:11:45 +02:00
QgsRasterBlock *block( int bandNo, const QgsRectangle & extent, int width, int height ) / Factory /;
};