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