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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26