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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26