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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26