/[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 927 by frank, Mon May 19 12:09:25 2003 UTC revision 985 by bh, Thu May 22 16:38:01 2003 UTC
# Line 1  Line 1 
1    2003-05-22  Bernhard Herzog  <[email protected]>
2    
3            Implement a way to discover dependencies between tables and
4            shapestores.
5    
6            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
7            (TransientJoinedTable.Dependencies)
8            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
9            interface
10            (TransientJoinedTable.__init__): Keep tack of the original table
11            objects in addition to the corresponding transient tables.
12    
13            * Thuban/Model/table.py (DBFTable.Dependencies)
14            (MemoryTable.Dependencies): New. Implement the dependencies
15            interface
16    
17            * Thuban/Model/data.py (ShapeTable): New. Helper class for
18            ShapefileStore
19            (ShapefileStore.__init__): Use ShapeTable instead of
20            AutoTransientTable
21            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
22            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
23            methods for filename and type
24            (ShapefileStore.Dependencies): New. Implement the dependencies
25            interface
26            (DerivedShapeStore): New class to replace SimpleStore. The main
27            difference to SimpleStore is that it depends not on a shapefile
28            but another shapestore which expresses the dependencies a bit
29            better
30            (SimpleStore.__init__): Add deprecation warning.
31    
32            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
33            Test for the Dependencies method.
34    
35            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
36            New. Test for the Dependencies method.
37    
38            * test/test_transientdb.py
39            (TestTransientTable.test_auto_transient_table_dependencies): New.
40            Test for the Dependencies method.
41            (TestTransientTable.test_transient_joined_table): Add test for the
42            Dependencies method.
43    
44            * test/test_session.py (TestSessionSimple.setUp)
45            (TestSessionSimple.tearDown): New. Implement a better way to
46            destroy the sessions.
47            (TestSessionSimple.test_initial_state)
48            (TestSessionSimple.test_add_table): Bind session to self.session
49            so that it's destroyed by tearDown
50            (TestSessionSimple.test_open_shapefile): New. Test for
51            OpenShapefile and the object it returns
52    
53    2003-05-22  Bernhard Herzog  <[email protected]>
54    
55            * Thuban/Model/session.py (Session.AddTable): New method to
56            register tables with the session.
57            (Session.Tables): Return the tables registered with AddTable too.
58    
59            * test/test_session.py (TestSessionSimple.test_add_table): New.
60            Test case for the AddTable method
61    
62    2003-05-22  Frank Koormann  <[email protected]>
63    
64            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
65            lower right corner, center labels for selections, initialize controls
66            in reasonable order for keyboard navigation.
67    
68            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
69            (ProjFrame.__DoOnProjAvail): Determine position of current projection
70            using the wxListBox.FindString() method. Still a problem (#1886)
71    
72            * Thuban/UI/classifier.py
73            (Classifier.__init__, SelectPropertiesDialog.__init__)
74    
75            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
76            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
77            different classification types from here to __init__.
78            (GenUniquePanel.__init__): Set the column width of the first field
79            in the Field ListCtrl to the full width.
80    
81            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
82            Button to 'Export'. Center Buttons in Selection Box, set Focus to
83            Grid.
84            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
85            changes focus to the Selection when pressing "Alt-S".
86    
87            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
88            the text if not visible. The italic font sometimes exceeds the
89            rendering area.
90    
91    2003-05-21  Jonathan Coles   <[email protected]>
92    
93            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
94            to OnClose so that Thuban closes correctly.
95    
96            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
97            DockFrame.OnClose, not DockFrame._OnClose.
98    
99    2003-05-21  Jonathan Coles   <[email protected]>
100    
101            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
102            references to 'inf' and use new Range __init__ to pass floats
103            directly rather than converting them to strings first.
104            Fixes RTBug #1876.
105    
106            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
107            Use new Range ___init__ to pass floats.
108    
109            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
110            filename is a valid image file. Throw IOError otherwise.
111    
112            * Thuban/Model/range.py: Brought over new Range from SciParam that
113            is immutable and has an __init__ which can accept floats.
114    
115            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
116            into try block. AddLayer doesn't throw any exceptions anymore.
117            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
118            try block.
119    
120            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
121            the first item in choices. Fixes RTBug #1882.
122    
123            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
124            has gone to 0 which is a serious problem. abort.
125            (MapRenderer.draw_raster_layer): Catch IOError seperately and
126            print the error from GDAL.
127    
128            * Thuban/UI/tableview.py (TableGrid.__init__): Call
129            ToggleEventListeners to turn on listening.
130            (TableGrid.ToggleEventListeners): New. Turns event listening on
131            and off so as to prevent excessive messages.
132            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
133            to suppress excessive messages when selecting many rows.
134            Fixes RTBug #1880.
135    
136            * Thuban/UI/view.py: Added checks against if scale == 0. This
137            is a serious problem that can occur when an image without
138            geo data is loading and causes the map projection bounds to
139            go to infinity. Right now, the solution is to simply try
140            to recover.
141    
142            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
143            to set the MFILEReceiver attributes even if the data is NULL.
144    
145            * extensions/thuban/gdalwarp.cpp: Improved the error handling
146            and passed GDAL messages back up to the Python layer. Also
147            tried to fix some memory leaks that were present in the original
148            utility but didn't matter because the program aborted.
149    
150            * test/test_range.py: Copied over tests from SciParam. Removed
151            tests against importing. Fixes RTBug #1867.
152    
153    2003-05-21  Bernhard Herzog  <[email protected]>
154    
155            * test/test_load.py: Remove unused imports and restructure the
156            test code
157            (LoadSessionTest): Split into one class for each test and turn
158            LoadSessionTest itself into the base class for all such session
159            tests.
160            (ClassificationTest): New base class for load tests that test
161            classifications
162            (TestSingleLayer, TestLayerVisibility, TestClassification)
163            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
164            for the individual tests
165    
166            * test/support.py (FileLoadTestCase.filename): New base class for
167            file loading tests
168    
169    2003-05-21  Jan-Oliver Wagner <[email protected]>
170    
171            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
172            Mercator' to 'UTM Zone 32' as a more convenient example.
173            Added 'Gauss Krueger Zone 6'.
174    
175            * Data/iceland_sample_raster.thuban: political polygon now
176            filled transparent to have the raster image visible at once.
177    
178    2003-05-21  Frank Koormann  <[email protected]>
179    
180            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
181            OnClose() to keep in sync with extensions. Internally Thuban
182            still uses "underscored" names.
183    
184    2003-05-20  Jonathan Coles   <[email protected]>
185    
186            This puts back Raster layer support. These layers support projections
187            through the GDAL library. Currently, the CVS version is being used.
188            There are no Debian packages available although this may change soon.
189            A GDAL driver was extended to support writing to memory rather to
190            files.
191    
192            There is still some work that needs to be done, such as some error
193            handling when loading invalid images or when there is a problem
194            projecting the image. This putback simply checks in the majority
195            of the work.
196    
197            * setup.py: Add gdalwarp library extension.
198    
199            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
200            Defaults to False, but can be overridden by subclasses if they
201            support classification.
202            (RasterLayer): New. Defines a new layer that represents an
203            image.
204    
205            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
206            tag handler.
207            (SessionLoader.start_layer): Encode the filename.
208            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
209            New. Supports reading a rasterlayer tag.
210    
211            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
212    
213            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
214            get a string in Latin1. If we get such as string convert it to
215            unicode first, otherwise leave if alone before encoding.
216            (SessionSaver.write_layer): Add support for writing both Layers
217            and RasterLayers.
218    
219            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
220            The right argument may not be a string, it could also be a Column.
221    
222            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
223            Make initial window size 600x400. Fixes RTBug #1872.
224    
225            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
226            the dialog is constructed so that we can support layers that
227            do not have classifications.
228            (Classifier._OnTry): Only build a classification if the layer
229            supports one.
230    
231            * Thuban/UI/legend.py: Change all checks that a layer is an
232            instance of Layer into checks against BaseLayer.
233            (LegendTree.__FillTreeLayer): Only add children to a branch if
234            the layer supports classification.
235    
236            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
237            MainWindow.OpenSession): Don't proceed with an action if the
238            user chooses Cancel when they are asked to save changes.
239            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
240            user to select an image file. Create a new RasterLayer and add
241            it to the map.
242    
243            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
244            for rendering RasterLayer layers.
245            (MapRenderer.draw_raster_layer): Actually method that calls
246            the GDALWarp python wrapper and constructs an image from the
247            data returned.
248    
249            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
250            Choices symbols to match those used in the table query method.
251            Replace deprecated method calls on table with new method names.
252    
253            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
254            how small the scale can get. This still needs more testing.
255    
256            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
257            Provides a driver to output in .bmp format.
258    
259            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
260            New. Provides IO routines which write to memory, rather than a file.
261    
262            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
263            of the gdalwarp utility provided in GDAL. Added function calls
264            that can be accessed from python.
265    
266            * Data/iceland_sample_raster.thuban: New. Sample file that uses
267            a raster layer.
268    
269            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
270            layer image data.
271    
272            * Doc/thuban.dtd: Added rasterlayer attribute definition.
273    
274            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
275            tests associated with the raster layer code.
276    
277            * test/test_transientdb.py
278            (TestTransientTable.test_auto_transient_table_query): Added a test
279            for using a Column object as the "right" parameter to a query.
280    
281  2003-05-19  Frank Koormann  <[email protected]>  2003-05-19  Frank Koormann  <[email protected]>
282    
283          * Thuban/version.py (get_changelog_date):          * Thuban/version.py (get_changelog_date):

Legend:
Removed from v.927  
changed lines
  Added in v.985

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26