1 |
|
2003-07-02 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/Model/classgen.py (generate_singletons, |
4 |
|
generate_uniform_distribution, generate_quantiles, |
5 |
|
GenQuantiles0): The denominator was one to high when |
6 |
|
calculating the index for the ramp causing the index |
7 |
|
to never to reach one. |
8 |
|
|
9 |
|
2003-07-02 Jonathan Coles <[email protected]> |
10 |
|
|
11 |
|
Changed the singature of ClassGroupRange.__init__ and |
12 |
|
ClassGroupRange.SetRange() so that the min/max values are |
13 |
|
passed as a tuple. This makes a better calling scheme for |
14 |
|
when a Range object is passed instead. |
15 |
|
|
16 |
|
* Thuban/Model/classgen.py: Fixed parameters to |
17 |
|
ClassGroupRange constructor. |
18 |
|
|
19 |
|
* Thuban/Model/classification.py (ClassGroupRange.__init__): |
20 |
|
Consolidate the min/max parameters into a single _range which |
21 |
|
can either be a tuple or a Range object. |
22 |
|
(ClassGroupRange.SetRange): Consolidate the min/max parameters |
23 |
|
into a single _range which can either be a tuple or a Range object. |
24 |
|
|
25 |
|
* Thuban/Model/load.py (SessionLoader.start_clrange): Fix |
26 |
|
call to ClassGroupRange constructor to use a tuple. |
27 |
|
|
28 |
|
* Thuban/Model/layer.py (Layer.SetClassification): Switch |
29 |
|
the classification instance variable to the new class |
30 |
|
before calling _set_layer otherwise subscribers to a |
31 |
|
LAYER_CHANGED event will not see any difference. |
32 |
|
|
33 |
|
* test/test_classification.py: Fix tests of ClassGroupRange |
34 |
|
so that they use the new signature. |
35 |
|
|
36 |
|
* test/test_load.py: Fix use of ClassGroupRange so that it |
37 |
|
uses the new signature. |
38 |
|
|
39 |
|
* test/test_load_0_2.py: Fix use of ClassGroupRange so that it |
40 |
|
uses the new signature. |
41 |
|
|
42 |
|
* test/test_save.py: Fix use of ClassGroupRange so that it |
43 |
|
uses the new signature. |
44 |
|
|
45 |
|
|
46 |
|
2003-07-01 Jonathan Coles <[email protected]> |
47 |
|
|
48 |
|
* Thuban/Model/classgen.py: Fixes RTbug #1972, 1971. |
49 |
|
Import used objects/class from color. |
50 |
|
(generate_singletons): We don't |
51 |
|
need the numGroups parameter anymore because we are using |
52 |
|
the new ramps with GetProperties(). |
53 |
|
(generate_uniform_distribution): Use new ramp method |
54 |
|
GetProperties(). |
55 |
|
(generate_quantiles, GenQuantiles0): Use new ramp method |
56 |
|
GetProperties(). |
57 |
|
(CustomRamp.SetNumGroups): Removed. The ramps now map |
58 |
|
a value from 0 to 1 to class properties so the number |
59 |
|
of groups is not needed ahead of time. |
60 |
|
(CustomRamp.next): Removed. CustomRamp does not support |
61 |
|
interation anymore. |
62 |
|
(CustomRamp.GetProperties): Returns a ClassGroupProperties |
63 |
|
object based on the index value from 0 to 1 that is |
64 |
|
passed to it. |
65 |
|
(GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp): |
66 |
|
Made into instances of Monochromatic class instread of |
67 |
|
deriving from it. |
68 |
|
(HotToCold.SetNumGroups): Removed. See CustomRamp. |
69 |
|
(HotToCold.next): Removed. See CustomRamp. |
70 |
|
|
71 |
|
* Thuban/Model/classification.py: Fixes RTbug #1973, 1971. |
72 |
|
(Classification.SetField, Classification.SetFieldType): |
73 |
|
Replaced with SetFieldInfo. |
74 |
|
(Classification.SetFieldInfo): New. Does a better job of |
75 |
|
what SetField and SetFieldType used to do by combining |
76 |
|
their function since they should really always be done |
77 |
|
at the same time. |
78 |
|
(Classification.SetLayer): Renamed to _set_layer. |
79 |
|
(Classification._set_layer): Should only be called from |
80 |
|
Layer's SetClassification. This does not cause a recursive |
81 |
|
call as SetLayer did because we know that Layer knows about |
82 |
|
the classification. |
83 |
|
|
84 |
|
* Thuban/Model/color.py: Fixes RTbug #1971. |
85 |
|
(_Transparent): Renamed from Transparent so it doesn't |
86 |
|
conflict with the module variable. |
87 |
|
(Transparent, Black): Renamed from Color.Transparent, |
88 |
|
Color.Black so they are not class variables. |
89 |
|
|
90 |
|
* Thuban/Model/layer.py: Fixes RTbug #1971, 1973. |
91 |
|
(Layer.Destroy): We don't need to call SetClassification |
92 |
|
anymore to clear out the back reference in the classifcation |
93 |
|
to the layer. It's better to set it to None using _set_layer, |
94 |
|
and we won't be creating another clas object too. |
95 |
|
(Layer.SetClassification): Classification._set_layer is not |
96 |
|
recursive so remove all the locking variables. Also clean |
97 |
|
up the code so that it remains unchanged if something fails. |
98 |
|
|
99 |
|
* Thuban/Model/load.py: Fixes RTbug #1971. |
100 |
|
(SessionLoader.start_classification): Call |
101 |
|
Classification.SetFieldInfo(). |
102 |
|
|
103 |
|
* Thuban/Model/save.py: Removed import of Color which wasn't |
104 |
|
being used. |
105 |
|
|
106 |
|
* Thuban/UI/classgen.py: Fixes RTbug #1972. |
107 |
|
(ClassGenDialog.__init__): Color ramps are now instances |
108 |
|
already so we don't need to create any new objects. |
109 |
|
(ClassGenDialog.OnOK): Check for numGroups is no longer |
110 |
|
necessary because we never use it. |
111 |
|
|
112 |
|
* Thuban/UI/classifier.py: Fixes RTbug #1971. |
113 |
|
(Classifier.__BuildClassification, Classifier.__SetGridTable): |
114 |
|
Call Classification.SetFieldInfo() instead of SetFieldType. |
115 |
|
|
116 |
|
* Thuban/UI/renderer.py: Fixes RTbug #1971. |
117 |
|
|
118 |
|
* Thuban/UI/view.py: Fixes RTbug #1974, 1971. |
119 |
|
(MapCanvas.__init__): Subscribe to the idle time event. Set |
120 |
|
background color to white. |
121 |
|
(MapCanvas.OnPaint): Set a flag indicating that we should |
122 |
|
render the map during idle time. If we already have a bitmap |
123 |
|
just draw it now. |
124 |
|
(MapCanvas.OnIdle): New. Render the map only during idle time. |
125 |
|
This also fixes a problem with the busy cursor under gtk. |
126 |
|
|
127 |
|
* test/test_classgen.py (ClassGenTest.test_generate_singletons): |
128 |
|
Fix calls to generate_singletons because the signature changed. |
129 |
|
|
130 |
|
* test/test_classification.py: Fix color references and |
131 |
|
change calls to Classification.[SetField|SetFieldType] to |
132 |
|
SetFieldInfo. |
133 |
|
|
134 |
|
* test/test_load.py: Fix color references. |
135 |
|
|
136 |
|
* test/test_load_0_2.py: Fix color references. |
137 |
|
|
138 |
|
* test/test_save.py (SaveSessionTest.testClassifiedLayer): |
139 |
|
Change calls to Classification.[SetField|SetFieldType] to |
140 |
|
SetFieldInfo. |
141 |
|
|
142 |
|
2003-07-01 Frank Koormann <[email protected]> |
143 |
|
|
144 |
|
MERGE from the greater-ms3 branch. |
145 |
|
|
146 |
|
* test/test_transientdb.py |
147 |
|
(TestTransientTable.test_transient_joined_table_with_equal_column_names): |
148 |
|
New. Test join of two tables with partly equal column names. |
149 |
|
|
150 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): |
151 |
|
If duplicates in left and right tables column names are found, |
152 |
|
append '_' (underscores) to the name until it is unique. |
153 |
|
Create always new internal names for the resulting table and reference |
154 |
|
columns in the join statement with <table>.<column> |
155 |
|
|
156 |
|
2003-07-01 Bernhard Herzog <[email protected]> |
157 |
|
|
158 |
|
* test/test_transientdb.py |
159 |
|
(TestTransientTable.test_transient_joined_table_same_column_name): |
160 |
|
New. Test whether joining on columns with the same names in both |
161 |
|
tables works. |
162 |
|
|
163 |
|
* Thuban/Model/transientdb.py (TransientJoinedTable.create): Make |
164 |
|
sure to use the right internal names even when joining on field |
165 |
|
with the same names in both tables. Also, detect duplicate names |
166 |
|
in the joined table correctly. |
167 |
|
|
168 |
|
2003-07-01 Frank Koormann <[email protected]> |
169 |
|
|
170 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
171 |
|
Reverse List of layers to render in same order as in desktop legend. |
172 |
|
|
173 |
|
2003-06-30 Jonathan Coles <[email protected]> |
174 |
|
|
175 |
|
* Thuban/version.py (make_tuple): Takes a version string |
176 |
|
and splits it into a tuple of at most three integers. |
177 |
|
Used make_tuple() to make tuple versions of the version |
178 |
|
numbers. |
179 |
|
|
180 |
|
* Thuban/UI/about.py: Add Thuban email addresses. |
181 |
|
|
182 |
|
2003-06-30 Jonathan Coles <[email protected]> |
183 |
|
|
184 |
|
* Thuban/version.py: SQLite/PySQLite version dependencies |
185 |
|
were too high. |
186 |
|
|
187 |
|
2003-06-30 Jonathan Coles <[email protected]> |
188 |
|
|
189 |
|
* Thuban/version.py: Update version to 0.8.1 |
190 |
|
|
191 |
|
* MANIFEST.in: Added Projections so that default.proj is |
192 |
|
included. |
193 |
|
|
194 |
|
2003-06-26 Jonathan Coles <[email protected]> |
195 |
|
|
196 |
|
New About box with lots more information including library |
197 |
|
versions and credits. More/better version checking before |
198 |
|
Thuban starts. |
199 |
|
|
200 |
|
* Thuban/UI/about.py: New. New About box that displays |
201 |
|
library version information and credits. |
202 |
|
|
203 |
|
* Thuban/version.py: Added new 'versions' dictionary which |
204 |
|
contains the verions of various libraries which are checked |
205 |
|
when the module loads. |
206 |
|
(verify_versions): Check all version numbers and returns |
207 |
|
a list of errors. |
208 |
|
|
209 |
|
* Thuban/UI/classifier.py (Classifier.__EnableButtons): |
210 |
|
Reset the status of the buttons as the situation warrants, |
211 |
|
but in a better more reliable way by not relying on the |
212 |
|
current status to determine what needs to change. |
213 |
|
|
214 |
|
* Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed. |
215 |
|
(verify_versions): Remove most of the code since it is |
216 |
|
now in Thuban.version.verify_versions.o |
217 |
|
|
218 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Call new |
219 |
|
About box in Thuban.UI.about. |
220 |
|
|
221 |
|
* extensions/thuban/gdalwarp.cpp (get_gdal_version): New. |
222 |
|
Returns the version of gdal library being used as a string. |
223 |
|
|
224 |
|
* extensions/thuban/wxproj.cpp (check_version, check_version_gtk): |
225 |
|
Removed. |
226 |
|
(get_proj_version): Return the version of PROJ that the file |
227 |
|
was compiled with. |
228 |
|
(get_gtk_version): Return th version of GTK that the file |
229 |
|
was compiled with. |
230 |
|
|
231 |
|
2003-06-25 Jonathan Coles <[email protected]> |
232 |
|
|
233 |
|
* Thuban/UI/classifier.py (Classifier.EditSymbol): The parent |
234 |
|
of the SelectPropertiesDialog should be self so the window |
235 |
|
appears on top. |
236 |
|
(ClassGroupPropertiesCtrl.DoEdit): The parent |
237 |
|
of the SelectPropertiesDialog should be self so the window |
238 |
|
appears on top. |
239 |
|
|
240 |
|
* Thuban/UI/resource.py: Cleaned up how we determine file |
241 |
|
extensions. |
242 |
|
(GetImageResource): Return an wxImage from our Resources. |
243 |
|
|
244 |
|
2003-06-24 Jonathan Coles <[email protected]> |
245 |
|
|
246 |
|
* Thuban/UI/renderer.py (ExportRenderer.render_legend): |
247 |
|
Check that a layer has a classification before trying |
248 |
|
to get it. Raster layers don't have classifications. |
249 |
|
|
250 |
|
2003-06-23 Jonathan Coles <[email protected]> |
251 |
|
|
252 |
|
* setup.py: Add Resources/XML to resource list. |
253 |
|
|
254 |
|
2003-06-23 Jonathan Coles <[email protected]> |
255 |
|
|
256 |
|
* setup.cfg: Fix copyright dates |
257 |
|
|
258 |
|
2003-06-23 Jonathan Coles <[email protected]> |
259 |
|
|
260 |
|
* MANIFEST.in: Update with Resources/XML |
261 |
|
|
262 |
|
* setup.py: Don't include Locale resources yet as we don't |
263 |
|
have any and it causes problems building the distribution |
264 |
|
for Windows. Update version to 0.8.0. |
265 |
|
|
266 |
|
* Doc/thuban.dtd: Removed since it is now in Resources/XML. |
267 |
|
|
268 |
|
* Thuban/UI/mainwindow.py: Add blank line at the end because |
269 |
|
file was not being read correctly building the Windows |
270 |
|
distribution. |
271 |
|
|
272 |
|
2003-06-23 Jonathan Coles <[email protected]> |
273 |
|
|
274 |
|
* Thuban/UI/mainwindow.py (MainWindow.About): Fix text. |
275 |
|
|
276 |
|
* Thuban/version.py: Temporarily update longversion for |
277 |
|
the 0.8 release so that it doesn't have the cvs revision. |
278 |
|
|
279 |
|
2003-06-23 Jonathan Coles <[email protected]> |
280 |
|
|
281 |
|
* Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield |
282 |
|
to make sure that we don't create reentrant possibilities with |
283 |
|
wxYield. |
284 |
|
|
285 |
|
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor() |
286 |
|
directly to avoid the wxSafeYield() call which generates an |
287 |
|
OnPaint event causing infinite recursion. Don't try to catch |
288 |
|
exception anymore. This was for before there were limits on map |
289 |
|
scaling. |
290 |
|
|
291 |
|
2003-06-23 Bernhard Herzog <[email protected]> |
292 |
|
|
293 |
|
Bug fix for RT #1961: |
294 |
|
|
295 |
|
* Thuban/Model/load.py (SessionLoader.start_derivedshapesource): |
296 |
|
Register DerivedShapestores with the session |
297 |
|
|
298 |
|
* Thuban/Model/session.py (Session.Tables): Make sure each table |
299 |
|
is only listed once. |
300 |
|
|
301 |
|
* test/test_load.py (TestJoinedTable.test): Add check_format call. |
302 |
|
Update file contents to match the one written out. |
303 |
|
|
304 |
|
2003-06-20 Bernhard Herzog <[email protected]> |
305 |
|
|
306 |
|
* test/xmlsupport.py (SaxEventLister.startElementNS) |
307 |
|
(SaxEventLister.endElementNS): Do not include the qname. Python |
308 |
|
2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it |
309 |
|
is (presumably incorrectly) None, whereas it's a string with the |
310 |
|
element name in the later versions. |
311 |
|
|
312 |
|
* test/test_xmlsupport.py (TestEventList.test_even_list_simple) |
313 |
|
(TestEventList.test_even_list_namespace): Update tests to reflect |
314 |
|
the new behaviour |
315 |
|
(TestEventList.test_even_list_id_normalization): Fix doc-string |
316 |
|
|
317 |
|
2003-06-20 Jonathan Coles <[email protected]> |
318 |
|
|
319 |
|
* Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden |
320 |
|
by deriving classes to determine if that layer supports shapes. |
321 |
|
(Layer): Override HasShapes and return true. |
322 |
|
|
323 |
|
* Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor() |
324 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
325 |
|
(GenUniquePanel._OnRetrieve): Set busy cursor while retrieving |
326 |
|
table data. |
327 |
|
|
328 |
|
* Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor): |
329 |
|
New. Wrappers around the wxWindows functions that allow us to |
330 |
|
make additional calls such as wxYield which gives the native |
331 |
|
system a chance to update the cursor correctly. |
332 |
|
|
333 |
|
* Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor() |
334 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
335 |
|
|
336 |
|
* Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor() |
337 |
|
instead of a direct call to wx[Begin|End]CusyCursor(). |
338 |
|
(MapCanvas.find_shape_at): Check if the current search layer |
339 |
|
support shapes, otherwise go on to the next layer. |
340 |
|
|
341 |
|
* test/test_layer.py: Add tests in each type of layer for |
342 |
|
HasClassification() and HasShapes() |
343 |
|
|
344 |
2003-06-20 Jonathan Coles <[email protected]> |
2003-06-20 Jonathan Coles <[email protected]> |
345 |
|
|
346 |
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after |
* Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after |