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

Legend:
Removed from v.817  
changed lines
  Added in v.999

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26