/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26