gis.gdal.OGRGeometry.crosses()

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

gis.gdal.OGRGeometry.coord_dim

coord_dim Returns or sets the coordinate dimension of this geometry. For example, the value would be 2 for two-dimensional geometries.

gis.gdal.OGRGeometry.coords

coords An alias for tuple.

gis.gdal.OGRGeometry.convex_hull

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

gis.gdal.OGRGeometry.contains()

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

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.clone()

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

gis.gdal.OGRGeometry.boundary()

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

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