/[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 217 by bh, Wed Jul 17 10:50:40 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) for param in self.projection.params]))
164    
165            layers = self.layers[:]
166            layers.reverse()
167            items.extend(layers)
168    
169            return ("Map: %s" % self.title, items)
170    

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26