/[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 924 by frank, Mon May 19 09:12:42 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]>  2003-05-19  Frank Koormann  <[email protected]>
530    
531          Extended version information for Thuban          Extended version information for Thuban

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26