1 |
|
2003-05-02 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
Implementation of MemoryTable. |
4 |
|
|
5 |
|
* Thuban/Model/table.py (MemoryTable): New. Quite simple table |
6 |
|
implementation that operates on a list of tuples. All of the data |
7 |
|
are kept in the memory. |
8 |
|
|
9 |
|
* test/test_table.py (MemoryTableTest): New. |
10 |
|
|
11 |
|
* test/test_transientdb.py (SimpleTable): Removed. |
12 |
|
(TestTransientTable.test_transient_joined_table, |
13 |
|
(TestTransientTable.test_transient_table_read_twice): Replaced |
14 |
|
SimpleTable by MemoryTable. |
15 |
|
|
16 |
|
2003-04-30 Jonathan Coles <[email protected]> |
17 |
|
|
18 |
|
* Data/iceland_sample.thuban: Now contains correct projections |
19 |
|
for each of the layers. |
20 |
|
|
21 |
|
* Resources/Projections/defaults.proj: Geographic projection |
22 |
|
contains unit conversion parameter. |
23 |
|
|
24 |
|
2003-04-30 Jonathan Coles <[email protected]> |
25 |
|
|
26 |
|
The most important part of this putback is the projection changes. |
27 |
|
It should now be possible to specify the projection that a layer |
28 |
|
is in and then specify a different projection for the map. The |
29 |
|
projection dialog has an extra parameter for a geographic projection |
30 |
|
which lets the user select if the input is in degrees or radians. |
31 |
|
|
32 |
|
* Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring |
33 |
|
to say that the parameter is a tuple of unprojected |
34 |
|
points (which is what the callers to this method were assuming). |
35 |
|
Also, since the points are unprojected we need to projected them. |
36 |
|
|
37 |
|
* Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp, |
38 |
|
LegendTree.MoveCurrentItemDown): If the layer or any of the layer's |
39 |
|
groups are selected, move the layer up/down. Fixes RTbug #1833. |
40 |
|
|
41 |
|
* Thuban/UI/mainwindow.py: Move menu item map_rename up. |
42 |
|
|
43 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing |
44 |
|
parameter in call to SetClientData. |
45 |
|
(GeoPanel): Add support for selecting the units that the |
46 |
|
source data is in (Radians or Degrees). |
47 |
|
|
48 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize |
49 |
|
the rendering loop by reducing the number of if's, removing the |
50 |
|
unnecessary try/except block, and checking if the old group |
51 |
|
is the same as the new one (which happens a lot if there is |
52 |
|
no classification, or lots of shapes are in the same group). |
53 |
|
|
54 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block |
55 |
|
around the redraw routine to try to catch problems that the user |
56 |
|
may create by selecting invalid projections for the data set and |
57 |
|
map. Clears the display if there are any problems and prints the |
58 |
|
error. |
59 |
|
(MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled |
60 |
|
rectangle. |
61 |
|
|
62 |
|
* extensions/thuban/wxproj.cpp (project_point): First invert the |
63 |
|
supplied point (which should be in projected coordinates) using |
64 |
|
the layer's projection and then project the point using the |
65 |
|
map's projection. |
66 |
|
(project_points): Use project_point() to project each point. |
67 |
|
|
68 |
|
2003-04-30 Jan-Oliver Wagner <[email protected]> |
69 |
|
|
70 |
|
* Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug: |
71 |
|
don't set the Classification to None if the classfication field |
72 |
|
is None (ie only a DEFAULT). |
73 |
|
|
74 |
|
2003-04-30 Bernhard Herzog <[email protected]> |
75 |
|
|
76 |
|
* Thuban/UI/view.py: Fix some typos. |
77 |
|
|
78 |
|
* Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do |
79 |
|
not pop up the dialog if the selection becomes empty (this could |
80 |
|
happen if e.g. a new selection is opened while the identify tool |
81 |
|
is active and dialog had been closed) |
82 |
|
|
83 |
|
2003-04-30 Bernhard Herzog <[email protected]> |
84 |
|
|
85 |
|
* Thuban/Model/transientdb.py (TransientTableBase.__init__): New |
86 |
|
instance variable read_record_last_result |
87 |
|
(TransientTableBase.read_record): Make sure reading the same |
88 |
|
record twice works. The implementation uses the new instance |
89 |
|
variable read_record_last_result |
90 |
|
|
91 |
|
* test/test_transientdb.py |
92 |
|
(TestTransientTable.test_transient_table_read_twice): New test |
93 |
|
case for the above bug-fix. |
94 |
|
|
95 |
|
2003-04-29 Jonathan Coles <[email protected]> |
96 |
|
|
97 |
|
* Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832. |
98 |
|
|
99 |
|
* Thuban/UI/classgen.py: Remove all uses of Str2Num. |
100 |
|
|
101 |
|
* Thuban/UI/classifier.py: Remove all uses of Str2Num. |
102 |
|
(ClassTable.SetValueAsCustom): Rename keyword argument in |
103 |
|
ClassGroup* constructors to match argument name. |
104 |
|
|
105 |
|
2003-04-29 Bernhard Herzog <[email protected]> |
106 |
|
|
107 |
|
* Thuban/Model/session.py (Session.Destroy): Explicitly close the |
108 |
|
transient DB if it exists to make sure it doesn't leave a journal |
109 |
|
file in the temp directory. |
110 |
|
|
111 |
|
* Thuban/Model/transientdb.py (TransientDatabase.close): Set |
112 |
|
self.conn to None after closing the connection to make sure it's |
113 |
|
not closed twice |
114 |
|
|
115 |
2003-04-29 Jonathan Coles <[email protected]> |
2003-04-29 Jonathan Coles <[email protected]> |
116 |
|
|
117 |
Add a visible parameter in the layer XML tag. The default value is |
Add a visible parameter in the layer XML tag. The default value is |