centroid Returns a Point representing the centroid of this polygon.
kml Returns a string representation of this geometry in KML format.
ewkt Returns the EWKT representation of this geometry.
exterior_ring An alias for shell.
class CoordTransform(source, target) Represents a coordinate system transform. It is initialized with two SpatialReference
layer_count Returns the number of layers in the data source.
class Field name Returns the name of this field:
transform(coord_trans, clone=False) Transforms this geometry to a different spatial reference system. May take a CoordTransform
wkb Returns a buffer containing a WKB representation of this geometry.
class DataSource(ds_input, encoding='utf-8') The constructor for DataSource only requires one parameter: the path
Page 2 of 18