1 |
# Copyright (c) 2002 by Intevation GmbH |
# Copyright (c) 2002, 2003 by Intevation GmbH |
2 |
# Authors: |
# Authors: |
3 |
# Bernhard Herzog <[email protected]> |
# Bernhard Herzog <[email protected]> |
4 |
# |
# |
100 |
# use shapefile from the example data |
# use shapefile from the example data |
101 |
shpfile = os.path.join(os.path.dirname(__file__), |
shpfile = os.path.join(os.path.dirname(__file__), |
102 |
os.pardir, "Data", "iceland", "political.shp") |
os.pardir, "Data", "iceland", "political.shp") |
103 |
layer = Layer("My Layer", shpfile) |
layer = Layer("My Layer", session.OpenShapefile(shpfile)) |
104 |
map.AddLayer(layer) |
map.AddLayer(layer) |
105 |
|
|
106 |
filename = self.temp_file_name("save_singlemap.thuban") |
filename = self.temp_file_name("save_singlemap.thuban") |
135 |
# Fake the __file__ global because it's needed by a test |
# Fake the __file__ global because it's needed by a test |
136 |
import sys |
import sys |
137 |
__file__ = sys.argv[0] |
__file__ = sys.argv[0] |
138 |
unittest.main() |
support.run_tests() |