Пример #1
0
 def setUp(self):
     MapTestCase.setUp(self)
     f = open(HOME_IMAGE, 'rb')
     s = StringIO.StringIO(f.read())
     f.close()
     symb_img = mapscript.imageObj(s)
     self.h_symbol = mapscript.symbolObj('house')
     self.h_symbol.type = mapscript.MS_SYMBOL_PIXMAP
     self.h_symbol.setImage(symb_img)
     f = open(XMARKS_IMAGE, 'rb')
     s = StringIO.StringIO(f.read())
     f.close()
     symb_img = mapscript.imageObj(s)
     self.x_symbol = mapscript.symbolObj('xmarks')
     self.x_symbol.type = mapscript.MS_SYMBOL_PIXMAP
     self.x_symbol.setImage(symb_img)
Пример #2
0
 def setUp(self):
     MapTestCase.setUp(self)
     f = open(HOME_IMAGE, 'rb')
     s = StringIO.StringIO(f.read())
     f.close()
     symb_img = mapscript.imageObj(s)
     self.h_symbol = mapscript.symbolObj('house')
     self.h_symbol.type = mapscript.MS_SYMBOL_PIXMAP
     self.h_symbol.setImage(symb_img)
     f = open(XMARKS_IMAGE, 'rb')
     s = StringIO.StringIO(f.read())
     f.close()
     symb_img = mapscript.imageObj(s)
     self.x_symbol = mapscript.symbolObj('xmarks')
     self.x_symbol.type = mapscript.MS_SYMBOL_PIXMAP
     self.x_symbol.setImage(symb_img)
Пример #3
0
 def tearDown(self):
     MapTestCase.tearDown(self)
     self.table = None
Пример #4
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.table = self.map.getLayer(1).getClass(0).metadata
Пример #5
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.layer = self.map.getLayer(1)
     self.layer.template = 'some day i will fix this!'
Пример #6
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.table = self.map.web.metadata
     self.keys = ['key1', 'key2', 'key3', 'key4', 'ows_enable_request']
     self.values = ['value1', 'value2', 'value3', 'value4', '*']
Пример #7
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.layer = self.map.getLayer(1)
Пример #8
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.layer = self.map.getLayerByName('POLYGON')
Пример #9
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.layer = self.map.getLayer(1)
Пример #10
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.layer = self.map.getLayerByName('POLYGON')
Пример #11
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.table = self.map.getLayer(1).getClass(0).metadata        
Пример #12
0
 def tearDown(self):
     MapTestCase.tearDown(self)
     self.table = None
Пример #13
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.table = self.map.web.metadata
Пример #14
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.table = self.map.web.metadata
Пример #15
0
 def setUp(self):
     MapTestCase.setUp(self)
     self.layer = self.map.getLayer(1)
     self.layer.template = 'some day i will fix this!'