gis.gdal.OGRGeometry.wkb

wkb Returns a buffer containing a WKB representation of this geometry.

gis.gdal.OGRGeometry.within()

within(other) Returns True if this geometry is contained within the other, otherwise returns False.

gis.gdal.OGRGeometry.union()

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

gis.gdal.OGRGeometry.tuple

tuple Returns the coordinates of a point geometry as a tuple, the coordinates of a line geometry as a tuple of tuples, and so forth: >>> OGRGeometry('POINT (1 2)').tuple (1.0, 2.0) >>> OGRGeometry('LINESTRING (1 2,3 4)').tuple ((1.0, 2.0), (3.0, 4.0))

gis.gdal.OGRGeometry.transform()

transform(coord_trans, clone=False) Transforms this geometry to a different spatial reference system. May take a CoordTransform object, a SpatialReference object, or any other input accepted by SpatialReference (including spatial reference WKT and PROJ.4 strings, or an integer SRID). By default nothing is returned and the geometry is transformed in-place. However, if the clone keyword is set to True then a transformed clone of this geometry is returned instead.

gis.gdal.OGRGeometry.touches()

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

gis.gdal.OGRGeometry.sym_difference()

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

gis.gdal.OGRGeometry.srs

srs This property controls the spatial reference for this geometry, or None if no spatial reference system has been assigned to it. If assigned, accessing this property returns a SpatialReference object. It may be set with another SpatialReference object, or any input that SpatialReference accepts. Example: >>> city.geom.srs.name 'GCS_WGS_1984'

gis.gdal.OGRGeometry.srid

srid Returns or sets the spatial reference identifier corresponding to SpatialReference of this geometry. Returns None if there is no spatial reference information associated with this geometry, or if an SRID cannot be determined.

gis.gdal.OGRGeometry.point_count

point_count Returns the number of points used to describe this geometry: >>> polygon.point_count 4