diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-02 13:12:09 -0700 |
commit | 7548aa8ffd46eb6e0f73730d1b2eb515ba581f95 (patch) | |
tree | 963393779f4c8c33351ea605f708f8da7d9f70bf /django/contrib/gis/gdal/geometries.py | |
parent | 65c4ac3b2434d1828cb76c9f4454fe64e81354ee (diff) | |
download | django-7548aa8ffd46eb6e0f73730d1b2eb515ba581f95.tar.gz |
More attacking E302 violators
Diffstat (limited to 'django/contrib/gis/gdal/geometries.py')
-rw-r--r-- | django/contrib/gis/gdal/geometries.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/django/contrib/gis/gdal/geometries.py b/django/contrib/gis/gdal/geometries.py index 98ae5a1108..a331053eeb 100644 --- a/django/contrib/gis/gdal/geometries.py +++ b/django/contrib/gis/gdal/geometries.py @@ -522,6 +522,7 @@ class OGRGeometry(GDALBase): """ return self._geomgen(capi.geom_union, other) + # The subclasses for OGR Geometry. class Point(OGRGeometry): @@ -550,6 +551,7 @@ class Point(OGRGeometry): return (self.x, self.y, self.z) coords = tuple + class LineString(OGRGeometry): def __getitem__(self, index): @@ -605,10 +607,12 @@ class LineString(OGRGeometry): if self.coord_dim == 3: return self._listarr(capi.getz) + # LinearRings are used in Polygons. class LinearRing(LineString): pass + class Polygon(OGRGeometry): def __len__(self): @@ -654,6 +658,7 @@ class Polygon(OGRGeometry): capi.get_centroid(self.ptr, p.ptr) return p + # Geometry Collection base class. class GeometryCollection(OGRGeometry): "The Geometry Collection class." @@ -700,13 +705,16 @@ class GeometryCollection(OGRGeometry): return tuple(self[i].tuple for i in xrange(self.geom_count)) coords = tuple + # Multiple Geometry types. class MultiPoint(GeometryCollection): pass + class MultiLineString(GeometryCollection): pass + class MultiPolygon(GeometryCollection): pass |