mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
rasterio.coords.BoundingBox: fix attribute docs (#3351)
* rasterio.coords.BoundingBox: fix attribute docs * Add comment
This commit is contained in:
parent
e2b32df87e
commit
b82c6a346d
@ -3,24 +3,19 @@
|
||||
from collections import namedtuple
|
||||
|
||||
BoundingBox = namedtuple('BoundingBox', ('left', 'bottom', 'right', 'top'))
|
||||
|
||||
# Required to properly document this namedtuple and its attributes
|
||||
BoundingBox.__doc__ = \
|
||||
"""Bounding box named tuple, defining extent in cartesian coordinates.
|
||||
|
||||
.. code::
|
||||
|
||||
BoundingBox(left, bottom, right, top)
|
||||
|
||||
Attributes
|
||||
----------
|
||||
left :
|
||||
Left coordinate
|
||||
bottom :
|
||||
Bottom coordinate
|
||||
right :
|
||||
Right coordinate
|
||||
top :
|
||||
Top coordinate
|
||||
"""
|
||||
BoundingBox.left.__doc__ = "Left coordinate"
|
||||
BoundingBox.bottom.__doc__ = "Bottom coordinate"
|
||||
BoundingBox.right.__doc__ = "Right coordinate"
|
||||
BoundingBox.top.__doc__ = "Top coordinate"
|
||||
|
||||
def disjoint_bounds(bounds1, bounds2):
|
||||
"""Compare two bounds and determine if they are disjoint.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user