gis.gdal.DataSource.layer_count

layer_count Returns the number of layers in the data source.

gis.gdal.DataSource

class DataSource(ds_input, encoding='utf-8') The constructor for DataSource only requires one parameter: the path of the file you want to read. However, OGR also supports a variety of more complex data sources, including databases, that may be accessed by passing a special name string instead of a path. For more information, see the OGR Vector Formats documentation. The name property of a DataSource instance gives the OGR name of the underlying data source that it is using. The optional enco

gis.gdal.Driver

class Driver(dr_input) The Driver class is used internally to wrap an OGR DataSource driver. driver_count Returns the number of OGR vector drivers currently registered.

gis.forms.MultiPointField

class MultiPointField

gis.forms.MultiPolygonField

class MultiPolygonField

gis.gdal.CoordTransform

class CoordTransform(source, target) Represents a coordinate system transform. It is initialized with two SpatialReference, representing the source and target coordinate systems, respectively. These objects should be used when performing the same coordinate transformation repeatedly on different geometries: >>> ct = CoordTransform(SpatialReference('WGS84'), SpatialReference('NAD83')) >>> for feat in layer: ... geom = feat.geom # getting clone of feature geometry ...

gis.forms.MultiLineStringField

class MultiLineStringField

gis.forms.PolygonField

class PolygonField

gis.forms.PointField

class PointField

gis.forms.Field.srid

Field.srid This is the SRID code that the field value should be transformed to. For example, if the map widget SRID is different from the SRID more generally used by your application or database, the field will automatically convert input values into that SRID.