layer_count Returns the number of layers in the data source.
num_fields Returns the number of fields in the layer, i.e the number of fields of data associated with each feature in the layer:
driver_count Returns the number of OGR vector drivers currently registered.
import_epsg(epsg) Import spatial reference from EPSG code.
transform(coord_trans, clone=False) Transforms this geometry to a different spatial reference system. May take a CoordTransform
contains(other) Returns True if this geometry contains the other, otherwise returns False.
height The height of the band in pixels (Y-axis).
pixel_count New in Django 1.9. The total
kml Returns a string representation of this geometry in KML format.
class DataSource(ds_input, encoding='utf-8') The constructor for DataSource only requires one parameter: the path
Page 1 of 18