Changeset 6686 for django/branches/gis/django/contrib/gis/gdal/envelope.py
- Timestamp:
- 11/17/07 15:38:36 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/gdal/envelope.py
r6436 r6686 1 1 """ 2 2 The GDAL/OGR library uses an Envelope structure to hold the bounding 3 box information for a geometry. The envelope (bounding box) contains4 two pairs of coordinates, one for the lower left coordinate and one5 for the upper right coordinate:3 box information for a geometry. The envelope (bounding box) contains 4 two pairs of coordinates, one for the lower left coordinate and one 5 for the upper right coordinate: 6 6 7 +----------o Upper right; (max_x, max_y) 8 | | 9 | | 10 | | 11 Lower left (min_x, min_y) o----------+ 12 7 +----------o Upper right; (max_x, max_y) 8 | | 9 | | 10 | | 11 Lower left (min_x, min_y) o----------+ 13 12 """ 14 13 from ctypes import Structure, c_double … … 30 29 """ 31 30 The Envelope object is a C structure that contains the minimum and 32 maximum X, Y coordinates for a rectangle bounding box. The naming33 of the variables is compatible with the OGR Envelope structure.31 maximum X, Y coordinates for a rectangle bounding box. The naming 32 of the variables is compatible with the OGR Envelope structure. 34 33 """ 35 34 … … 37 36 """ 38 37 The initialization function may take an OGREnvelope structure, 4-element 39 tuple or list, or 4 individual arguments.38 tuple or list, or 4 individual arguments. 40 39 """ 41 40
