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

Legend:
Removed from v.766  
changed lines
  Added in v.1048

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26