gis.gdal.OGRGeometry.disjoint()

disjoint(other) Returns True if this geometry is spatially disjoint to (i.e. does not intersect) the other, otherwise returns False.

gis.gdal.OGRGeometry.difference()

difference() Returns the region consisting of the difference of this geometry and the other, as a new OGRGeometry object.

gis.gdal.OGRGeometry.clone()

clone() Returns a new OGRGeometry clone of this geometry object.

gis.gdal.OGRGeometry.convex_hull

convex_hull The smallest convex polygon that contains this geometry, as a new OGRGeometry object.

gis.gdal.OGRGeometry.close_rings()

close_rings() If there are any rings within this geometry that have not been closed, this routine will do so by adding the starting point to the end: >>> triangle = OGRGeometry('LINEARRING (0 0,0 1,1 0)') >>> triangle.close_rings() >>> triangle.wkt 'LINEARRING (0 0,0 1,1 0,0 0)'

gis.gdal.OGRGeometry.contains()

contains(other) Returns True if this geometry contains the other, otherwise returns False.

gis.gdal.OGRGeometry.coords

coords An alias for tuple.

gis.gdal.OGRGeometry.area

area Returns the area of this geometry, or 0 for geometries that do not contain an area: >>> polygon.area 25.0

gis.gdal.OGRGeometry

class OGRGeometry(geom_input, srs=None) This object is a wrapper for the OGR Geometry class. These objects are instantiated directly from the given geom_input parameter, which may be a string containing WKT, HEX, GeoJSON, a buffer containing WKB data, or an OGRGeomType object. These objects are also returned from the Feature.geom attribute, when reading vector data from Layer (which is in turn a part of a DataSource). classmethod from_bbox(bbox) Constructs a Polygon from the given bound

gis.gdal.OGRGeometry.boundary()

boundary() The boundary of this geometry, as a new OGRGeometry object.