12 |
# $Id$ |
# $Id$ |
13 |
|
|
14 |
import os |
import os |
|
import warnings |
|
15 |
import weakref |
import weakref |
16 |
|
|
17 |
import shapelib |
import shapelib |
129 |
Return the original shapestore the derived store was instantiated with |
Return the original shapestore the derived store was instantiated with |
130 |
""" |
""" |
131 |
return self.shapestore |
return self.shapestore |
|
|
|
|
|
|
|
class SimpleStore: |
|
|
|
|
|
"""Combine a shapefile and a table object""" |
|
|
|
|
|
def __init__(self, shapefile, table): |
|
|
warnings.warn("The SimpleStore is deprecated." |
|
|
" Use DerivedShapeStore instead", |
|
|
DeprecationWarning, stacklevel = 2) |
|
|
self.shapefile = shapefile |
|
|
self.table = table |
|
|
self.filename = None |
|
|
|
|
|
def Table(self): |
|
|
return self.table |
|
|
|
|
|
def Shapefile(self): |
|
|
return self.shapefile |
|