gis.gdal.GDALBand.min

min The minimum pixel value of the band (excluding the “no data” value).

gis.gdal.GDALBand.mean

mean New in Django 1.10. The mean of all pixel values of the band (excluding the “no data” value).

gis.gdal.GDALBand.max

max The maximum pixel value of the band (excluding the “no data” value).

gis.gdal.GDALBand.height

height The height of the band in pixels (Y-axis).

gis.gdal.GDALBand.description

description The name or description of the band, if any.

gis.gdal.GDALBand.datatype()

datatype(as_string=False) The data type contained in the band, as an integer constant between 0 (Unknown) and 11. If as_string is True, the data type is returned as a string with the following possible values: GDT_Unknown, GDT_Byte, GDT_UInt16, GDT_Int16, GDT_UInt32, GDT_Int32, GDT_Float32, GDT_Float64, GDT_CInt16, GDT_CInt32, GDT_CFloat32, and GDT_CFloat64.

gis.gdal.GDALBand.data()

data(data=None, offset=None, size=None, shape=None) New in Django 1.9. The accessor to the pixel values of the GDALBand. Returns the complete data array if no parameters are provided. A subset of the pixel array can be requested by specifying an offset and block size as tuples. If NumPy is available, the data is returned as NumPy array. For performance reasons, it is highly recommended to use NumPy. Data is written to the GDALBand if the data parameter is provided. The input can be of one

gis.gdal.GDALBand

class GDALBand GDALBand instances are not created explicitly, but rather obtained from a GDALRaster object, through its bands attribute. The GDALBands contain the actual pixel values of the raster. description The name or description of the band, if any. width The width of the band in pixels (X-axis). height The height of the band in pixels (Y-axis). pixel_count New in Django 1.9. The total number of pixels in this band. Is equal to width * height. statistics(refre

gis.gdal.Field.width

width Returns the width of this field: >>> city['Name'].width 80

gis.gdal.Field.value

value Returns the value of this field. The Field class itself returns the value as a string, but each subclass returns the value in the most appropriate form: >>> city['Population'].value 102121