/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1403 by jonathan, Thu Jul 10 14:56:46 2003 UTC revision 1453 by bh, Fri Jul 18 12:58:11 2003 UTC
# Line 1  Line 1 
1    2003-07-18  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/layer.py (Layer.__init__): Rename
4            classificationField to classificatin_column and init it here so
5            that it can be used in SetClassificationColumn
6            (Layer.GetClassificationColumn, Layer.GetClassificationField):
7            Rename to GetClassificationColumn.
8            (Layer.SetClassificationColumn, Layer.SetClassificationField):
9            Rename to SetClassificationColumn and issue a LAYER_CHANGED
10            message if the column changes.
11            (Layer._classification_changed, Layer.ClassChanged): Rename to
12            _classification_changed. Update the callers.
13            (Layer.SetShapeStore): Further field->column renames.
14    
15            * Thuban/Model/load.py (SessionLoader.start_classification)
16            (SessionLoader.start_clpoint): Updates because of
17            field->column method name changes in the Layer class
18    
19            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
20            because of field->column method name changes in the Layer class
21    
22            * Thuban/UI/classifier.py (Classifier.__init__)
23            (Classifier._OnTry, Classifier._OnRevert): Updates because of
24            field->column method name changes in the Layer class
25    
26            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
27            because of field->column method name changes in the Layer class
28    
29            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
30            of field->column method name changes in the Layer class
31    
32            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
33            (SaveSessionTest.testClassifiedLayer): Update because of
34            field->column method name changes in the Layer class
35    
36            * test/test_layer.py (SetShapeStoreTests.setUp)
37            (SetShapeStoreTests.test_sanity): Update because of field->column
38            method name changes in the Layer class
39            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
40            (TestLayerModification.test_sanity)
41            (TestLayerModification.test_initial_settings): remove unsued code
42            and rename to test_sanity.
43            (TestLayerModification.test_set_classification): New test for
44            SetClassification and SetClassificationField.
45    
46    2003-07-18  Bernhard Herzog  <[email protected]>
47    
48            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
49            the non-fixed values as well. The old test would have accepted a
50            fixed ramp that only returnes the fixed properties
51    
52    2003-07-17  Jonathan Coles   <[email protected]>
53    
54            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
55            shots for the manual. The XCF file is the source image and
56            has additional layers to support changes.
57    
58            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
59    
60            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
61            Return both the new class and the field name.
62    
63            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
64            fit the map to the window as this changes any zoom level that
65            the user may have set.
66    
67    2003-07-16  Jonathan Coles   <[email protected]>
68    
69            * Thuban/Model/classgen.py (generate_singletons,
70            generate_uniform_distribution, generate_quantiles): Remove
71            fixes parameter, but maintain the same functionality by having
72            the calling function pass a FixedRamp object for the ramp.
73            (FixedRamp): New. Adapts a ramp to have fixed property values.
74    
75            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
76            (Classification): Inherit from Publisher.
77            (Classification.__init__): Remove the layer parameter.
78            Classifications no longer need to have a parent layer.
79            (Classification.GetField, Classification.GetFieldType,
80            Classification.SetFieldInfo): Removed. The field name is stored
81            in the layer, and the type can be retreived by calling
82            Layer.GetFieldType().
83            (Classification._set_layer, Classification.GetLayer): Removed.
84            Classifications no longer have a parent layer.
85    
86            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
87            classification.
88            (Layer.SetShapeStore): Reset the classification first while
89            we still have the old shape store to work with.
90            (Layer.GetClassificationField, Layer.SetClassificationField):
91            New. Method for getting/setting the field to classify on.
92            (Layer.SetClassification): Simplified now that the layer
93            simply has to hold a reference to the classification and not
94            tell the classification who owns it.
95            Fixes RTbug #2023.
96    
97            * Thuban/Model/load.py (SessionLoader.start_classification):
98            Set the field name on the layer, not the classification.
99    
100            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
101            classification is modified.
102    
103            * Thuban/Model/save.py (SessionSaver.write_classification):
104            Get the field name and type from the layer.
105    
106            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
107            parameter records to rows and add docstring. Fixes RTbug #1997.
108    
109            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
110            ramp when we need to fix certain values of a ramp rather than
111            using the old fixes parameter. Fixes RTbug #2024.
112    
113            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
114            parameter.
115            (ClassTable.Reset): Add fieldType parameter and use it, rather
116            than asking the classification.
117            (Classifier.__init__): Remember the original class's field
118            and ask the layer for the field type, rather than the classification.
119            (Classifier.__SetGridTable): Retrieve the field and field type
120            for the table because they are not in the classification.
121            (Classifier._OnTry, Classifier._OnRevert): Set the classification
122            field on the layer in addition to the classification itself.
123    
124            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
125            classification field from layer.
126    
127            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
128            classification field from layer. Split up tests and remove
129            *-imports. Fixes RTbug #1992.
130    
131            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
132    
133            * test/test_classification.py
134            (TestClassification.test_classification): Remove tests for methods
135            that no longer exist.
136    
137            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
138            __init__ no longer has a field parameter, use SetClassificationField.
139            (SetShapeStoreTests.test_sanity): Use layer object to get class
140            field info.
141    
142            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
143            SetClassificationField on layer to set class field info.
144    
145            * test/test_viewport.py: Renamed from test/test_view.py.
146    
147    2003-07-16  Jan-Oliver Wagner <[email protected]>
148    
149            * Doc/manual/thuban-manual.xml: Added authors and an initial
150            coarse structure.
151    
152    2003-07-15  Bernhard Herzog  <[email protected]>
153    
154            * test/support.py (FloatComparisonMixin): This is a mix-in class
155            and therefore should not be derived from any other class.
156    
157            * test/test_range.py (RangeTest): FloatComparisonMixin is a
158            mix-in, so derive from TestCase as well.
159    
160    2003-07-15  Bernhard Herzog  <[email protected]>
161    
162            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
163            draw_func handling a bit to remove one layer of indirection. This
164            makes the renderer about 10% faster in the non-classifying case
165            and the code a bit cleaner
166            (MapRenderer.draw_point_shape): Add the pen and brush parameters
167            and set them in the dc. Now the draw_point_shape method and
168            wxproj's draw_polygon_shape function have basically the same
169            signature so that both can be directly used as draw_func
170    
171    2003-07-15  Bernhard Herzog  <[email protected]>
172    
173            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
174            string values (in addition to the labels) as UTF 8
175    
176            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
177            values if the field type is string
178    
179            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
180            saving a session with non-ascii string classification values.
181    
182            * test/test_load.py (TestClassification.file_contents)
183            (TestClassification.test): Check for non-ascii values in string
184            classifications
185    
186    2003-07-14  Jonathan Coles   <[email protected]>
187    
188            * test/test_view.py: New. Tests for ViewPort.
189    
190    2003-07-14  Frank Koormann   <[email protected]>
191    
192            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
193            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
194    
195            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
196            unicode strings from session file: session title, map title and
197            projection name.
198            
199    2003-07-10  Jonathan Coles   <[email protected]>
200    
201            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
202            drag_stop, not drag_move when the mouse is released.
203    
204  2003-07-10  Jonathan Coles   <[email protected]>  2003-07-10  Jonathan Coles   <[email protected]>
205    
206          The most important part of this is the seperation of view.py into          The most important part of this is the seperation of view.py into

Legend:
Removed from v.1403  
changed lines
  Added in v.1453

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26