/[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 1097 by jan, Thu May 29 10:03:30 2003 UTC revision 1265 by jonathan, Fri Jun 20 14:16:10 2003 UTC
# Line 1  Line 1 
1    2003-06-20  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
4            an exception if the number of shapes is different from the
5            number of rows in the table. Address RTbug #1933.
6    
7            * test/test_layer.py (TestLayer.test_derived_store): Add
8            a test for the new exception in DerivedShapeStore.__init__.
9    
10            * test/support.py (FloatTestCase): Removed since there is
11            already FloatComparisonMixin. Fixes RTbug #1954.
12            (FloatComparisonMixin.assertFloatEqual): Include test for
13            infinity that was part of FloatTestCase.
14    
15            * test/test_range.py (RangeTest): Inherit from
16            support.FloatComparisonMixin now that we don't have
17            support.FloatTestCase.
18    
19    2003-06-20  Bernhard Herzog  <[email protected]>
20    
21            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
22            the implementation in xmlsupport instead.
23            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
24    
25            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
26            of test_save
27    
28    2003-06-20  Bernhard Herzog  <[email protected]>
29    
30            * test/test_load.py (LoadSessionTest.check_format): New helper
31            method to make sure the test files we load might have been written
32            by the current thuban version.
33            (ClassificationTest.TestLayers, TestSingleLayer.test)
34            (TestLayerVisibility.test, TestClassification.test)
35            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
36            Add check_format() calls and fix the thuban data to match the data
37            that would be written by saving the session loaded from it.
38    
39            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
40            the same class and function in test_save.
41    
42            * test/test_xmlsupport.py (TestEventList): New. test cases for
43            sax_eventlist
44    
45    2003-06-20  Bernhard Herzog  <[email protected]>
46    
47            * Resources/XML/thuban.dtd: Add comment about which versions of
48            Thuban are covered by this DTD
49            (map): Fix content model for layers and raster layers. There can
50            be any number or layers and raster layers in any order.
51    
52    2003-06-20  Jonathan Coles   <[email protected]>
53    
54            This is mainly about fixing RTbug #1949.
55    
56            * Thuban/Model/classification.py: Remove "from __future__"
57            import statement since python 2.2 is the earliest supported
58            version.
59    
60            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
61            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
62            depending on the units this projection *forwards* into.
63    
64            * Thuban/Model/save.py (SessionSaver.write_classification):
65            Remove unnecessary use of lambdas and nested functions.
66    
67            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
68            adjustment here if the map projection uses degrees.
69    
70            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
71            scale adjust code since it is now done before calling
72            this method. Don't do anything if the map projection
73            is None.
74    
75    2003-06-19  Bernhard Herzog  <[email protected]>
76    
77            Move version specific load tests to their own file.
78    
79            * test/test_load.py: Expand the doc-string to explain a bit how to
80            handle file format changes.
81            (TestClassification.test): Update the docstring as this test is
82            not about Thuban 0.2 anymore.
83    
84            * test/test_load_0_2.py: New file with the load tests for thuban
85            files created with Thuban 0.2 and earlier.
86    
87    2003-06-19  Bernhard Herzog  <[email protected]>
88    
89            Add XML validation to some of the tests. Validation will only be
90            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
91            To make the DTD available to the test cases it's moved into
92            Resources/XML
93    
94            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
95            for versions up to and including 0.2. Two slight changes: added an
96            encoding specification and fixed the comment which refered to
97            GRASS, not Thuban
98    
99            * test/xmlsupport.py: New support module for tests involving XML.
100            Currently there's a mix-in class for XML validation.
101    
102            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
103    
104            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
105            so that we can validate the
106            (SaveSessionTest.testEmptySession)
107            (SaveSessionTest.testSingleLayer)
108            (SaveSessionTest.testSingleLayer)
109            (SaveSessionTest.testLayerProjection)
110            (SaveSessionTest.testRasterLayer)
111            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
112    
113            * test/runtests.py (main): Call print_additional_summary instead
114            of print_garbage_information
115    
116            * test/support.py (resource_dir): New function to return the
117            "Resource" subdirectory
118            (print_additional_summary): New function to combine several
119            summary functions
120            (run_tests): Use print_additional_summary instead of calling
121            print_garbage_information directly
122    
123    2003-06-19  Bernhard Herzog  <[email protected]>
124    
125            * Doc/thuban.dtd (classification): Correct the content model of
126            the classification element.
127            (projection): Add the "name" attribute
128    
129    2003-06-19  Frank Koormann   <[email protected]>
130    
131            MERGE from the greater-ms3 branch.
132    
133            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
134            scale if projection is latlong to get better estimate.
135    
136            Fix problem of hidden properties dialog under windows after double
137            click on layer tree:
138            The tree control always gets an Expanded / Collapsed event after
139            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
140            raises the already displayed window.
141    
142            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
143            raiseProperties initialized to prevent endless loops
144            (LegendTree._OnItemActivated): Depending on self.raiseProperties
145            simply raise the properties or open the dialog and issue a second
146            event.
147    
148    2003-06-18  Jonathan Coles   <[email protected]>
149    
150            * setup.py: Fix a few problems that occured under Windows.
151    
152    2003-06-18  Jonathan Coles   <[email protected]>
153    
154            When Thuban loaded the map was redrawn twice because the
155            legend was being opened after the mainwindow was created
156            and not during its creation. This meant the map was drawn
157            initially and then had to be redrawn when the legend
158            caused the display to change. Now the legend is opened
159            in the mainwindow constructor which resolves this issue.
160    
161            Also, although we were checking for the existence of
162            gdal and gdalwarp modules, the gdalwarp extension was
163            still being compiled (which may fail if the system doesn't
164            have gdal installed). the build_ext command to setup.py
165            now accepts the flags --with-gdal and --without-gdal.
166            If --without-gdal is specified setup.py will try to
167            use the gdal parameters specified by gdal-config. Under
168            windows, those parameters have to be set in setup.py
169            as with proj4 an wxWindows.
170    
171            * setup.py: Use a list instead of seperate variables for
172            extension parameters so we can create a generic function
173            that runs an appropriate *-config script.
174            (run_cs_script): Renamed from run_wx_script and modified
175            to accept a second argument which is a list of lists to
176            be filled in by the values returned from running the command.
177            (thuban_build_ext): New. Extends the build_ext command and
178            provides the options --with-gdal/--without-gdal which then
179            optionally includes the gdalwarp extension.
180    
181            * Thuban/Model/resource.py: First check if we can import
182            the gdalwarp Thuban extension before checking for gdal.
183            Also added some comments.
184            
185            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
186            the map is None which may be the case if none has been loaded
187            yet.
188    
189            * Thuban/UI/main.py (main): Remove call to ShowLegend.
190    
191            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
192    
193            * Thuban/UI/renderer.py: Check for gdal support before importing
194            gdalwarp.
195            (MapRenderer.render_map): Only try to optimize if we have gdal
196            support otherwise nothing will get drawn.
197    
198            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
199            during startup before a map has been created. Check if map is None
200            before using it and do nothing if it is.
201    
202    2003-06-17  Jonathan Coles   <[email protected]>
203    
204            Fix the problem with raster layers under Windows that caused
205            Thuban to crash. The view should respond to layer projection
206            changed events to update the display. Changes to a projection
207            should not cause the map to be set to full extent.
208            
209            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
210            current_map_proj to remember the current map projection so that
211            when the projection changes we know what the previous projection
212            was.
213            (MapCanvas.SetMap): Unsubscribe and subscribe to
214            LAYER_PROJECTION_CHANGED events.
215            (MapCanvas.projection_changed): Split into two methods that respond
216            to map and layer projection changes.
217            (MapCanvas.map_projection_changed): New. Takes the current view and
218            projects it using the new projection. This does not cause the
219            map to be redrawn at full extent.
220            (MapCanvas.layer_projection_changed): New. Cause a redraw which
221            will draw each layer in its new projection.
222            
223            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
224            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
225            under Windows.
226            
227            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
228            to twice sizeof(void*) because there are two digits for each
229            hex byte.
230    
231    2003-06-16  Bernhard Herzog  <[email protected]>
232    
233            Update to the layer interface: Direct access to the table,
234            shapetable, shapefile and filename attributes is now actively
235            deprecated by issuing deprecation warnings for all places where
236            this happens.
237    
238            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
239            to the instance variables table, shapetable, shapefile and
240            filename via __getattr__ so that we can issue a deprecation
241            warning.
242            (Layer.SetShapeStore): Don't set the deprecated instance variables
243            any more
244            (Layer.SetShapeStore): Don't use deprecated layer instance
245            variables
246            (Layer.Destroy): No need to explicitly remove the instance
247            variables any more
248            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
249            instance variables
250    
251            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
252            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
253            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
254            use deprecated layer instance variables
255    
256            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
257            deprecated layer instance variables
258    
259            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
260            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
261            instance variables
262    
263            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
264            deprecated layer instance variables
265    
266            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
267            deprecated layer instance variables
268    
269            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
270            deprecated layer instance variables
271    
272            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
273            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
274            variables
275    
276            * test/runtests.py (main): Turn Thuban's deprecation warnings into
277            errors so that they're cought by the tests
278    
279            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
280            layer instance variables
281    
282    2003-06-16  Jonathan Coles   <[email protected]>
283    
284            Fix a problem under Windows whereby if the user double-clicks on a
285            layer in the legend that tree item will expand or collapse as well
286            as open the layer properties dialog. The state of the tree item
287            should not be affected.
288    
289            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
290            preventExpandCollapse and subscribe to expanding and collapsing
291            events.
292            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
293            collapsing events and will veto the event if it has been triggered
294            by the user double clicking on a layer.
295            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
296            that an expanding/collapsing event should be vetoed.
297    
298    2003-06-13  Bernhard Herzog  <[email protected]>
299    
300            * Thuban/UI/classifier.py (Classifier.OnClose)
301            (Classifier.map_layers_removed)
302            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
303            in OnClose and not in map_layers_removed or
304            layer_shapestore_replaced to make sure it always happens when the
305            dialog is closed
306    
307    2003-06-13  Jonathan Coles   <[email protected]>
308    
309            This puts back a fix for Windows where a panel is needed so that
310            the background of the table view appears correctly.
311    
312            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
313            object that can be used by derived classes to place any
314            controls (including the grid) onto.
315            (QueryTableFrame.__init__): Use the panel as the parent window
316            for all the controls. Reparent the grid so that the panel is
317            the parent. Call UpdateStatusText() to correctly initialize
318            the status bar.
319    
320    2003-06-13  Jonathan Coles   <[email protected]>
321    
322            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
323            from wxFrame (as opposed to wxDialog like the other classes)
324            but otherwise behaves like the other classes. This is needed
325            for the TableView which isn't really a dialog and needs to
326            have a status bar and control buttons.
327    
328            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
329            instance variable to keep track of how many rows are selected.
330            Subscribe once to the the events we are interested in.
331            (ThubanGrid.OnRangeSelect): Only handle event if event handling
332            hasn't been turned off.
333            (ThubanGrid.OnSelectCell): Only handle event if event handling
334            hasn't been turned off.
335            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
336            as an event listener (which changes the event handler stack)
337            simply set an instance variable to False. This is checked in
338            the event handlers.
339            (ThubanGrid.GetNumberSelected): Return the number of currently
340            selected rows.
341            (TableFrame): Inherit from ThubanFrame so we can have a
342            status bar and control buttons.
343            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
344            Explicitly set which items are selected in the operator choice and
345            action choice so there is always a valid selection. Fixes RTbug #1941.
346            Subscribe to grid cell selection events so we can update the
347            status bar.
348            (QueryTableFrame.UpdateStatusText): Update the status bar with
349            how many rows are in the grid, how many columns, and how many
350            rows are selected.
351            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
352            Call UpdateStatusText when cells are (de)selected.
353            (QueryTableFrame.OnQuery): Use the string value in the value
354            combo if either the selected item index is 0 or if the string
355            cannot be found in the predefined list (this happens if the
356            user changes the text). Fixes RTbug #1940.
357            Only turn off the grid event listeners if there a query comes
358            back with a none empty list of ids. in the case that the list
359            is empty this causes a grid.ClearSelection() call to actually
360            clear the grid selection which causes the selected items in
361            the map to be deselected. Fixes RTbug #1939.
362    
363            * test/test_save.py (XMLWriterTest.Encode): Check return values.
364            Fixes RTbug #1851.
365    
366    2003-06-13  Bernhard Herzog  <[email protected]>
367    
368            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
369            self.selected_shape with the current selection to make sure the
370            contents of the dialog are up to date when it's shown for the
371            first time.
372            The dialog used to work without this by luck. The recent fix to
373            the connector module 'broke' a 'feature' the identify view was
374            relying on, i.e that subscribing to a message in response to
375            receiving a message of that type would mean that the new
376            subscriber would also be called for the same message.
377            
378    2003-06-12  Jonathan Coles   <[email protected]>
379    
380            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
381            the image is rendered. Fixes RTbug #1937.
382    
383    2003-06-12  Jonathan Coles   <[email protected]>
384    
385            * Thuban/Lib/fileutil.py: As is done under Windows, create the
386            user directory if it doesn't exist on a posix system.
387            Fixes RTbug #1815.
388    
389            * Thuban/Model/resource.py (get_user_proj_files): Moved the
390            called to get_application_dir here, so that the directory
391            will only be called if this method is invoked.
392    
393            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
394            the projfilepath if no projection is selected.
395    
396    2003-06-12  Jonathan Coles   <[email protected]>
397    
398            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
399            the scalebar if the current map has no projection set.
400    
401            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
402            projfilepath label to just the basename of the projection file
403            rather than include the entire path.
404    
405            * Thuban/Model/resource.py: Fix missed proj functions that
406            needed to be renamed.
407    
408    2003-06-12  Jonathan Coles   <[email protected]>
409    
410            * Thuban/Model/classification.py: Removed assert statements that
411            tested if the variable was an instance of Color.
412    
413            * Thuban/Model/color.py (Color): Remove commented code that isn't
414            used.
415            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
416            Fixes RTbug #1835.
417            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
418            Needed now that the class doesn't inherit from Color.
419    
420    2003-06-12  Jonathan Coles   <[email protected]>
421    
422            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
423            check unicode strings.
424    
425            * test/test_layer.py: Check for existence of gdal.
426    
427    2003-06-12  Jonathan Coles   <[email protected]>
428        
429            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
430            that was in load.py
431    
432            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
433            that was in save.py
434    
435    2003-06-12  Jonathan Coles   <[email protected]>
436    
437            This is largely a collection of bug fixes. We also handle the
438            case where gdal is not on the system. The XMLReader and XMLWriter
439            classes were moved into there own files to resolve some circular
440            import references and because they shouldn't really be in the
441            file that is dediciated to reading/writing session files since
442            they are also used elsewhere.
443    
444            * Thuban/Model/classgen.py: Renamed functions to follow the
445            function_names_with_underscores style. Fixes RTbug #1903.
446            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
447    
448            * Thuban/Model/layer.py: Import gdal only if it available.
449            (RasterLayer): Handle the case where the gdal library is unavailable.
450            Addresses RTbug #1877.
451    
452            * Thuban/Model/load.py (XMLReader): Moved into seperate file
453            xmlreader.py.
454    
455    2003-06-12  Jonathan Coles   <[email protected]>
456    
457            This is largely a collection of bug fixes. We also handle the
458            case where gdal is not on the system. The XMLReader and XMLWriter
459            classes were moved into there own files to resolve some circular
460            import references and because they shouldn't really be in the
461            file that is dediciated to reading/writing session files since
462            they are also used elsewhere.
463    
464            * Thuban/Model/classgen.py: Renamed functions to follow the
465            function_names_with_underscores style. Fixes RTbug #1903.
466            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
467    
468            * Thuban/Model/layer.py: Import gdal only if it available.
469            (RasterLayer): Handle the case where the gdal library is unavailable.
470            Addresses RTbug #1877.
471    
472            * Thuban/Model/load.py (XMLReader): Moved into seperate file
473            xmlreader.py.
474    
475            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
476            file xmlwriter.py.
477    
478            * Thuban/Model/resource.py: Renamed functions to following the
479            function_names_with_underscores style.
480            (has_gdal_support): New function that returns true if the gdal
481            library is available. Addresses RTbug #1877.
482    
483            * Thuban/UI/application.py (ThubanApplication.OpenSession):
484            Display a message box if the gdal library is not available, but
485            only if there are any layers that would use it. Addresses RTbug #1877.
486    
487            * Thuban/UI/classgen.py: Use renamed projection resource functions.
488            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
489            when using integers versus floats.
490    
491            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
492            determine if the "Add Image Layer" menu option should be
493            greyed out or not. Addresses RTbug #1877.
494    
495            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
496    
497            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
498            optimize if a raster layer is visible. Fixes RTbug #1931.
499            Only draw the raster layer if the gdal library is available.
500            Addresses RTbug #1877.
501    
502            * test/test_classgen.py: Add tests for generate_singletons,
503            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
504            (test_calculate_quantiles): Fix some tests to catch the new
505            ValueError that is raised.
506    
507            * test/test_proj.py: Use renamed projection resource functions.
508    
509            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
510            test for saving classified layers. Fixes RTbug #1902.
511            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
512    
513    2003-06-12  Jan-Oliver Wagner <[email protected]>
514    
515            Fix for http://intevation.de/rt/webrt?serial_num=1900.
516    
517            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
518    
519            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
520            multiplechoicedialog.py rather than from the wxPython library.
521    
522    2003-06-11  Frank Koormann  <[email protected]>
523    
524            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
525            update.
526    
527    2003-06-11  Frank Koormann  <[email protected]>
528    
529            * Thuban/Lib/fileutil.py (get_application_dir): New function to
530            determine the absolute .thuban/thuban directory under
531            "posix" (os.expanduser) and "nt" (read AppData registry key).
532    
533            * Thuban/Model/resource.py: Use get_application_dir
534    
535            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
536            Use get_application_dir.
537    
538    2003-06-10  Bernhard Herzog  <[email protected]>
539    
540            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
541            the messages MAP_LAYERS_REMOVED messages
542            (LayerTableFrame.OnClose): Unsubscribe from it.
543            (LayerTableFrame.map_layers_removed): New. Receiver for
544            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
545            dialog is showing is removed.
546    
547    2003-06-10  Bernhard Herzog  <[email protected]>
548    
549            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
550            of the receivers list so that unsubscribing in a receiver doesn't
551            modify it while iterating over it.
552    
553            * test/test_connector.py
554            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
555            unsubscribing in a receiver works correctly. See docstring for
556            details
557    
558    2003-06-10  Bernhard Herzog  <[email protected]>
559    
560            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
561            message.
562    
563            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
564            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
565            LAYER_CHANGED will still be sent if the classification changes.
566    
567            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
568            parameter so we can subscribe to some of its messages
569            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
570            and the layer's LAYER_SHAPESTORE_REPLACED
571            (Classifier.unsubscribe_messages): New. Unsubscribe from message
572            subscribed to in __init__
573            (Classifier.map_layers_removed)
574            (Classifier.layer_shapestore_replaced): receivers for the messages
575            subscribed to in __init__. Unsubscribe and close the dialog
576    
577            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
578            the map to the Classifier dialog
579    
580            * test/test_layer.py (SetShapeStoreTests): Derive from
581            SubscriberMixin as well so we can test messages
582            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
583            messages
584            (SetShapeStoreTests.tearDown): Clear the messages again
585            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
586            for the modified flag too
587            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
588            to check whether SetShapeStore sets the modified flag
589            (SetShapeStoreTests.test_set_shape_store_different_field_name)
590            (SetShapeStoreTests.test_set_shape_store_same_field)
591            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
592            Add tests for the messages. This checks both the new
593            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
594    
595    2003-06-06  Jan-Oliver Wagner <[email protected]>
596    
597            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
598            the menu items.
599    
600    2003-06-05  Frank Koormann  <[email protected]>
601    
602            * Thuban/UI/identifyview.py (IdentifyView.__init__):
603            Layout reimplemented without panel. Make life easier to fit the list
604            in the dialog.
605    
606    2003-06-05  Frank Koormann  <[email protected]>
607    
608            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
609            once on initialisation (Former implementation resulted in multiple
610            entries for each projection).
611            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
612            if set, select the projection found under the specified name. This
613            overwrites any other selection estimate.
614            Removed projchoice filling from this method.
615            (ProjFrame._OnSave, ProjFrame._OnAddToList):
616            Updated call of ProjFrame.__FillAvailList
617            (LCCPanel._DoLayout): Moved parameter controls in more common order.
618    
619            * Resources/Projections/defaults.proj: Extended defaults representing
620            various common European projections.
621    
622    2003-06-05  Frank Koormann  <[email protected]>
623    
624            * Thuban/UI/identifyview.py (IdentifyView.__init__):
625            Use ListCtrl instead of GridCtrl
626    
627            * Thuban/Model/resource.py:
628            Guess location of .thuban directory from tempdir parent directory.
629    
630            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
631            Guess location of .thuban directory from tempdir parent directory.
632    
633    2003-06-04  Bernhard Herzog  <[email protected]>
634    
635            Do not cache the values returned by the tree widget's
636            GetFirstChild and GetNextChild methods because it led to lots of
637            segfaults. The new way requires more brute force but is more
638            reliable.
639    
640            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
641            variable layer2id
642            (LegendTree.find_layer): New method to do with brute force what
643            layer2id tried to accomplish
644            (LegendTree._OnMsgLayerChanged)
645            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
646            Use find_layer instead of layer2id
647            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
648            update layer2id anymore
649            (LegendTree._OnMsgMapLayersRemoved)
650            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
651    
652    2003-06-03  Thomas Koester  <[email protected]>
653    
654            * Thuban/Model/classgen.py (GenQuantiles0): New function.
655    
656    2003-06-02  Bernhard Herzog  <[email protected]>
657    
658            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
659            New commands.
660            (main_menu): Add the new commands.
661            (MainWindow.TableRename): New. Implementation of the table_rename
662            command.
663            (MainWindow.RenameLayer): New. Implementation of the layer_rename
664            command.
665    
666            * Thuban/Model/session.py (Session.AddTable): call self.changed to
667            set the modified flag
668    
669            * test/test_session.py (TestSessionSimple.test_add_table): Test
670            whether the modified flag is set properly
671    
672            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
673            instead of issue so that the modified flags get updated.
674    
675            * test/test_base.py (SomeTitledObject): Derive from Modifiable
676            instead of Publisher to reflect reality better and to accomodate
677            the fact that SetTitle now calls changed instead of issue
678    
679    2003-06-02  Bernhard Herzog  <[email protected]>
680    
681            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
682            acquisition has to happen before the try in a try-finally.
683    
684    2003-06-02  Bernhard Herzog  <[email protected]>
685    
686            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
687            possible that a layer is removed that is not currently selected in
688            the legend so don't check for this.
689    
690    2003-05-30  Bernhard Herzog  <[email protected]>
691    
692            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
693            variables to None that have direct or indirect references to
694            shapefiles or dbf files to make sure that they do go away and the
695            files are closed.
696    
697    2003-05-30  Bernhard Herzog  <[email protected]>
698    
699            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
700            availImgListIndices when a new image list is created
701            
702    2003-05-30  Bernhard Herzog  <[email protected]>
703    
704            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
705            changing_selection to indicate whether the LegendTree code itself
706            is currently changing the selection
707            (LegendTree.normalize_selection): New method to normalize the
708            selection by selecting the layer item even if the user clicked on
709            the classification.
710            (LegendTree._OnSelChanged): normalize the selection. This works
711            around a bug in wx which doesn't keep track of the selection
712            properly when subtrees are deleted.
713    
714    2003-05-30  Bernhard Herzog  <[email protected]>
715    
716            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
717            maximum and minimum scale factors.
718    
719            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
720            changes in classgen.py
721    
722    2003-05-30  Jonathan Coles   <[email protected]>
723    
724            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
725            all the methods functions. Fixes RTBug #1903.
726    
727            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
728            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
729            RTBug #1907.
730    
731            * Thuban/UI/classgen.py: Use classgen functions that were part
732            of the ClassGenerator class. Put try/finally blocks around
733            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
734            RTBug #1904.
735    
736            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
737    
738            * Thuban/UI/legend.py: The legend was cleared and repopulated any
739            time something changed which caused some state to be lost such
740            as which children were expanded or collapsed. Fixes RTBug #1901.
741            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
742            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
743            the legend but not in the map.
744            (LegendTree.__FillTree): Move main functionality out into smaller
745            methods that can be used by other methods.
746            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
747            if they are available.
748            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
749            that we override the wxTreeCtrl method. Iterate over children
750            and call __RemoveLayer.
751            (LegendTree.__AddLayer): New. Add a new layer to the legend.
752            (LegendTree.__RemoveLayer): Remove a layer from the legend.
753            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
754            Should only be called with the id of a layer branch.
755            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
756            Returns the root item or creates one if necessary.
757    
758            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
759            ProjectRasterFile with tuple arguments instead of strings.
760    
761            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
762            with try/finally. Fixes RTBug #1904.
763    
764            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
765            with try/finally. Fixes RTBug #1904.
766            (MapCanvas.FitSelectedToWindow): If a single point is selected
767            simply center it on the display. Fixes RTBug #1849.
768    
769            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
770            to be compiled as a standalone app. Now the code can only be
771            called from Python which simplifies the parameter passing.
772            (ProjectRasterFile): Handle Python arguments. Remove code that
773            checks for a destination dataset. Add more clean up code.
774    
775            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
776            TestMapWithContents.test_lower_layer_bottom):
777            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
778            Fixes RTBug #1907.
779    
780            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
781            extent to the map when the legend is toggled. Fixes RTBug #1881.
782    
783  2003-05-29  Jan-Oliver Wagner <[email protected]>  2003-05-29  Jan-Oliver Wagner <[email protected]>
784    
785          * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now          * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now

Legend:
Removed from v.1097  
changed lines
  Added in v.1265

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26