/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/Model/map.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/Model/map.py

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

revision 178 by bh, Wed May 15 14:02:20 2002 UTC revision 231 by bh, Fri Jul 19 15:13:05 2002 UTC
# Line 151  class Map(TitledObject, Modifiable): Line 151  class Map(TitledObject, Modifiable):
151              layer.UnsetModified()              layer.UnsetModified()
152          self.label_layer.UnsetModified()          self.label_layer.UnsetModified()
153    
154        def TreeInfo(self):
155            items = []
156            if self.BoundingBox() != None:
157                items.append("Extent (lat-lon): (%g, %g, %g, %g)"
158                             % self.BoundingBox())
159                if self.projection and len(self.projection.params) > 0:
160                    items.append("Extent (projected): (%g, %g, %g, %g)"
161                                 % self.ProjectedBoundingBox())
162                    items.append(("Projection",
163                                  [str(param)
164                                   for param in self.projection.params]))
165    
166            layers = self.layers[:]
167            layers.reverse()
168            items.extend(layers)
169    
170            return ("Map: %s" % self.title, items)
171    

Legend:
Removed from v.178  
changed lines
  Added in v.231

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26