1 |
|
2003-06-19 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Doc/thuban.dtd (classification): Correct the content model of |
4 |
|
the classification element. |
5 |
|
(projection): Add the "name" attribute |
6 |
|
|
7 |
|
2003-06-19 Frank Koormann <[email protected]> |
8 |
|
|
9 |
|
MERGE from the greater-ms3 branch. |
10 |
|
|
11 |
|
* Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to |
12 |
|
scale if projection is latlong to get better estimate. |
13 |
|
|
14 |
|
Fix problem of hidden properties dialog under windows after double |
15 |
|
click on layer tree: |
16 |
|
The tree control always gets an Expanded / Collapsed event after |
17 |
|
the ItemActivated on double click, which raises the main window again. We add a second ItemActivated event to the queue, which simply |
18 |
|
raises the already displayed window. |
19 |
|
|
20 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Instance variable |
21 |
|
raiseProperties initialized to prevent endless loops |
22 |
|
(LegendTree._OnItemActivated): Depending on self.raiseProperties |
23 |
|
simply raise the properties or open the dialog and issue a second |
24 |
|
event. |
25 |
|
|
26 |
|
2003-06-18 Jonathan Coles <[email protected]> |
27 |
|
|
28 |
|
* setup.py: Fix a few problems that occured under Windows. |
29 |
|
|
30 |
|
2003-06-18 Jonathan Coles <[email protected]> |
31 |
|
|
32 |
|
When Thuban loaded the map was redrawn twice because the |
33 |
|
legend was being opened after the mainwindow was created |
34 |
|
and not during its creation. This meant the map was drawn |
35 |
|
initially and then had to be redrawn when the legend |
36 |
|
caused the display to change. Now the legend is opened |
37 |
|
in the mainwindow constructor which resolves this issue. |
38 |
|
|
39 |
|
Also, although we were checking for the existence of |
40 |
|
gdal and gdalwarp modules, the gdalwarp extension was |
41 |
|
still being compiled (which may fail if the system doesn't |
42 |
|
have gdal installed). the build_ext command to setup.py |
43 |
|
now accepts the flags --with-gdal and --without-gdal. |
44 |
|
If --without-gdal is specified setup.py will try to |
45 |
|
use the gdal parameters specified by gdal-config. Under |
46 |
|
windows, those parameters have to be set in setup.py |
47 |
|
as with proj4 an wxWindows. |
48 |
|
|
49 |
|
* setup.py: Use a list instead of seperate variables for |
50 |
|
extension parameters so we can create a generic function |
51 |
|
that runs an appropriate *-config script. |
52 |
|
(run_cs_script): Renamed from run_wx_script and modified |
53 |
|
to accept a second argument which is a list of lists to |
54 |
|
be filled in by the values returned from running the command. |
55 |
|
(thuban_build_ext): New. Extends the build_ext command and |
56 |
|
provides the options --with-gdal/--without-gdal which then |
57 |
|
optionally includes the gdalwarp extension. |
58 |
|
|
59 |
|
* Thuban/Model/resource.py: First check if we can import |
60 |
|
the gdalwarp Thuban extension before checking for gdal. |
61 |
|
Also added some comments. |
62 |
|
|
63 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if |
64 |
|
the map is None which may be the case if none has been loaded |
65 |
|
yet. |
66 |
|
|
67 |
|
* Thuban/UI/main.py (main): Remove call to ShowLegend. |
68 |
|
|
69 |
|
* Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend(). |
70 |
|
|
71 |
|
* Thuban/UI/renderer.py: Check for gdal support before importing |
72 |
|
gdalwarp. |
73 |
|
(MapRenderer.render_map): Only try to optimize if we have gdal |
74 |
|
support otherwise nothing will get drawn. |
75 |
|
|
76 |
|
* Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called |
77 |
|
during startup before a map has been created. Check if map is None |
78 |
|
before using it and do nothing if it is. |
79 |
|
|
80 |
|
2003-06-17 Jonathan Coles <[email protected]> |
81 |
|
|
82 |
|
Fix the problem with raster layers under Windows that caused |
83 |
|
Thuban to crash. The view should respond to layer projection |
84 |
|
changed events to update the display. Changes to a projection |
85 |
|
should not cause the map to be set to full extent. |
86 |
|
|
87 |
|
* Thuban/UI/view.py (MapCanvas.__init__): New instance variable |
88 |
|
current_map_proj to remember the current map projection so that |
89 |
|
when the projection changes we know what the previous projection |
90 |
|
was. |
91 |
|
(MapCanvas.SetMap): Unsubscribe and subscribe to |
92 |
|
LAYER_PROJECTION_CHANGED events. |
93 |
|
(MapCanvas.projection_changed): Split into two methods that respond |
94 |
|
to map and layer projection changes. |
95 |
|
(MapCanvas.map_projection_changed): New. Takes the current view and |
96 |
|
projects it using the new projection. This does not cause the |
97 |
|
map to be redrawn at full extent. |
98 |
|
(MapCanvas.layer_projection_changed): New. Cause a redraw which |
99 |
|
will draw each layer in its new projection. |
100 |
|
|
101 |
|
* extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call |
102 |
|
VSIFClose() not VSIFCloseL() to close the file. Fixes a crash |
103 |
|
under Windows. |
104 |
|
|
105 |
|
* extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be |
106 |
|
to twice sizeof(void*) because there are two digits for each |
107 |
|
hex byte. |
108 |
|
|
109 |
|
2003-06-16 Bernhard Herzog <[email protected]> |
110 |
|
|
111 |
|
Update to the layer interface: Direct access to the table, |
112 |
|
shapetable, shapefile and filename attributes is now actively |
113 |
|
deprecated by issuing deprecation warnings for all places where |
114 |
|
this happens. |
115 |
|
|
116 |
|
* Thuban/Model/layer.py (Layer.__getattr__): New. Implement access |
117 |
|
to the instance variables table, shapetable, shapefile and |
118 |
|
filename via __getattr__ so that we can issue a deprecation |
119 |
|
warning. |
120 |
|
(Layer.SetShapeStore): Don't set the deprecated instance variables |
121 |
|
any more |
122 |
|
(Layer.SetShapeStore): Don't use deprecated layer instance |
123 |
|
variables |
124 |
|
(Layer.Destroy): No need to explicitly remove the instance |
125 |
|
variables any more |
126 |
|
(Layer.GetFieldType, Layer.Shape): Don't use deprecated layer |
127 |
|
instance variables |
128 |
|
|
129 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__) |
130 |
|
(GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve) |
131 |
|
(GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't |
132 |
|
use deprecated layer instance variables |
133 |
|
|
134 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Don't use |
135 |
|
deprecated layer instance variables |
136 |
|
|
137 |
|
* Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape) |
138 |
|
(IdentifyGridCtrl.selected_shape): Don't set the deprecated layer |
139 |
|
instance variables |
140 |
|
|
141 |
|
* Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use |
142 |
|
deprecated layer instance variables |
143 |
|
|
144 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use |
145 |
|
deprecated layer instance variables |
146 |
|
|
147 |
|
* Thuban/Model/save.py (SessionSaver.write_layer): Don't use |
148 |
|
deprecated layer instance variables |
149 |
|
|
150 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer) |
151 |
|
(MapRenderer.polygon_render_param): Don't use deprecated layer instance |
152 |
|
variables |
153 |
|
|
154 |
|
* test/runtests.py (main): Turn Thuban's deprecation warnings into |
155 |
|
errors so that they're cought by the tests |
156 |
|
|
157 |
|
* test/test_load.py (TestSingleLayer.test): Don't use deprecated |
158 |
|
layer instance variables |
159 |
|
|
160 |
|
2003-06-16 Jonathan Coles <[email protected]> |
161 |
|
|
162 |
|
Fix a problem under Windows whereby if the user double-clicks on a |
163 |
|
layer in the legend that tree item will expand or collapse as well |
164 |
|
as open the layer properties dialog. The state of the tree item |
165 |
|
should not be affected. |
166 |
|
|
167 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Add instance variable |
168 |
|
preventExpandCollapse and subscribe to expanding and collapsing |
169 |
|
events. |
170 |
|
(LegendTree.OnItemExpandCollapse): New. Responds to expanding and |
171 |
|
collapsing events and will veto the event if it has been triggered |
172 |
|
by the user double clicking on a layer. |
173 |
|
(LegendTree._OnItemActivated): Set preventExpandCollapse to indicate |
174 |
|
that an expanding/collapsing event should be vetoed. |
175 |
|
|
176 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
177 |
|
|
178 |
|
* Thuban/UI/classifier.py (Classifier.OnClose) |
179 |
|
(Classifier.map_layers_removed) |
180 |
|
(Classifier.layer_shapestore_replaced): Unsubscribe the messages |
181 |
|
in OnClose and not in map_layers_removed or |
182 |
|
layer_shapestore_replaced to make sure it always happens when the |
183 |
|
dialog is closed |
184 |
|
|
185 |
|
2003-06-13 Jonathan Coles <[email protected]> |
186 |
|
|
187 |
|
This puts back a fix for Windows where a panel is needed so that |
188 |
|
the background of the table view appears correctly. |
189 |
|
|
190 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Add a panel |
191 |
|
object that can be used by derived classes to place any |
192 |
|
controls (including the grid) onto. |
193 |
|
(QueryTableFrame.__init__): Use the panel as the parent window |
194 |
|
for all the controls. Reparent the grid so that the panel is |
195 |
|
the parent. Call UpdateStatusText() to correctly initialize |
196 |
|
the status bar. |
197 |
|
|
198 |
|
2003-06-13 Jonathan Coles <[email protected]> |
199 |
|
|
200 |
|
* Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits |
201 |
|
from wxFrame (as opposed to wxDialog like the other classes) |
202 |
|
but otherwise behaves like the other classes. This is needed |
203 |
|
for the TableView which isn't really a dialog and needs to |
204 |
|
have a status bar and control buttons. |
205 |
|
|
206 |
|
* Thuban/UI/tableview.py (TableGrid.__init__): Create an |
207 |
|
instance variable to keep track of how many rows are selected. |
208 |
|
Subscribe once to the the events we are interested in. |
209 |
|
(ThubanGrid.OnRangeSelect): Only handle event if event handling |
210 |
|
hasn't been turned off. |
211 |
|
(ThubanGrid.OnSelectCell): Only handle event if event handling |
212 |
|
hasn't been turned off. |
213 |
|
(ThubanGrid.ToggleEventListeners): Rather than subscribe None |
214 |
|
as an event listener (which changes the event handler stack) |
215 |
|
simply set an instance variable to False. This is checked in |
216 |
|
the event handlers. |
217 |
|
(ThubanGrid.GetNumberSelected): Return the number of currently |
218 |
|
selected rows. |
219 |
|
(TableFrame): Inherit from ThubanFrame so we can have a |
220 |
|
status bar and control buttons. |
221 |
|
(QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942. |
222 |
|
Explicitly set which items are selected in the operator choice and |
223 |
|
action choice so there is always a valid selection. Fixes RTbug #1941. |
224 |
|
Subscribe to grid cell selection events so we can update the |
225 |
|
status bar. |
226 |
|
(QueryTableFrame.UpdateStatusText): Update the status bar with |
227 |
|
how many rows are in the grid, how many columns, and how many |
228 |
|
rows are selected. |
229 |
|
(QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell): |
230 |
|
Call UpdateStatusText when cells are (de)selected. |
231 |
|
(QueryTableFrame.OnQuery): Use the string value in the value |
232 |
|
combo if either the selected item index is 0 or if the string |
233 |
|
cannot be found in the predefined list (this happens if the |
234 |
|
user changes the text). Fixes RTbug #1940. |
235 |
|
Only turn off the grid event listeners if there a query comes |
236 |
|
back with a none empty list of ids. in the case that the list |
237 |
|
is empty this causes a grid.ClearSelection() call to actually |
238 |
|
clear the grid selection which causes the selected items in |
239 |
|
the map to be deselected. Fixes RTbug #1939. |
240 |
|
|
241 |
|
* test/test_save.py (XMLWriterTest.Encode): Check return values. |
242 |
|
Fixes RTbug #1851. |
243 |
|
|
244 |
|
2003-06-13 Bernhard Herzog <[email protected]> |
245 |
|
|
246 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): Call |
247 |
|
self.selected_shape with the current selection to make sure the |
248 |
|
contents of the dialog are up to date when it's shown for the |
249 |
|
first time. |
250 |
|
The dialog used to work without this by luck. The recent fix to |
251 |
|
the connector module 'broke' a 'feature' the identify view was |
252 |
|
relying on, i.e that subscribing to a message in response to |
253 |
|
receiving a message of that type would mean that the new |
254 |
|
subscriber would also be called for the same message. |
255 |
|
|
256 |
|
2003-06-12 Jonathan Coles <[email protected]> |
257 |
|
|
258 |
|
* extensions/thuban/gdalwarp.cpp: Removed debug printing as |
259 |
|
the image is rendered. Fixes RTbug #1937. |
260 |
|
|
261 |
|
2003-06-12 Jonathan Coles <[email protected]> |
262 |
|
|
263 |
|
* Thuban/Lib/fileutil.py: As is done under Windows, create the |
264 |
|
user directory if it doesn't exist on a posix system. |
265 |
|
Fixes RTbug #1815. |
266 |
|
|
267 |
|
* Thuban/Model/resource.py (get_user_proj_files): Moved the |
268 |
|
called to get_application_dir here, so that the directory |
269 |
|
will only be called if this method is invoked. |
270 |
|
|
271 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear |
272 |
|
the projfilepath if no projection is selected. |
273 |
|
|
274 |
|
2003-06-12 Jonathan Coles <[email protected]> |
275 |
|
|
276 |
|
* Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw |
277 |
|
the scalebar if the current map has no projection set. |
278 |
|
|
279 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the |
280 |
|
projfilepath label to just the basename of the projection file |
281 |
|
rather than include the entire path. |
282 |
|
|
283 |
|
* Thuban/Model/resource.py: Fix missed proj functions that |
284 |
|
needed to be renamed. |
285 |
|
|
286 |
|
2003-06-12 Jonathan Coles <[email protected]> |
287 |
|
|
288 |
|
* Thuban/Model/classification.py: Removed assert statements that |
289 |
|
tested if the variable was an instance of Color. |
290 |
|
|
291 |
|
* Thuban/Model/color.py (Color): Remove commented code that isn't |
292 |
|
used. |
293 |
|
(Transparent): Renamed from NoColor. Doesn't inherit from Color. |
294 |
|
Fixes RTbug #1835. |
295 |
|
(Transparent.__eq__, Transparent.__ne, Transparent.__repr): New. |
296 |
|
Needed now that the class doesn't inherit from Color. |
297 |
|
|
298 |
|
2003-06-12 Jonathan Coles <[email protected]> |
299 |
|
|
300 |
|
* test/test_save.py (XMLWriterTest.testEncode): Explicitly |
301 |
|
check unicode strings. |
302 |
|
|
303 |
|
* test/test_layer.py: Check for existence of gdal. |
304 |
|
|
305 |
|
2003-06-12 Jonathan Coles <[email protected]> |
306 |
|
|
307 |
|
* Thuban/Model/xmlreader.py: New. Contains the XMLReader class |
308 |
|
that was in load.py |
309 |
|
|
310 |
|
* Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class |
311 |
|
that was in save.py |
312 |
|
|
313 |
|
2003-06-12 Jonathan Coles <[email protected]> |
314 |
|
|
315 |
|
This is largely a collection of bug fixes. We also handle the |
316 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
317 |
|
classes were moved into there own files to resolve some circular |
318 |
|
import references and because they shouldn't really be in the |
319 |
|
file that is dediciated to reading/writing session files since |
320 |
|
they are also used elsewhere. |
321 |
|
|
322 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
323 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
324 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
325 |
|
|
326 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
327 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
328 |
|
Addresses RTbug #1877. |
329 |
|
|
330 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
331 |
|
xmlreader.py. |
332 |
|
|
333 |
|
2003-06-12 Jonathan Coles <[email protected]> |
334 |
|
|
335 |
|
This is largely a collection of bug fixes. We also handle the |
336 |
|
case where gdal is not on the system. The XMLReader and XMLWriter |
337 |
|
classes were moved into there own files to resolve some circular |
338 |
|
import references and because they shouldn't really be in the |
339 |
|
file that is dediciated to reading/writing session files since |
340 |
|
they are also used elsewhere. |
341 |
|
|
342 |
|
* Thuban/Model/classgen.py: Renamed functions to follow the |
343 |
|
function_names_with_underscores style. Fixes RTbug #1903. |
344 |
|
(calculate_quantiles): Raise ValueError if 'percents' is invalid. |
345 |
|
|
346 |
|
* Thuban/Model/layer.py: Import gdal only if it available. |
347 |
|
(RasterLayer): Handle the case where the gdal library is unavailable. |
348 |
|
Addresses RTbug #1877. |
349 |
|
|
350 |
|
* Thuban/Model/load.py (XMLReader): Moved into seperate file |
351 |
|
xmlreader.py. |
352 |
|
|
353 |
|
* Thuban/Model/save.py (escape, XMLWriter): Moved into seperate |
354 |
|
file xmlwriter.py. |
355 |
|
|
356 |
|
* Thuban/Model/resource.py: Renamed functions to following the |
357 |
|
function_names_with_underscores style. |
358 |
|
(has_gdal_support): New function that returns true if the gdal |
359 |
|
library is available. Addresses RTbug #1877. |
360 |
|
|
361 |
|
* Thuban/UI/application.py (ThubanApplication.OpenSession): |
362 |
|
Display a message box if the gdal library is not available, but |
363 |
|
only if there are any layers that would use it. Addresses RTbug #1877. |
364 |
|
|
365 |
|
* Thuban/UI/classgen.py: Use renamed projection resource functions. |
366 |
|
(GenUniformPanel.__CalcStepping): Fix a slight discrepency |
367 |
|
when using integers versus floats. |
368 |
|
|
369 |
|
* Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to |
370 |
|
determine if the "Add Image Layer" menu option should be |
371 |
|
greyed out or not. Addresses RTbug #1877. |
372 |
|
|
373 |
|
* Thuban/UI/projdialog.py: Use renamed projection resource functions. |
374 |
|
|
375 |
|
* Thuban/UI/renderer.py (MapRenderer.render_map): Only try to |
376 |
|
optimize if a raster layer is visible. Fixes RTbug #1931. |
377 |
|
Only draw the raster layer if the gdal library is available. |
378 |
|
Addresses RTbug #1877. |
379 |
|
|
380 |
|
* test/test_classgen.py: Add tests for generate_singletons, |
381 |
|
generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903. |
382 |
|
(test_calculate_quantiles): Fix some tests to catch the new |
383 |
|
ValueError that is raised. |
384 |
|
|
385 |
|
* test/test_proj.py: Use renamed projection resource functions. |
386 |
|
|
387 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): New |
388 |
|
test for saving classified layers. Fixes RTbug #1902. |
389 |
|
(XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851. |
390 |
|
|
391 |
|
2003-06-12 Jan-Oliver Wagner <[email protected]> |
392 |
|
|
393 |
|
Fix for http://intevation.de/rt/webrt?serial_num=1900. |
394 |
|
|
395 |
|
* Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog. |
396 |
|
|
397 |
|
* Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from |
398 |
|
multiplechoicedialog.py rather than from the wxPython library. |
399 |
|
|
400 |
|
2003-06-11 Frank Koormann <[email protected]> |
401 |
|
|
402 |
|
* Thuban/Lib/fileutil.py (get_application_dir): Minor stability |
403 |
|
update. |
404 |
|
|
405 |
|
2003-06-11 Frank Koormann <[email protected]> |
406 |
|
|
407 |
|
* Thuban/Lib/fileutil.py (get_application_dir): New function to |
408 |
|
determine the absolute .thuban/thuban directory under |
409 |
|
"posix" (os.expanduser) and "nt" (read AppData registry key). |
410 |
|
|
411 |
|
* Thuban/Model/resource.py: Use get_application_dir |
412 |
|
|
413 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
414 |
|
Use get_application_dir. |
415 |
|
|
416 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
417 |
|
|
418 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to |
419 |
|
the messages MAP_LAYERS_REMOVED messages |
420 |
|
(LayerTableFrame.OnClose): Unsubscribe from it. |
421 |
|
(LayerTableFrame.map_layers_removed): New. Receiver for |
422 |
|
MAP_LAYERS_REMOVED. Close the dialog when the layer whose the |
423 |
|
dialog is showing is removed. |
424 |
|
|
425 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
426 |
|
|
427 |
|
* Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy |
428 |
|
of the receivers list so that unsubscribing in a receiver doesn't |
429 |
|
modify it while iterating over it. |
430 |
|
|
431 |
|
* test/test_connector.py |
432 |
|
(ConnectorTest.test_disconnect_in_receiver): New. Test whether |
433 |
|
unsubscribing in a receiver works correctly. See docstring for |
434 |
|
details |
435 |
|
|
436 |
|
2003-06-10 Bernhard Herzog <[email protected]> |
437 |
|
|
438 |
|
* Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New |
439 |
|
message. |
440 |
|
|
441 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Send |
442 |
|
LAYER_SHAPESTORE_REPLACED when the shapestore changes. A |
443 |
|
LAYER_CHANGED will still be sent if the classification changes. |
444 |
|
|
445 |
|
* Thuban/UI/classifier.py (Classifier.__init__): Add the map as |
446 |
|
parameter so we can subscribe to some of its messages |
447 |
|
(Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED |
448 |
|
and the layer's LAYER_SHAPESTORE_REPLACED |
449 |
|
(Classifier.unsubscribe_messages): New. Unsubscribe from message |
450 |
|
subscribed to in __init__ |
451 |
|
(Classifier.map_layers_removed) |
452 |
|
(Classifier.layer_shapestore_replaced): receivers for the messages |
453 |
|
subscribed to in __init__. Unsubscribe and close the dialog |
454 |
|
|
455 |
|
* Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass |
456 |
|
the map to the Classifier dialog |
457 |
|
|
458 |
|
* test/test_layer.py (SetShapeStoreTests): Derive from |
459 |
|
SubscriberMixin as well so we can test messages |
460 |
|
(SetShapeStoreTests.setUp): Subscribe to some of the layer's |
461 |
|
messages |
462 |
|
(SetShapeStoreTests.tearDown): Clear the messages again |
463 |
|
(SetShapeStoreTests.test_sanity): Expand the doc-string and check |
464 |
|
for the modified flag too |
465 |
|
(SetShapeStoreTests.test_set_shape_store_modified_flag): New test |
466 |
|
to check whether SetShapeStore sets the modified flag |
467 |
|
(SetShapeStoreTests.test_set_shape_store_different_field_name) |
468 |
|
(SetShapeStoreTests.test_set_shape_store_same_field) |
469 |
|
(SetShapeStoreTests.test_set_shape_store_same_field_different_type): |
470 |
|
Add tests for the messages. This checks both the new |
471 |
|
LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED |
472 |
|
|
473 |
|
2003-06-06 Jan-Oliver Wagner <[email protected]> |
474 |
|
|
475 |
|
* Thuban/UI/mainwindow.py: Improved and partly added help texts for |
476 |
|
the menu items. |
477 |
|
|
478 |
|
2003-06-05 Frank Koormann <[email protected]> |
479 |
|
|
480 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
481 |
|
Layout reimplemented without panel. Make life easier to fit the list |
482 |
|
in the dialog. |
483 |
|
|
484 |
|
2003-06-05 Frank Koormann <[email protected]> |
485 |
|
|
486 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice |
487 |
|
once on initialisation (Former implementation resulted in multiple |
488 |
|
entries for each projection). |
489 |
|
(ProjFrame.__FillAvailList): selectProj as second optional parameter, |
490 |
|
if set, select the projection found under the specified name. This |
491 |
|
overwrites any other selection estimate. |
492 |
|
Removed projchoice filling from this method. |
493 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList): |
494 |
|
Updated call of ProjFrame.__FillAvailList |
495 |
|
(LCCPanel._DoLayout): Moved parameter controls in more common order. |
496 |
|
|
497 |
|
* Resources/Projections/defaults.proj: Extended defaults representing |
498 |
|
various common European projections. |
499 |
|
|
500 |
|
2003-06-05 Frank Koormann <[email protected]> |
501 |
|
|
502 |
|
* Thuban/UI/identifyview.py (IdentifyView.__init__): |
503 |
|
Use ListCtrl instead of GridCtrl |
504 |
|
|
505 |
|
* Thuban/Model/resource.py: |
506 |
|
Guess location of .thuban directory from tempdir parent directory. |
507 |
|
|
508 |
|
* Thuban/UI/application.py (ThubanApplication.read_startup_files): |
509 |
|
Guess location of .thuban directory from tempdir parent directory. |
510 |
|
|
511 |
|
2003-06-04 Bernhard Herzog <[email protected]> |
512 |
|
|
513 |
|
Do not cache the values returned by the tree widget's |
514 |
|
GetFirstChild and GetNextChild methods because it led to lots of |
515 |
|
segfaults. The new way requires more brute force but is more |
516 |
|
reliable. |
517 |
|
|
518 |
|
* Thuban/UI/legend.py (LegendTree.__init__): Remove instance |
519 |
|
variable layer2id |
520 |
|
(LegendTree.find_layer): New method to do with brute force what |
521 |
|
layer2id tried to accomplish |
522 |
|
(LegendTree._OnMsgLayerChanged) |
523 |
|
(LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer): |
524 |
|
Use find_layer instead of layer2id |
525 |
|
(LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to |
526 |
|
update layer2id anymore |
527 |
|
(LegendTree._OnMsgMapLayersRemoved) |
528 |
|
(LegendTree._OnMsgMapLayersAdded): Get by without layer2id. |
529 |
|
|
530 |
|
2003-06-03 Thomas Koester <[email protected]> |
531 |
|
|
532 |
|
* Thuban/Model/classgen.py (GenQuantiles0): New function. |
533 |
|
|
534 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
535 |
|
|
536 |
|
* Thuban/UI/mainwindow.py (layer_rename command, table_rename command): |
537 |
|
New commands. |
538 |
|
(main_menu): Add the new commands. |
539 |
|
(MainWindow.TableRename): New. Implementation of the table_rename |
540 |
|
command. |
541 |
|
(MainWindow.RenameLayer): New. Implementation of the layer_rename |
542 |
|
command. |
543 |
|
|
544 |
|
* Thuban/Model/session.py (Session.AddTable): call self.changed to |
545 |
|
set the modified flag |
546 |
|
|
547 |
|
* test/test_session.py (TestSessionSimple.test_add_table): Test |
548 |
|
whether the modified flag is set properly |
549 |
|
|
550 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call changed |
551 |
|
instead of issue so that the modified flags get updated. |
552 |
|
|
553 |
|
* test/test_base.py (SomeTitledObject): Derive from Modifiable |
554 |
|
instead of Publisher to reflect reality better and to accomodate |
555 |
|
the fact that SetTitle now calls changed instead of issue |
556 |
|
|
557 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
558 |
|
|
559 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource |
560 |
|
acquisition has to happen before the try in a try-finally. |
561 |
|
|
562 |
|
2003-06-02 Bernhard Herzog <[email protected]> |
563 |
|
|
564 |
|
* Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's |
565 |
|
possible that a layer is removed that is not currently selected in |
566 |
|
the legend so don't check for this. |
567 |
|
|
568 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
569 |
|
|
570 |
|
* Thuban/Model/layer.py (Layer.Destroy): Set all instance |
571 |
|
variables to None that have direct or indirect references to |
572 |
|
shapefiles or dbf files to make sure that they do go away and the |
573 |
|
files are closed. |
574 |
|
|
575 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
576 |
|
|
577 |
|
* Thuban/UI/legend.py (LegendTree.GetRootItem): Reset |
578 |
|
availImgListIndices when a new image list is created |
579 |
|
|
580 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
581 |
|
|
582 |
|
* Thuban/UI/legend.py (LegendTree.__init__): New instance variable |
583 |
|
changing_selection to indicate whether the LegendTree code itself |
584 |
|
is currently changing the selection |
585 |
|
(LegendTree.normalize_selection): New method to normalize the |
586 |
|
selection by selecting the layer item even if the user clicked on |
587 |
|
the classification. |
588 |
|
(LegendTree._OnSelChanged): normalize the selection. This works |
589 |
|
around a bug in wx which doesn't keep track of the selection |
590 |
|
properly when subtrees are deleted. |
591 |
|
|
592 |
|
2003-05-30 Bernhard Herzog <[email protected]> |
593 |
|
|
594 |
|
* Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the |
595 |
|
maximum and minimum scale factors. |
596 |
|
|
597 |
|
* test/test_classgen.py (ClassGenTest.test): Update to reflect the |
598 |
|
changes in classgen.py |
599 |
|
|
600 |
|
2003-05-30 Jonathan Coles <[email protected]> |
601 |
|
|
602 |
|
* Thuban/Model/classgen.py: Remove ClassGenerator class but make |
603 |
|
all the methods functions. Fixes RTBug #1903. |
604 |
|
|
605 |
|
* Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed |
606 |
|
to MoveLayerToTop and MoveLayerToBottom respectively. Fixes |
607 |
|
RTBug #1907. |
608 |
|
|
609 |
|
* Thuban/UI/classgen.py: Use classgen functions that were part |
610 |
|
of the ClassGenerator class. Put try/finally blocks around |
611 |
|
code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes |
612 |
|
RTBug #1904. |
613 |
|
|
614 |
|
* Thuban/UI/classifier.py: Remove unused import of ClassGenerator. |
615 |
|
|
616 |
|
* Thuban/UI/legend.py: The legend was cleared and repopulated any |
617 |
|
time something changed which caused some state to be lost such |
618 |
|
as which children were expanded or collapsed. Fixes RTBug #1901. |
619 |
|
(LegendTree._OnMsgMapLayersAdded): Add only new layers. |
620 |
|
(LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in |
621 |
|
the legend but not in the map. |
622 |
|
(LegendTree.__FillTree): Move main functionality out into smaller |
623 |
|
methods that can be used by other methods. |
624 |
|
(LegendTree.__FillTreeLayer): Reuse old slots in the image list |
625 |
|
if they are available. |
626 |
|
(LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so |
627 |
|
that we override the wxTreeCtrl method. Iterate over children |
628 |
|
and call __RemoveLayer. |
629 |
|
(LegendTree.__AddLayer): New. Add a new layer to the legend. |
630 |
|
(LegendTree.__RemoveLayer): Remove a layer from the legend. |
631 |
|
(LegendTree.DeleteChildren): New, overrides wxTreeCtrl method. |
632 |
|
Should only be called with the id of a layer branch. |
633 |
|
(LegendTree.GetRootItem): New, overrides wxTreeCtrl method. |
634 |
|
Returns the root item or creates one if necessary. |
635 |
|
|
636 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call |
637 |
|
ProjectRasterFile with tuple arguments instead of strings. |
638 |
|
|
639 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code |
640 |
|
with try/finally. Fixes RTBug #1904. |
641 |
|
|
642 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code |
643 |
|
with try/finally. Fixes RTBug #1904. |
644 |
|
(MapCanvas.FitSelectedToWindow): If a single point is selected |
645 |
|
simply center it on the display. Fixes RTBug #1849. |
646 |
|
|
647 |
|
* extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp |
648 |
|
to be compiled as a standalone app. Now the code can only be |
649 |
|
called from Python which simplifies the parameter passing. |
650 |
|
(ProjectRasterFile): Handle Python arguments. Remove code that |
651 |
|
checks for a destination dataset. Add more clean up code. |
652 |
|
|
653 |
|
* test/test_map.py (TestMapWithContents.test_raise_layer_top, |
654 |
|
TestMapWithContents.test_lower_layer_bottom): |
655 |
|
Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively. |
656 |
|
Fixes RTBug #1907. |
657 |
|
|
658 |
|
* Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full |
659 |
|
extent to the map when the legend is toggled. Fixes RTBug #1881. |
660 |
|
|
661 |
|
2003-05-29 Jan-Oliver Wagner <[email protected]> |
662 |
|
|
663 |
|
* Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now |
664 |
|
unsubscribes all that is subcribed in __init__. |
665 |
|
|
666 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
667 |
|
|
668 |
|
* Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer) |
669 |
|
(MainWindow.CanDuplicateLayer): New methods to implement the |
670 |
|
Layer/Duplicate command. |
671 |
|
(layer_duplicate command): New. |
672 |
|
(main_menu): Add layer_duplicate to the Layer menu. |
673 |
|
|
674 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
675 |
|
|
676 |
|
* Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own |
677 |
|
renderer so that NULL/None values get displayed differently (by a |
678 |
|
gray rectangle). |
679 |
|
(TableGrid.__init__): Override the default renderers |
680 |
|
|
681 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
682 |
|
|
683 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Set the |
684 |
|
classification to "None" if the type of the field has changed. |
685 |
|
|
686 |
|
* test/test_layer.py (SetShapeStoreTests): New. Class with a few |
687 |
|
test for the Layer.SetShapeStore method |
688 |
|
|
689 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
690 |
|
|
691 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer |
692 |
|
does not necessarily have a filename). |
693 |
|
|
694 |
|
2003-05-28 Jan-Oliver Wagner <[email protected]> |
695 |
|
|
696 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow): |
697 |
|
sort the selection list for the dialog. |
698 |
|
|
699 |
|
2003-05-28 Frank Koormann <[email protected]> |
700 |
|
|
701 |
|
* extensions/thuban/wxproj.cpp |
702 |
|
(project_point): Removed cast to int for projected point coordinates. |
703 |
|
(shape_centroid): Return last point if all polygon vertices fall |
704 |
|
to one point. |
705 |
|
|
706 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
707 |
|
|
708 |
|
* Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope |
709 |
|
with layers that don't have shapestores, i.e. raster layers. |
710 |
|
|
711 |
|
2003-05-28 Bernhard Herzog <[email protected]> |
712 |
|
|
713 |
|
* Thuban/Model/table.py (DBFTable.__init__): Omit the extension |
714 |
|
when determining the title from the filename. |
715 |
|
|
716 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): Update to |
717 |
|
reflect changes in the way the title is derived from the filename |
718 |
|
|
719 |
|
2003-05-28 Frank Koormann <[email protected]> |
720 |
|
|
721 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): |
722 |
|
Added wxDEFAULT_DIALOG_STYLE to show table dialog styles. |
723 |
|
|
724 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
725 |
|
|
726 |
|
* Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also |
727 |
|
delegate SelectedLayer. |
728 |
|
(MainWindow.LayerUnjoinTable): Implement. |
729 |
|
(_can_unjoin): New. Helper function for the sensitivity of the |
730 |
|
layer/unjoin command. |
731 |
|
|
732 |
|
* Thuban/Model/data.py (ShapefileStore.OrigShapeStore) |
733 |
|
(DerivedShapeStore.OrigShapeStore): New. Return the original |
734 |
|
shapestore. Used to figure out how to unjoin. |
735 |
|
(DerivedShapeStore.Shapefile): Fix a typo. |
736 |
|
|
737 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
738 |
|
|
739 |
|
* Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as |
740 |
|
well |
741 |
|
(JoinDialog.__init__): Use the layer parameter and only build the |
742 |
|
left choice when a layer is given |
743 |
|
(JoinDialog.OnJoin): Handle layer joins as well |
744 |
|
(JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case |
745 |
|
that the user selects the "Select..." item. The sensitivitly |
746 |
|
updating is now in update_sensitivity |
747 |
|
(JoinDialog.y): New method to refactor the sensitivity update of |
748 |
|
the join button into its own method. |
749 |
|
|
750 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement. |
751 |
|
|
752 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
753 |
|
|
754 |
|
* Thuban/UI/mainwindow.py (table_close command): Make it sensitive |
755 |
|
iff there are unreferenced tables in the session |
756 |
|
|
757 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
758 |
|
|
759 |
|
* Thuban/Model/messages.py (TABLE_REMOVED): New message. |
760 |
|
|
761 |
|
* Thuban/Model/session.py (Session.UnreferencedTables): New method |
762 |
|
to return tables that are not referenced by other tables or shape |
763 |
|
stores and can be removed. |
764 |
|
(Session.RemoveTable): Issue a TABLE_REMOVED message after |
765 |
|
removing the table |
766 |
|
|
767 |
|
* Thuban/UI/mainwindow.py: Remove unused imports |
768 |
|
(MainWindow.TableClose): Implement. |
769 |
|
|
770 |
|
* Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some |
771 |
|
messages so that the frame will be automatically closed when a new |
772 |
|
session is opened or the table is removed. |
773 |
|
(TableFrame.OnClose): Unsubscribe the Subscriptions made in |
774 |
|
__init__ |
775 |
|
(TableFrame.close_on_session_replaced) |
776 |
|
(TableFrame.close_on_table_removed): New. Subscribers that close |
777 |
|
the window |
778 |
|
|
779 |
|
* test/test_session.py (TestSessionMessages.test_remove_table) |
780 |
|
(TestSessionSimple.test_remove_table): Move the test to |
781 |
|
TestSessionSimple and add test for the TABLE_REMOVED message |
782 |
|
(TestSessionBase.setUp): Also subscribe to TABLE_REMOVED |
783 |
|
(TestSessionSimple.test_unreferenced_tables) New. Test for the |
784 |
|
UnreferencedTables method. |
785 |
|
(UnreferencedTablesTests): New. Class with some more sophisticated |
786 |
|
tests for UnreferencedTables. |
787 |
|
|
788 |
|
2003-05-27 Frank Koormann <[email protected]> |
789 |
|
|
790 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election" |
791 |
|
display has some unwanted side effects. Removed again. |
792 |
|
|
793 |
|
2003-05-27 Frank Koormann <[email protected]> |
794 |
|
|
795 |
|
* Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend. |
796 |
|
|
797 |
|
* Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer" |
798 |
|
|
799 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
800 |
|
|
801 |
|
* test/test_menu.py (MenuTest.test): Added test for |
802 |
|
Menu.RemoveItem(). |
803 |
|
|
804 |
|
* Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from |
805 |
|
the menu. |
806 |
|
|
807 |
|
2003-05-27 Frank Koormann <[email protected]> |
808 |
|
|
809 |
|
Nonmodal dialogs without parent (i.e. they can fall behind the main |
810 |
|
window) |
811 |
|
|
812 |
|
* Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy |
813 |
|
all dialogs in the dialogs dictionary and the canvas. |
814 |
|
|
815 |
|
* Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without |
816 |
|
parent, i.e. can fall behind other windows. |
817 |
|
(NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog |
818 |
|
dictionary before removing it. |
819 |
|
|
820 |
|
* Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog |
821 |
|
|
822 |
|
* Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog |
823 |
|
* Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog |
824 |
|
* Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog |
825 |
|
|
826 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
827 |
|
|
828 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a |
829 |
|
tableview dialog |
830 |
|
(MainWindow.TableShow): Use ShowTableView to open the dialogs. |
831 |
|
Also, don't use the table's titles as the dialog names. The titles |
832 |
|
aren't guaranteed to be unique. |
833 |
|
(MainWindow.TableOpen): Open a table view dialog after opening the |
834 |
|
table |
835 |
|
|
836 |
|
2003-05-27 Bernhard Herzog <[email protected]> |
837 |
|
|
838 |
|
* Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its |
839 |
|
effect can be achieved by simply closing the window showing the |
840 |
|
table. |
841 |
|
(MainWindow.TableHide): Removed. |
842 |
|
(main_menu): Removed "table_hide" |
843 |
|
|
844 |
|
2003-05-27 Frank Koormann <[email protected]> |
845 |
|
|
846 |
|
Fix legend tree display problems under Win32 |
847 |
|
|
848 |
|
* Thuban/UI/legend.py: BMP_SIZE_W = 15 |
849 |
|
(LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title. |
850 |
|
(LegendTree.__FillTreeLayer): Explicitely set SelectedImage. |
851 |
|
|
852 |
|
* Resources/Bitmaps/legend_icon_map.xpm: New icon for legend. |
853 |
|
|
854 |
|
2003-05-27 Jan-Oliver Wagner <[email protected]> |
855 |
|
|
856 |
|
* Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter |
857 |
|
'after' now allows to insert separators almost anywhere in the menu. |
858 |
|
|
859 |
|
2003-05-27 Frank Koormann <[email protected]> |
860 |
|
|
861 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the |
862 |
|
"S" of selection box label to hint on hot key (Alt-S). Works under |
863 |
|
Win32 but is ignored under GTK. |
864 |
|
|
865 |
|
2003-05-26 Frank Koormann <[email protected]> |
866 |
|
|
867 |
|
* Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout): |
868 |
|
Center Choices. |
869 |
|
|
870 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
871 |
|
|
872 |
|
Remove the Precision methods again. They're too DBF specific to be |
873 |
|
part of the table interface and they're only used in table_to_dbf |
874 |
|
anyway. |
875 |
|
|
876 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width):Use a |
877 |
|
fixed precision of 12 for doubles. |
878 |
|
(TransientTableBase.Precision): Removed |
879 |
|
(AutoTransientTable.Width): Delegate to self.table. |
880 |
|
|
881 |
|
* Thuban/Model/table.py (DBFTable.Precision) |
882 |
|
(MemoryTable.Precision): Removed. |
883 |
|
(MemoryTable.Width): Use a fixed precision of 12 for doubles. |
884 |
|
(table_to_dbf): Use a fixed precision of 12 for floats unless the |
885 |
|
column object specifies something else. |
886 |
|
|
887 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New. |
888 |
|
test for table_to_dbf |
889 |
|
|
890 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
891 |
|
|
892 |
|
* test/test_transientdb.py |
893 |
|
(TestTransientTable.run_iceland_political_tests): Fix a comment. |
894 |
|
|
895 |
|
2003-05-26 Bernhard Herzog <[email protected]> |
896 |
|
|
897 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real |
898 |
|
implementation. Mark parts of the file format strings for |
899 |
|
localization. |
900 |
|
|
901 |
|
* Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf |
902 |
|
file and add the table to the tables managed by the session |
903 |
|
|
904 |
|
* test/test_session.py (TestSessionSimple.test_open_table_file): |
905 |
|
New. test case for OpenTableFile |
906 |
|
|
907 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
908 |
|
|
909 |
|
* Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py, |
910 |
|
Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py, |
911 |
|
Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py: |
912 |
|
Replace the true/false of wxWindows by True/False of Python 2.2.1. |
913 |
|
|
914 |
|
2003-05-26 Jan-Oliver Wagner <[email protected]> |
915 |
|
|
916 |
|
* Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is |
917 |
|
already a selection present, update the grid accordingly. |
918 |
|
|
919 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog |
920 |
|
resizeable and increase its initial size. |
921 |
|
|
922 |
|
2003-05-26 Frank Koormann <[email protected]> |
923 |
|
|
924 |
|
Table export functionality |
925 |
|
|
926 |
|
* Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width): |
927 |
|
Return width (in characters) for a column. |
928 |
|
(DBFTable.Precision, MemoryTable.Precision): Return decimal precision. |
929 |
|
(table_to_dbf): Write table to dbf file. |
930 |
|
(table_to_csv): Write table to csv file. |
931 |
|
|
932 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width, |
933 |
|
TransientTableBase.Precision): Return column width and precision. |
934 |
|
|
935 |
|
* Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf |
936 |
|
or table_to_csv depending on file selection. |
937 |
|
|
938 |
|
* test/test_dbf_table.py: |
939 |
|
Test table_to_dbf (extension of former part of test). |
940 |
|
|
941 |
|
* test/test_csv_table.py: |
942 |
|
Test table_to_csv. |
943 |
|
|
944 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
945 |
|
|
946 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings. |
947 |
|
Use QueryTableFrame instead of TableFrame. |
948 |
|
|
949 |
|
* Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the |
950 |
|
table window with 'Layer Table:' instead of 'Table:'. |
951 |
|
|
952 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
953 |
|
|
954 |
|
Give all tables a title via mix-in TitledObject.LayerShowTable |
955 |
|
|
956 |
|
* Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue' |
957 |
|
only if it exists. |
958 |
|
|
959 |
|
* Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject |
960 |
|
and call its init-method with a default title. Remove Title() method. |
961 |
|
|
962 |
|
* Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable, |
963 |
|
AutoTransientTable): mix-in TitledObject and call its init-method with |
964 |
|
a default title. Remove Title() method. |
965 |
|
|
966 |
|
2003-05-23 Bernhard Herzog <[email protected]> |
967 |
|
|
968 |
|
* Thuban/Model/session.py (Session.AddShapeStore): Define |
969 |
|
AddShapeStore analogously to AddTable. |
970 |
|
|
971 |
|
* test/test_session.py (TestSessionSimple.test_add_shapestore): |
972 |
|
New. Test for AddShapeStore |
973 |
|
|
974 |
|
2003-05-23 Jan-Oliver Wagner <[email protected]> |
975 |
|
|
976 |
|
Introducing QueryTableFrame and a very coarse ShowTable implementation. |
977 |
|
|
978 |
|
* Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the |
979 |
|
class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame. |
980 |
|
The latter implements the selection GUI without dependency on a layer. |
981 |
|
LayerTableFrame now is derived from QueryTableFrame and connects |
982 |
|
to a layer. |
983 |
|
|
984 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse |
985 |
|
implementation that still needs work. |
986 |
|
|
987 |
|
* Thuban/Model/layer.py (Layer.TreeInfo): Added filename. |
988 |
|
|
989 |
|
2003-05-22 Frank Koormann <[email protected]> |
990 |
|
|
991 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
992 |
|
Added "outer_join = False" as optional parameter. |
993 |
|
(TransientJoinedTable.create): If outer join is true, perform a |
994 |
|
"LEFT OUTER JOIN" instead of "JOIN", which preserves all records of |
995 |
|
the left table. Records not matching are filled with 0 / None. |
996 |
|
|
997 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join. |
998 |
|
(JoinDialog.OnJoin): Consider outer join check box. |
999 |
|
|
1000 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1001 |
|
|
1002 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a |
1003 |
|
somewhat safer way. Storing the traceback in a local variable can |
1004 |
|
lead to memory leaks |
1005 |
|
|
1006 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1007 |
|
|
1008 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call |
1009 |
|
the wxMessageDialog's Destroy() method. |
1010 |
|
|
1011 |
|
2003-05-22 Frank Koormann <[email protected]> |
1012 |
|
|
1013 |
|
* Thuban/UI/join.py (JoinDialog.__init__): Make use of |
1014 |
|
TransientTable.Title() |
1015 |
|
|
1016 |
|
2003-05-22 Frank Koormann <[email protected]> |
1017 |
|
|
1018 |
|
Join Dialog, initial version. |
1019 |
|
|
1020 |
|
* Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print. |
1021 |
|
|
1022 |
|
* Thuban/UI/join.py (JoinDialog): Functional implementation of |
1023 |
|
former framework. Renamed Table1/Table2 to LeftTable/RightTable |
1024 |
|
in all occurences. |
1025 |
|
|
1026 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__doc__): |
1027 |
|
Typo fixed. |
1028 |
|
|
1029 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1030 |
|
|
1031 |
|
Give the tables titles so that the GUI can display more meaningful |
1032 |
|
names. For now the titles are fixed but depend on e.g. filenames |
1033 |
|
or the titles of the joined tables. |
1034 |
|
|
1035 |
|
* Thuban/Model/transientdb.py (TransientTable.Title) |
1036 |
|
(TransientJoinedTable.Title, AutoTransientTable.Title): New. |
1037 |
|
|
1038 |
|
* Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New. |
1039 |
|
|
1040 |
|
* test/test_transientdb.py |
1041 |
|
(TestTransientTable.test_auto_transient_table_title): New. Test |
1042 |
|
for the Title method |
1043 |
|
(TestTransientTable.test_transient_joined_table) |
1044 |
|
(TestTransientTable.test_transient_table): Add test for the Title |
1045 |
|
methods |
1046 |
|
|
1047 |
|
* test/test_memory_table.py (TestMemoryTable.test_title): New. |
1048 |
|
Test for the Title method |
1049 |
|
|
1050 |
|
* test/test_dbf_table.py (TestDBFTable.test_title): New. Test for |
1051 |
|
the Title method |
1052 |
|
|
1053 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1054 |
|
|
1055 |
|
* test/test_layer.py (TestLayer.setUp, TestLayer.tearDown): |
1056 |
|
Provide a better way to destroy the layers |
1057 |
|
(TestLayer.test_base_layer, TestLayer.test_arc_layer) |
1058 |
|
(TestLayer.test_point_layer, TestLayer.test_empty_layer) |
1059 |
|
(TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use |
1060 |
|
the new way to destroy the layers. |
1061 |
|
(TestLayer.test_derived_store): New. Test for using a layer with a |
1062 |
|
DerivedShapeStore |
1063 |
|
|
1064 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Only set the |
1065 |
|
filename if the shape store actually has one. |
1066 |
|
|
1067 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1068 |
|
|
1069 |
|
* Thuban/Model/table.py (DBFTable.FileName): New. Accessor method |
1070 |
|
for the filename |
1071 |
|
|
1072 |
|
* test/test_dbf_table.py (TestDBFTable.test_filename): New. Test |
1073 |
|
for the FileName method |
1074 |
|
(TestDBFTableWriting.test_write): Fix spelling of filename |
1075 |
|
|
1076 |
|
2003-05-22 Thomas Koester <[email protected]> |
1077 |
|
|
1078 |
|
* Thuban/Model/range.py, test/test_range.py: Brought over new Range |
1079 |
|
from SciParam that now really is immutable. |
1080 |
|
|
1081 |
|
2003-05-22 Frank Koormann <[email protected]> |
1082 |
|
|
1083 |
|
Layer Top/Bottom placement added to legend. |
1084 |
|
|
1085 |
|
* Thuban/UI/legend.py |
1086 |
|
(LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods |
1087 |
|
bound to tool events. |
1088 |
|
(LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom): |
1089 |
|
New, methods binding the event methods with the map methods. |
1090 |
|
|
1091 |
|
* Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place |
1092 |
|
layer at top/bottom of layer stack. |
1093 |
|
|
1094 |
|
* Resources/Bitmaps/top_layer.xpm: New button icon. |
1095 |
|
|
1096 |
|
* Resources/Bitmaps/bottom_layer.xpm: New button icon. |
1097 |
|
|
1098 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1099 |
|
|
1100 |
|
* Thuban/Model/session.py (Session.RemoveTable): New method to |
1101 |
|
remove tables |
1102 |
|
|
1103 |
|
* test/test_session.py (TestSessionSimple.test_remove_table): New. |
1104 |
|
Test for RemoveTable |
1105 |
|
|
1106 |
|
2003-05-22 Thomas Koester <[email protected]> |
1107 |
|
|
1108 |
|
* Thuban/Model/classgen.py: Added short module doc string and CVS id. |
1109 |
|
(ClassGenerator.GenUniformDistribution): Use new Range __init__, too. |
1110 |
|
|
1111 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1112 |
|
|
1113 |
|
Implement a way to discover dependencies between tables and |
1114 |
|
shapestores. |
1115 |
|
|
1116 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Dependencies) |
1117 |
|
(TransientJoinedTable.Dependencies) |
1118 |
|
(AutoTransientTable.SimpleQuery): New. Implement the dependencies |
1119 |
|
interface |
1120 |
|
(TransientJoinedTable.__init__): Keep tack of the original table |
1121 |
|
objects in addition to the corresponding transient tables. |
1122 |
|
|
1123 |
|
* Thuban/Model/table.py (DBFTable.Dependencies) |
1124 |
|
(MemoryTable.Dependencies): New. Implement the dependencies |
1125 |
|
interface |
1126 |
|
|
1127 |
|
* Thuban/Model/data.py (ShapeTable): New. Helper class for |
1128 |
|
ShapefileStore |
1129 |
|
(ShapefileStore.__init__): Use ShapeTable instead of |
1130 |
|
AutoTransientTable |
1131 |
|
(ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings |
1132 |
|
(ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor |
1133 |
|
methods for filename and type |
1134 |
|
(ShapefileStore.Dependencies): New. Implement the dependencies |
1135 |
|
interface |
1136 |
|
(DerivedShapeStore): New class to replace SimpleStore. The main |
1137 |
|
difference to SimpleStore is that it depends not on a shapefile |
1138 |
|
but another shapestore which expresses the dependencies a bit |
1139 |
|
better |
1140 |
|
(SimpleStore.__init__): Add deprecation warning. |
1141 |
|
|
1142 |
|
* test/test_dbf_table.py (TestDBFTable.test_dependencies): New. |
1143 |
|
Test for the Dependencies method. |
1144 |
|
|
1145 |
|
* test/test_memory_table.py (TestMemoryTable.test_dependencies): |
1146 |
|
New. Test for the Dependencies method. |
1147 |
|
|
1148 |
|
* test/test_transientdb.py |
1149 |
|
(TestTransientTable.test_auto_transient_table_dependencies): New. |
1150 |
|
Test for the Dependencies method. |
1151 |
|
(TestTransientTable.test_transient_joined_table): Add test for the |
1152 |
|
Dependencies method. |
1153 |
|
|
1154 |
|
* test/test_session.py (TestSessionSimple.setUp) |
1155 |
|
(TestSessionSimple.tearDown): New. Implement a better way to |
1156 |
|
destroy the sessions. |
1157 |
|
(TestSessionSimple.test_initial_state) |
1158 |
|
(TestSessionSimple.test_add_table): Bind session to self.session |
1159 |
|
so that it's destroyed by tearDown |
1160 |
|
(TestSessionSimple.test_open_shapefile): New. Test for |
1161 |
|
OpenShapefile and the object it returns |
1162 |
|
|
1163 |
|
2003-05-22 Bernhard Herzog <[email protected]> |
1164 |
|
|
1165 |
|
* Thuban/Model/session.py (Session.AddTable): New method to |
1166 |
|
register tables with the session. |
1167 |
|
(Session.Tables): Return the tables registered with AddTable too. |
1168 |
|
|
1169 |
|
* test/test_session.py (TestSessionSimple.test_add_table): New. |
1170 |
|
Test case for the AddTable method |
1171 |
|
|
1172 |
2003-05-22 Frank Koormann <[email protected]> |
2003-05-22 Frank Koormann <[email protected]> |
1173 |
|
|
1174 |
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
UI polishing updates: Place main buttons (OK, Cancel, etc) in the |
1198 |
the text if not visible. The italic font sometimes exceeds the |
the text if not visible. The italic font sometimes exceeds the |
1199 |
rendering area. |
rendering area. |
1200 |
|
|
|
|
|
1201 |
2003-05-21 Jonathan Coles <[email protected]> |
2003-05-21 Jonathan Coles <[email protected]> |
1202 |
|
|
1203 |
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |
* Thuban/UI/dock.py (DockFrame): Rename references to _OnClose |