/[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 817 by jonathan, Mon May 5 15:05:36 2003 UTC revision 1030 by frank, Mon May 26 11:48:12 2003 UTC
# Line 1  Line 1 
1    2003-05-26  Frank Koormann  <[email protected]>
2    
3            Table export functionality
4    
5            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
6            Return width (in characters) for a column.
7            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
8            (table_to_dbf): Write table to dbf file.
9            (table_to_csv): Write table to csv file.
10    
11            * Thuban/Model/transientdb.py (TransientTableBase.Width,
12            TransientTableBase.Precision): Return column width and precision.
13    
14            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
15            or table_to_csv depending on file selection.
16    
17            * test/test_dbf_table.py:
18            Test table_to_dbf (extension of former part of test).
19    
20            * test/test_csv_table.py:
21            Test table_to_csv.
22    
23    2003-05-23  Jan-Oliver Wagner <[email protected]>
24    
25            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
26            Use QueryTableFrame instead of TableFrame.
27    
28            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
29            table window with 'Layer Table:' instead of 'Table:'.
30    
31    2003-05-23  Jan-Oliver Wagner <[email protected]>
32    
33            Give all tables a title via mix-in TitledObject.LayerShowTable
34    
35            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
36            only if it exists.
37    
38            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
39            and call its init-method with a default title. Remove Title() method.
40    
41            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
42            AutoTransientTable): mix-in TitledObject and call its init-method with
43            a default title. Remove Title() method.
44    
45    2003-05-23  Bernhard Herzog  <[email protected]>
46    
47            * Thuban/Model/session.py (Session.AddShapeStore): Define
48            AddShapeStore analogously to AddTable.
49    
50            * test/test_session.py (TestSessionSimple.test_add_shapestore):
51            New. Test for AddShapeStore
52    
53    2003-05-23  Jan-Oliver Wagner <[email protected]>
54    
55            Introducing QueryTableFrame and a very coarse ShowTable implementation.
56    
57            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
58            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
59            The latter implements the selection GUI without dependency on a layer.
60            LayerTableFrame now is derived from QueryTableFrame and connects
61            to a layer.
62    
63            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
64            implementation that still needs work.
65    
66            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
67    
68    2003-05-22  Frank Koormann  <[email protected]>
69    
70            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
71            Added "outer_join = False" as optional parameter.
72            (TransientJoinedTable.create): If outer join is true, perform a
73            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
74            the left table. Records not matching are filled with 0 / None.
75    
76            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
77            (JoinDialog.OnJoin): Consider outer join check box.
78    
79    2003-05-22  Bernhard Herzog  <[email protected]>
80    
81            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
82            somewhat safer way. Storing the traceback in a local variable can
83            lead to memory leaks
84    
85    2003-05-22  Bernhard Herzog  <[email protected]>
86    
87            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
88            the wxMessageDialog's Destroy() method.
89    
90    2003-05-22  Frank Koormann  <[email protected]>
91    
92            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
93            TransientTable.Title()
94    
95    2003-05-22  Frank Koormann  <[email protected]>
96    
97            Join Dialog, initial version.
98    
99            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
100    
101            * Thuban/UI/join.py (JoinDialog): Functional implementation of
102            former framework. Renamed Table1/Table2 to LeftTable/RightTable
103            in all occurences.
104    
105            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
106            Typo fixed.
107    
108    2003-05-22  Bernhard Herzog  <[email protected]>
109    
110            Give the tables titles so that the GUI can display more meaningful
111            names. For now the titles are fixed but depend on e.g. filenames
112            or the titles of the joined tables.
113    
114            * Thuban/Model/transientdb.py (TransientTable.Title)
115            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
116    
117            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
118    
119            * test/test_transientdb.py
120            (TestTransientTable.test_auto_transient_table_title): New. Test
121            for the Title method
122            (TestTransientTable.test_transient_joined_table)
123            (TestTransientTable.test_transient_table): Add test for the Title
124            methods
125    
126            * test/test_memory_table.py (TestMemoryTable.test_title): New.
127            Test for the Title method
128    
129            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
130            the Title method
131    
132    2003-05-22  Bernhard Herzog  <[email protected]>
133    
134            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
135            Provide a better way to destroy the layers
136            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
137            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
138            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
139            the new way to destroy the layers.
140            (TestLayer.test_derived_store): New. Test for using a layer with a
141            DerivedShapeStore
142    
143            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
144            filename if the shape store actually has one.
145    
146    2003-05-22  Bernhard Herzog  <[email protected]>
147    
148            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
149            for the filename
150    
151            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
152            for the FileName method
153            (TestDBFTableWriting.test_write): Fix spelling of filename
154    
155    2003-05-22  Thomas Koester  <[email protected]>
156    
157            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
158            from SciParam that now really is immutable.
159    
160    2003-05-22  Frank Koormann  <[email protected]>
161    
162            Layer Top/Bottom placement added to legend.
163    
164            * Thuban/UI/legend.py
165            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
166            bound to tool events.
167            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
168            New, methods binding the event methods with the map methods.
169    
170            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
171            layer at top/bottom of layer stack.
172    
173            * Resources/Bitmaps/top_layer.xpm: New button icon.
174    
175            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
176    
177    2003-05-22  Bernhard Herzog  <[email protected]>
178    
179            * Thuban/Model/session.py (Session.RemoveTable): New method to
180            remove tables
181    
182            * test/test_session.py (TestSessionSimple.test_remove_table): New.
183            Test for RemoveTable
184    
185    2003-05-22  Thomas Koester  <[email protected]>
186    
187            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
188            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
189    
190    2003-05-22  Bernhard Herzog  <[email protected]>
191    
192            Implement a way to discover dependencies between tables and
193            shapestores.
194    
195            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
196            (TransientJoinedTable.Dependencies)
197            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
198            interface
199            (TransientJoinedTable.__init__): Keep tack of the original table
200            objects in addition to the corresponding transient tables.
201    
202            * Thuban/Model/table.py (DBFTable.Dependencies)
203            (MemoryTable.Dependencies): New. Implement the dependencies
204            interface
205    
206            * Thuban/Model/data.py (ShapeTable): New. Helper class for
207            ShapefileStore
208            (ShapefileStore.__init__): Use ShapeTable instead of
209            AutoTransientTable
210            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
211            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
212            methods for filename and type
213            (ShapefileStore.Dependencies): New. Implement the dependencies
214            interface
215            (DerivedShapeStore): New class to replace SimpleStore. The main
216            difference to SimpleStore is that it depends not on a shapefile
217            but another shapestore which expresses the dependencies a bit
218            better
219            (SimpleStore.__init__): Add deprecation warning.
220    
221            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
222            Test for the Dependencies method.
223    
224            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
225            New. Test for the Dependencies method.
226    
227            * test/test_transientdb.py
228            (TestTransientTable.test_auto_transient_table_dependencies): New.
229            Test for the Dependencies method.
230            (TestTransientTable.test_transient_joined_table): Add test for the
231            Dependencies method.
232    
233            * test/test_session.py (TestSessionSimple.setUp)
234            (TestSessionSimple.tearDown): New. Implement a better way to
235            destroy the sessions.
236            (TestSessionSimple.test_initial_state)
237            (TestSessionSimple.test_add_table): Bind session to self.session
238            so that it's destroyed by tearDown
239            (TestSessionSimple.test_open_shapefile): New. Test for
240            OpenShapefile and the object it returns
241    
242    2003-05-22  Bernhard Herzog  <[email protected]>
243    
244            * Thuban/Model/session.py (Session.AddTable): New method to
245            register tables with the session.
246            (Session.Tables): Return the tables registered with AddTable too.
247    
248            * test/test_session.py (TestSessionSimple.test_add_table): New.
249            Test case for the AddTable method
250    
251    2003-05-22  Frank Koormann  <[email protected]>
252    
253            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
254            lower right corner, center labels for selections, initialize controls
255            in reasonable order for keyboard navigation.
256    
257            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
258            (ProjFrame.__DoOnProjAvail): Determine position of current projection
259            using the wxListBox.FindString() method. Still a problem (#1886)
260    
261            * Thuban/UI/classifier.py
262            (Classifier.__init__, SelectPropertiesDialog.__init__)
263    
264            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
265            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
266            different classification types from here to __init__.
267            (GenUniquePanel.__init__): Set the column width of the first field
268            in the Field ListCtrl to the full width.
269    
270            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
271            Button to 'Export'. Center Buttons in Selection Box, set Focus to
272            Grid.
273            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
274            changes focus to the Selection when pressing "Alt-S".
275    
276            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
277            the text if not visible. The italic font sometimes exceeds the
278            rendering area.
279    
280    2003-05-21  Jonathan Coles   <[email protected]>
281    
282            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
283            to OnClose so that Thuban closes correctly.
284    
285            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
286            DockFrame.OnClose, not DockFrame._OnClose.
287    
288    2003-05-21  Jonathan Coles   <[email protected]>
289    
290            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
291            references to 'inf' and use new Range __init__ to pass floats
292            directly rather than converting them to strings first.
293            Fixes RTBug #1876.
294    
295            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
296            Use new Range ___init__ to pass floats.
297    
298            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
299            filename is a valid image file. Throw IOError otherwise.
300    
301            * Thuban/Model/range.py: Brought over new Range from SciParam that
302            is immutable and has an __init__ which can accept floats.
303    
304            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
305            into try block. AddLayer doesn't throw any exceptions anymore.
306            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
307            try block.
308    
309            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
310            the first item in choices. Fixes RTBug #1882.
311    
312            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
313            has gone to 0 which is a serious problem. abort.
314            (MapRenderer.draw_raster_layer): Catch IOError seperately and
315            print the error from GDAL.
316    
317            * Thuban/UI/tableview.py (TableGrid.__init__): Call
318            ToggleEventListeners to turn on listening.
319            (TableGrid.ToggleEventListeners): New. Turns event listening on
320            and off so as to prevent excessive messages.
321            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
322            to suppress excessive messages when selecting many rows.
323            Fixes RTBug #1880.
324    
325            * Thuban/UI/view.py: Added checks against if scale == 0. This
326            is a serious problem that can occur when an image without
327            geo data is loading and causes the map projection bounds to
328            go to infinity. Right now, the solution is to simply try
329            to recover.
330    
331            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
332            to set the MFILEReceiver attributes even if the data is NULL.
333    
334            * extensions/thuban/gdalwarp.cpp: Improved the error handling
335            and passed GDAL messages back up to the Python layer. Also
336            tried to fix some memory leaks that were present in the original
337            utility but didn't matter because the program aborted.
338    
339            * test/test_range.py: Copied over tests from SciParam. Removed
340            tests against importing. Fixes RTBug #1867.
341    
342    2003-05-21  Bernhard Herzog  <[email protected]>
343    
344            * test/test_load.py: Remove unused imports and restructure the
345            test code
346            (LoadSessionTest): Split into one class for each test and turn
347            LoadSessionTest itself into the base class for all such session
348            tests.
349            (ClassificationTest): New base class for load tests that test
350            classifications
351            (TestSingleLayer, TestLayerVisibility, TestClassification)
352            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
353            for the individual tests
354    
355            * test/support.py (FileLoadTestCase.filename): New base class for
356            file loading tests
357    
358    2003-05-21  Jan-Oliver Wagner <[email protected]>
359    
360            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
361            Mercator' to 'UTM Zone 32' as a more convenient example.
362            Added 'Gauss Krueger Zone 6'.
363    
364            * Data/iceland_sample_raster.thuban: political polygon now
365            filled transparent to have the raster image visible at once.
366    
367    2003-05-21  Frank Koormann  <[email protected]>
368    
369            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
370            OnClose() to keep in sync with extensions. Internally Thuban
371            still uses "underscored" names.
372    
373    2003-05-20  Jonathan Coles   <[email protected]>
374    
375            This puts back Raster layer support. These layers support projections
376            through the GDAL library. Currently, the CVS version is being used.
377            There are no Debian packages available although this may change soon.
378            A GDAL driver was extended to support writing to memory rather to
379            files.
380    
381            There is still some work that needs to be done, such as some error
382            handling when loading invalid images or when there is a problem
383            projecting the image. This putback simply checks in the majority
384            of the work.
385    
386            * setup.py: Add gdalwarp library extension.
387    
388            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
389            Defaults to False, but can be overridden by subclasses if they
390            support classification.
391            (RasterLayer): New. Defines a new layer that represents an
392            image.
393    
394            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
395            tag handler.
396            (SessionLoader.start_layer): Encode the filename.
397            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
398            New. Supports reading a rasterlayer tag.
399    
400            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
401    
402            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
403            get a string in Latin1. If we get such as string convert it to
404            unicode first, otherwise leave if alone before encoding.
405            (SessionSaver.write_layer): Add support for writing both Layers
406            and RasterLayers.
407    
408            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
409            The right argument may not be a string, it could also be a Column.
410    
411            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
412            Make initial window size 600x400. Fixes RTBug #1872.
413    
414            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
415            the dialog is constructed so that we can support layers that
416            do not have classifications.
417            (Classifier._OnTry): Only build a classification if the layer
418            supports one.
419    
420            * Thuban/UI/legend.py: Change all checks that a layer is an
421            instance of Layer into checks against BaseLayer.
422            (LegendTree.__FillTreeLayer): Only add children to a branch if
423            the layer supports classification.
424    
425            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
426            MainWindow.OpenSession): Don't proceed with an action if the
427            user chooses Cancel when they are asked to save changes.
428            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
429            user to select an image file. Create a new RasterLayer and add
430            it to the map.
431    
432            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
433            for rendering RasterLayer layers.
434            (MapRenderer.draw_raster_layer): Actually method that calls
435            the GDALWarp python wrapper and constructs an image from the
436            data returned.
437    
438            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
439            Choices symbols to match those used in the table query method.
440            Replace deprecated method calls on table with new method names.
441    
442            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
443            how small the scale can get. This still needs more testing.
444    
445            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
446            Provides a driver to output in .bmp format.
447    
448            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
449            New. Provides IO routines which write to memory, rather than a file.
450    
451            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
452            of the gdalwarp utility provided in GDAL. Added function calls
453            that can be accessed from python.
454    
455            * Data/iceland_sample_raster.thuban: New. Sample file that uses
456            a raster layer.
457    
458            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
459            layer image data.
460    
461            * Doc/thuban.dtd: Added rasterlayer attribute definition.
462    
463            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
464            tests associated with the raster layer code.
465    
466            * test/test_transientdb.py
467            (TestTransientTable.test_auto_transient_table_query): Added a test
468            for using a Column object as the "right" parameter to a query.
469    
470    2003-05-19  Frank Koormann  <[email protected]>
471    
472            * Thuban/version.py (get_changelog_date):
473            Catch exceptions if ChangeLog does not exist.
474    
475            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
476    
477    2003-05-19  Frank Koormann  <[email protected]>
478    
479            Extended version information for Thuban
480    
481            * Thuban/version.py: New, version information for Thuban: Last
482            modification date and last ChangeLog entry date.
483    
484            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
485            information: Display Thuban, wxPython and Python version.
486    
487    2003-05-16  Bernhard Herzog  <[email protected]>
488    
489            * Thuban/Model/save.py: Remove some unused imports including the
490            __future__ import for nested_scopes as Thuban relies on Python 2.2
491            now.
492            (XMLWriter.encode): Remove the special case for a None argument.
493            In the saver encode is always called with a string argument.
494    
495    2003-05-16  Bernhard Herzog  <[email protected]>
496    
497            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
498            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
499            of the bug was that e.g. float("1.2") would fail. Thuban now
500            requires 2.4.x.
501            
502    2003-05-16  Frank Koormann   <[email protected]>
503    
504            Printing enhancement and WMF export (under Win32)
505    
506            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
507            ScreenRenderer. Renders Map, Legend and Scalebar for export.
508            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
509            PrintRender.
510    
511            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
512            to fullfil information needed for PrinterRenderer.
513            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
514            (MapCanvas.Print): Adapted to new MapPrintout.
515            (OutputTransform): General calculations to transform from canvas
516            coordinates to export/printing devices.
517    
518            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
519            new method_command to call ExportMap, with platform dependency (only
520            __WXMSW__)
521      
522            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
523            of scalebar drawing area as new parameters.
524            
525            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
526    
527            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
528            Update to extended scalebar.DrawScalebar header.
529    
530            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
531    
532            * test/test_scalebar.py: Made test executable as standalone.
533    
534    2003-05-16  Bernhard Herzog  <[email protected]>
535    
536            * Thuban/Model/table.py (Table): Remove this compatibility alias
537            for DBFTable.
538    
539            * test/test_table.py: Import DBFTable as Table because that alias
540            doesn't exist anymore.
541    
542            * Thuban/UI/classgen.py: Remove some unused imports
543    
544    2003-05-14  Jonathan Coles   <[email protected]>
545    
546            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
547            Fix docstring.
548            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
549            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
550            values of the supplied range to determine the beginning and end
551            bounds of the generated classes.
552    
553            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
554            do not have a leading 0 (.5 is now accepted as well as 0.5).
555    
556            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
557            call to ClassGenerator.GenUniformDistribution.
558    
559            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
560            layout bug with the 'Projection' label.
561    
562            * test/support.py (FloatTestCase): New. Needed for the Range tests.
563    
564            * test/test_range.py: New. Imported from SciParam.
565    
566    2003-05-12  Jonathan Coles   <[email protected]>
567    
568            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
569            to table.UniqueValues() with calls that retrieve all the values
570            from the table. This will need to be replaced by a method on table
571            which can simply return the list (perhaps more efficiently).
572    
573    2003-05-12  Jonathan Coles   <[email protected]>
574    
575            The return value of ClassGenerator.CalculateQuantiles has changed.
576            Refer to the documentation for details.
577    
578            * test/test_classgen.py: Modified Quantile tests to use the
579            new return values.
580    
581            * Thuban/Model/classgen.py
582            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
583            use new return values from CalculateQuantiles to produce the correct
584            range bounds in the Classification.
585            (ClassGenerator.CalculateQuantiles): Add more comments describing
586            the return values and parameters. Make minor adjustments to improve
587            the legibility of the code. Fix problem with adjusted not being set
588            in most cases.
589    
590    2003-05-12  Frank Koormann <[email protected]>
591            
592            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
593            and latin1. Fixes #1851 finally.
594    
595    2003-05-09  Jonathan Coles   <[email protected]>
596    
597            * test/test_classgen.py: New. Tests the Quantile algorithm.
598    
599            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
600            Clean up debugging statement, add comments, fix a small bug in the
601            returned adjusted percentiles.
602            
603    2003-05-09  Jonathan Coles   <[email protected]>
604    
605            Introduces Range class from SciParam into the ClassGroupRange class,
606            and such ranges can now be saved and loaded from disk.
607    
608            Quantiles are now available in the Classification Generator.
609    
610            Initial support for building Queries on a table. Doesn't do anything
611            but run some tests.
612    
613            * Thuban/Model/classification.py: Explicit imports.
614            (ClassGroupRange): Use the Range class to store the underlying
615            range information. The interface remains the same, except for
616            GetRange(), and you can also supply a Range object as the min
617            parameter to SetRange or __init__.
618    
619            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
620            string appropriately for use in Thuban. Fixes RTbug #1851.
621            (SessionLoader.end_projection): Handle the context of the
622            projection tag a bit better by looking at what objects are not
623            None. There was an assumption that a projection tag for a map
624            could occur before any layers.
625            (SessionLoader.start_clrange): Provide backward compatibility for
626            reading min/max values as well as the new range parameter.
627    
628            * Thuban/Model/map.py: Explicit imports.
629    
630            * Thuban/Model/resource.py: Import _.
631            (ProjFileSaver.write): write header using projfile.dtd.
632    
633            * Thuban/Model/save.py: Explicit imports.
634            (XMLWriter.encode): New. Encode the given string from a format
635            used by Thuban into UTF-8. Fixes RTbug #1851.
636    
637            * Thuban/UI/classgen.py: Explicit imports.
638            (ClassGenDialog.__init__): Clean up the code and add support
639            for Quantiles.
640            (ClassGenDialog.OnOK): Add support for Quantiles.
641            (GenQuantilesPanel): New. Input panel for Quantiles.
642            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
643            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
644    
645            * Thuban/Model/classgen.py: New. Contains all the classes named above.
646    
647            * Thuban/UI/classifier.py: Explicit imports.
648            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
649            ClassTable.SetValueAsCustom): Reworked to use new Range class.
650    
651            * Thuban/UI/legend.py: Explicit imports.
652    
653            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
654            a Table menu and associated method calls.
655            (MainWindow.choose_color): Removed. No longer needed.
656    
657            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
658            should be disabled if no projection is selected in the available
659            list.
660    
661            * Thuban/UI/renderer.py: Explicit imports.
662    
663            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
664            with correctly selecting the rows and issuing the right events.
665            Be sure to call Skip() to allow the grid to do some of its own
666            handling which allows the rows to actually be selected.
667            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
668            selecting multiple shapes.
669            (LayerTableFrame): Support for building Queries.
670            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
671    
672            * Thuban/UI/tree.py: Explicit imports.
673    
674            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
675            table view can call it.
676    
677            * test/test_classification.py: Explicit imports.
678            (TestClassification.test_ClassGroupRange): Fix test for new
679            Range class.
680    
681            * Doc/thuban.dtd: Add range parameter for clrange.
682    
683            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
684            object in ClassGroupRange, and also uesd for inputting ranges in
685            the classifer table and elsewhere.
686    
687            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
688            yet.
689    
690    2003-05-09  Frank Koormann <[email protected]>
691    
692            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
693    
694    2003-05-08  Frank Koormann <[email protected]>
695    
696            Coding style updates
697    
698            * test/test_scalebar.py: Replaced tab indentation by spaces.
699    
700            * Thuban/UI/scalebar.py: Explicit imports.
701    
702    2003-05-08  Frank Koormann <[email protected]>
703    
704            * Thuban/UI/scalebar.py
705            (ScaleBar.DrawScalebar): Format string bug fixed.
706    
707    2003-05-08  Frank Koormann <[email protected]>
708    
709            Reorganization of scalebar component (no wx in Thuban/Model)
710    
711            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
712            (deriveInterval):
713            Calculate scalebar interval and unit which fits in width for scale.
714            (roundInterval): Round float.
715    
716            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
717    
718            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
719    
720            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
721    
722    2003-05-08  Frank Koormann <[email protected]>
723    
724            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
725            Initialize ScaleBar with canvas.map
726    
727            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
728            round intervals to display smarter lengths
729            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
730            layer. If the maps has no projection applied grey the scalebar.
731    
732    2003-05-07  Frank Koormann <[email protected]>
733            
734            Basic Scalebar features added.
735    
736            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
737    
738            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
739            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
740            and the renderer.
741    
742            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
743    
744            * Thuban/UI/messages.py: SCALE_CHANGED added.
745    
746    2003-05-07  Bernhard Herzog  <[email protected]>
747    
748            * Thuban/Model/session.py (Session.__init__): New instance
749            variable shapestores to hold a list of all open shapestore objects
750            (Session.ShapeStores): New. Accessor method for the shapestores
751            list.
752            (Session._add_shapestore, Session._clean_weak_store_refs): New.
753            Internal methods to maintain the shapestores list.
754            (Session.Tables): New. Return all tables open in the session.
755            (Session.OpenShapefile): Insert the new ShapeStore into the
756            shapestores list.
757    
758            * test/test_session.py (TestSessionSimple.test_initial_state): Add
759            tests for ShapeStores and Tables
760            (TestSessionWithContent.test_shape_stores)
761            (TestSessionWithContent.test_tables): New. Test cases for
762            ShapeStores and Tables
763    
764    2003-05-07  Bernhard Herzog  <[email protected]>
765    
766            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
767            Add comments about the optimizations used.
768            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
769            Implement the ReadValue table interface method.
770    
771            * test/test_transientdb.py
772            (TestTransientTable.run_iceland_political_tests)
773            (TestTransientTable.test_transient_joined_table): Add tests for
774            ReadValue
775    
776    2003-05-07  Frank Koormann <[email protected]>
777    
778            * Resources/Bitmaps/fulllayerextent.xpm,
779            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
780            new icons.
781    
782    2003-05-06  Bernhard Herzog  <[email protected]>
783    
784            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
785            New. Simply delegate to the transient table's version.
786    
787            * test/test_transientdb.py
788            (TestTransientTable.test_auto_transient_table_query): New. Test
789            case for AutoTransientTable's SimpleQuery
790    
791    2003-05-06  Bernhard Herzog  <[email protected]>
792    
793            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
794            Implement a simple query method for the query dialog
795            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
796            the row index or shapeid.
797            (TransientTable.create): Insert the right value of the row index
798            (TransientJoinedTable.create): Copy the row index of the left
799            table to the joined result table
800    
801            * test/test_transientdb.py
802            (TestTransientTable.test_transient_table_read_twice): Fix
803            doc-string
804            (TestTransientTable.test_transient_table_query): New. Test for the
805            SimpleQuery method
806    
807    2003-05-06  Bernhard Herzog  <[email protected]>
808    
809            Convert all table users to use the new table interface. This only
810            covers Thuban itself, not GREAT-ER or other applications built on
811            Thuban yet, so the compatibility interface stays in place for the
812            time being but it now issues DeprecationWarnings.
813    
814            Finally, the new Table interface has a new method, HasColumn.
815    
816            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
817            issue deprecation warnings when they're. The warnings refer to the
818            caller of the method.
819            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
820            for the deprecation warnings
821    
822            * test/test_table.py: Ignore the deprecation warnings for the old
823            table in the tests in this module. The purpose of the tests is to
824            test the old interface, after all.
825    
826            * test/test_transientdb.py
827            (TestTransientTable.run_iceland_political_tests): Use the
828            constants for the types. Add a test for HasColumn
829            (TestTransientTable.test_transient_joined_table): Adapt to new
830            table interface. Add a test for HasColumn
831            (TestTransientTable.test_transient_table_read_twice): Adapt to new
832            table interface
833    
834            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
835            Adapt to new table interface
836    
837            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
838            new table interface
839    
840            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
841            (RecordTable.SetTable): Adapt to new table interface
842    
843            * Thuban/UI/classifier.py (Classifier.__init__)
844            (Classifier.__init__): Adapt to new table interface
845    
846            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
847            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
848            to new table interface
849    
850            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
851            (AutoTransientTable.HasColumn): Implement the new table interface
852            method
853            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
854            (AutoTransientTable.UniqueValues): Adapt to new table interface
855    
856            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
857            Adapt to new table interface
858    
859            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
860            simplify opening shapefiles a bit easier.
861            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
862            (TestLayer.test_point_layer): Use the new helper method
863            (TestLayer.test_get_field_type): New. Test for the GetFieldType
864            method
865    
866            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
867            the new table method
868    
869            * test/test_memory_table.py (TestMemoryTable.test_has_column):
870            Test for the new table method HasColumn
871    
872    2003-05-06  Jonathan Coles   <[email protected]>
873    
874            Addresses the "Selection Extent" wish of RTbug #1787.
875    
876            * Resources/Bitmaps/fulllayerextent.xpm,
877            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
878            extent. These are just place holders for the real bitmaps.
879    
880            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
881            calculate the bounding box once (the first time compute_bbox() is
882            called).
883            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
884            the bounding box for the shapes in lat/long coordinates.
885    
886            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
887            option.
888            (MainWindow.has_selected_shapes): New. Returns true if there are
889            any selected shapes.
890            (MainWindow.FullSelectionExtent): New. Calls
891            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
892            (_has_selected_shapes): New. Returns true if there are any
893            selected shapes.
894    
895            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
896            true if there are any selected shapes.
897    
898            * Thuban/UI/view.py (MapCanvas): Added delegated method
899            HasSelectedShapes.
900            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
901            shapes on the canvas using the map projection (if any).
902    
903            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
904            for Layer.ShapesBoundingBox().
905    
906    2003-05-06  Bernhard Herzog  <[email protected]>
907    
908            * Resources/Projections/defaults.proj: Fix spelling of Mercator
909    
910    2003-05-05  Jonathan Coles   <[email protected]>
911    
912            Addresses the "Full Layer Extent" wish of RTbug #1787.
913    
914            * Resources/Projections/defaults.proj: Added UK National Grid.
915    
916            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
917            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
918            when the user selects the menu option.
919    
920            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
921            scales the given layer on the canvas using the map projection.
922    
923    2003-05-05  Bernhard Herzog  <[email protected]>
924    
925            Convert the table implementations to a new table interface. All
926            tables use a common mixin class to provide backwards compatibility
927            until all table users have been updated.
928    
929            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
930            provide backwards compatibility for table classes implementing the
931            new interface
932            (DBFTable, MemoryTable): Implement the new table interface. Use
933            OldTableInterfaceMixin as base for compatibility
934            (DBFColumn, MemoryColumn): New. Column description for DBFTable
935            and MemoryTable resp.
936    
937            * test/test_dbf_table.py: New. Test cases for the DBFTable with
938            the new table interface.
939    
940            * test/test_memory_table.py: New. Test cases for the MemoryTable
941            with the new table interface.
942    
943            * test/test_table.py: Document the all tests in this file as only
944            for backwards compatibility. The equivalent tests for the new
945            interface are in test_memory_table.py and test_dbf_table.py
946            (MemoryTableTest.test_read): field_info should be returning tuples
947            with four items
948            (MemoryTableTest.test_write): Make doc-string a more precise.
949    
950            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
951            table interface. Derive from from OldTableInterfaceMixin for
952            compatibility.
953            (TransientTableBase.create): New intance variable column_map to
954            map from names and indices to column objects
955            (TransientTable.create): Use the new table interface of the input
956            table
957            (AutoTransientTable): Convert to new table interface. Derive from
958            from OldTableInterfaceMixin for compatibility.
959            (AutoTransientTable.write_record): Removed. It's not implemented
960            yet and we still have to decide how to handle writing with the new
961            table and data framework.
962    
963            * test/test_transientdb.py
964            (TestTransientTable.run_iceland_political_tests)
965            (TestTransientTable.test_transient_joined_table): Use the new
966            table interface
967    
968  2003-05-05  Jonathan Coles   <[email protected]>  2003-05-05  Jonathan Coles   <[email protected]>
969    
970          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.1030

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26