1 |
|
2003-06-12 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
4 |
|
check unicode strings. |
5 |
|
|
6 |
|
* test/test_layer.py: Check for existence of gdal. |
7 |
|
|
8 |
|
2003-06-12 Jonathan Coles <[email protected]> |
9 |
|
|
10 |
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
11 |
|
that was in load.py |
12 |
|
|
13 |
|
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
14 |
|
that was in save.py |
15 |
|
|
16 |
|
2003-06-12 Jonathan Coles <[email protected]> |
17 |
|
|
18 |
|
This is largely a collection of bug fixes. We also handle the |
19 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
20 |
|
classes were moved into there own files to resolve some circular |
21 |
|
import references and because they shouldn't really be in the |
22 |
|
file that is dediciated to reading/writing session files since |
23 |
|
they are also used elsewhere. |
24 |
|
|
25 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
26 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
27 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
28 |
|
|
29 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
30 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
31 |
|
Addresses RTbug #1877. |
32 |
|
|
33 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
34 |
|
xmlreader.py. |
35 |
|
|
36 |
|
2003-06-12 Jonathan Coles <[email protected]> |
37 |
|
|
38 |
|
This is largely a collection of bug fixes. We also handle the |
39 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
40 |
|
classes were moved into there own files to resolve some circular |
41 |
|
import references and because they shouldn't really be in the |
42 |
|
file that is dediciated to reading/writing session files since |
43 |
|
they are also used elsewhere. |
44 |
|
|
45 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
46 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
47 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
48 |
|
|
49 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
50 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
51 |
|
Addresses RTbug #1877. |
52 |
|
|
53 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
54 |
|
xmlreader.py. |
55 |
|
|
56 |
|
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
57 |
|
file xmlwriter.py. |
58 |
|
|
59 |
|
* Thuban/Model/resource.py: Renamed functions to following the |
60 |
|
function_names_with_underscores style. |
61 |
|
(has_gdal_support): New function that returns true if the gdal |
62 |
|
library is available. Addresses RTbug #1877. |
63 |
|
|
64 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
65 |
|
Display a message box if the gdal library is not available, but |
66 |
|
only if there are any layers that would use it. Addresses RTbug #1877. |
67 |
|
|
68 |
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
69 |
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
70 |
|
when using integers versus floats. |
71 |
|
|
72 |
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
73 |
|
determine if the "Add Image Layer" menu option should be |
74 |
|
greyed out or not. Addresses RTbug #1877. |
75 |
|
|
76 |
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
77 |
|
|
78 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
79 |
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
80 |
|
Only draw the raster layer if the gdal library is available. |
81 |
|
Addresses RTbug #1877. |
82 |
|
|
83 |
|
* test/test_classgen.py: Add tests for generate_singletons, |
84 |
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
85 |
|
(test_calculate_quantiles): Fix some tests to catch the new |
86 |
|
ValueError that is raised. |
87 |
|
|
88 |
|
* test/test_proj.py: Use renamed projection resource functions. |
89 |
|
|
90 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
91 |
|
test for saving classified layers. Fixes RTbug #1902. |
92 |
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
93 |
|
|
94 |
|
2003-06-12 Jan-Oliver Wagner <[email protected]> |
95 |
|
|
96 |
|
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
97 |
|
|
98 |
|
* Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog. |
99 |
|
|
100 |
|
* Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from |
101 |
|
multiplechoicedialog.py rather than from the wxPython library. |
102 |
|
|
103 |
|
2003-06-11 Frank Koormann <[email protected]> |
104 |
|
|
105 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
106 |
|
update. |
107 |
|
|
108 |
|
2003-06-11 Frank Koormann <[email protected]> |
109 |
|
|
110 |
|
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
111 |
|
determine the absolute .thuban/thuban directory under |
112 |
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
113 |
|
|
114 |
|
* Thuban/Model/resource.py: Use get_application_dir |
115 |
|
|
116 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
117 |
|
Use get_application_dir. |
118 |
|
|
119 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
120 |
|
|
121 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
122 |
|
the messages MAP_LAYERS_REMOVED messages |
123 |
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
124 |
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
125 |
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
126 |
|
dialog is showing is removed. |
127 |
|
|
128 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
129 |
|
|
130 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
131 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
132 |
|
modify it while iterating over it. |
133 |
|
|
134 |
|
* test/test_connector.py |
135 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
136 |
|
unsubscribing in a receiver works correctly. See docstring for |
137 |
|
details |
138 |
|
|
139 |
2003-06-10 Bernhard Herzog <[email protected]> |
2003-06-10 Bernhard Herzog <[email protected]> |
140 |
|
|
141 |
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |