/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/renderer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2431 by joey, Sun Dec 5 15:05:02 2004 UTC revision 2514 by frank, Mon Jan 3 16:21:17 2005 UTC
# Line 166  class ScreenRenderer(MapRenderer): Line 166  class ScreenRenderer(MapRenderer):
166    
167              # Get the size of the specific property for this              # Get the size of the specific property for this
168              # point              # point
169              if shapetype == SHAPETYPE_POINT:              if shapetype == SHAPETYPE_POINT and field is not None:
170                  value = table.ReadValue(shape.ShapeID(), field)                  value = table.ReadValue(shape.ShapeID(), field)
171                  group = lc.FindGroup(value)                  group = lc.FindGroup(value)
172                  size = group.GetProperties().GetSize()                  size = group.GetProperties().GetSize()
# Line 268  class ExportRenderer(ScreenRenderer): Line 268  class ExportRenderer(ScreenRenderer):
268          self.shifty = (mmaxy - mminy)*0.5 - (ury - lly)*0.5          self.shifty = (mmaxy - mminy)*0.5 - (ury - lly)*0.5
269    
270          self.offset = (offx+self.shiftx, offy+self.shifty)          self.offset = (offx+self.shiftx, offy+self.shifty)
271            self.region = (llx + self.shiftx, lly + self.shifty, urx, ury)
272    
273          # Draw the map          # Draw the map
274          self.dc.BeginDrawing()          self.dc.BeginDrawing()

Legend:
Removed from v.2431  
changed lines
  Added in v.2514

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26