/[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 893 by frank, Mon May 12 10:46:05 2003 UTC revision 1004 by frank, Thu May 22 19:46:57 2003 UTC
# Line 1  Line 1 
1    2003-05-22  Frank Koormann  <frank.koormann@intevation.de>
2    
3            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
4            TransientTable.Title()
5    
6    2003-05-22  Frank Koormann  <frank.koormann@intevation.de>
7    
8            Join Dialog, initial version.
9    
10            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
11    
12            * Thuban/UI/join.py (JoinDialog): Functional implementation of
13            former framework. Renamed Table1/Table2 to LeftTable/RightTable
14            in all occurences.
15    
16            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
17            Typo fixed.
18    
19    2003-05-22  Bernhard Herzog  <bh@intevation.de>
20    
21            Give the tables titles so that the GUI can display more meaningful
22            names. For now the titles are fixed but depend on e.g. filenames
23            or the titles of the joined tables.
24    
25            * Thuban/Model/transientdb.py (TransientTable.Title)
26            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
27    
28            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
29    
30            * test/test_transientdb.py
31            (TestTransientTable.test_auto_transient_table_title): New. Test
32            for the Title method
33            (TestTransientTable.test_transient_joined_table)
34            (TestTransientTable.test_transient_table): Add test for the Title
35            methods
36    
37            * test/test_memory_table.py (TestMemoryTable.test_title): New.
38            Test for the Title method
39    
40            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
41            the Title method
42    
43    2003-05-22  Bernhard Herzog  <bh@intevation.de>
44    
45            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
46            Provide a better way to destroy the layers
47            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
48            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
49            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
50            the new way to destroy the layers.
51            (TestLayer.test_derived_store): New. Test for using a layer with a
52            DerivedShapeStore
53    
54            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
55            filename if the shape store actually has one.
56    
57    2003-05-22  Bernhard Herzog  <bh@intevation.de>
58    
59            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
60            for the filename
61    
62            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
63            for the FileName method
64            (TestDBFTableWriting.test_write): Fix spelling of filename
65    
66    2003-05-22  Thomas Koester  <tkoester@intevation.de>
67    
68            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
69            from SciParam that now really is immutable.
70    
71    2003-05-22  Frank Koormann  <frank.koormann@intevation.de>
72    
73            Layer Top/Bottom placement added to legend.
74    
75            * Thuban/UI/legend.py
76            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
77            bound to tool events.
78            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
79            New, methods binding the event methods with the map methods.
80    
81            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
82            layer at top/bottom of layer stack.
83    
84            * Resources/Bitmaps/top_layer.xpm: New button icon.
85    
86            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
87    
88    2003-05-22  Bernhard Herzog  <bh@intevation.de>
89    
90            * Thuban/Model/session.py (Session.RemoveTable): New method to
91            remove tables
92    
93            * test/test_session.py (TestSessionSimple.test_remove_table): New.
94            Test for RemoveTable
95    
96    2003-05-22  Thomas Koester  <tkoester@intevation.de>
97    
98            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
99            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
100    
101    2003-05-22  Bernhard Herzog  <bh@intevation.de>
102    
103            Implement a way to discover dependencies between tables and
104            shapestores.
105    
106            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
107            (TransientJoinedTable.Dependencies)
108            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
109            interface
110            (TransientJoinedTable.__init__): Keep tack of the original table
111            objects in addition to the corresponding transient tables.
112    
113            * Thuban/Model/table.py (DBFTable.Dependencies)
114            (MemoryTable.Dependencies): New. Implement the dependencies
115            interface
116    
117            * Thuban/Model/data.py (ShapeTable): New. Helper class for
118            ShapefileStore
119            (ShapefileStore.__init__): Use ShapeTable instead of
120            AutoTransientTable
121            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
122            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
123            methods for filename and type
124            (ShapefileStore.Dependencies): New. Implement the dependencies
125            interface
126            (DerivedShapeStore): New class to replace SimpleStore. The main
127            difference to SimpleStore is that it depends not on a shapefile
128            but another shapestore which expresses the dependencies a bit
129            better
130            (SimpleStore.__init__): Add deprecation warning.
131    
132            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
133            Test for the Dependencies method.
134    
135            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
136            New. Test for the Dependencies method.
137    
138            * test/test_transientdb.py
139            (TestTransientTable.test_auto_transient_table_dependencies): New.
140            Test for the Dependencies method.
141            (TestTransientTable.test_transient_joined_table): Add test for the
142            Dependencies method.
143    
144            * test/test_session.py (TestSessionSimple.setUp)
145            (TestSessionSimple.tearDown): New. Implement a better way to
146            destroy the sessions.
147            (TestSessionSimple.test_initial_state)
148            (TestSessionSimple.test_add_table): Bind session to self.session
149            so that it's destroyed by tearDown
150            (TestSessionSimple.test_open_shapefile): New. Test for
151            OpenShapefile and the object it returns
152    
153    2003-05-22  Bernhard Herzog  <bh@intevation.de>
154    
155            * Thuban/Model/session.py (Session.AddTable): New method to
156            register tables with the session.
157            (Session.Tables): Return the tables registered with AddTable too.
158    
159            * test/test_session.py (TestSessionSimple.test_add_table): New.
160            Test case for the AddTable method
161    
162    2003-05-22  Frank Koormann  <frank.koormann@intevation.de>
163    
164            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
165            lower right corner, center labels for selections, initialize controls
166            in reasonable order for keyboard navigation.
167    
168            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
169            (ProjFrame.__DoOnProjAvail): Determine position of current projection
170            using the wxListBox.FindString() method. Still a problem (#1886)
171    
172            * Thuban/UI/classifier.py
173            (Classifier.__init__, SelectPropertiesDialog.__init__)
174    
175            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
176            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
177            different classification types from here to __init__.
178            (GenUniquePanel.__init__): Set the column width of the first field
179            in the Field ListCtrl to the full width.
180    
181            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
182            Button to 'Export'. Center Buttons in Selection Box, set Focus to
183            Grid.
184            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
185            changes focus to the Selection when pressing "Alt-S".
186    
187            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
188            the text if not visible. The italic font sometimes exceeds the
189            rendering area.
190    
191    2003-05-21  Jonathan Coles   <jonathan@intevation.de>
192    
193            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
194            to OnClose so that Thuban closes correctly.
195    
196            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
197            DockFrame.OnClose, not DockFrame._OnClose.
198    
199    2003-05-21  Jonathan Coles   <jonathan@intevation.de>
200    
201            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
202            references to 'inf' and use new Range __init__ to pass floats
203            directly rather than converting them to strings first.
204            Fixes RTBug #1876.
205    
206            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
207            Use new Range ___init__ to pass floats.
208    
209            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
210            filename is a valid image file. Throw IOError otherwise.
211    
212            * Thuban/Model/range.py: Brought over new Range from SciParam that
213            is immutable and has an __init__ which can accept floats.
214    
215            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
216            into try block. AddLayer doesn't throw any exceptions anymore.
217            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
218            try block.
219    
220            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
221            the first item in choices. Fixes RTBug #1882.
222    
223            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
224            has gone to 0 which is a serious problem. abort.
225            (MapRenderer.draw_raster_layer): Catch IOError seperately and
226            print the error from GDAL.
227    
228            * Thuban/UI/tableview.py (TableGrid.__init__): Call
229            ToggleEventListeners to turn on listening.
230            (TableGrid.ToggleEventListeners): New. Turns event listening on
231            and off so as to prevent excessive messages.
232            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
233            to suppress excessive messages when selecting many rows.
234            Fixes RTBug #1880.
235    
236            * Thuban/UI/view.py: Added checks against if scale == 0. This
237            is a serious problem that can occur when an image without
238            geo data is loading and causes the map projection bounds to
239            go to infinity. Right now, the solution is to simply try
240            to recover.
241    
242            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
243            to set the MFILEReceiver attributes even if the data is NULL.
244    
245            * extensions/thuban/gdalwarp.cpp: Improved the error handling
246            and passed GDAL messages back up to the Python layer. Also
247            tried to fix some memory leaks that were present in the original
248            utility but didn't matter because the program aborted.
249    
250            * test/test_range.py: Copied over tests from SciParam. Removed
251            tests against importing. Fixes RTBug #1867.
252    
253    2003-05-21  Bernhard Herzog  <bh@intevation.de>
254    
255            * test/test_load.py: Remove unused imports and restructure the
256            test code
257            (LoadSessionTest): Split into one class for each test and turn
258            LoadSessionTest itself into the base class for all such session
259            tests.
260            (ClassificationTest): New base class for load tests that test
261            classifications
262            (TestSingleLayer, TestLayerVisibility, TestClassification)
263            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
264            for the individual tests
265    
266            * test/support.py (FileLoadTestCase.filename): New base class for
267            file loading tests
268    
269    2003-05-21  Jan-Oliver Wagner <jan@intevation.de>
270    
271            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
272            Mercator' to 'UTM Zone 32' as a more convenient example.
273            Added 'Gauss Krueger Zone 6'.
274    
275            * Data/iceland_sample_raster.thuban: political polygon now
276            filled transparent to have the raster image visible at once.
277    
278    2003-05-21  Frank Koormann  <frank.koormann@intevation.de>
279    
280            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
281            OnClose() to keep in sync with extensions. Internally Thuban
282            still uses "underscored" names.
283    
284    2003-05-20  Jonathan Coles   <jonathan@intevation.de>
285    
286            This puts back Raster layer support. These layers support projections
287            through the GDAL library. Currently, the CVS version is being used.
288            There are no Debian packages available although this may change soon.
289            A GDAL driver was extended to support writing to memory rather to
290            files.
291    
292            There is still some work that needs to be done, such as some error
293            handling when loading invalid images or when there is a problem
294            projecting the image. This putback simply checks in the majority
295            of the work.
296    
297            * setup.py: Add gdalwarp library extension.
298    
299            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
300            Defaults to False, but can be overridden by subclasses if they
301            support classification.
302            (RasterLayer): New. Defines a new layer that represents an
303            image.
304    
305            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
306            tag handler.
307            (SessionLoader.start_layer): Encode the filename.
308            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
309            New. Supports reading a rasterlayer tag.
310    
311            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
312    
313            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
314            get a string in Latin1. If we get such as string convert it to
315            unicode first, otherwise leave if alone before encoding.
316            (SessionSaver.write_layer): Add support for writing both Layers
317            and RasterLayers.
318    
319            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
320            The right argument may not be a string, it could also be a Column.
321    
322            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
323            Make initial window size 600x400. Fixes RTBug #1872.
324    
325            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
326            the dialog is constructed so that we can support layers that
327            do not have classifications.
328            (Classifier._OnTry): Only build a classification if the layer
329            supports one.
330    
331            * Thuban/UI/legend.py: Change all checks that a layer is an
332            instance of Layer into checks against BaseLayer.
333            (LegendTree.__FillTreeLayer): Only add children to a branch if
334            the layer supports classification.
335    
336            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
337            MainWindow.OpenSession): Don't proceed with an action if the
338            user chooses Cancel when they are asked to save changes.
339            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
340            user to select an image file. Create a new RasterLayer and add
341            it to the map.
342    
343            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
344            for rendering RasterLayer layers.
345            (MapRenderer.draw_raster_layer): Actually method that calls
346            the GDALWarp python wrapper and constructs an image from the
347            data returned.
348    
349            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
350            Choices symbols to match those used in the table query method.
351            Replace deprecated method calls on table with new method names.
352    
353            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
354            how small the scale can get. This still needs more testing.
355    
356            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
357            Provides a driver to output in .bmp format.
358    
359            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
360            New. Provides IO routines which write to memory, rather than a file.
361    
362            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
363            of the gdalwarp utility provided in GDAL. Added function calls
364            that can be accessed from python.
365    
366            * Data/iceland_sample_raster.thuban: New. Sample file that uses
367            a raster layer.
368    
369            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
370            layer image data.
371    
372            * Doc/thuban.dtd: Added rasterlayer attribute definition.
373    
374            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
375            tests associated with the raster layer code.
376    
377            * test/test_transientdb.py
378            (TestTransientTable.test_auto_transient_table_query): Added a test
379            for using a Column object as the "right" parameter to a query.
380    
381    2003-05-19  Frank Koormann  <frank.koormann@intevation.de>
382    
383            * Thuban/version.py (get_changelog_date):
384            Catch exceptions if ChangeLog does not exist.
385    
386            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
387    
388    2003-05-19  Frank Koormann  <frank.koormann@intevation.de>
389    
390            Extended version information for Thuban
391    
392            * Thuban/version.py: New, version information for Thuban: Last
393            modification date and last ChangeLog entry date.
394    
395            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
396            information: Display Thuban, wxPython and Python version.
397    
398    2003-05-16  Bernhard Herzog  <bh@intevation.de>
399    
400            * Thuban/Model/save.py: Remove some unused imports including the
401            __future__ import for nested_scopes as Thuban relies on Python 2.2
402            now.
403            (XMLWriter.encode): Remove the special case for a None argument.
404            In the saver encode is always called with a string argument.
405    
406    2003-05-16  Bernhard Herzog  <bh@intevation.de>
407    
408            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
409            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
410            of the bug was that e.g. float("1.2") would fail. Thuban now
411            requires 2.4.x.
412            
413    2003-05-16  Frank Koormann   <frank.koormann@intevation.de>
414    
415            Printing enhancement and WMF export (under Win32)
416    
417            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
418            ScreenRenderer. Renders Map, Legend and Scalebar for export.
419            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
420            PrintRender.
421    
422            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
423            to fullfil information needed for PrinterRenderer.
424            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
425            (MapCanvas.Print): Adapted to new MapPrintout.
426            (OutputTransform): General calculations to transform from canvas
427            coordinates to export/printing devices.
428    
429            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
430            new method_command to call ExportMap, with platform dependency (only
431            __WXMSW__)
432      
433            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
434            of scalebar drawing area as new parameters.
435            
436            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
437    
438            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
439            Update to extended scalebar.DrawScalebar header.
440    
441            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
442    
443            * test/test_scalebar.py: Made test executable as standalone.
444    
445    2003-05-16  Bernhard Herzog  <bh@intevation.de>
446    
447            * Thuban/Model/table.py (Table): Remove this compatibility alias
448            for DBFTable.
449    
450            * test/test_table.py: Import DBFTable as Table because that alias
451            doesn't exist anymore.
452    
453            * Thuban/UI/classgen.py: Remove some unused imports
454    
455    2003-05-14  Jonathan Coles   <jonathan@intevation.de>
456    
457            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
458            Fix docstring.
459            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
460            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
461            values of the supplied range to determine the beginning and end
462            bounds of the generated classes.
463    
464            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
465            do not have a leading 0 (.5 is now accepted as well as 0.5).
466    
467            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
468            call to ClassGenerator.GenUniformDistribution.
469    
470            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
471            layout bug with the 'Projection' label.
472    
473            * test/support.py (FloatTestCase): New. Needed for the Range tests.
474    
475            * test/test_range.py: New. Imported from SciParam.
476    
477    2003-05-12  Jonathan Coles   <jonathan@intevation.de>
478    
479            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
480            to table.UniqueValues() with calls that retrieve all the values
481            from the table. This will need to be replaced by a method on table
482            which can simply return the list (perhaps more efficiently).
483    
484    2003-05-12  Jonathan Coles   <jonathan@intevation.de>
485    
486            The return value of ClassGenerator.CalculateQuantiles has changed.
487            Refer to the documentation for details.
488    
489            * test/test_classgen.py: Modified Quantile tests to use the
490            new return values.
491    
492            * Thuban/Model/classgen.py
493            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
494            use new return values from CalculateQuantiles to produce the correct
495            range bounds in the Classification.
496            (ClassGenerator.CalculateQuantiles): Add more comments describing
497            the return values and parameters. Make minor adjustments to improve
498            the legibility of the code. Fix problem with adjusted not being set
499            in most cases.
500    
501  2003-05-12  Frank Koormann <frank.koormann@intevation.de>  2003-05-12  Frank Koormann <frank.koormann@intevation.de>
502                    
503          * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode          * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
# Line 5  Line 505 
505    
506  2003-05-09  Jonathan Coles   <jonathan@intevation.de>  2003-05-09  Jonathan Coles   <jonathan@intevation.de>
507    
508            * test/test_classgen.py: New. Tests the Quantile algorithm.
509    
510            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
511            Clean up debugging statement, add comments, fix a small bug in the
512            returned adjusted percentiles.
513            
514    2003-05-09  Jonathan Coles   <jonathan@intevation.de>
515    
516          Introduces Range class from SciParam into the ClassGroupRange class,          Introduces Range class from SciParam into the ClassGroupRange class,
517          and such ranges can now be saved and loaded from disk.          and such ranges can now be saved and loaded from disk.
518    

Legend:
Removed from v.893  
changed lines
  Added in v.1004

root@scm.wald.intevation.org
ViewVC Help
Powered by ViewVC 1.1.26