1 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/support.py (FloatComparisonMixin): This is a mix-in class |
4 |
|
and therefore should not be derived from any other class. |
5 |
|
|
6 |
|
* test/test_range.py (RangeTest): FloatComparisonMixin is a |
7 |
|
mix-in, so derive from TestCase as well. |
8 |
|
|
9 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
10 |
|
|
11 |
|
* Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the |
12 |
|
draw_func handling a bit to remove one layer of indirection. This |
13 |
|
makes the renderer about 10% faster in the non-classifying case |
14 |
|
and the code a bit cleaner |
15 |
|
(MapRenderer.draw_point_shape): Add the pen and brush parameters |
16 |
|
and set them in the dc. Now the draw_point_shape method and |
17 |
|
wxproj's draw_polygon_shape function have basically the same |
18 |
|
signature so that both can be directly used as draw_func |
19 |
|
|
20 |
|
2003-07-15 Bernhard Herzog <[email protected]> |
21 |
|
|
22 |
|
* Thuban/Model/save.py (SessionSaver.write_classification): Encode |
23 |
|
string values (in addition to the labels) as UTF 8 |
24 |
|
|
25 |
|
* Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the |
26 |
|
values if the field type is string |
27 |
|
|
28 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): Test |
29 |
|
saving a session with non-ascii string classification values. |
30 |
|
|
31 |
|
* test/test_load.py (TestClassification.file_contents) |
32 |
|
(TestClassification.test): Check for non-ascii values in string |
33 |
|
classifications |
34 |
|
|
35 |
|
2003-07-14 Jonathan Coles <[email protected]> |
36 |
|
|
37 |
|
* test/test_view.py: New. Tests for ViewPort. |
38 |
|
|
39 |
|
2003-07-14 Frank Koormann <[email protected]> |
40 |
|
|
41 |
|
* Thuban/Model/load.py (SessionLoader.start_map): Encode map |
42 |
|
title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013 |
43 |
|
|
44 |
|
* test/test_load_0_8.py (TestUnicodeStrings): New, test load of |
45 |
|
unicode strings from session file: session title, map title and |
46 |
|
projection name. |
47 |
|
|
48 |
|
2003-07-10 Jonathan Coles <[email protected]> |
49 |
|
|
50 |
|
* Thuban/UI/viewport.py (Tool.MouseUp): Should have called |
51 |
|
drag_stop, not drag_move when the mouse is released. |
52 |
|
|
53 |
|
2003-07-10 Jonathan Coles <[email protected]> |
54 |
|
|
55 |
|
The most important part of this is the seperation of view.py into |
56 |
|
two pieces. viewport.py now has a class called ViewPort which |
57 |
|
contains all the non-wx parts of view.py and can therefore be |
58 |
|
tested. view.py contains only the wx-specific parts and is fairly |
59 |
|
simple. |
60 |
|
|
61 |
|
* Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes |
62 |
|
RTTbug #1992. |
63 |
|
* Thuban/UI/viewport.py: New. Contains non-wx view functionality. |
64 |
|
RTTbug #1992. |
65 |
|
|
66 |
|
* Thuban/Model/classgen.py (generate_singletons, |
67 |
|
generate_uniform_distribution, generate_quantiles): |
68 |
|
Added 'fixes' parameter so that property attributes can |
69 |
|
be held constant over the generated classification groups. |
70 |
|
(CustomRamp.GetProperties): Remove unused variables. |
71 |
|
|
72 |
|
* Thuban/Model/map.py (Map.SetProjection): Send the old |
73 |
|
projection as an argument to listeners of the MAP_PROJECTION_CHANGED |
74 |
|
event. |
75 |
|
|
76 |
|
* Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records' |
77 |
|
parameter which is a list of records that restricts which |
78 |
|
records are saved. Fixes RTbug #1997. |
79 |
|
|
80 |
|
* Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog): |
81 |
|
Port exception dialog from GREAT-ER. Fixes RTbug #1993. |
82 |
|
|
83 |
|
* Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls |
84 |
|
to allow the user to fix line color/width on generated groups. |
85 |
|
(ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_* |
86 |
|
functions to optionally fix group properties. |
87 |
|
|
88 |
|
* Thuban/UI/main.py (main): Set exception hook to the |
89 |
|
ShowExceptionDialog. Fixes RTbug #1993. |
90 |
|
|
91 |
|
* Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise |
92 |
|
the table window when it is selectd to be shown. |
93 |
|
|
94 |
|
* Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an |
95 |
|
Export Selection button and move the export buttons underneath |
96 |
|
the table. |
97 |
|
(QueryTableFrame.UpdateStatusText): Added event argument so |
98 |
|
that it can respond to grid selection events. The status text |
99 |
|
is now updated even when the table is not associated with a |
100 |
|
layer as was previously assumed. |
101 |
|
(QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed. |
102 |
|
UpdateStatusText responds to these events. |
103 |
|
(QueryTableFrame.OnSaveAs): Renamed to doExport. |
104 |
|
(QueryTableFrame.doExport): Helper function that saves the |
105 |
|
entire table, or selected rows, to a file. |
106 |
|
(QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New. |
107 |
|
Respond to export button events and call doExport. |
108 |
|
|
109 |
|
* extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure |
110 |
|
the function doesn't return NULL without first setting a Python |
111 |
|
Error. |
112 |
|
|
113 |
|
* test/runtests.py (main): Only print "Unknown option" for |
114 |
|
unsupported options. |
115 |
|
|
116 |
|
* test/support.py (FloatComparisonMixin.assertFloatEqual): Take |
117 |
|
optional epsilon argument to specify floating point accuracy. |
118 |
|
(FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual |
119 |
|
for each item test. |
120 |
|
|
121 |
|
* test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add |
122 |
|
tests for saving selected records. |
123 |
|
|
124 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
125 |
|
tests for saving selected records. |
126 |
|
|
127 |
|
* test/test_map.py (TestMapWithContents.test_set_projection): |
128 |
|
MAP_PROJECTION_CHANGED events send the old projection. |
129 |
|
|
130 |
|
* test/test_session.py |
131 |
|
(TestSessionWithContent.test_forward_map_projection): |
132 |
|
MAP_PROJECTION_CHANGED events send the old projection. |
133 |
|
|
134 |
|
* test/test_table.py (TableTest): Update tests to use non-deprecated |
135 |
|
functions. |
136 |
|
|
137 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
138 |
|
|
139 |
|
* Thuban/Model/transientdb.py (TransientTableBase.Width): The type |
140 |
|
constants in the column objects are the standard ones defined in |
141 |
|
the table module. |
142 |
|
|
143 |
|
* test/test_transientdb.py |
144 |
|
(TestTransientTable.test_transienttable_to_dbf): New. Test whether |
145 |
|
exporting transient tables as DBF works. This should catch the bug |
146 |
|
just fixed in TransientTableBase.Width. |
147 |
|
|
148 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
149 |
|
|
150 |
|
* Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the |
151 |
|
interpolated colors correctly. |
152 |
|
|
153 |
|
* test/test_classgen.py (TestCustomRamp.test_color_interpolation): |
154 |
|
New. Test case for the fix in classgen.py |
155 |
|
|
156 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
157 |
|
|
158 |
|
* test/runtests.py (main): Make the default output less verbose |
159 |
|
and add a verbosity option (-v) to get the old output |
160 |
|
|
161 |
|
2003-07-08 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* Resources/XML/thuban-0.9.dtd: New. This will become the DTD for |
164 |
|
0.9. |
165 |
|
|
166 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.JoinType): |
167 |
|
New. Return the join type |
168 |
|
|
169 |
|
* Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9 |
170 |
|
DTD |
171 |
|
(SessionSaver.write_data_containers): Save the join type for |
172 |
|
joined tables |
173 |
|
|
174 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9 |
175 |
|
namespace |
176 |
|
(SessionLoader.start_jointable): Handle the jointype attribute |
177 |
|
|
178 |
|
* test/test_load_0_8.py: New. Effectively a copy of test_load.py |
179 |
|
as of Thuban 0.8. These are now tests to determine whether Thuban |
180 |
|
can still read files generated by Thuban 0.8 |
181 |
|
|
182 |
|
* test/test_load.py (LoadSessionTest.dtd) |
183 |
|
(TestSingleLayer.file_contents) |
184 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
185 |
|
(TestLayerProjection.file_contents) |
186 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
187 |
|
(TestJoinedTable.file_contents) |
188 |
|
(TestLoadError.file_contents): Update for new DTD |
189 |
|
(TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test |
190 |
|
for new join type attribute |
191 |
|
|
192 |
|
* test/test_save.py (SaveSessionTest.dtd) |
193 |
|
(SaveSessionTest.testEmptySession) |
194 |
|
(SaveSessionTest.testSingleLayer) |
195 |
|
(SaveSessionTest.testLayerProjection) |
196 |
|
(SaveSessionTest.testRasterLayer) |
197 |
|
(SaveSessionTest.testClassifiedLayer) |
198 |
|
(SaveSessionTest.test_dbf_table) |
199 |
|
(SaveSessionTest.test_joined_table): Update for new DTD |
200 |
|
(SaveSessionTest.test_joined_table): Add test for new join type |
201 |
|
attribute |
202 |
|
|
203 |
|
2003-07-04 Bernhard Herzog <[email protected]> |
204 |
|
|
205 |
|
* Thuban/Model/table.py (_find_dbf_column_names): New. Helper |
206 |
|
function for table_to_dbf |
207 |
|
(table_to_dbf): Deal with names longer than the 10 character limit |
208 |
|
|
209 |
|
* test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add |
210 |
|
doc-string |
211 |
|
(TestTableToDBF.test_table_to_dbf_long_col_names): New test for |
212 |
|
long column names |
213 |
|
|
214 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
215 |
|
|
216 |
|
* Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax |
217 |
|
|
218 |
2003-07-03 Bernhard Herzog <[email protected]> |
2003-07-03 Bernhard Herzog <[email protected]> |
219 |
|
|
220 |
* Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton |
* Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton |