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

Legend:
Removed from v.769  
changed lines
  Added in v.1044

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26