class documentation

class Envelope:

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 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.
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 ​_from​_sequence Initialize the C OGR Envelope structure from the given sequence.
Instance Variable ​_envelope Undocumented
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.
def expand_to_include(self, *args):
Modify the envelope to expand to include the boundaries of the passed-in 2-tuple (a point), 4-tuple (an extent) or envelope.
def __eq__(self, other):
Return True if the envelopes are equivalent; can compare against other Envelopes and 4-tuples.
def __init__(self, *args):
The initialization function may take an OGREnvelope structure, 4-element tuple or list, or 4 individual arguments.
def __str__(self):
Return a string representation of the tuple.
def _from_sequence(self, seq):
Initialize the C OGR Envelope structure from the given sequence.
_envelope =

Undocumented

@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.