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

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

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

revision 764 by bh, Thu Apr 24 15:31:53 2003 UTC revision 765 by bh, Tue Apr 29 12:42:14 2003 UTC
# Line 15  import os Line 15  import os
15    
16  import shapelib  import shapelib
17  import table  import table
18    import transientdb
19    
20    
21  class ShapefileStore:  class ShapefileStore:
22    
# Line 28  class ShapefileStore: Line 30  class ShapefileStore:
30          self.filename = os.path.abspath(filename)          self.filename = os.path.abspath(filename)
31    
32          self.shapefile = shapelib.ShapeFile(self.filename)          self.shapefile = shapelib.ShapeFile(self.filename)
33          self.table = table.Table(filename)          self.dbftable = table.DBFTable(filename)
34            self.table = transientdb.AutoTransientTable(session.TransientDB(),
35                                                        self.dbftable)
36    
37        def Table(self):
38            return self.table
39    
40        def Shapefile(self):
41            return self.shapefile
42    
43    
44    class SimpleStore:
45    
46        """Combine a shapefile and a table object"""
47    
48        def __init__(self, shapefile, table):
49            self.shapefile = shapefile
50            self.table = table
51            self.filename = None
52    
53      def Table(self):      def Table(self):
54          return self.table          return self.table

Legend:
Removed from v.764  
changed lines
  Added in v.765

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26