mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			68 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			68 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
 | 
						|
/**  Raster projector */
 | 
						|
 | 
						|
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(
 | 
						|
      QgsCoordinateReferenceSystem theSrcCRS,
 | 
						|
      QgsCoordinateReferenceSystem theDestCRS,
 | 
						|
      int theSrcDatumTransform,
 | 
						|
      int theDestDatumTransform,
 | 
						|
      QgsRectangle theDestExtent,
 | 
						|
      int theDestRows, int theDestCols,
 | 
						|
      double theMaxSrcXRes, double theMaxSrcYRes,
 | 
						|
      QgsRectangle theExtent
 | 
						|
    );
 | 
						|
 | 
						|
    QgsRasterProjector(
 | 
						|
      QgsCoordinateReferenceSystem theSrcCRS,
 | 
						|
      QgsCoordinateReferenceSystem theDestCRS,
 | 
						|
      QgsRectangle theDestExtent,
 | 
						|
      int theDestRows, int theDestCols,
 | 
						|
      double theMaxSrcXRes, double theMaxSrcYRes,
 | 
						|
      QgsRectangle theExtent
 | 
						|
    );
 | 
						|
    QgsRasterProjector(
 | 
						|
      QgsCoordinateReferenceSystem theSrcCRS,
 | 
						|
      QgsCoordinateReferenceSystem theDestCRS,
 | 
						|
      double theMaxSrcXRes, double theMaxSrcYRes,
 | 
						|
      QgsRectangle theExtent
 | 
						|
    );
 | 
						|
    QgsRasterProjector();
 | 
						|
 | 
						|
    /** \brief The destructor */
 | 
						|
    ~QgsRasterProjector();
 | 
						|
 | 
						|
    QgsRasterInterface *clone() const /Factory/;
 | 
						|
 | 
						|
    int bandCount() const;
 | 
						|
 | 
						|
    int dataType( int bandNo ) const;
 | 
						|
 | 
						|
    /** \brief set source and destination CRS */
 | 
						|
    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 );
 | 
						|
 | 
						|
    QgsRasterBlock *block( int bandNo, const QgsRectangle & extent, int width, int height ) / Factory /;
 | 
						|
};
 |