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