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

Legend:
Removed from v.833  
changed lines
  Added in v.1051

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26