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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26