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

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

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

revision 111 by jan, Sun Apr 21 17:29:50 2002 UTC revision 115 by jan, Mon Apr 22 11:30:20 2002 UTC
# Line 64  class SessionTreeCtrl(wxTreeCtrl): Line 64  class SessionTreeCtrl(wxTreeCtrl):
64          for map in session.Maps():          for map in session.Maps():
65              mapitem = self.AppendItem(root, "Map: %s" % map.title)              mapitem = self.AppendItem(root, "Map: %s" % map.title)
66              self.SetPyData(mapitem, map)              self.SetPyData(mapitem, map)
67              self.AppendItem(mapitem, ("Extent (lat-lon): (%g, %g, %g, %g)"              if map.BoundingBox() != None:
68                                        % map.BoundingBox()))                  self.AppendItem(mapitem, ("Extent (lat-lon): (%g, %g, %g, %g)"
69                                              % map.BoundingBox()))
70              if map.projection and len(map.projection.params) > 0:              if map.projection and len(map.projection.params) > 0:
71                  self.AppendItem(mapitem,                  self.AppendItem(mapitem,
72                                  ("Extent (projected): (%g, %g, %g, %g)"                                  ("Extent (projected): (%g, %g, %g, %g)"

Legend:
Removed from v.111  
changed lines
  Added in v.115

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26