/[thuban]/trunk/thuban/Thuban/Model/layer.py
ViewVC logotype

Diff of /trunk/thuban/Thuban/Model/layer.py

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

revision 1219 by bh, Mon Jun 16 17:42:54 2003 UTC revision 1273 by jonathan, Fri Jun 20 17:45:49 2003 UTC
# Line 99  class BaseLayer(TitledObject, Modifiable Line 99  class BaseLayer(TitledObject, Modifiable
99          """Determine if this layer support classifications."""          """Determine if this layer support classifications."""
100          return False          return False
101    
102        def HasShapes(self):
103            """Determine if this layer supports shapes."""
104            return False
105    
106      def GetProjection(self):      def GetProjection(self):
107          """Return the layer's projection."""          """Return the layer's projection."""
108          return self.projection          return self.projection
# Line 295  class Layer(BaseLayer): Line 299  class Layer(BaseLayer):
299              return table.Column(fieldName).type              return table.Column(fieldName).type
300          return None          return None
301    
302        def HasShapes(self):
303            return True
304    
305      def NumShapes(self):      def NumShapes(self):
306          """Return the number of shapes in the layer"""          """Return the number of shapes in the layer"""
307          return self.numshapes          return self.numshapes

Legend:
Removed from v.1219  
changed lines
  Added in v.1273

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26