Example #1
0
 def setUp(self):
     self.l = Shapefile('work/states.shp')
Example #2
0
  def testAdd(self):
    shp = Shapefile('work/states.shp') 
    l = self.ws.add(shp, 'states2')
 
    assert l
    assert shp.count() == l.count()
Example #3
0
def points():
    return Shapefile('work/point.shp')
Example #4
0
def polygons():
    return Shapefile('work/polygon.shp')
Example #5
0
def lines():
    return Shapefile('work/line.shp')
Example #6
0
    def testAdd(self):
        shp = Shapefile('work/states.shp')
        l = self.ws.add(shp, 'states2')

        assert l
        assert shp.count() == l.count()
Example #7
0
 def setUp(self):
     mem = Memory()
     self.l = mem.add(Shapefile('work/states.shp'))