/[thuban]/branches/greater-ms3/thuban/ChangeLog
ViewVC logotype

Diff of /branches/greater-ms3/thuban/ChangeLog

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

revision 721 by jonathan, Thu Apr 24 10:11:55 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]>
449    
450            Next step of table implementation. Introduce a transient database
451            using SQLite that some of the data is copied to on demand. This
452            allows us to do joins and other operations that require an index
453            for good performance with reasonable efficiency. Thuban now needs
454            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
455            haven't tested that.
456            
457            * Thuban/Model/transientdb.py: New. Transient database
458            implementation.
459    
460            * test/test_transientdb.py: New. Tests for the transient DB
461            classes.
462    
463            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
464            classes to help automatically remove temporary files and
465            directories.
466            (Session.__init__): New instance variables temp_dir for the
467            temporary directory and transient_db for the SQLite database
468            (Session.temp_directory): New. Create a temporary directory if not
469            yet done and return its name. Use AutoRemoveDir to have it
470            automatically deleted
471            (Session.TransientDB): Instantiate the transient database if not
472            done yet and return it.
473    
474            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
475            AutoTransientTable so that data is copied to the transient DB on
476            demand.
477            (SimpleStore): New class that simply combines a table and a
478            shapefile
479    
480            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
481            DBFTable and update its doc-string to reflect the fact that this
482            is only the table interface to a DBF file. Table is now an alias
483            for DBFTable for temporary backwards compatibility.
484    
485            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
486            the last reference to the session goes away so that the temporary
487            files are removed properly.
488    
489            * test/test_load.py (LoadSessionTest.tearDown): Remove the
490            reference to the session to make sure the temporary files are
491            removed.
492    
493    2003-04-29  Bernhard Herzog  <[email protected]>
494    
495            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
496            the __parser instance variable into a normal local variable in
497            read. It's only used there and read will never be called more than
498            once. Plus it introduces a reference cycle that keeps can keep the
499            session object alive for a long time.
500    
501    2003-04-29  Jonathan Coles   <[email protected]>
502    
503            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
504            Projection an immutable item. Fixes RTbug #1825.
505            (Projection.__init__): Initialize instance variables here.
506            (ProjFile.Replace): New. Replace the given projection object with
507            the new projection object. This solves the problem of needing the
508            mutator Projection.SetProjection() in the ProjFrame class and
509            allows a projection to change parameters without changing its
510            location in the file.
511    
512            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
513            be of type wxSAVE and should verify overwriting a file.
514    
515            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
516            ProjFile.Replace() method instead of the mutator
517            Projection.SetProjection(). Also requires that we reassign the
518            client data to the new projection.
519    
520            * test/test_proj.py (TestProjection.test): Test GetName() and
521            GetAllParameters()
522            (TestProjFile.test): Remove tests for Set*() methods. Add tests
523            for Replace().
524    
525    2003-04-25  Jonathan Coles   <[email protected]>
526    
527            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
528            to save the name of the projection.
529    
530            * test/test_save.py (SaveSessionTest.testLayerProjection): New
531            test to verify layer projections are saved correctly.
532    
533    2003-04-25  Jonathan Coles   <[email protected]>
534    
535            * Thuban/Model/proj.py (Projection.SetName): Set the name
536            to "Unknown" if name is None.
537            (Projection.SetAllParameters): New. Set the projection's
538            parameter list to the one supplied.
539            (Projection.SetProjection): New. Set the projection's
540            properties to those of the supplied Projection.
541    
542            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
543            the dialog title to include the map's title.
544            (MainWindow.LayerProjection): Set the dialog title to include
545            the layer's title.
546    
547            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
548            error dialogs into a single method call.
549            (ProjFrame.__VerifyButtons): Add more states to check.
550            (ProjFrame.__GetProjection): Return the current state of an
551            edited projection or None.
552            (ProjFrame.__FillAvailList): Remove checks for states that
553            shouldn't exist.
554            (ProjFrame._OnNew): Clear all selected items and supply
555            a projection panel if necessary.
556    
557            * test/test_proj.py (TestProjFile.test): Add tests for
558            ProjFile.SetAllParameters, ProjFile.SetProjection,
559            ProjFile.SetName.
560    
561    2003-04-25  Jonathan Coles   <[email protected]>
562    
563            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
564            takes an optional argument to select the current projection.
565            This does not guarantee that the item is visible due to
566            limited wxWindows functionality. Fixes RTBug #1821.
567    
568    2003-04-25  Jonathan Coles   <[email protected]>
569    
570            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
571            the projection name and use it when constructing the Projection
572            object.
573    
574            * Thuban/Model/proj.py (Projection.__init__): Change the default
575            value for 'name' to None and then test if name is equal to None
576            in the body of the constructor. This way the caller doesn't have to
577            know what the default value should be. Namely, useful in load.py
578            where we have to pick a default value if the 'name' parameter
579            doesn't exist in the XML file.
580    
581            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
582            Tests a file where a layer has a projection.
583    
584    2003-04-25  Jonathan Coles   <[email protected]>
585    
586            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
587            tree for projection information.
588    
589            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
590            XMLReader.GetFileName.
591            (SessionLoader): Added support for loading projection tags that
592            appear inside a layer.
593    
594            * Thuban/Model/proj.py (ProjFile): Document the class. Move
595            back to using a list because the order of the projections in
596            the file is important to maintain. Fixes RTbug #1817.
597    
598            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
599            to ProjFile.GetFilename.
600    
601            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
602            information.
603    
604            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
605            ProjFrame._OnSaveAs. Removed old dead code from previous
606            implementation.
607            (ProjFrame._OnExport): Add support for exporting more than one
608            projection to a single file.
609            (ProjFrame.__FillAvailList): use string formatting (% operator)
610            to build strings that are (partly) translated. Fixes RTbug #1818.
611    
612            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
613            class.
614    
615    2003-04-24  Bernhard Herzog  <[email protected]>
616    
617            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
618    
619            * po/fr.po: New. French translation by Daniel Calvelo Aros
620    
621            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
622            empty strings.
623    
624    2003-04-24  Jonathan Coles   <[email protected]>
625    
626            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
627            implement the interface that the ProjFrame dialog expects.
628    
629            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
630            name of the projection to be changed.
631            (ProjFile): Use a dictionary instead of a list so that removing
632            projections is easier and we are sure about uniqueness.
633            (ProjFile.Remove): Remove the given projection object.
634    
635            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
636            Return a list with only one projection file instead of searching for
637            any projection file. This simplifies many things if the user can
638            only have one system file and one user file.
639    
640            * Thuban/UI/classgen.py: Change all references to
641            genCombo to genChoice.
642    
643            * Thuban/UI/mainwindow.py: Add a Projection option under the
644            layer menu.
645            (MainWindow.LayerProjection): New. Open up a projection window
646            for a layer.
647    
648            * Thuban/UI/projdialog.py: Large changes to how the dialog is
649            laid out. Use three panels instead of one. One for the list of
650            projections, one for the edit controls, and one for the buttons.
651            Fixed resizing problems so that the dialog resizes correctly
652            when the projection panel changes. Added import/export, save, and
653            new buttons/functionality.
654    
655    2003-04-24  Bernhard Herzog  <[email protected]>
656    
657            First step towards table management. Introduce a simple data
658            abstraction so that we replace the data a layer uses more easily
659            in the next step.
660    
661            * Thuban/Model/data.py: New file with a simple data abstraction
662            that bundles shapefile and dbffile into one object.
663    
664            * Thuban/Model/session.py (Session.OpenShapefile): New method to
665            open shapefiles and return a shape store object
666    
667            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
668            object instead of a shapefile filename. This introduces a new
669            instance variable store holding the datastore. For intermediate
670            backwards compatibility keep the old instance variables.
671            (open_shapefile): Removed. No longer needed with the shape store.
672            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
673            get the shape store used by a layer.
674            (Layer.Destroy): No need to explicitly destroy the shapefile or
675            table anymore.
676    
677            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
678            (MainWindow.AddLayer): Use the session's OpenShapefile method to
679            open shapefiles
680    
681            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
682            session's OpenShapefile method to open shapefiles
683    
684            * test/test_classification.py
685            (TestClassification.test_classification): Use the session's
686            OpenShapefile method to open shapefiles and build the filename in
687            a more platform independed way
688    
689            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
690            Implement to have a session to use in the tests
691            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
692            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
693            session's OpenShapefile method to open shapefiles
694            (TestLayerLegend.setUp): Instantiate a session so that we can use
695            it to open shapefiles.
696            (TestLayerLegend.tearDown): Make sure that all references to
697            layers and session are removed otherwise we may get a resource
698            leak
699    
700            * test/test_map.py (TestMapAddLayer.test_add_layer)
701            (TestMapWithContents.setUp): Instantiate a session so that we can
702            use it to open shapefiles.
703            (TestMapWithContents.tearDown): Make sure that all references to
704            layers, maps and sessions are removed otherwise we may get a
705            resource leak
706            ("__main__"): use support.run_tests() so that more info about
707            uncollected garbage is printed
708    
709            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
710            session's OpenShapefile method to open shapefiles
711            ("__main__"): use support.run_tests() so that more info about
712            uncollected garbage is printed
713    
714            * test/test_selection.py (TestSelection.tearDown): Make sure that
715            all references to the session and the selection are removed
716            otherwise we may get a resource leak
717            (TestSelection.get_layer): Instantiate a session so that we can
718            use it to open shapefiles.
719            ("__main__"): use support.run_tests() so that more info about
720            uncollected garbage is printed
721    
722            * test/test_session.py (TestSessionBase.tearDown)
723            (TestSessionWithContent.tearDown): Make sure that all references
724            to the session and layers are removed otherwise we may get a
725            resource leak
726            (TestSessionWithContent.setUp): Use the session's OpenShapefile
727            method to open shapefiles
728    
729  2003-04-24  Jonathan Coles   <[email protected]>  2003-04-24  Jonathan Coles   <[email protected]>
730    
731          * Thuban/Model/load.py (XMLReader.read): Should have been checking          * Thuban/Model/load.py (XMLReader.read): Should have been checking

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26