/[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 1152 by frank, Wed Jun 11 11:06:27 2003 UTC revision 1281 by bh, Fri Jun 20 18:29:26 2003 UTC
# Line 1  Line 1 
1    2003-06-20  Bernhard Herzog  <[email protected]>
2    
3            * test/xmlsupport.py (SaxEventLister.startElementNS)
4            (SaxEventLister.endElementNS): Do not include the qname. Python
5            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
6            is (presumably incorrectly) None, whereas it's a string with the
7            element name in the later versions.
8    
9            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
10            (TestEventList.test_even_list_namespace): Update tests to reflect
11            the new behaviour
12            (TestEventList.test_even_list_id_normalization): Fix doc-string
13    
14    2003-06-20  Jonathan Coles   <[email protected]>
15    
16            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
17            by deriving classes to determine if that layer supports shapes.
18            (Layer): Override HasShapes and return true.
19    
20            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
21            instead of a direct call to wx[Begin|End]CusyCursor().
22            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
23            table data.
24    
25            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
26            New. Wrappers around the wxWindows functions that allow us to
27            make additional calls such as wxYield which gives the native
28            system a chance to update the cursor correctly.
29    
30            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
31            instead of a direct call to wx[Begin|End]CusyCursor().
32    
33            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
34            instead of a direct call to wx[Begin|End]CusyCursor().
35            (MapCanvas.find_shape_at): Check if the current search layer
36            support shapes, otherwise go on to the next layer.
37    
38            * test/test_layer.py: Add tests in each type of layer for
39            HasClassification() and HasShapes()
40    
41    2003-06-20  Jonathan Coles   <[email protected]>
42    
43            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
44            turning on the busy cursor to allow the system to change the
45            cursor before we begin painting. This fixes a problem that
46            was occuring only under GTK. Fixes RTbug #1840.
47    
48    2003-06-20  Bernhard Herzog  <[email protected]>
49    
50            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
51            version.
52    
53            * Thuban/Model/save.py (sort_data_stores): New. Make topological
54            sort of the data sources so they can be written with sources that
55            data sources that depend on other data sources come after the
56            sources they depend on.
57            (SessionSaver.__init__): Add idmap instance variable to map from
58            objects to the ids used in the file.
59            (SessionSaver.get_id, SessionSaver.define_id)
60            (SessionSaver.has_id): New. Methods to manage the idmap
61            (SessionSaver.write): Use thuban-0.8.dtd
62            (SessionSaver.write_session): Add a namespace on the session and
63            write out the data sources before the maps.
64            (SessionSaver.write_data_containers): New. Write the data
65            containers.
66            (SessionSaver.write_layer): Layer elements now refer to a
67            shapestore and don't contain filenames anymore.
68    
69            * Thuban/Model/load.py (LoadError): Exception class to raise when
70            errors in the files are discovered
71            (SessionLoader.__init__): Define dispatchers for elements with a
72            thuban-0.8 namespace too.
73            (SessionLoader.check_attrs): New helper method to check and
74            convert attributes
75            (AttrDesc): New. Helper class for SessionLoader.check_attrs
76            (SessionLoader.start_fileshapesource)
77            (SessionLoader.start_derivedshapesource)
78            (SessionLoader.start_filetable, SessionLoader.start_jointable):
79            Handlers for the new elements in the new fileformat
80            (SessionLoader.start_layer): Handle the shapestore attribute in
81            addition to filename.
82            (SessionLoader.start_table, SessionLoader.end_table): Removed.
83            They were never used in the old formats and aren't needed for the
84            new.
85    
86            * Thuban/Model/session.py (Session.DataContainers): New method to
87            return all "data containers", i.e. shapestores and tables
88    
89            * test/xmlsupport.py (SaxEventLister.__init__)
90            (SaxEventLister.startElementNS, sax_eventlist): Add support to
91            normalize IDs.
92    
93            * test/test_xmlsupport.py
94            (TestEventList.test_even_list_id_normalization): New test case for
95            id normalization
96    
97            * test/test_load.py (LoadSessionTest.check_format): Use ID
98            normalization
99            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
100            class atrributes used for ID normalization
101            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
102            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
103            file format
104            (TestJoinedTable): New test for loading sessions with joined
105            tables.
106            (TestLoadError): New. Test whether missing required attributes
107            cause a LoadError.
108    
109            * test/test_save.py (SaveSessionTest.thubanids)
110            (SaveSessionTest.thubanidrefs): New class attributes for ID
111            normalization in .thuban files.
112            (SaveSessionTest.compare_xml): Use id-normalization.
113            (SaveSessionTest.testEmptySession)
114            (SaveSessionTest.testLayerProjection)
115            (SaveSessionTest.testRasterLayer)
116            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
117            (SaveSessionTest.testLayerProjection): The filename used was the
118            same as for testSingleLayer. Use a different one.
119            (SaveSessionTest.test_dbf_table)
120            (SaveSessionTest.test_joined_table): New test cases for saving the
121            new data sources structures.
122            (TestStoreSort, MockDataStore): Classes to test the sorting of the
123            data stores for writing.
124    
125            * test/runtests.py: Add CVS keywords
126    
127    2003-06-20  Jonathan Coles   <[email protected]>
128    
129            * test/test_session.py
130            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
131            Use the cultural_landmark-point.dbf file for the store so that
132            the table rows and shape count match.
133    
134    2003-06-20  Jonathan Coles   <[email protected]>
135    
136            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
137            an exception if the number of shapes is different from the
138            number of rows in the table. Address RTbug #1933.
139    
140            * test/test_layer.py (TestLayer.test_derived_store): Add
141            a test for the new exception in DerivedShapeStore.__init__.
142    
143            * test/support.py (FloatTestCase): Removed since there is
144            already FloatComparisonMixin. Fixes RTbug #1954.
145            (FloatComparisonMixin.assertFloatEqual): Include test for
146            infinity that was part of FloatTestCase.
147    
148            * test/test_range.py (RangeTest): Inherit from
149            support.FloatComparisonMixin now that we don't have
150            support.FloatTestCase.
151    
152    2003-06-20  Bernhard Herzog  <[email protected]>
153    
154            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
155            the implementation in xmlsupport instead.
156            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
157    
158            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
159            of test_save
160    
161    2003-06-20  Bernhard Herzog  <[email protected]>
162    
163            * test/test_load.py (LoadSessionTest.check_format): New helper
164            method to make sure the test files we load might have been written
165            by the current thuban version.
166            (ClassificationTest.TestLayers, TestSingleLayer.test)
167            (TestLayerVisibility.test, TestClassification.test)
168            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
169            Add check_format() calls and fix the thuban data to match the data
170            that would be written by saving the session loaded from it.
171    
172            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
173            the same class and function in test_save.
174    
175            * test/test_xmlsupport.py (TestEventList): New. test cases for
176            sax_eventlist
177    
178    2003-06-20  Bernhard Herzog  <[email protected]>
179    
180            * Resources/XML/thuban.dtd: Add comment about which versions of
181            Thuban are covered by this DTD
182            (map): Fix content model for layers and raster layers. There can
183            be any number or layers and raster layers in any order.
184    
185    2003-06-20  Jonathan Coles   <[email protected]>
186    
187            This is mainly about fixing RTbug #1949.
188    
189            * Thuban/Model/classification.py: Remove "from __future__"
190            import statement since python 2.2 is the earliest supported
191            version.
192    
193            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
194            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
195            depending on the units this projection *forwards* into.
196    
197            * Thuban/Model/save.py (SessionSaver.write_classification):
198            Remove unnecessary use of lambdas and nested functions.
199    
200            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
201            adjustment here if the map projection uses degrees.
202    
203            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
204            scale adjust code since it is now done before calling
205            this method. Don't do anything if the map projection
206            is None.
207    
208    2003-06-19  Bernhard Herzog  <[email protected]>
209    
210            Move version specific load tests to their own file.
211    
212            * test/test_load.py: Expand the doc-string to explain a bit how to
213            handle file format changes.
214            (TestClassification.test): Update the docstring as this test is
215            not about Thuban 0.2 anymore.
216    
217            * test/test_load_0_2.py: New file with the load tests for thuban
218            files created with Thuban 0.2 and earlier.
219    
220    2003-06-19  Bernhard Herzog  <[email protected]>
221    
222            Add XML validation to some of the tests. Validation will only be
223            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
224            To make the DTD available to the test cases it's moved into
225            Resources/XML
226    
227            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
228            for versions up to and including 0.2. Two slight changes: added an
229            encoding specification and fixed the comment which refered to
230            GRASS, not Thuban
231    
232            * test/xmlsupport.py: New support module for tests involving XML.
233            Currently there's a mix-in class for XML validation.
234    
235            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
236    
237            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
238            so that we can validate the
239            (SaveSessionTest.testEmptySession)
240            (SaveSessionTest.testSingleLayer)
241            (SaveSessionTest.testSingleLayer)
242            (SaveSessionTest.testLayerProjection)
243            (SaveSessionTest.testRasterLayer)
244            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
245    
246            * test/runtests.py (main): Call print_additional_summary instead
247            of print_garbage_information
248    
249            * test/support.py (resource_dir): New function to return the
250            "Resource" subdirectory
251            (print_additional_summary): New function to combine several
252            summary functions
253            (run_tests): Use print_additional_summary instead of calling
254            print_garbage_information directly
255    
256    2003-06-19  Bernhard Herzog  <[email protected]>
257    
258            * Doc/thuban.dtd (classification): Correct the content model of
259            the classification element.
260            (projection): Add the "name" attribute
261    
262    2003-06-19  Frank Koormann   <[email protected]>
263    
264            MERGE from the greater-ms3 branch.
265    
266            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
267            scale if projection is latlong to get better estimate.
268    
269            Fix problem of hidden properties dialog under windows after double
270            click on layer tree:
271            The tree control always gets an Expanded / Collapsed event after
272            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
273            raises the already displayed window.
274    
275            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
276            raiseProperties initialized to prevent endless loops
277            (LegendTree._OnItemActivated): Depending on self.raiseProperties
278            simply raise the properties or open the dialog and issue a second
279            event.
280    
281    2003-06-18  Jonathan Coles   <[email protected]>
282    
283            * setup.py: Fix a few problems that occured under Windows.
284    
285    2003-06-18  Jonathan Coles   <[email protected]>
286    
287            When Thuban loaded the map was redrawn twice because the
288            legend was being opened after the mainwindow was created
289            and not during its creation. This meant the map was drawn
290            initially and then had to be redrawn when the legend
291            caused the display to change. Now the legend is opened
292            in the mainwindow constructor which resolves this issue.
293    
294            Also, although we were checking for the existence of
295            gdal and gdalwarp modules, the gdalwarp extension was
296            still being compiled (which may fail if the system doesn't
297            have gdal installed). the build_ext command to setup.py
298            now accepts the flags --with-gdal and --without-gdal.
299            If --without-gdal is specified setup.py will try to
300            use the gdal parameters specified by gdal-config. Under
301            windows, those parameters have to be set in setup.py
302            as with proj4 an wxWindows.
303    
304            * setup.py: Use a list instead of seperate variables for
305            extension parameters so we can create a generic function
306            that runs an appropriate *-config script.
307            (run_cs_script): Renamed from run_wx_script and modified
308            to accept a second argument which is a list of lists to
309            be filled in by the values returned from running the command.
310            (thuban_build_ext): New. Extends the build_ext command and
311            provides the options --with-gdal/--without-gdal which then
312            optionally includes the gdalwarp extension.
313    
314            * Thuban/Model/resource.py: First check if we can import
315            the gdalwarp Thuban extension before checking for gdal.
316            Also added some comments.
317            
318            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
319            the map is None which may be the case if none has been loaded
320            yet.
321    
322            * Thuban/UI/main.py (main): Remove call to ShowLegend.
323    
324            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
325    
326            * Thuban/UI/renderer.py: Check for gdal support before importing
327            gdalwarp.
328            (MapRenderer.render_map): Only try to optimize if we have gdal
329            support otherwise nothing will get drawn.
330    
331            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
332            during startup before a map has been created. Check if map is None
333            before using it and do nothing if it is.
334    
335    2003-06-17  Jonathan Coles   <[email protected]>
336    
337            Fix the problem with raster layers under Windows that caused
338            Thuban to crash. The view should respond to layer projection
339            changed events to update the display. Changes to a projection
340            should not cause the map to be set to full extent.
341            
342            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
343            current_map_proj to remember the current map projection so that
344            when the projection changes we know what the previous projection
345            was.
346            (MapCanvas.SetMap): Unsubscribe and subscribe to
347            LAYER_PROJECTION_CHANGED events.
348            (MapCanvas.projection_changed): Split into two methods that respond
349            to map and layer projection changes.
350            (MapCanvas.map_projection_changed): New. Takes the current view and
351            projects it using the new projection. This does not cause the
352            map to be redrawn at full extent.
353            (MapCanvas.layer_projection_changed): New. Cause a redraw which
354            will draw each layer in its new projection.
355            
356            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
357            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
358            under Windows.
359            
360            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
361            to twice sizeof(void*) because there are two digits for each
362            hex byte.
363    
364    2003-06-16  Bernhard Herzog  <[email protected]>
365    
366            Update to the layer interface: Direct access to the table,
367            shapetable, shapefile and filename attributes is now actively
368            deprecated by issuing deprecation warnings for all places where
369            this happens.
370    
371            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
372            to the instance variables table, shapetable, shapefile and
373            filename via __getattr__ so that we can issue a deprecation
374            warning.
375            (Layer.SetShapeStore): Don't set the deprecated instance variables
376            any more
377            (Layer.SetShapeStore): Don't use deprecated layer instance
378            variables
379            (Layer.Destroy): No need to explicitly remove the instance
380            variables any more
381            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
382            instance variables
383    
384            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
385            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
386            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
387            use deprecated layer instance variables
388    
389            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
390            deprecated layer instance variables
391    
392            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
393            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
394            instance variables
395    
396            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
397            deprecated layer instance variables
398    
399            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
400            deprecated layer instance variables
401    
402            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
403            deprecated layer instance variables
404    
405            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
406            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
407            variables
408    
409            * test/runtests.py (main): Turn Thuban's deprecation warnings into
410            errors so that they're cought by the tests
411    
412            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
413            layer instance variables
414    
415    2003-06-16  Jonathan Coles   <[email protected]>
416    
417            Fix a problem under Windows whereby if the user double-clicks on a
418            layer in the legend that tree item will expand or collapse as well
419            as open the layer properties dialog. The state of the tree item
420            should not be affected.
421    
422            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
423            preventExpandCollapse and subscribe to expanding and collapsing
424            events.
425            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
426            collapsing events and will veto the event if it has been triggered
427            by the user double clicking on a layer.
428            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
429            that an expanding/collapsing event should be vetoed.
430    
431    2003-06-13  Bernhard Herzog  <[email protected]>
432    
433            * Thuban/UI/classifier.py (Classifier.OnClose)
434            (Classifier.map_layers_removed)
435            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
436            in OnClose and not in map_layers_removed or
437            layer_shapestore_replaced to make sure it always happens when the
438            dialog is closed
439    
440    2003-06-13  Jonathan Coles   <[email protected]>
441    
442            This puts back a fix for Windows where a panel is needed so that
443            the background of the table view appears correctly.
444    
445            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
446            object that can be used by derived classes to place any
447            controls (including the grid) onto.
448            (QueryTableFrame.__init__): Use the panel as the parent window
449            for all the controls. Reparent the grid so that the panel is
450            the parent. Call UpdateStatusText() to correctly initialize
451            the status bar.
452    
453    2003-06-13  Jonathan Coles   <[email protected]>
454    
455            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
456            from wxFrame (as opposed to wxDialog like the other classes)
457            but otherwise behaves like the other classes. This is needed
458            for the TableView which isn't really a dialog and needs to
459            have a status bar and control buttons.
460    
461            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
462            instance variable to keep track of how many rows are selected.
463            Subscribe once to the the events we are interested in.
464            (ThubanGrid.OnRangeSelect): Only handle event if event handling
465            hasn't been turned off.
466            (ThubanGrid.OnSelectCell): Only handle event if event handling
467            hasn't been turned off.
468            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
469            as an event listener (which changes the event handler stack)
470            simply set an instance variable to False. This is checked in
471            the event handlers.
472            (ThubanGrid.GetNumberSelected): Return the number of currently
473            selected rows.
474            (TableFrame): Inherit from ThubanFrame so we can have a
475            status bar and control buttons.
476            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
477            Explicitly set which items are selected in the operator choice and
478            action choice so there is always a valid selection. Fixes RTbug #1941.
479            Subscribe to grid cell selection events so we can update the
480            status bar.
481            (QueryTableFrame.UpdateStatusText): Update the status bar with
482            how many rows are in the grid, how many columns, and how many
483            rows are selected.
484            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
485            Call UpdateStatusText when cells are (de)selected.
486            (QueryTableFrame.OnQuery): Use the string value in the value
487            combo if either the selected item index is 0 or if the string
488            cannot be found in the predefined list (this happens if the
489            user changes the text). Fixes RTbug #1940.
490            Only turn off the grid event listeners if there a query comes
491            back with a none empty list of ids. in the case that the list
492            is empty this causes a grid.ClearSelection() call to actually
493            clear the grid selection which causes the selected items in
494            the map to be deselected. Fixes RTbug #1939.
495    
496            * test/test_save.py (XMLWriterTest.Encode): Check return values.
497            Fixes RTbug #1851.
498    
499    2003-06-13  Bernhard Herzog  <[email protected]>
500    
501            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
502            self.selected_shape with the current selection to make sure the
503            contents of the dialog are up to date when it's shown for the
504            first time.
505            The dialog used to work without this by luck. The recent fix to
506            the connector module 'broke' a 'feature' the identify view was
507            relying on, i.e that subscribing to a message in response to
508            receiving a message of that type would mean that the new
509            subscriber would also be called for the same message.
510            
511    2003-06-12  Jonathan Coles   <[email protected]>
512    
513            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
514            the image is rendered. Fixes RTbug #1937.
515    
516    2003-06-12  Jonathan Coles   <[email protected]>
517    
518            * Thuban/Lib/fileutil.py: As is done under Windows, create the
519            user directory if it doesn't exist on a posix system.
520            Fixes RTbug #1815.
521    
522            * Thuban/Model/resource.py (get_user_proj_files): Moved the
523            called to get_application_dir here, so that the directory
524            will only be called if this method is invoked.
525    
526            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
527            the projfilepath if no projection is selected.
528    
529    2003-06-12  Jonathan Coles   <[email protected]>
530    
531            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
532            the scalebar if the current map has no projection set.
533    
534            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
535            projfilepath label to just the basename of the projection file
536            rather than include the entire path.
537    
538            * Thuban/Model/resource.py: Fix missed proj functions that
539            needed to be renamed.
540    
541    2003-06-12  Jonathan Coles   <[email protected]>
542    
543            * Thuban/Model/classification.py: Removed assert statements that
544            tested if the variable was an instance of Color.
545    
546            * Thuban/Model/color.py (Color): Remove commented code that isn't
547            used.
548            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
549            Fixes RTbug #1835.
550            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
551            Needed now that the class doesn't inherit from Color.
552    
553    2003-06-12  Jonathan Coles   <[email protected]>
554    
555            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
556            check unicode strings.
557    
558            * test/test_layer.py: Check for existence of gdal.
559    
560    2003-06-12  Jonathan Coles   <[email protected]>
561        
562            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
563            that was in load.py
564    
565            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
566            that was in save.py
567    
568    2003-06-12  Jonathan Coles   <[email protected]>
569    
570            This is largely a collection of bug fixes. We also handle the
571            case where gdal is not on the system. The XMLReader and XMLWriter
572            classes were moved into there own files to resolve some circular
573            import references and because they shouldn't really be in the
574            file that is dediciated to reading/writing session files since
575            they are also used elsewhere.
576    
577            * Thuban/Model/classgen.py: Renamed functions to follow the
578            function_names_with_underscores style. Fixes RTbug #1903.
579            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
580    
581            * Thuban/Model/layer.py: Import gdal only if it available.
582            (RasterLayer): Handle the case where the gdal library is unavailable.
583            Addresses RTbug #1877.
584    
585            * Thuban/Model/load.py (XMLReader): Moved into seperate file
586            xmlreader.py.
587    
588    2003-06-12  Jonathan Coles   <[email protected]>
589    
590            This is largely a collection of bug fixes. We also handle the
591            case where gdal is not on the system. The XMLReader and XMLWriter
592            classes were moved into there own files to resolve some circular
593            import references and because they shouldn't really be in the
594            file that is dediciated to reading/writing session files since
595            they are also used elsewhere.
596    
597            * Thuban/Model/classgen.py: Renamed functions to follow the
598            function_names_with_underscores style. Fixes RTbug #1903.
599            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
600    
601            * Thuban/Model/layer.py: Import gdal only if it available.
602            (RasterLayer): Handle the case where the gdal library is unavailable.
603            Addresses RTbug #1877.
604    
605            * Thuban/Model/load.py (XMLReader): Moved into seperate file
606            xmlreader.py.
607    
608            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
609            file xmlwriter.py.
610    
611            * Thuban/Model/resource.py: Renamed functions to following the
612            function_names_with_underscores style.
613            (has_gdal_support): New function that returns true if the gdal
614            library is available. Addresses RTbug #1877.
615    
616            * Thuban/UI/application.py (ThubanApplication.OpenSession):
617            Display a message box if the gdal library is not available, but
618            only if there are any layers that would use it. Addresses RTbug #1877.
619    
620            * Thuban/UI/classgen.py: Use renamed projection resource functions.
621            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
622            when using integers versus floats.
623    
624            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
625            determine if the "Add Image Layer" menu option should be
626            greyed out or not. Addresses RTbug #1877.
627    
628            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
629    
630            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
631            optimize if a raster layer is visible. Fixes RTbug #1931.
632            Only draw the raster layer if the gdal library is available.
633            Addresses RTbug #1877.
634    
635            * test/test_classgen.py: Add tests for generate_singletons,
636            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
637            (test_calculate_quantiles): Fix some tests to catch the new
638            ValueError that is raised.
639    
640            * test/test_proj.py: Use renamed projection resource functions.
641    
642            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
643            test for saving classified layers. Fixes RTbug #1902.
644            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
645    
646    2003-06-12  Jan-Oliver Wagner <[email protected]>
647    
648            Fix for http://intevation.de/rt/webrt?serial_num=1900.
649    
650            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
651    
652            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
653            multiplechoicedialog.py rather than from the wxPython library.
654    
655  2003-06-11  Frank Koormann  <[email protected]>  2003-06-11  Frank Koormann  <[email protected]>
656    
657          * Thuban/Lib/fileutil.py (get_application_dir): Minor stability          * Thuban/Lib/fileutil.py (get_application_dir): Minor stability

Legend:
Removed from v.1152  
changed lines
  Added in v.1281

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26