/[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 766 by bh, Tue Apr 29 12:42:27 2003 UTC revision 975 by jonathan, Wed May 21 17:39:51 2003 UTC
# Line 1  Line 1 
1    2003-05-21  Jonathan Coles   <[email protected]>
2    
3            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
4            to OnClose so that Thuban closes correctly.
5    
6            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
7            DockFrame.OnClose, not DockFrame._OnClose.
8    
9    2003-05-21  Jonathan Coles   <[email protected]>
10    
11            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
12            references to 'inf' and use new Range __init__ to pass floats
13            directly rather than converting them to strings first.
14            Fixes RTBug #1876.
15    
16            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
17            Use new Range ___init__ to pass floats.
18    
19            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
20            filename is a valid image file. Throw IOError otherwise.
21    
22            * Thuban/Model/range.py: Brought over new Range from SciParam that
23            is immutable and has an __init__ which can accept floats.
24    
25            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
26            into try block. AddLayer doesn't throw any exceptions anymore.
27            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
28            try block.
29    
30            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
31            the first item in choices. Fixes RTBug #1882.
32    
33            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
34            has gone to 0 which is a serious problem. abort.
35            (MapRenderer.draw_raster_layer): Catch IOError seperately and
36            print the error from GDAL.
37    
38            * Thuban/UI/tableview.py (TableGrid.__init__): Call
39            ToggleEventListeners to turn on listening.
40            (TableGrid.ToggleEventListeners): New. Turns event listening on
41            and off so as to prevent excessive messages.
42            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
43            to suppress excessive messages when selecting many rows.
44            Fixes RTBug #1880.
45    
46            * Thuban/UI/view.py: Added checks against if scale == 0. This
47            is a serious problem that can occur when an image without
48            geo data is loading and causes the map projection bounds to
49            go to infinity. Right now, the solution is to simply try
50            to recover.
51    
52            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
53            to set the MFILEReceiver attributes even if the data is NULL.
54    
55            * extensions/thuban/gdalwarp.cpp: Improved the error handling
56            and passed GDAL messages back up to the Python layer. Also
57            tried to fix some memory leaks that were present in the original
58            utility but didn't matter because the program aborted.
59    
60            * test/test_range.py: Copied over tests from SciParam. Removed
61            tests against importing. Fixes RTBug #1867.
62    
63    2003-05-21  Bernhard Herzog  <[email protected]>
64    
65            * test/test_load.py: Remove unused imports and restructure the
66            test code
67            (LoadSessionTest): Split into one class for each test and turn
68            LoadSessionTest itself into the base class for all such session
69            tests.
70            (ClassificationTest): New base class for load tests that test
71            classifications
72            (TestSingleLayer, TestLayerVisibility, TestClassification)
73            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
74            for the individual tests
75    
76            * test/support.py (FileLoadTestCase.filename): New base class for
77            file loading tests
78    
79    2003-05-21  Jan-Oliver Wagner <[email protected]>
80    
81            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
82            Mercator' to 'UTM Zone 32' as a more convenient example.
83            Added 'Gauss Krueger Zone 6'.
84    
85            * Data/iceland_sample_raster.thuban: political polygon now
86            filled transparent to have the raster image visible at once.
87    
88    2003-05-21  Frank Koormann  <[email protected]>
89    
90            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
91            OnClose() to keep in sync with extensions. Internally Thuban
92            still uses "underscored" names.
93    
94    2003-05-20  Jonathan Coles   <[email protected]>
95    
96            This puts back Raster layer support. These layers support projections
97            through the GDAL library. Currently, the CVS version is being used.
98            There are no Debian packages available although this may change soon.
99            A GDAL driver was extended to support writing to memory rather to
100            files.
101    
102            There is still some work that needs to be done, such as some error
103            handling when loading invalid images or when there is a problem
104            projecting the image. This putback simply checks in the majority
105            of the work.
106    
107            * setup.py: Add gdalwarp library extension.
108    
109            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
110            Defaults to False, but can be overridden by subclasses if they
111            support classification.
112            (RasterLayer): New. Defines a new layer that represents an
113            image.
114    
115            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
116            tag handler.
117            (SessionLoader.start_layer): Encode the filename.
118            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
119            New. Supports reading a rasterlayer tag.
120    
121            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
122    
123            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
124            get a string in Latin1. If we get such as string convert it to
125            unicode first, otherwise leave if alone before encoding.
126            (SessionSaver.write_layer): Add support for writing both Layers
127            and RasterLayers.
128    
129            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
130            The right argument may not be a string, it could also be a Column.
131    
132            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
133            Make initial window size 600x400. Fixes RTBug #1872.
134    
135            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
136            the dialog is constructed so that we can support layers that
137            do not have classifications.
138            (Classifier._OnTry): Only build a classification if the layer
139            supports one.
140    
141            * Thuban/UI/legend.py: Change all checks that a layer is an
142            instance of Layer into checks against BaseLayer.
143            (LegendTree.__FillTreeLayer): Only add children to a branch if
144            the layer supports classification.
145    
146            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
147            MainWindow.OpenSession): Don't proceed with an action if the
148            user chooses Cancel when they are asked to save changes.
149            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
150            user to select an image file. Create a new RasterLayer and add
151            it to the map.
152    
153            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
154            for rendering RasterLayer layers.
155            (MapRenderer.draw_raster_layer): Actually method that calls
156            the GDALWarp python wrapper and constructs an image from the
157            data returned.
158    
159            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
160            Choices symbols to match those used in the table query method.
161            Replace deprecated method calls on table with new method names.
162    
163            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
164            how small the scale can get. This still needs more testing.
165    
166            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
167            Provides a driver to output in .bmp format.
168    
169            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
170            New. Provides IO routines which write to memory, rather than a file.
171    
172            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
173            of the gdalwarp utility provided in GDAL. Added function calls
174            that can be accessed from python.
175    
176            * Data/iceland_sample_raster.thuban: New. Sample file that uses
177            a raster layer.
178    
179            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
180            layer image data.
181    
182            * Doc/thuban.dtd: Added rasterlayer attribute definition.
183    
184            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
185            tests associated with the raster layer code.
186    
187            * test/test_transientdb.py
188            (TestTransientTable.test_auto_transient_table_query): Added a test
189            for using a Column object as the "right" parameter to a query.
190    
191    2003-05-19  Frank Koormann  <[email protected]>
192    
193            * Thuban/version.py (get_changelog_date):
194            Catch exceptions if ChangeLog does not exist.
195    
196            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
197    
198    2003-05-19  Frank Koormann  <[email protected]>
199    
200            Extended version information for Thuban
201    
202            * Thuban/version.py: New, version information for Thuban: Last
203            modification date and last ChangeLog entry date.
204    
205            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
206            information: Display Thuban, wxPython and Python version.
207    
208    2003-05-16  Bernhard Herzog  <[email protected]>
209    
210            * Thuban/Model/save.py: Remove some unused imports including the
211            __future__ import for nested_scopes as Thuban relies on Python 2.2
212            now.
213            (XMLWriter.encode): Remove the special case for a None argument.
214            In the saver encode is always called with a string argument.
215    
216    2003-05-16  Bernhard Herzog  <[email protected]>
217    
218            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
219            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
220            of the bug was that e.g. float("1.2") would fail. Thuban now
221            requires 2.4.x.
222            
223    2003-05-16  Frank Koormann   <[email protected]>
224    
225            Printing enhancement and WMF export (under Win32)
226    
227            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
228            ScreenRenderer. Renders Map, Legend and Scalebar for export.
229            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
230            PrintRender.
231    
232            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
233            to fullfil information needed for PrinterRenderer.
234            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
235            (MapCanvas.Print): Adapted to new MapPrintout.
236            (OutputTransform): General calculations to transform from canvas
237            coordinates to export/printing devices.
238    
239            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
240            new method_command to call ExportMap, with platform dependency (only
241            __WXMSW__)
242      
243            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
244            of scalebar drawing area as new parameters.
245            
246            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
247    
248            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
249            Update to extended scalebar.DrawScalebar header.
250    
251            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
252    
253            * test/test_scalebar.py: Made test executable as standalone.
254    
255    2003-05-16  Bernhard Herzog  <[email protected]>
256    
257            * Thuban/Model/table.py (Table): Remove this compatibility alias
258            for DBFTable.
259    
260            * test/test_table.py: Import DBFTable as Table because that alias
261            doesn't exist anymore.
262    
263            * Thuban/UI/classgen.py: Remove some unused imports
264    
265    2003-05-14  Jonathan Coles   <[email protected]>
266    
267            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
268            Fix docstring.
269            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
270            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
271            values of the supplied range to determine the beginning and end
272            bounds of the generated classes.
273    
274            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
275            do not have a leading 0 (.5 is now accepted as well as 0.5).
276    
277            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
278            call to ClassGenerator.GenUniformDistribution.
279    
280            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
281            layout bug with the 'Projection' label.
282    
283            * test/support.py (FloatTestCase): New. Needed for the Range tests.
284    
285            * test/test_range.py: New. Imported from SciParam.
286    
287    2003-05-12  Jonathan Coles   <[email protected]>
288    
289            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
290            to table.UniqueValues() with calls that retrieve all the values
291            from the table. This will need to be replaced by a method on table
292            which can simply return the list (perhaps more efficiently).
293    
294    2003-05-12  Jonathan Coles   <[email protected]>
295    
296            The return value of ClassGenerator.CalculateQuantiles has changed.
297            Refer to the documentation for details.
298    
299            * test/test_classgen.py: Modified Quantile tests to use the
300            new return values.
301    
302            * Thuban/Model/classgen.py
303            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
304            use new return values from CalculateQuantiles to produce the correct
305            range bounds in the Classification.
306            (ClassGenerator.CalculateQuantiles): Add more comments describing
307            the return values and parameters. Make minor adjustments to improve
308            the legibility of the code. Fix problem with adjusted not being set
309            in most cases.
310    
311    2003-05-12  Frank Koormann <[email protected]>
312            
313            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
314            and latin1. Fixes #1851 finally.
315    
316    2003-05-09  Jonathan Coles   <[email protected]>
317    
318            * test/test_classgen.py: New. Tests the Quantile algorithm.
319    
320            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
321            Clean up debugging statement, add comments, fix a small bug in the
322            returned adjusted percentiles.
323            
324    2003-05-09  Jonathan Coles   <[email protected]>
325    
326            Introduces Range class from SciParam into the ClassGroupRange class,
327            and such ranges can now be saved and loaded from disk.
328    
329            Quantiles are now available in the Classification Generator.
330    
331            Initial support for building Queries on a table. Doesn't do anything
332            but run some tests.
333    
334            * Thuban/Model/classification.py: Explicit imports.
335            (ClassGroupRange): Use the Range class to store the underlying
336            range information. The interface remains the same, except for
337            GetRange(), and you can also supply a Range object as the min
338            parameter to SetRange or __init__.
339    
340            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
341            string appropriately for use in Thuban. Fixes RTbug #1851.
342            (SessionLoader.end_projection): Handle the context of the
343            projection tag a bit better by looking at what objects are not
344            None. There was an assumption that a projection tag for a map
345            could occur before any layers.
346            (SessionLoader.start_clrange): Provide backward compatibility for
347            reading min/max values as well as the new range parameter.
348    
349            * Thuban/Model/map.py: Explicit imports.
350    
351            * Thuban/Model/resource.py: Import _.
352            (ProjFileSaver.write): write header using projfile.dtd.
353    
354            * Thuban/Model/save.py: Explicit imports.
355            (XMLWriter.encode): New. Encode the given string from a format
356            used by Thuban into UTF-8. Fixes RTbug #1851.
357    
358            * Thuban/UI/classgen.py: Explicit imports.
359            (ClassGenDialog.__init__): Clean up the code and add support
360            for Quantiles.
361            (ClassGenDialog.OnOK): Add support for Quantiles.
362            (GenQuantilesPanel): New. Input panel for Quantiles.
363            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
364            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
365    
366            * Thuban/Model/classgen.py: New. Contains all the classes named above.
367    
368            * Thuban/UI/classifier.py: Explicit imports.
369            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
370            ClassTable.SetValueAsCustom): Reworked to use new Range class.
371    
372            * Thuban/UI/legend.py: Explicit imports.
373    
374            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
375            a Table menu and associated method calls.
376            (MainWindow.choose_color): Removed. No longer needed.
377    
378            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
379            should be disabled if no projection is selected in the available
380            list.
381    
382            * Thuban/UI/renderer.py: Explicit imports.
383    
384            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
385            with correctly selecting the rows and issuing the right events.
386            Be sure to call Skip() to allow the grid to do some of its own
387            handling which allows the rows to actually be selected.
388            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
389            selecting multiple shapes.
390            (LayerTableFrame): Support for building Queries.
391            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
392    
393            * Thuban/UI/tree.py: Explicit imports.
394    
395            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
396            table view can call it.
397    
398            * test/test_classification.py: Explicit imports.
399            (TestClassification.test_ClassGroupRange): Fix test for new
400            Range class.
401    
402            * Doc/thuban.dtd: Add range parameter for clrange.
403    
404            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
405            object in ClassGroupRange, and also uesd for inputting ranges in
406            the classifer table and elsewhere.
407    
408            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
409            yet.
410    
411    2003-05-09  Frank Koormann <[email protected]>
412    
413            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
414    
415    2003-05-08  Frank Koormann <[email protected]>
416    
417            Coding style updates
418    
419            * test/test_scalebar.py: Replaced tab indentation by spaces.
420    
421            * Thuban/UI/scalebar.py: Explicit imports.
422    
423    2003-05-08  Frank Koormann <[email protected]>
424    
425            * Thuban/UI/scalebar.py
426            (ScaleBar.DrawScalebar): Format string bug fixed.
427    
428    2003-05-08  Frank Koormann <[email protected]>
429    
430            Reorganization of scalebar component (no wx in Thuban/Model)
431    
432            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
433            (deriveInterval):
434            Calculate scalebar interval and unit which fits in width for scale.
435            (roundInterval): Round float.
436    
437            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
438    
439            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
440    
441            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
442    
443    2003-05-08  Frank Koormann <[email protected]>
444    
445            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
446            Initialize ScaleBar with canvas.map
447    
448            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
449            round intervals to display smarter lengths
450            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
451            layer. If the maps has no projection applied grey the scalebar.
452    
453    2003-05-07  Frank Koormann <[email protected]>
454            
455            Basic Scalebar features added.
456    
457            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
458    
459            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
460            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
461            and the renderer.
462    
463            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
464    
465            * Thuban/UI/messages.py: SCALE_CHANGED added.
466    
467    2003-05-07  Bernhard Herzog  <[email protected]>
468    
469            * Thuban/Model/session.py (Session.__init__): New instance
470            variable shapestores to hold a list of all open shapestore objects
471            (Session.ShapeStores): New. Accessor method for the shapestores
472            list.
473            (Session._add_shapestore, Session._clean_weak_store_refs): New.
474            Internal methods to maintain the shapestores list.
475            (Session.Tables): New. Return all tables open in the session.
476            (Session.OpenShapefile): Insert the new ShapeStore into the
477            shapestores list.
478    
479            * test/test_session.py (TestSessionSimple.test_initial_state): Add
480            tests for ShapeStores and Tables
481            (TestSessionWithContent.test_shape_stores)
482            (TestSessionWithContent.test_tables): New. Test cases for
483            ShapeStores and Tables
484    
485    2003-05-07  Bernhard Herzog  <[email protected]>
486    
487            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
488            Add comments about the optimizations used.
489            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
490            Implement the ReadValue table interface method.
491    
492            * test/test_transientdb.py
493            (TestTransientTable.run_iceland_political_tests)
494            (TestTransientTable.test_transient_joined_table): Add tests for
495            ReadValue
496    
497    2003-05-07  Frank Koormann <[email protected]>
498    
499            * Resources/Bitmaps/fulllayerextent.xpm,
500            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
501            new icons.
502    
503    2003-05-06  Bernhard Herzog  <[email protected]>
504    
505            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
506            New. Simply delegate to the transient table's version.
507    
508            * test/test_transientdb.py
509            (TestTransientTable.test_auto_transient_table_query): New. Test
510            case for AutoTransientTable's SimpleQuery
511    
512    2003-05-06  Bernhard Herzog  <[email protected]>
513    
514            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
515            Implement a simple query method for the query dialog
516            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
517            the row index or shapeid.
518            (TransientTable.create): Insert the right value of the row index
519            (TransientJoinedTable.create): Copy the row index of the left
520            table to the joined result table
521    
522            * test/test_transientdb.py
523            (TestTransientTable.test_transient_table_read_twice): Fix
524            doc-string
525            (TestTransientTable.test_transient_table_query): New. Test for the
526            SimpleQuery method
527    
528    2003-05-06  Bernhard Herzog  <[email protected]>
529    
530            Convert all table users to use the new table interface. This only
531            covers Thuban itself, not GREAT-ER or other applications built on
532            Thuban yet, so the compatibility interface stays in place for the
533            time being but it now issues DeprecationWarnings.
534    
535            Finally, the new Table interface has a new method, HasColumn.
536    
537            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
538            issue deprecation warnings when they're. The warnings refer to the
539            caller of the method.
540            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
541            for the deprecation warnings
542    
543            * test/test_table.py: Ignore the deprecation warnings for the old
544            table in the tests in this module. The purpose of the tests is to
545            test the old interface, after all.
546    
547            * test/test_transientdb.py
548            (TestTransientTable.run_iceland_political_tests): Use the
549            constants for the types. Add a test for HasColumn
550            (TestTransientTable.test_transient_joined_table): Adapt to new
551            table interface. Add a test for HasColumn
552            (TestTransientTable.test_transient_table_read_twice): Adapt to new
553            table interface
554    
555            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
556            Adapt to new table interface
557    
558            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
559            new table interface
560    
561            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
562            (RecordTable.SetTable): Adapt to new table interface
563    
564            * Thuban/UI/classifier.py (Classifier.__init__)
565            (Classifier.__init__): Adapt to new table interface
566    
567            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
568            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
569            to new table interface
570    
571            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
572            (AutoTransientTable.HasColumn): Implement the new table interface
573            method
574            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
575            (AutoTransientTable.UniqueValues): Adapt to new table interface
576    
577            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
578            Adapt to new table interface
579    
580            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
581            simplify opening shapefiles a bit easier.
582            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
583            (TestLayer.test_point_layer): Use the new helper method
584            (TestLayer.test_get_field_type): New. Test for the GetFieldType
585            method
586    
587            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
588            the new table method
589    
590            * test/test_memory_table.py (TestMemoryTable.test_has_column):
591            Test for the new table method HasColumn
592    
593    2003-05-06  Jonathan Coles   <[email protected]>
594    
595            Addresses the "Selection Extent" wish of RTbug #1787.
596    
597            * Resources/Bitmaps/fulllayerextent.xpm,
598            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
599            extent. These are just place holders for the real bitmaps.
600    
601            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
602            calculate the bounding box once (the first time compute_bbox() is
603            called).
604            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
605            the bounding box for the shapes in lat/long coordinates.
606    
607            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
608            option.
609            (MainWindow.has_selected_shapes): New. Returns true if there are
610            any selected shapes.
611            (MainWindow.FullSelectionExtent): New. Calls
612            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
613            (_has_selected_shapes): New. Returns true if there are any
614            selected shapes.
615    
616            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
617            true if there are any selected shapes.
618    
619            * Thuban/UI/view.py (MapCanvas): Added delegated method
620            HasSelectedShapes.
621            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
622            shapes on the canvas using the map projection (if any).
623    
624            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
625            for Layer.ShapesBoundingBox().
626    
627    2003-05-06  Bernhard Herzog  <[email protected]>
628    
629            * Resources/Projections/defaults.proj: Fix spelling of Mercator
630    
631    2003-05-05  Jonathan Coles   <[email protected]>
632    
633            Addresses the "Full Layer Extent" wish of RTbug #1787.
634    
635            * Resources/Projections/defaults.proj: Added UK National Grid.
636    
637            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
638            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
639            when the user selects the menu option.
640    
641            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
642            scales the given layer on the canvas using the map projection.
643    
644    2003-05-05  Bernhard Herzog  <[email protected]>
645    
646            Convert the table implementations to a new table interface. All
647            tables use a common mixin class to provide backwards compatibility
648            until all table users have been updated.
649    
650            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
651            provide backwards compatibility for table classes implementing the
652            new interface
653            (DBFTable, MemoryTable): Implement the new table interface. Use
654            OldTableInterfaceMixin as base for compatibility
655            (DBFColumn, MemoryColumn): New. Column description for DBFTable
656            and MemoryTable resp.
657    
658            * test/test_dbf_table.py: New. Test cases for the DBFTable with
659            the new table interface.
660    
661            * test/test_memory_table.py: New. Test cases for the MemoryTable
662            with the new table interface.
663    
664            * test/test_table.py: Document the all tests in this file as only
665            for backwards compatibility. The equivalent tests for the new
666            interface are in test_memory_table.py and test_dbf_table.py
667            (MemoryTableTest.test_read): field_info should be returning tuples
668            with four items
669            (MemoryTableTest.test_write): Make doc-string a more precise.
670    
671            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
672            table interface. Derive from from OldTableInterfaceMixin for
673            compatibility.
674            (TransientTableBase.create): New intance variable column_map to
675            map from names and indices to column objects
676            (TransientTable.create): Use the new table interface of the input
677            table
678            (AutoTransientTable): Convert to new table interface. Derive from
679            from OldTableInterfaceMixin for compatibility.
680            (AutoTransientTable.write_record): Removed. It's not implemented
681            yet and we still have to decide how to handle writing with the new
682            table and data framework.
683    
684            * test/test_transientdb.py
685            (TestTransientTable.run_iceland_political_tests)
686            (TestTransientTable.test_transient_joined_table): Use the new
687            table interface
688    
689    2003-05-05  Jonathan Coles   <[email protected]>
690    
691            This is namely a collection of UI updates to improve user interactivity.
692            Tabbing between controls now exists and you can use ESC to close dialog
693            boxes; ENTER will active the default button.
694    
695            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
696            order that the controls are created so that tabbing works correctly.
697            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
698            wxDialog can handle the default button correctly.
699            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
700            same reasons as for OnOK.
701            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
702            when we ask the table for the maximum/minimum values of a field
703            which could take a very long time.
704    
705            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
706            order that the controls are created so that tabbing works correctly.
707            (SelectPropertiesDialog.__init__): Rearrange the order that the
708            controls are created so that tabbing works correctly.
709    
710            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
711            to derive from a wxDialog but behave like the original implementation
712            which was derived from a wxFrame. wxDialog provides useful key
713            handling functionality like ESC calling OnCancel and ENTER calling
714            OnOK which is lost with wxFrame.
715    
716            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
717            new dialogs.
718    
719            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
720            order that the controls are created so that tabbing works correctly.
721            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
722            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
723            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
724            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
725            can provide the "UK National Grid" as a default projection.
726            (UTMPanel.__init__): Rearrange the order that the controls are
727            created so that tabbing works correctly.
728    
729    2003-05-05  Bernhard Herzog  <[email protected]>
730    
731            * extensions/thuban/wxproj.cpp: Fix some of the comments.
732            (project_point): If a map projection but no layer projection is
733            given, convert degrees to radians before applying the map
734            projection.
735    
736            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
737            (TableGrid.allow_messages): New methods to make it possible to
738            inhibit message sending.
739            (TableGrid.issue): Only send the message if not inhibited.
740            (LayerTableGrid.select_shape): Use the new methods to make sure
741            that no ROW_SELECTED message is sent while we're updating the
742            selected rows to match the selected shapes.
743    
744    2003-05-02  Jan-Oliver Wagner <[email protected]>
745    
746            Implementation of MemoryTable.
747    
748            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
749            implementation that operates on a list of tuples. All of the data
750            are kept in the memory.
751    
752            * test/test_table.py (MemoryTableTest): New.
753    
754            * test/test_transientdb.py (SimpleTable): Removed.
755            (TestTransientTable.test_transient_joined_table,
756            (TestTransientTable.test_transient_table_read_twice): Replaced
757            SimpleTable by MemoryTable.
758    
759    2003-04-30  Jonathan Coles   <[email protected]>
760    
761            * Data/iceland_sample.thuban: Now contains correct projections
762            for each of the layers.
763    
764            * Resources/Projections/defaults.proj: Geographic projection
765            contains unit conversion parameter.
766    
767    2003-04-30  Jonathan Coles   <[email protected]>
768    
769            The most important part of this putback is the projection changes.
770            It should now be possible to specify the projection that a layer
771            is in and then specify a different projection for the map. The
772            projection dialog has an extra parameter for a geographic projection
773            which lets the user select if the input is in degrees or radians.
774    
775            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
776            to say that the parameter is a tuple of unprojected
777            points (which is what the callers to this method were assuming).
778            Also, since the points are unprojected we need to projected them.
779    
780            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
781            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
782            groups are selected, move the layer up/down. Fixes RTbug #1833.
783    
784            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
785    
786            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
787            parameter in call to SetClientData.
788            (GeoPanel): Add support for selecting the units that the
789            source data is in (Radians or Degrees).
790    
791            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
792            the rendering loop by reducing the number of if's, removing the
793            unnecessary try/except block, and checking if the old group
794            is the same as the new one (which happens a lot if there is
795            no classification, or lots of shapes are in the same group).
796    
797            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
798            around the redraw routine to try to catch problems that the user
799            may create by selecting invalid projections for the data set and
800            map. Clears the display if there are any problems and prints the
801            error.
802            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
803            rectangle.
804    
805            * extensions/thuban/wxproj.cpp (project_point): First invert the
806            supplied point (which should be in projected coordinates) using
807            the layer's projection and then project the point using the
808            map's projection.
809            (project_points): Use project_point() to project each point.
810    
811    2003-04-30  Jan-Oliver Wagner <[email protected]>
812    
813            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
814            don't set the Classification to None if the classfication field
815            is None (ie only a DEFAULT).
816    
817    2003-04-30  Bernhard Herzog  <[email protected]>
818    
819            * Thuban/UI/view.py: Fix some typos.
820    
821            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
822            not pop up the dialog if the selection becomes empty (this could
823            happen if e.g. a new selection is opened while the identify tool
824            is active and dialog had been closed)
825    
826    2003-04-30  Bernhard Herzog  <[email protected]>
827    
828            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
829            instance variable read_record_last_result
830            (TransientTableBase.read_record): Make sure reading the same
831            record twice works. The implementation uses the new instance
832            variable read_record_last_result
833    
834            * test/test_transientdb.py
835            (TestTransientTable.test_transient_table_read_twice): New test
836            case for the above bug-fix.
837    
838    2003-04-29  Jonathan Coles   <[email protected]>
839    
840            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
841    
842            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
843    
844            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
845            (ClassTable.SetValueAsCustom): Rename keyword argument in
846            ClassGroup* constructors to match argument name.
847    
848    2003-04-29  Bernhard Herzog  <[email protected]>
849    
850            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
851            transient DB if it exists to make sure it doesn't leave a journal
852            file in the temp directory.
853    
854            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
855            self.conn to None after closing the connection to make sure it's
856            not closed twice
857    
858    2003-04-29  Jonathan Coles   <[email protected]>
859    
860            Add a visible parameter in the layer XML tag. The default value is
861            "true". If anything other than "false" is specified we also assume
862            "true". Addresses RTbug #1025.
863    
864            * Doc/thuban.dtd: Add visible parameter to a layer.
865    
866            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
867            of visible from 1 to True.
868            (Layer.__init__): Change default value of visible from 1 to True.
869    
870            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
871            parameter.
872    
873            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
874            parameter.
875    
876            * test/test_load.py: Add new test data contents_test_visible.
877            (LoadSessionTest.setUp): save test data.
878            (LoadSessionTest.testLayerVisibility): Test if the visible flag
879            is loaded correctly.
880    
881            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
882            for saving an invisible layer.
883    
884    2003-04-29  Jonathan Coles   <[email protected]>
885    
886            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
887            legend dialog box and tell it to change its map to the one
888            supplied to SetMap(). Fixes RTbug #1770.
889    
890  2003-04-29  Bernhard Herzog  <[email protected]>  2003-04-29  Bernhard Herzog  <[email protected]>
891    
892          Next step of table implementation. Introduce a transient database          Next step of table implementation. Introduce a transient database
# Line 51  Line 940 
940          once. Plus it introduces a reference cycle that keeps can keep the          once. Plus it introduces a reference cycle that keeps can keep the
941          session object alive for a long time.          session object alive for a long time.
942    
943  2003-04-25  Jonathan Coles   <[email protected]>  2003-04-29  Jonathan Coles   <[email protected]>
944    
945          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make          * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
946          Projection an immutable item. Fixes RTbug #1825.          Projection an immutable item. Fixes RTbug #1825.

Legend:
Removed from v.766  
changed lines
  Added in v.975

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26