/[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 762 by jonathan, Tue Apr 29 09:02:33 2003 UTC revision 826 by bh, Tue May 6 08:24:23 2003 UTC
# Line 1  Line 1 
1  2003-04-25  Jonathan Coles   <[email protected]>  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]>
186    
187            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
188            don't set the Classification to None if the classfication field
189            is None (ie only a DEFAULT).
190    
191    2003-04-30  Bernhard Herzog  <[email protected]>
192    
193            * Thuban/UI/view.py: Fix some typos.
194    
195            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
196            not pop up the dialog if the selection becomes empty (this could
197            happen if e.g. a new selection is opened while the identify tool
198            is active and dialog had been closed)
199    
200    2003-04-30  Bernhard Herzog  <[email protected]>
201    
202            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
203            instance variable read_record_last_result
204            (TransientTableBase.read_record): Make sure reading the same
205            record twice works. The implementation uses the new instance
206            variable read_record_last_result
207    
208            * test/test_transientdb.py
209            (TestTransientTable.test_transient_table_read_twice): New test
210            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]>
223    
224            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
225            transient DB if it exists to make sure it doesn't leave a journal
226            file in the temp directory.
227    
228            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
229            self.conn to None after closing the connection to make sure it's
230            not closed twice
231    
232    2003-04-29  Jonathan Coles   <[email protected]>
233    
234            Add a visible parameter in the layer XML tag. The default value is
235            "true". If anything other than "false" is specified we also assume
236            "true". Addresses RTbug #1025.
237    
238            * Doc/thuban.dtd: Add visible parameter to a layer.
239    
240            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
241            of visible from 1 to True.
242            (Layer.__init__): Change default value of visible from 1 to True.
243    
244            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
245            parameter.
246    
247            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
248            parameter.
249    
250            * test/test_load.py: Add new test data contents_test_visible.
251            (LoadSessionTest.setUp): save test data.
252            (LoadSessionTest.testLayerVisibility): Test if the visible flag
253            is loaded correctly.
254    
255            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
256            for saving an invisible layer.
257    
258    2003-04-29  Jonathan Coles   <[email protected]>
259    
260            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
261            legend dialog box and tell it to change its map to the one
262            supplied to SetMap(). Fixes RTbug #1770.
263    
264    2003-04-29  Bernhard Herzog  <[email protected]>
265    
266            Next step of table implementation. Introduce a transient database
267            using SQLite that some of the data is copied to on demand. This
268            allows us to do joins and other operations that require an index
269            for good performance with reasonable efficiency. Thuban now needs
270            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
271            haven't tested that.
272            
273            * Thuban/Model/transientdb.py: New. Transient database
274            implementation.
275    
276            * test/test_transientdb.py: New. Tests for the transient DB
277            classes.
278    
279            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
280            classes to help automatically remove temporary files and
281            directories.
282            (Session.__init__): New instance variables temp_dir for the
283            temporary directory and transient_db for the SQLite database
284            (Session.temp_directory): New. Create a temporary directory if not
285            yet done and return its name. Use AutoRemoveDir to have it
286            automatically deleted
287            (Session.TransientDB): Instantiate the transient database if not
288            done yet and return it.
289    
290            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
291            AutoTransientTable so that data is copied to the transient DB on
292            demand.
293            (SimpleStore): New class that simply combines a table and a
294            shapefile
295    
296            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
297            DBFTable and update its doc-string to reflect the fact that this
298            is only the table interface to a DBF file. Table is now an alias
299            for DBFTable for temporary backwards compatibility.
300    
301            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
302            the last reference to the session goes away so that the temporary
303            files are removed properly.
304    
305            * test/test_load.py (LoadSessionTest.tearDown): Remove the
306            reference to the session to make sure the temporary files are
307            removed.
308    
309    2003-04-29  Bernhard Herzog  <[email protected]>
310    
311            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
312            the __parser instance variable into a normal local variable in
313            read. It's only used there and read will never be called more than
314            once. Plus it introduces a reference cycle that keeps can keep the
315            session object alive for a long time.
316    
317    2003-04-29  Jonathan Coles   <[email protected]>
318    
319          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
320          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26