class documentation

class Envelope: (source)

View In Hierarchy

The Envelope object is a C structure that contains the minimum and maximum X, Y coordinates for a rectangle bounding box. The naming of the variables is compatible with the OGR Envelope structure.

Method __eq__ Return True if the envelopes are equivalent; can compare against other Envelopes and 4-tuples.
Method __init__ The initialization function may take an OGREnvelope structure, 4-element tuple or list, or 4 individual arguments.
Method __str__ Return a string representation of the tuple.
Method expand_to_include Modify the envelope to expand to include the boundaries of the passed-in 2-tuple (a point), 4-tuple (an extent) or envelope.
Property ll Return the lower-left coordinate.
Property max_x Return the value of the maximum X coordinate.
Property max_y Return the value of the maximum Y coordinate.
Property min_x Return the value of the minimum X coordinate.
Property min_y Return the value of the minimum Y coordinate.
Property tuple Return a tuple representing the envelope.
Property ur Return the upper-right coordinate.
Property wkt Return WKT representing a Polygon for this envelope.
Method _from_sequence Initialize the C OGR Envelope structure from the given sequence.
Instance Variable _envelope Undocumented
def __eq__(self, other): (source)

Return True if the envelopes are equivalent; can compare against other Envelopes and 4-tuples.

def __init__(self, *args): (source)

The initialization function may take an OGREnvelope structure, 4-element tuple or list, or 4 individual arguments.

def __str__(self): (source)

Return a string representation of the tuple.

def expand_to_include(self, *args): (source)

Modify the envelope to expand to include the boundaries of the passed-in 2-tuple (a point), 4-tuple (an extent) or envelope.

Return the lower-left coordinate.

Return the value of the maximum X coordinate.

Return the value of the maximum Y coordinate.

Return the value of the minimum X coordinate.

Return the value of the minimum Y coordinate.

Return a tuple representing the envelope.

Return the upper-right coordinate.

Return WKT representing a Polygon for this envelope.

def _from_sequence(self, seq): (source)

Initialize the C OGR Envelope structure from the given sequence.

_envelope = (source)

Undocumented