gis.gdal.GDALBand.nodata_value

nodata_value The “no data” value for a band is generally a special marker value used to mark pixels that are not valid data. Such pixels should generally not be displayed, nor contribute to analysis operations. To delete an existing “no data” value, set this property to None (requires GDAL ≥ 2.1). Changed in Django 1.9: This property can now be set as well. Changed in Django 1.10: The “no data” value can now be deleted by setting the nodata_value attribute to None.

gis.gdal.GDALBand.height

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

gis.gdal.GDALBand.max

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

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.description

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

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.mean

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

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.type_name

type_name Returns a string with the name of the data type of this field: >>> city['Name'].type_name 'String'