hex Returns a string representation of this geometry in HEX WKB format: >>> OGRGeometry('POINT(1 2)').hex '0101000000000000000000F03F0000000000000040'
geos Returns a GEOSGeometry object corresponding to this geometry.
envelope Returns the envelope of this geometry, as an Envelope object.
equals(other) Returns True if this geometry is equivalent to the other, otherwise returns False.
extent Returns the envelope of this geometry as a 4-tuple, instead of as an Envelope object: >>> point.extent (0.0, 0.0, 5.0, 5.0)
ewkt Returns the EWKT representation of this geometry.
geom_count Returns the number of elements in this geometry: >>> polygon.geom_count 1
dimension Returns the number of coordinated dimensions of the geometry, i.e. 0 for points, 1 for lines, and so forth: >> polygon.dimension 2
coord_dim Returns or sets the coordinate dimension of this geometry. For example, the value would be 2 for two-dimensional geometries.
difference() Returns the region consisting of the difference of this geometry and the other, as a new OGRGeometry object.
Page 101 of 226