- Timestamp:
- 02/14/08 10:33:16 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/gis/django/contrib/gis/geos/collections.py
r6978 r7114 86 86 def kml(self): 87 87 "Returns the KML for this Geometry Collection." 88 kml = '<MultiGeometry>' 89 for g in self: kml += g.kml 90 return kml + '</MultiGeometry>' 88 return '<MultiGeometry>%s</MultiGeometry>' % ''.join([g.kml for g in self]) 89 90 @property 91 def tuple(self): 92 "Returns a tuple of all the coordinates in this Geometry Collection" 93 return tuple([g.tuple for g in self]) 94 coords = tuple 91 95 92 96 # MultiPoint, MultiLineString, and MultiPolygon class definitions.
