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