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

Legend:
Removed from v.840  
changed lines
  Added in v.1006

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26