1 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
4 |
|
self.selected_shape with the current selection to make sure the |
5 |
|
contents of the dialog are up to date when it's shown for the |
6 |
|
first time. |
7 |
|
The dialog used to work without this by luck. The recent fix to |
8 |
|
the connector module 'broke' a 'feature' the identify view was |
9 |
|
relying on, i.e that subscribing to a message in response to |
10 |
|
receiving a message of that type would mean that the new |
11 |
|
subscriber would also be called for the same message. |
12 |
|
|
13 |
|
2003-06-12 Jonathan Coles <[email protected]> |
14 |
|
|
15 |
|
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
16 |
|
the image is rendered. Fixes RTbug #1937. |
17 |
|
|
18 |
|
2003-06-12 Jonathan Coles <[email protected]> |
19 |
|
|
20 |
|
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
21 |
|
user directory if it doesn't exist on a posix system. |
22 |
|
Fixes RTbug #1815. |
23 |
|
|
24 |
|
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
25 |
|
called to get_application_dir here, so that the directory |
26 |
|
will only be called if this method is invoked. |
27 |
|
|
28 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear |
29 |
|
the projfilepath if no projection is selected. |
30 |
|
|
31 |
|
2003-06-12 Jonathan Coles <[email protected]> |
32 |
|
|
33 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
34 |
|
the scalebar if the current map has no projection set. |
35 |
|
|
36 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
37 |
|
projfilepath label to just the basename of the projection file |
38 |
|
rather than include the entire path. |
39 |
|
|
40 |
|
* Thuban/Model/resource.py: Fix missed proj functions that |
41 |
|
needed to be renamed. |
42 |
|
|
43 |
|
2003-06-12 Jonathan Coles <[email protected]> |
44 |
|
|
45 |
|
* Thuban/Model/classification.py: Removed assert statements that |
46 |
|
tested if the variable was an instance of Color. |
47 |
|
|
48 |
|
* Thuban/Model/color.py (Color): Remove commented code that isn't |
49 |
|
used. |
50 |
|
(Transparent): Renamed from NoColor. Doesn't inherit from Color. |
51 |
|
Fixes RTbug #1835. |
52 |
|
(Transparent.__eq__, Transparent.__ne, Transparent.__repr): New. |
53 |
|
Needed now that the class doesn't inherit from Color. |
54 |
|
|
55 |
|
2003-06-12 Jonathan Coles <[email protected]> |
56 |
|
|
57 |
|
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
58 |
|
check unicode strings. |
59 |
|
|
60 |
|
* test/test_layer.py: Check for existence of gdal. |
61 |
|
|
62 |
|
2003-06-12 Jonathan Coles <[email protected]> |
63 |
|
|
64 |
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
65 |
|
that was in load.py |
66 |
|
|
67 |
|
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
68 |
|
that was in save.py |
69 |
|
|
70 |
|
2003-06-12 Jonathan Coles <[email protected]> |
71 |
|
|
72 |
|
This is largely a collection of bug fixes. We also handle the |
73 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
74 |
|
classes were moved into there own files to resolve some circular |
75 |
|
import references and because they shouldn't really be in the |
76 |
|
file that is dediciated to reading/writing session files since |
77 |
|
they are also used elsewhere. |
78 |
|
|
79 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
80 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
81 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
82 |
|
|
83 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
84 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
85 |
|
Addresses RTbug #1877. |
86 |
|
|
87 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
88 |
|
xmlreader.py. |
89 |
|
|
90 |
|
2003-06-12 Jonathan Coles <[email protected]> |
91 |
|
|
92 |
|
This is largely a collection of bug fixes. We also handle the |
93 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
94 |
|
classes were moved into there own files to resolve some circular |
95 |
|
import references and because they shouldn't really be in the |
96 |
|
file that is dediciated to reading/writing session files since |
97 |
|
they are also used elsewhere. |
98 |
|
|
99 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
100 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
101 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
102 |
|
|
103 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
104 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
105 |
|
Addresses RTbug #1877. |
106 |
|
|
107 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
108 |
|
xmlreader.py. |
109 |
|
|
110 |
|
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
111 |
|
file xmlwriter.py. |
112 |
|
|
113 |
|
* Thuban/Model/resource.py: Renamed functions to following the |
114 |
|
function_names_with_underscores style. |
115 |
|
(has_gdal_support): New function that returns true if the gdal |
116 |
|
library is available. Addresses RTbug #1877. |
117 |
|
|
118 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
119 |
|
Display a message box if the gdal library is not available, but |
120 |
|
only if there are any layers that would use it. Addresses RTbug #1877. |
121 |
|
|
122 |
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
123 |
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
124 |
|
when using integers versus floats. |
125 |
|
|
126 |
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
127 |
|
determine if the "Add Image Layer" menu option should be |
128 |
|
greyed out or not. Addresses RTbug #1877. |
129 |
|
|
130 |
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
131 |
|
|
132 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
133 |
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
134 |
|
Only draw the raster layer if the gdal library is available. |
135 |
|
Addresses RTbug #1877. |
136 |
|
|
137 |
|
* test/test_classgen.py: Add tests for generate_singletons, |
138 |
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
139 |
|
(test_calculate_quantiles): Fix some tests to catch the new |
140 |
|
ValueError that is raised. |
141 |
|
|
142 |
|
* test/test_proj.py: Use renamed projection resource functions. |
143 |
|
|
144 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
145 |
|
test for saving classified layers. Fixes RTbug #1902. |
146 |
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
147 |
|
|
148 |
|
2003-06-12 Jan-Oliver Wagner <[email protected]> |
149 |
|
|
150 |
|
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
151 |
|
|
152 |
|
* Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog. |
153 |
|
|
154 |
|
* Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from |
155 |
|
multiplechoicedialog.py rather than from the wxPython library. |
156 |
|
|
157 |
|
2003-06-11 Frank Koormann <[email protected]> |
158 |
|
|
159 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
160 |
|
update. |
161 |
|
|
162 |
|
2003-06-11 Frank Koormann <[email protected]> |
163 |
|
|
164 |
|
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
165 |
|
determine the absolute .thuban/thuban directory under |
166 |
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
167 |
|
|
168 |
|
* Thuban/Model/resource.py: Use get_application_dir |
169 |
|
|
170 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
171 |
|
Use get_application_dir. |
172 |
|
|
173 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
174 |
|
|
175 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
176 |
|
the messages MAP_LAYERS_REMOVED messages |
177 |
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
178 |
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
179 |
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
180 |
|
dialog is showing is removed. |
181 |
|
|
182 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
183 |
|
|
184 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
185 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
186 |
|
modify it while iterating over it. |
187 |
|
|
188 |
|
* test/test_connector.py |
189 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
190 |
|
unsubscribing in a receiver works correctly. See docstring for |
191 |
|
details |
192 |
|
|
193 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
194 |
|
|
195 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
196 |
|
message. |
197 |
|
|
198 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
199 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
200 |
|
LAYER_CHANGED will still be sent if the classification changes. |
201 |
|
|
202 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
203 |
|
parameter so we can subscribe to some of its messages |
204 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
205 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
206 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
207 |
|
subscribed to in __init__ |
208 |
|
(Classifier.map_layers_removed) |
209 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
210 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
211 |
|
|
212 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
213 |
|
the map to the Classifier dialog |
214 |
|
|
215 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
216 |
|
SubscriberMixin as well so we can test messages |
217 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
218 |
|
messages |
219 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
220 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
221 |
|
for the modified flag too |
222 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
223 |
|
to check whether SetShapeStore sets the modified flag |
224 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
225 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
226 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
227 |
|
Add tests for the messages. This checks both the new |
228 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
229 |
|
|
230 |
|
2003-06-06 Jan-Oliver Wagner <[email protected]> |
231 |
|
|
232 |
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
233 |
|
the menu items. |
234 |
|
|
235 |
|
2003-06-05 Frank Koormann <[email protected]> |
236 |
|
|
237 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
238 |
|
Layout reimplemented without panel. Make life easier to fit the list |
239 |
|
in the dialog. |
240 |
|
|
241 |
2003-06-05 Frank Koormann <[email protected]> |
2003-06-05 Frank Koormann <[email protected]> |
242 |
|
|
243 |
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |