/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

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

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

Legend:
Removed from v.809  
changed lines
  Added in v.1053

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26