class documentation

class Point(OGRGeometry):

View In Hierarchy

Undocumented

Class Method ​_create​_empty Undocumented
Method ​_geos​_ptr Undocumented
Property tuple Return the tuple of this point.
Property x Return the X coordinate for this Point.
Property y Return the Y coordinate for this Point.
Property z Return the Z coordinate for this Point.

Inherited from OGRGeometry:

Class Method from​_bbox Construct a Polygon from a bounding box (4-tuple).
Class Method from​_gml Undocumented
Static Method from​_json Undocumented
Method clone Clone this OGR Geometry.
Method 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 at the end.
Method contains Return True if this geometry contains the other.
Method crosses Return True if this geometry crosses the other.
Method difference Return a new geometry consisting of the region which is the difference of this geometry and the other.
Method disjoint Return True if this geometry and the other are spatially disjoint.
Method equals Return True if this geometry is equivalent to the other.
Method intersection Return a new geometry consisting of the region of intersection of this geometry and the other.
Method intersects Return True if this geometry intersects with the other.
Method overlaps Return True if this geometry overlaps the other.
Method sym​_difference Return a new geometry which is the symmetric difference of this geometry and the other.
Method touches Return True if this geometry touches the other.
Method transform No summary
Method union Return a new geometry consisting of the region which is the union of this geometry and the other.
Method within Return True if this geometry is within the other.
Class Variable coord​_dim Undocumented
Class Variable srid Undocumented
Instance Variable srs Undocumented
Class Method ​_from​_wkb Undocumented
Static Method ​_from​_json Undocumented
Method __and__ Return the intersection of this Geometry and the other.
Method __eq__ Is this Geometry equal to the other?
Method __getstate__ Undocumented
Method __init__ Initialize Geometry on either WKT or an OGR pointer as input.
Method __or__ Return the union of the two geometries.
Method __setstate__ Undocumented
Method __str__ WKT is used for the string representation.
Method __sub__ Return the difference this Geometry and the other.
Method __xor__ Return the symmetric difference of this Geometry and the other.
Method ​_geomgen A helper routine for the OGR routines that generate geometries.
Method ​_get​_coord​_dim Return the coordinate dimension of the Geometry.
Method ​_get​_srid Undocumented
Method ​_get​_srs Return the Spatial Reference for this Geometry.
Method ​_set​_coord​_dim Set the coordinate dimension of this Geometry.
Method ​_set​_srid Undocumented
Method ​_set​_srs Set the SpatialReference for this geometry.
Method ​_topology A generalized function for topology operations, takes a GDAL function and the other geometry to perform the operation on.
Instance Variable __class__ Undocumented
Instance Variable ptr Undocumented
Property area Return the area for a LinearRing, Polygon, or MultiPolygon; 0 otherwise.
Property boundary Return the boundary of this geometry.
Property convex​_hull Return the smallest convex Polygon that contains all the points in this Geometry.
Property dimension Return 0 for points, 1 for lines, and 2 for surfaces.
Property empty Undocumented
Property envelope Return the envelope for this Geometry.
Property ewkt Return the EWKT representation of the Geometry.
Property extent Return the envelope as a 4-tuple, instead of as an Envelope object.
Property geom​_count Return the number of elements in this Geometry.
Property geom​_name Return the Name of this Geometry.
Property geom​_type Return the Type for this Geometry.
Property geos Return a GEOSGeometry object from this OGRGeometry.
Property gml Return the GML representation of the Geometry.
Property hex Return the hexadecimal representation of the WKB (a string).
Property json Return the GeoJSON representation of this Geometry.
Property kml Return the KML representation of the Geometry.
Property num​_coords Alias for point_count.
Property num​_points Alias for point_count (same name method in GEOS API.)
Property point​_count Return the number of Points in this Geometry.
Property wkb Return the WKB representation of the Geometry.
Property wkb​_size Return the size of the WKB buffer.
Property wkt Return the WKT representation of the Geometry.

Inherited from CPointerBase (via OGRGeometry, GDALBase):

Method __del__ Free the memory used by the C++ object.
Method ptr.setter Undocumented
Class Variable destructor Undocumented
Instance Variable ​_ptr Undocumented
@classmethod
def _create_empty(cls):

Undocumented

def _geos_ptr(self):
@property
tuple =
Return the tuple of this point.
@property
x =
Return the X coordinate for this Point.
@property
y =
Return the Y coordinate for this Point.
@property
z =
Return the Z coordinate for this Point.