Changeset 591
- Timestamp:
- 07/05/08 20:28:22 (5 months ago)
- Files:
-
- trunk/py/wscompose/pinwin.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/py/wscompose/pinwin.py
r501 r591 93 93 94 94 # 95 95 96 96 if self.ctx.has_key('dots') : 97 97 for data in self.ctx['dots'] : … … 149 149 150 150 points = [] 151 152 for coord in self.ctx[type] : 153 151 152 # sigh... 153 key = "%ss" % type 154 155 for coord in self.ctx[key] : 154 156 pt = self.latlon_to_point(coord['latitude'], coord['longitude']) 155 157 points.append((pt.x, pt.y)) 156 158 157 159 hull = convexhull.convexHull(points) 158 160 159 161 # 160 162 # no way to assign width to polygon outlines in PIL... … … 166 168 167 169 while i < cnt : 168 169 170 (x1, y1) = hull[i] 170 171 … … 178 179 dr.line((x1, y1, x2, y2), fill=pink, width=6) 179 180 i += 1 180 181 181 182 return img 182 183
