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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26