/[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 792 by jan, Wed Apr 30 12:26:57 2003 UTC revision 826 by bh, Tue May 6 08:24:23 2003 UTC
# Line 1  Line 1 
1    2003-05-06  Bernhard Herzog  <[email protected]>
2    
3            * Resources/Projections/defaults.proj: Fix spelling of Mercator
4    
5    2003-05-05  Jonathan Coles   <[email protected]>
6    
7            Addresses the "Full Layer Extent" wish of RTbug #1787.
8    
9            * Resources/Projections/defaults.proj: Added UK National Grid.
10    
11            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
12            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
13            when the user selects the menu option.
14    
15            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
16            scales the given layer on the canvas using the map projection.
17    
18    2003-05-05  Bernhard Herzog  <[email protected]>
19    
20            Convert the table implementations to a new table interface. All
21            tables use a common mixin class to provide backwards compatibility
22            until all table users have been updated.
23    
24            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
25            provide backwards compatibility for table classes implementing the
26            new interface
27            (DBFTable, MemoryTable): Implement the new table interface. Use
28            OldTableInterfaceMixin as base for compatibility
29            (DBFColumn, MemoryColumn): New. Column description for DBFTable
30            and MemoryTable resp.
31    
32            * test/test_dbf_table.py: New. Test cases for the DBFTable with
33            the new table interface.
34    
35            * test/test_memory_table.py: New. Test cases for the MemoryTable
36            with the new table interface.
37    
38            * test/test_table.py: Document the all tests in this file as only
39            for backwards compatibility. The equivalent tests for the new
40            interface are in test_memory_table.py and test_dbf_table.py
41            (MemoryTableTest.test_read): field_info should be returning tuples
42            with four items
43            (MemoryTableTest.test_write): Make doc-string a more precise.
44    
45            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
46            table interface. Derive from from OldTableInterfaceMixin for
47            compatibility.
48            (TransientTableBase.create): New intance variable column_map to
49            map from names and indices to column objects
50            (TransientTable.create): Use the new table interface of the input
51            table
52            (AutoTransientTable): Convert to new table interface. Derive from
53            from OldTableInterfaceMixin for compatibility.
54            (AutoTransientTable.write_record): Removed. It's not implemented
55            yet and we still have to decide how to handle writing with the new
56            table and data framework.
57    
58            * test/test_transientdb.py
59            (TestTransientTable.run_iceland_political_tests)
60            (TestTransientTable.test_transient_joined_table): Use the new
61            table interface
62    
63    2003-05-05  Jonathan Coles   <[email protected]>
64    
65            This is namely a collection of UI updates to improve user interactivity.
66            Tabbing between controls now exists and you can use ESC to close dialog
67            boxes; ENTER will active the default button.
68    
69            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
70            order that the controls are created so that tabbing works correctly.
71            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
72            wxDialog can handle the default button correctly.
73            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
74            same reasons as for OnOK.
75            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
76            when we ask the table for the maximum/minimum values of a field
77            which could take a very long time.
78    
79            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
80            order that the controls are created so that tabbing works correctly.
81            (SelectPropertiesDialog.__init__): Rearrange the order that the
82            controls are created so that tabbing works correctly.
83    
84            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
85            to derive from a wxDialog but behave like the original implementation
86            which was derived from a wxFrame. wxDialog provides useful key
87            handling functionality like ESC calling OnCancel and ENTER calling
88            OnOK which is lost with wxFrame.
89    
90            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
91            new dialogs.
92    
93            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
94            order that the controls are created so that tabbing works correctly.
95            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
96            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
97            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
98            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
99            can provide the "UK National Grid" as a default projection.
100            (UTMPanel.__init__): Rearrange the order that the controls are
101            created so that tabbing works correctly.
102    
103    2003-05-05  Bernhard Herzog  <[email protected]>
104    
105            * extensions/thuban/wxproj.cpp: Fix some of the comments.
106            (project_point): If a map projection but no layer projection is
107            given, convert degrees to radians before applying the map
108            projection.
109    
110            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
111            (TableGrid.allow_messages): New methods to make it possible to
112            inhibit message sending.
113            (TableGrid.issue): Only send the message if not inhibited.
114            (LayerTableGrid.select_shape): Use the new methods to make sure
115            that no ROW_SELECTED message is sent while we're updating the
116            selected rows to match the selected shapes.
117    
118    2003-05-02  Jan-Oliver Wagner <[email protected]>
119    
120            Implementation of MemoryTable.
121    
122            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
123            implementation that operates on a list of tuples. All of the data
124            are kept in the memory.
125    
126            * test/test_table.py (MemoryTableTest): New.
127    
128            * test/test_transientdb.py (SimpleTable): Removed.
129            (TestTransientTable.test_transient_joined_table,
130            (TestTransientTable.test_transient_table_read_twice): Replaced
131            SimpleTable by MemoryTable.
132    
133    2003-04-30  Jonathan Coles   <[email protected]>
134    
135            * Data/iceland_sample.thuban: Now contains correct projections
136            for each of the layers.
137    
138            * Resources/Projections/defaults.proj: Geographic projection
139            contains unit conversion parameter.
140    
141    2003-04-30  Jonathan Coles   <[email protected]>
142    
143            The most important part of this putback is the projection changes.
144            It should now be possible to specify the projection that a layer
145            is in and then specify a different projection for the map. The
146            projection dialog has an extra parameter for a geographic projection
147            which lets the user select if the input is in degrees or radians.
148    
149            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
150            to say that the parameter is a tuple of unprojected
151            points (which is what the callers to this method were assuming).
152            Also, since the points are unprojected we need to projected them.
153    
154            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
155            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
156            groups are selected, move the layer up/down. Fixes RTbug #1833.
157    
158            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
159    
160            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
161            parameter in call to SetClientData.
162            (GeoPanel): Add support for selecting the units that the
163            source data is in (Radians or Degrees).
164    
165            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
166            the rendering loop by reducing the number of if's, removing the
167            unnecessary try/except block, and checking if the old group
168            is the same as the new one (which happens a lot if there is
169            no classification, or lots of shapes are in the same group).
170    
171            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
172            around the redraw routine to try to catch problems that the user
173            may create by selecting invalid projections for the data set and
174            map. Clears the display if there are any problems and prints the
175            error.
176            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
177            rectangle.
178    
179            * extensions/thuban/wxproj.cpp (project_point): First invert the
180            supplied point (which should be in projected coordinates) using
181            the layer's projection and then project the point using the
182            map's projection.
183            (project_points): Use project_point() to project each point.
184    
185  2003-04-30  Jan-Oliver Wagner <[email protected]>  2003-04-30  Jan-Oliver Wagner <[email protected]>
186    
187          * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:          * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
# Line 25  Line 209 
209          (TestTransientTable.test_transient_table_read_twice): New test          (TestTransientTable.test_transient_table_read_twice): New test
210          case for the above bug-fix.          case for the above bug-fix.
211    
212    2003-04-29  Jonathan Coles   <[email protected]>
213    
214            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
215    
216            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
217    
218            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
219            (ClassTable.SetValueAsCustom): Rename keyword argument in
220            ClassGroup* constructors to match argument name.
221    
222  2003-04-29  Bernhard Herzog  <[email protected]>  2003-04-29  Bernhard Herzog  <[email protected]>
223    
224          * Thuban/Model/session.py (Session.Destroy): Explicitly close the          * Thuban/Model/session.py (Session.Destroy): Explicitly close the

Legend:
Removed from v.792  
changed lines
  Added in v.826

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26