/[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 817 by jonathan, Mon May 5 15:05:36 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]>  2003-05-05  Jonathan Coles   <[email protected]>
248    
249          This is namely a collection of UI updates to improve user interactivity.          This is namely a collection of UI updates to improve user interactivity.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26