Class: QgsRasterViewPort

This class provides details of the viewable area that a raster will be rendered into.

The qgsrasterviewport class sets up a viewport / area of interest to be used

Attributes

mBottomRightPoint

Coordinate (in output device coordinate system) of bottom right corner of the part of the raster that is to be rendered.

mDestCRS

Target (map) coordinate system

mDrawnExtent

Intersection of current map extent and layer extent, in map (destination) CRS

mHeight

Height, number of rows to be rendered

mSrcCRS

Source (layer) coordinate system

mTopLeftPoint

Coordinate (in output device coordinate system) of top left corner of the part of the raster that is to be rendered.

mTransformContext

Coordinate transform context

mWidth

Width, number of columns to be rendered

class qgis.core.QgsRasterViewPort

Bases: object

mBottomRightPoint: QgsPointXY

Coordinate (in output device coordinate system) of bottom right corner of the part of the raster that is to be rendered.

mDestCRS: QgsCoordinateReferenceSystem

Target (map) coordinate system

mDrawnExtent: QgsRectangle

Intersection of current map extent and layer extent, in map (destination) CRS

mHeight: int

Height, number of rows to be rendered

mSrcCRS: QgsCoordinateReferenceSystem

Source (layer) coordinate system

mTopLeftPoint: QgsPointXY

Coordinate (in output device coordinate system) of top left corner of the part of the raster that is to be rendered.

mTransformContext: QgsCoordinateTransformContext

Coordinate transform context

mWidth: int

Width, number of columns to be rendered