1 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton |
4 |
|
for the Thuban manual and README with some basic information about |
5 |
|
the manual |
6 |
|
|
7 |
|
2003-07-03 Bernhard Herzog <[email protected]> |
8 |
|
|
9 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.__init__): |
10 |
|
Update doc-string |
11 |
|
(TransientJoinedTable.create): Do not modify the column objects of |
12 |
|
the input tables in place and copy all columns of the input tables |
13 |
|
into the joined table after all. |
14 |
|
|
15 |
|
* test/test_transientdb.py |
16 |
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
17 |
|
Update to reflect the new behavior |
18 |
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
19 |
|
Update to reflect the new behavior |
20 |
|
(TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place): |
21 |
|
New test case for a bug which modified the column objects in place |
22 |
|
|
23 |
|
2003-07-02 Jonathan Coles <[email protected]> |
24 |
|
|
25 |
|
* Thuban/Model/classgen.py (generate_singletons, |
26 |
|
generate_uniform_distribution, generate_quantiles, |
27 |
|
GenQuantiles0): Make sure maxValue isn't less than |
28 |
|
one, otherwise we could divide by zero. |
29 |
|
|
30 |
|
* test/test_classgen.py (ClassGenTest.doClassRangeTest, |
31 |
|
ClassGenTest.doClassSingleTest): Call doBoundsTest to |
32 |
|
check the end classification groups against the |
33 |
|
proper property values. |
34 |
|
(ClassGenTest.doBoundsTest): New. Checks the first and |
35 |
|
last classification groups to make sure their properties |
36 |
|
are the correct upper and lower bounds for a color ramp. |
37 |
|
|
38 |
|
2003-07-02 Jonathan Coles <[email protected]> |
39 |
|
|
40 |
|
* Thuban/Model/classgen.py (generate_singletons, |
41 |
|
generate_uniform_distribution, generate_quantiles, |
42 |
|
GenQuantiles0): The denominator was one to high when |
43 |
|
calculating the index for the ramp causing the index |
44 |
|
to never to reach one. |
45 |
|
|
46 |
|
2003-07-02 Jonathan Coles <[email protected]> |
47 |
|
|
48 |
|
Changed the singature of ClassGroupRange.__init__ and |
49 |
|
ClassGroupRange.SetRange() so that the min/max values are |
50 |
|
passed as a tuple. This makes a better calling scheme for |
51 |
|
when a Range object is passed instead. |
52 |
|
|
53 |
|
* Thuban/Model/classgen.py: Fixed parameters to |
54 |
|
ClassGroupRange constructor. |
55 |
|
|
56 |
|
* Thuban/Model/classification.py (ClassGroupRange.__init__): |
57 |
|
Consolidate the min/max parameters into a single _range which |
58 |
|
can either be a tuple or a Range object. |
59 |
|
(ClassGroupRange.SetRange): Consolidate the min/max parameters |
60 |
|
into a single _range which can either be a tuple or a Range object. |
61 |
|
|
62 |
|
* Thuban/Model/load.py (SessionLoader.start_clrange): Fix |
63 |
|
call to ClassGroupRange constructor to use a tuple. |
64 |
|
|
65 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Switch |
66 |
|
the classification instance variable to the new class |
67 |
|
before calling _set_layer otherwise subscribers to a |
68 |
|
LAYER_CHANGED event will not see any difference. |
69 |
|
|
70 |
|
* test/test_classification.py: Fix tests of ClassGroupRange |
71 |
|
so that they use the new signature. |
72 |
|
|
73 |
|
* test/test_load.py: Fix use of ClassGroupRange so that it |
74 |
|
uses the new signature. |
75 |
|
|
76 |
|
* test/test_load_0_2.py: Fix use of ClassGroupRange so that it |
77 |
|
uses the new signature. |
78 |
|
|
79 |
|
* test/test_save.py: Fix use of ClassGroupRange so that it |
80 |
|
uses the new signature. |
81 |
|
|
82 |
|
|
83 |
|
2003-07-01 Jonathan Coles <[email protected]> |
84 |
|
|
85 |
|
* Thuban/Model/classgen.py: Fixes RTbug #1972, 1971. |
86 |
|
Import used objects/class from color. |
87 |
|
(generate_singletons): We don't |
88 |
|
need the numGroups parameter anymore because we are using |
89 |
|
the new ramps with GetProperties(). |
90 |
|
(generate_uniform_distribution): Use new ramp method |
91 |
|
GetProperties(). |
92 |
|
(generate_quantiles, GenQuantiles0): Use new ramp method |
93 |
|
GetProperties(). |
94 |
|
(CustomRamp.SetNumGroups): Removed. The ramps now map |
95 |
|
a value from 0 to 1 to class properties so the number |
96 |
|
of groups is not needed ahead of time. |
97 |
|
(CustomRamp.next): Removed. CustomRamp does not support |
98 |
|
interation anymore. |
99 |
|
(CustomRamp.GetProperties): Returns a ClassGroupProperties |
100 |
|
object based on the index value from 0 to 1 that is |
101 |
|
passed to it. |
102 |
|
(GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp): |
103 |
|
Made into instances of Monochromatic class instread of |
104 |
|
deriving from it. |
105 |
|
(HotToCold.SetNumGroups): Removed. See CustomRamp. |
106 |
|
(HotToCold.next): Removed. See CustomRamp. |
107 |
|
|
108 |
|
* Thuban/Model/classification.py: Fixes RTbug #1973, 1971. |
109 |
|
(Classification.SetField, Classification.SetFieldType): |
110 |
|
Replaced with SetFieldInfo. |
111 |
|
(Classification.SetFieldInfo): New. Does a better job of |
112 |
|
what SetField and SetFieldType used to do by combining |
113 |
|
their function since they should really always be done |
114 |
|
at the same time. |
115 |
|
(Classification.SetLayer): Renamed to _set_layer. |
116 |
|
(Classification._set_layer): Should only be called from |
117 |
|
Layer's SetClassification. This does not cause a recursive |
118 |
|
call as SetLayer did because we know that Layer knows about |
119 |
|
the classification. |
120 |
|
|
121 |
|
* Thuban/Model/color.py: Fixes RTbug #1971. |
122 |
|
(_Transparent): Renamed from Transparent so it doesn't |
123 |
|
conflict with the module variable. |
124 |
|
(Transparent, Black): Renamed from Color.Transparent, |
125 |
|
Color.Black so they are not class variables. |
126 |
|
|
127 |
|
* Thuban/Model/layer.py: Fixes RTbug #1971, 1973. |
128 |
|
(Layer.Destroy): We don't need to call SetClassification |
129 |
|
anymore to clear out the back reference in the classifcation |
130 |
|
to the layer. It's better to set it to None using _set_layer, |
131 |
|
and we won't be creating another clas object too. |
132 |
|
(Layer.SetClassification): Classification._set_layer is not |
133 |
|
recursive so remove all the locking variables. Also clean |
134 |
|
up the code so that it remains unchanged if something fails. |
135 |
|
|
136 |
|
* Thuban/Model/load.py: Fixes RTbug #1971. |
137 |
|
(SessionLoader.start_classification): Call |
138 |
|
Classification.SetFieldInfo(). |
139 |
|
|
140 |
|
* Thuban/Model/save.py: Removed import of Color which wasn't |
141 |
|
being used. |
142 |
|
|
143 |
|
* Thuban/UI/classgen.py: Fixes RTbug #1972. |
144 |
|
(ClassGenDialog.__init__): Color ramps are now instances |
145 |
|
already so we don't need to create any new objects. |
146 |
|
(ClassGenDialog.OnOK): Check for numGroups is no longer |
147 |
|
necessary because we never use it. |
148 |
|
|
149 |
|
* Thuban/UI/classifier.py: Fixes RTbug #1971. |
150 |
|
(Classifier.__BuildClassification, Classifier.__SetGridTable): |
151 |
|
Call Classification.SetFieldInfo() instead of SetFieldType. |
152 |
|
|
153 |
|
* Thuban/UI/renderer.py: Fixes RTbug #1971. |
154 |
|
|
155 |
|
* Thuban/UI/view.py: Fixes RTbug #1974, 1971. |
156 |
|
(MapCanvas.__init__): Subscribe to the idle time event. Set |
157 |
|
background color to white. |
158 |
|
(MapCanvas.OnPaint): Set a flag indicating that we should |
159 |
|
render the map during idle time. If we already have a bitmap |
160 |
|
just draw it now. |
161 |
|
(MapCanvas.OnIdle): New. Render the map only during idle time. |
162 |
|
This also fixes a problem with the busy cursor under gtk. |
163 |
|
|
164 |
|
* test/test_classgen.py (ClassGenTest.test_generate_singletons): |
165 |
|
Fix calls to generate_singletons because the signature changed. |
166 |
|
|
167 |
|
* test/test_classification.py: Fix color references and |
168 |
|
change calls to Classification.[SetField|SetFieldType] to |
169 |
|
SetFieldInfo. |
170 |
|
|
171 |
|
* test/test_load.py: Fix color references. |
172 |
|
|
173 |
|
* test/test_load_0_2.py: Fix color references. |
174 |
|
|
175 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): |
176 |
|
Change calls to Classification.[SetField|SetFieldType] to |
177 |
|
SetFieldInfo. |
178 |
|
|
179 |
|
2003-07-01 Frank Koormann <[email protected]> |
180 |
|
|
181 |
|
MERGE from the greater-ms3 branch. |
182 |
|
|
183 |
|
* test/test_transientdb.py |
184 |
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
185 |
|
New. Test join of two tables with partly equal column names. |
186 |
|
|
187 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): |
188 |
|
If duplicates in left and right tables column names are found, |
189 |
|
append '_' (underscores) to the name until it is unique. |
190 |
|
Create always new internal names for the resulting table and reference |
191 |
|
columns in the join statement with <table>.<column> |
192 |
|
|
193 |
|
2003-07-01 Bernhard Herzog <[email protected]> |
194 |
|
|
195 |
|
* test/test_transientdb.py |
196 |
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
197 |
|
New. Test whether joining on columns with the same names in both |
198 |
|
tables works. |
199 |
|
|
200 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): Make |
201 |
|
sure to use the right internal names even when joining on field |
202 |
|
with the same names in both tables. Also, detect duplicate names |
203 |
|
in the joined table correctly. |
204 |
|
|
205 |
|
2003-07-01 Frank Koormann <[email protected]> |
206 |
|
|
207 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
208 |
|
Reverse List of layers to render in same order as in desktop legend. |
209 |
|
|
210 |
|
2003-06-30 Jonathan Coles <[email protected]> |
211 |
|
|
212 |
|
* Thuban/version.py (make_tuple): Takes a version string |
213 |
|
and splits it into a tuple of at most three integers. |
214 |
|
Used make_tuple() to make tuple versions of the version |
215 |
|
numbers. |
216 |
|
|
217 |
|
* Thuban/UI/about.py: Add Thuban email addresses. |
218 |
|
|
219 |
|
2003-06-30 Jonathan Coles <[email protected]> |
220 |
|
|
221 |
|
* Thuban/version.py: SQLite/PySQLite version dependencies |
222 |
|
were too high. |
223 |
|
|
224 |
|
2003-06-30 Jonathan Coles <[email protected]> |
225 |
|
|
226 |
|
* Thuban/version.py: Update version to 0.8.1 |
227 |
|
|
228 |
|
* MANIFEST.in: Added Projections so that default.proj is |
229 |
|
included. |
230 |
|
|
231 |
|
2003-06-26 Jonathan Coles <[email protected]> |
232 |
|
|
233 |
|
New About box with lots more information including library |
234 |
|
versions and credits. More/better version checking before |
235 |
|
Thuban starts. |
236 |
|
|
237 |
|
* Thuban/UI/about.py: New. New About box that displays |
238 |
|
library version information and credits. |
239 |
|
|
240 |
|
* Thuban/version.py: Added new 'versions' dictionary which |
241 |
|
contains the verions of various libraries which are checked |
242 |
|
when the module loads. |
243 |
|
(verify_versions): Check all version numbers and returns |
244 |
|
a list of errors. |
245 |
|
|
246 |
|
* Thuban/UI/classifier.py (Classifier.__EnableButtons): |
247 |
|
Reset the status of the buttons as the situation warrants, |
248 |
|
but in a better more reliable way by not relying on the |
249 |
|
current status to determine what needs to change. |
250 |
|
|
251 |
|
* Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed. |
252 |
|
(verify_versions): Remove most of the code since it is |
253 |
|
now in Thuban.version.verify_versions.o |
254 |
|
|
255 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Call new |
256 |
|
About box in Thuban.UI.about. |
257 |
|
|
258 |
|
* extensions/thuban/gdalwarp.cpp (get_gdal_version): New. |
259 |
|
Returns the version of gdal library being used as a string. |
260 |
|
|
261 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
262 |
|
Removed. |
263 |
|
(get_proj_version): Return the version of PROJ that the file |
264 |
|
was compiled with. |
265 |
|
(get_gtk_version): Return th version of GTK that the file |
266 |
|
was compiled with. |
267 |
|
|
268 |
2003-06-25 Jonathan Coles <[email protected]> |
2003-06-25 Jonathan Coles <[email protected]> |
269 |
|
|
270 |
* Thuban/UI/classifier.py (Classifier.EditSymbol): The parent |
* Thuban/UI/classifier.py (Classifier.EditSymbol): The parent |