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

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