/[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 766 by bh, Tue Apr 29 12:42:27 2003 UTC revision 860 by frank, Thu May 8 10:41:36 2003 UTC
# Line 1  Line 1 
1    2003-05-08  Frank Koormann <[email protected]>
2    
3            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
4            Initialize ScaleBar with canvas.map
5    
6            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
7            round intervals to display smarter lengths
8            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
9            layer. If the maps has no projection applied grey the scalebar.
10    
11    2003-05-07  Frank Koormann <[email protected]>
12            
13            Basic Scalebar features added.
14    
15            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
16    
17            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
18            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
19            and the renderer.
20    
21            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
22    
23            * Thuban/UI/messages.py: SCALE_CHANGED added.
24    
25    2003-05-07  Bernhard Herzog  <[email protected]>
26    
27            * Thuban/Model/session.py (Session.__init__): New instance
28            variable shapestores to hold a list of all open shapestore objects
29            (Session.ShapeStores): New. Accessor method for the shapestores
30            list.
31            (Session._add_shapestore, Session._clean_weak_store_refs): New.
32            Internal methods to maintain the shapestores list.
33            (Session.Tables): New. Return all tables open in the session.
34            (Session.OpenShapefile): Insert the new ShapeStore into the
35            shapestores list.
36    
37            * test/test_session.py (TestSessionSimple.test_initial_state): Add
38            tests for ShapeStores and Tables
39            (TestSessionWithContent.test_shape_stores)
40            (TestSessionWithContent.test_tables): New. Test cases for
41            ShapeStores and Tables
42    
43    2003-05-07  Bernhard Herzog  <[email protected]>
44    
45            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
46            Add comments about the optimizations used.
47            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
48            Implement the ReadValue table interface method.
49    
50            * test/test_transientdb.py
51            (TestTransientTable.run_iceland_political_tests)
52            (TestTransientTable.test_transient_joined_table): Add tests for
53            ReadValue
54    
55    2003-05-07  Frank Koormann <[email protected]>
56    
57            * Resources/Bitmaps/fulllayerextent.xpm,
58            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
59            new icons.
60    
61    2003-05-06  Bernhard Herzog  <[email protected]>
62    
63            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
64            New. Simply delegate to the transient table's version.
65    
66            * test/test_transientdb.py
67            (TestTransientTable.test_auto_transient_table_query): New. Test
68            case for AutoTransientTable's SimpleQuery
69    
70    2003-05-06  Bernhard Herzog  <[email protected]>
71    
72            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
73            Implement a simple query method for the query dialog
74            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
75            the row index or shapeid.
76            (TransientTable.create): Insert the right value of the row index
77            (TransientJoinedTable.create): Copy the row index of the left
78            table to the joined result table
79    
80            * test/test_transientdb.py
81            (TestTransientTable.test_transient_table_read_twice): Fix
82            doc-string
83            (TestTransientTable.test_transient_table_query): New. Test for the
84            SimpleQuery method
85    
86    2003-05-06  Bernhard Herzog  <[email protected]>
87    
88            Convert all table users to use the new table interface. This only
89            covers Thuban itself, not GREAT-ER or other applications built on
90            Thuban yet, so the compatibility interface stays in place for the
91            time being but it now issues DeprecationWarnings.
92    
93            Finally, the new Table interface has a new method, HasColumn.
94    
95            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
96            issue deprecation warnings when they're. The warnings refer to the
97            caller of the method.
98            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
99            for the deprecation warnings
100    
101            * test/test_table.py: Ignore the deprecation warnings for the old
102            table in the tests in this module. The purpose of the tests is to
103            test the old interface, after all.
104    
105            * test/test_transientdb.py
106            (TestTransientTable.run_iceland_political_tests): Use the
107            constants for the types. Add a test for HasColumn
108            (TestTransientTable.test_transient_joined_table): Adapt to new
109            table interface. Add a test for HasColumn
110            (TestTransientTable.test_transient_table_read_twice): Adapt to new
111            table interface
112    
113            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
114            Adapt to new table interface
115    
116            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
117            new table interface
118    
119            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
120            (RecordTable.SetTable): Adapt to new table interface
121    
122            * Thuban/UI/classifier.py (Classifier.__init__)
123            (Classifier.__init__): Adapt to new table interface
124    
125            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
126            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
127            to new table interface
128    
129            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
130            (AutoTransientTable.HasColumn): Implement the new table interface
131            method
132            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
133            (AutoTransientTable.UniqueValues): Adapt to new table interface
134    
135            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
136            Adapt to new table interface
137    
138            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
139            simplify opening shapefiles a bit easier.
140            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
141            (TestLayer.test_point_layer): Use the new helper method
142            (TestLayer.test_get_field_type): New. Test for the GetFieldType
143            method
144    
145            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
146            the new table method
147    
148            * test/test_memory_table.py (TestMemoryTable.test_has_column):
149            Test for the new table method HasColumn
150    
151    2003-05-06  Jonathan Coles   <[email protected]>
152    
153            Addresses the "Selection Extent" wish of RTbug #1787.
154    
155            * Resources/Bitmaps/fulllayerextent.xpm,
156            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
157            extent. These are just place holders for the real bitmaps.
158    
159            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
160            calculate the bounding box once (the first time compute_bbox() is
161            called).
162            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
163            the bounding box for the shapes in lat/long coordinates.
164    
165            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
166            option.
167            (MainWindow.has_selected_shapes): New. Returns true if there are
168            any selected shapes.
169            (MainWindow.FullSelectionExtent): New. Calls
170            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
171            (_has_selected_shapes): New. Returns true if there are any
172            selected shapes.
173    
174            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
175            true if there are any selected shapes.
176    
177            * Thuban/UI/view.py (MapCanvas): Added delegated method
178            HasSelectedShapes.
179            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
180            shapes on the canvas using the map projection (if any).
181    
182            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
183            for Layer.ShapesBoundingBox().
184    
185    2003-05-06  Bernhard Herzog  <[email protected]>
186    
187            * Resources/Projections/defaults.proj: Fix spelling of Mercator
188    
189    2003-05-05  Jonathan Coles   <[email protected]>
190    
191            Addresses the "Full Layer Extent" wish of RTbug #1787.
192    
193            * Resources/Projections/defaults.proj: Added UK National Grid.
194    
195            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
196            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
197            when the user selects the menu option.
198    
199            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
200            scales the given layer on the canvas using the map projection.
201    
202    2003-05-05  Bernhard Herzog  <[email protected]>
203    
204            Convert the table implementations to a new table interface. All
205            tables use a common mixin class to provide backwards compatibility
206            until all table users have been updated.
207    
208            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
209            provide backwards compatibility for table classes implementing the
210            new interface
211            (DBFTable, MemoryTable): Implement the new table interface. Use
212            OldTableInterfaceMixin as base for compatibility
213            (DBFColumn, MemoryColumn): New. Column description for DBFTable
214            and MemoryTable resp.
215    
216            * test/test_dbf_table.py: New. Test cases for the DBFTable with
217            the new table interface.
218    
219            * test/test_memory_table.py: New. Test cases for the MemoryTable
220            with the new table interface.
221    
222            * test/test_table.py: Document the all tests in this file as only
223            for backwards compatibility. The equivalent tests for the new
224            interface are in test_memory_table.py and test_dbf_table.py
225            (MemoryTableTest.test_read): field_info should be returning tuples
226            with four items
227            (MemoryTableTest.test_write): Make doc-string a more precise.
228    
229            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
230            table interface. Derive from from OldTableInterfaceMixin for
231            compatibility.
232            (TransientTableBase.create): New intance variable column_map to
233            map from names and indices to column objects
234            (TransientTable.create): Use the new table interface of the input
235            table
236            (AutoTransientTable): Convert to new table interface. Derive from
237            from OldTableInterfaceMixin for compatibility.
238            (AutoTransientTable.write_record): Removed. It's not implemented
239            yet and we still have to decide how to handle writing with the new
240            table and data framework.
241    
242            * test/test_transientdb.py
243            (TestTransientTable.run_iceland_political_tests)
244            (TestTransientTable.test_transient_joined_table): Use the new
245            table interface
246    
247    2003-05-05  Jonathan Coles   <[email protected]>
248    
249            This is namely a collection of UI updates to improve user interactivity.
250            Tabbing between controls now exists and you can use ESC to close dialog
251            boxes; ENTER will active the default button.
252    
253            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
254            order that the controls are created so that tabbing works correctly.
255            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
256            wxDialog can handle the default button correctly.
257            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
258            same reasons as for OnOK.
259            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
260            when we ask the table for the maximum/minimum values of a field
261            which could take a very long time.
262    
263            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
264            order that the controls are created so that tabbing works correctly.
265            (SelectPropertiesDialog.__init__): Rearrange the order that the
266            controls are created so that tabbing works correctly.
267    
268            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
269            to derive from a wxDialog but behave like the original implementation
270            which was derived from a wxFrame. wxDialog provides useful key
271            handling functionality like ESC calling OnCancel and ENTER calling
272            OnOK which is lost with wxFrame.
273    
274            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
275            new dialogs.
276    
277            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
278            order that the controls are created so that tabbing works correctly.
279            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
280            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
281            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
282            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
283            can provide the "UK National Grid" as a default projection.
284            (UTMPanel.__init__): Rearrange the order that the controls are
285            created so that tabbing works correctly.
286    
287    2003-05-05  Bernhard Herzog  <[email protected]>
288    
289            * extensions/thuban/wxproj.cpp: Fix some of the comments.
290            (project_point): If a map projection but no layer projection is
291            given, convert degrees to radians before applying the map
292            projection.
293    
294            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
295            (TableGrid.allow_messages): New methods to make it possible to
296            inhibit message sending.
297            (TableGrid.issue): Only send the message if not inhibited.
298            (LayerTableGrid.select_shape): Use the new methods to make sure
299            that no ROW_SELECTED message is sent while we're updating the
300            selected rows to match the selected shapes.
301    
302    2003-05-02  Jan-Oliver Wagner <[email protected]>
303    
304            Implementation of MemoryTable.
305    
306            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
307            implementation that operates on a list of tuples. All of the data
308            are kept in the memory.
309    
310            * test/test_table.py (MemoryTableTest): New.
311    
312            * test/test_transientdb.py (SimpleTable): Removed.
313            (TestTransientTable.test_transient_joined_table,
314            (TestTransientTable.test_transient_table_read_twice): Replaced
315            SimpleTable by MemoryTable.
316    
317    2003-04-30  Jonathan Coles   <[email protected]>
318    
319            * Data/iceland_sample.thuban: Now contains correct projections
320            for each of the layers.
321    
322            * Resources/Projections/defaults.proj: Geographic projection
323            contains unit conversion parameter.
324    
325    2003-04-30  Jonathan Coles   <[email protected]>
326    
327            The most important part of this putback is the projection changes.
328            It should now be possible to specify the projection that a layer
329            is in and then specify a different projection for the map. The
330            projection dialog has an extra parameter for a geographic projection
331            which lets the user select if the input is in degrees or radians.
332    
333            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
334            to say that the parameter is a tuple of unprojected
335            points (which is what the callers to this method were assuming).
336            Also, since the points are unprojected we need to projected them.
337    
338            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
339            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
340            groups are selected, move the layer up/down. Fixes RTbug #1833.
341    
342            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
343    
344            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
345            parameter in call to SetClientData.
346            (GeoPanel): Add support for selecting the units that the
347            source data is in (Radians or Degrees).
348    
349            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
350            the rendering loop by reducing the number of if's, removing the
351            unnecessary try/except block, and checking if the old group
352            is the same as the new one (which happens a lot if there is
353            no classification, or lots of shapes are in the same group).
354    
355            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
356            around the redraw routine to try to catch problems that the user
357            may create by selecting invalid projections for the data set and
358            map. Clears the display if there are any problems and prints the
359            error.
360            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
361            rectangle.
362    
363            * extensions/thuban/wxproj.cpp (project_point): First invert the
364            supplied point (which should be in projected coordinates) using
365            the layer's projection and then project the point using the
366            map's projection.
367            (project_points): Use project_point() to project each point.
368    
369    2003-04-30  Jan-Oliver Wagner <[email protected]>
370    
371            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
372            don't set the Classification to None if the classfication field
373            is None (ie only a DEFAULT).
374    
375    2003-04-30  Bernhard Herzog  <[email protected]>
376    
377            * Thuban/UI/view.py: Fix some typos.
378    
379            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
380            not pop up the dialog if the selection becomes empty (this could
381            happen if e.g. a new selection is opened while the identify tool
382            is active and dialog had been closed)
383    
384    2003-04-30  Bernhard Herzog  <[email protected]>
385    
386            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
387            instance variable read_record_last_result
388            (TransientTableBase.read_record): Make sure reading the same
389            record twice works. The implementation uses the new instance
390            variable read_record_last_result
391    
392            * test/test_transientdb.py
393            (TestTransientTable.test_transient_table_read_twice): New test
394            case for the above bug-fix.
395    
396    2003-04-29  Jonathan Coles   <[email protected]>
397    
398            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
399    
400            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
401    
402            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
403            (ClassTable.SetValueAsCustom): Rename keyword argument in
404            ClassGroup* constructors to match argument name.
405    
406    2003-04-29  Bernhard Herzog  <[email protected]>
407    
408            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
409            transient DB if it exists to make sure it doesn't leave a journal
410            file in the temp directory.
411    
412            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
413            self.conn to None after closing the connection to make sure it's
414            not closed twice
415    
416    2003-04-29  Jonathan Coles   <[email protected]>
417    
418            Add a visible parameter in the layer XML tag. The default value is
419            "true". If anything other than "false" is specified we also assume
420            "true". Addresses RTbug #1025.
421    
422            * Doc/thuban.dtd: Add visible parameter to a layer.
423    
424            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
425            of visible from 1 to True.
426            (Layer.__init__): Change default value of visible from 1 to True.
427    
428            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
429            parameter.
430    
431            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
432            parameter.
433    
434            * test/test_load.py: Add new test data contents_test_visible.
435            (LoadSessionTest.setUp): save test data.
436            (LoadSessionTest.testLayerVisibility): Test if the visible flag
437            is loaded correctly.
438    
439            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
440            for saving an invisible layer.
441    
442    2003-04-29  Jonathan Coles   <[email protected]>
443    
444            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
445            legend dialog box and tell it to change its map to the one
446            supplied to SetMap(). Fixes RTbug #1770.
447    
448  2003-04-29  Bernhard Herzog  <[email protected]>  2003-04-29  Bernhard Herzog  <[email protected]>
449    
450          Next step of table implementation. Introduce a transient database          Next step of table implementation. Introduce a transient database
# Line 51  Line 498 
498          once. Plus it introduces a reference cycle that keeps can keep the          once. Plus it introduces a reference cycle that keeps can keep the
499          session object alive for a long time.          session object alive for a long time.
500    
501  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
502    
503          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
504          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

Legend:
Removed from v.766  
changed lines
  Added in v.860

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26