1 |
|
2003-05-12 Jonathan Coles <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call |
4 |
|
to table.UniqueValues() with calls that retrieve all the values |
5 |
|
from the table. This will need to be replaced by a method on table |
6 |
|
which can simply return the list (perhaps more efficiently). |
7 |
|
|
8 |
|
2003-05-12 Jonathan Coles <[email protected]> |
9 |
|
|
10 |
|
The return value of ClassGenerator.CalculateQuantiles has changed. |
11 |
|
Refer to the documentation for details. |
12 |
|
|
13 |
|
* test/test_classgen.py: Modified Quantile tests to use the |
14 |
|
new return values. |
15 |
|
|
16 |
|
* Thuban/Model/classgen.py |
17 |
|
(ClassGenerator.GenQuantiles): Add comments describing the parameters, |
18 |
|
use new return values from CalculateQuantiles to produce the correct |
19 |
|
range bounds in the Classification. |
20 |
|
(ClassGenerator.CalculateQuantiles): Add more comments describing |
21 |
|
the return values and parameters. Make minor adjustments to improve |
22 |
|
the legibility of the code. Fix problem with adjusted not being set |
23 |
|
in most cases. |
24 |
|
|
25 |
|
2003-05-12 Frank Koormann <[email protected]> |
26 |
|
|
27 |
|
* Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode |
28 |
|
and latin1. Fixes #1851 finally. |
29 |
|
|
30 |
|
2003-05-09 Jonathan Coles <[email protected]> |
31 |
|
|
32 |
|
* test/test_classgen.py: New. Tests the Quantile algorithm. |
33 |
|
|
34 |
|
* Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles): |
35 |
|
Clean up debugging statement, add comments, fix a small bug in the |
36 |
|
returned adjusted percentiles. |
37 |
|
|
38 |
|
2003-05-09 Jonathan Coles <[email protected]> |
39 |
|
|
40 |
|
Introduces Range class from SciParam into the ClassGroupRange class, |
41 |
|
and such ranges can now be saved and loaded from disk. |
42 |
|
|
43 |
|
Quantiles are now available in the Classification Generator. |
44 |
|
|
45 |
|
Initial support for building Queries on a table. Doesn't do anything |
46 |
|
but run some tests. |
47 |
|
|
48 |
|
* Thuban/Model/classification.py: Explicit imports. |
49 |
|
(ClassGroupRange): Use the Range class to store the underlying |
50 |
|
range information. The interface remains the same, except for |
51 |
|
GetRange(), and you can also supply a Range object as the min |
52 |
|
parameter to SetRange or __init__. |
53 |
|
|
54 |
|
* Thuban/Model/load.py (XMLReader.encode): New. Encodes the given |
55 |
|
string appropriately for use in Thuban. Fixes RTbug #1851. |
56 |
|
(SessionLoader.end_projection): Handle the context of the |
57 |
|
projection tag a bit better by looking at what objects are not |
58 |
|
None. There was an assumption that a projection tag for a map |
59 |
|
could occur before any layers. |
60 |
|
(SessionLoader.start_clrange): Provide backward compatibility for |
61 |
|
reading min/max values as well as the new range parameter. |
62 |
|
|
63 |
|
* Thuban/Model/map.py: Explicit imports. |
64 |
|
|
65 |
|
* Thuban/Model/resource.py: Import _. |
66 |
|
(ProjFileSaver.write): write header using projfile.dtd. |
67 |
|
|
68 |
|
* Thuban/Model/save.py: Explicit imports. |
69 |
|
(XMLWriter.encode): New. Encode the given string from a format |
70 |
|
used by Thuban into UTF-8. Fixes RTbug #1851. |
71 |
|
|
72 |
|
* Thuban/UI/classgen.py: Explicit imports. |
73 |
|
(ClassGenDialog.__init__): Clean up the code and add support |
74 |
|
for Quantiles. |
75 |
|
(ClassGenDialog.OnOK): Add support for Quantiles. |
76 |
|
(GenQuantilesPanel): New. Input panel for Quantiles. |
77 |
|
(ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp, |
78 |
|
GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py |
79 |
|
|
80 |
|
* Thuban/Model/classgen.py: New. Contains all the classes named above. |
81 |
|
|
82 |
|
* Thuban/UI/classifier.py: Explicit imports. |
83 |
|
(ClassTable.GetValueAsCust, ClassTable.__ParseInput, |
84 |
|
ClassTable.SetValueAsCustom): Reworked to use new Range class. |
85 |
|
|
86 |
|
* Thuban/UI/legend.py: Explicit imports. |
87 |
|
|
88 |
|
* Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added |
89 |
|
a Table menu and associated method calls. |
90 |
|
(MainWindow.choose_color): Removed. No longer needed. |
91 |
|
|
92 |
|
* Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button |
93 |
|
should be disabled if no projection is selected in the available |
94 |
|
list. |
95 |
|
|
96 |
|
* Thuban/UI/renderer.py: Explicit imports. |
97 |
|
|
98 |
|
* Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues |
99 |
|
with correctly selecting the rows and issuing the right events. |
100 |
|
Be sure to call Skip() to allow the grid to do some of its own |
101 |
|
handling which allows the rows to actually be selected. |
102 |
|
(LayerTableGrid.select_shapes): Rename from select_shape. Supports |
103 |
|
selecting multiple shapes. |
104 |
|
(LayerTableFrame): Support for building Queries. |
105 |
|
(LayerTableFrame.select_shapes): Allow multiple shapes to be selected. |
106 |
|
|
107 |
|
* Thuban/UI/tree.py: Explicit imports. |
108 |
|
|
109 |
|
* Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the |
110 |
|
table view can call it. |
111 |
|
|
112 |
|
* test/test_classification.py: Explicit imports. |
113 |
|
(TestClassification.test_ClassGroupRange): Fix test for new |
114 |
|
Range class. |
115 |
|
|
116 |
|
* Doc/thuban.dtd: Add range parameter for clrange. |
117 |
|
|
118 |
|
* Thuban/Model/range.py: Taken from SciParam. Used as the underlying |
119 |
|
object in ClassGroupRange, and also uesd for inputting ranges in |
120 |
|
the classifer table and elsewhere. |
121 |
|
|
122 |
|
* Thuban/UI/join.py: New. Initial Join dialog. No real functionality |
123 |
|
yet. |
124 |
|
|
125 |
|
2003-05-09 Frank Koormann <[email protected]> |
126 |
|
|
127 |
|
* Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0. |
128 |
|
|
129 |
2003-05-08 Frank Koormann <[email protected]> |
2003-05-08 Frank Koormann <[email protected]> |
130 |
|
|
131 |
Coding style updates |
Coding style updates |