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

Legend:
Removed from v.1112  
changed lines
  Added in v.1286

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26