def setUp(self): self.l = Shapefile('work/states.shp')
def testAdd(self): shp = Shapefile('work/states.shp') l = self.ws.add(shp, 'states2') assert l assert shp.count() == l.count()
def points(): return Shapefile('work/point.shp')
def polygons(): return Shapefile('work/polygon.shp')
def lines(): return Shapefile('work/line.shp')
def setUp(self): mem = Memory() self.l = mem.add(Shapefile('work/states.shp'))