/[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 971 by jonathan, Wed May 21 17:26:40 2003 UTC revision 1363 by jonathan, Wed Jul 2 12:59:42 2003 UTC
# Line 1  Line 1 
1  2003-05-20  Jonathan Coles   <[email protected]>  2003-07-02  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/classgen.py (generate_singletons,
4            generate_uniform_distribution, generate_quantiles,
5            GenQuantiles0): Make sure maxValue isn't less than
6            one, otherwise we could divide by zero.
7    
8            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
9            ClassGenTest.doClassSingleTest): Call doBoundsTest to
10            check the end classification groups against the
11            proper property values.
12            (ClassGenTest.doBoundsTest): New. Checks the first and
13            last classification groups to make sure their properties
14            are the correct upper and lower bounds for a color ramp.
15    
16    2003-07-02  Jonathan Coles   <[email protected]>
17    
18            * Thuban/Model/classgen.py (generate_singletons,
19            generate_uniform_distribution, generate_quantiles,
20            GenQuantiles0): The denominator was one to high when
21            calculating the index for the ramp causing the index
22            to never to reach one.
23    
24    2003-07-02  Jonathan Coles   <[email protected]>
25    
26            Changed the singature of ClassGroupRange.__init__ and
27            ClassGroupRange.SetRange() so that the min/max values are
28            passed as a tuple. This makes a better calling scheme for
29            when a Range object is passed instead.
30    
31            * Thuban/Model/classgen.py: Fixed parameters to
32            ClassGroupRange constructor.
33    
34            * Thuban/Model/classification.py (ClassGroupRange.__init__):
35            Consolidate the min/max parameters into a single _range which
36            can either be a tuple or a Range object.
37            (ClassGroupRange.SetRange): Consolidate the min/max parameters
38            into a single _range which can either be a tuple or a Range object.
39    
40            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
41            call to ClassGroupRange constructor to use a tuple.
42    
43            * Thuban/Model/layer.py (Layer.SetClassification): Switch
44            the classification instance variable to the new class
45            before calling _set_layer otherwise subscribers to a
46            LAYER_CHANGED event will not see any difference.
47    
48            * test/test_classification.py: Fix tests of ClassGroupRange
49            so that they use the new signature.
50    
51            * test/test_load.py: Fix use of ClassGroupRange so that it
52            uses the new signature.
53    
54            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
55            uses the new signature.
56    
57            * test/test_save.py: Fix use of ClassGroupRange so that it
58            uses the new signature.
59    
60    
61    2003-07-01  Jonathan Coles   <[email protected]>
62    
63            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
64            Import used objects/class from color.
65            (generate_singletons): We don't
66            need the numGroups parameter anymore because we are using
67            the new ramps with GetProperties().
68            (generate_uniform_distribution): Use new ramp method
69            GetProperties().
70            (generate_quantiles, GenQuantiles0): Use new ramp method
71            GetProperties().
72            (CustomRamp.SetNumGroups): Removed. The ramps now map
73            a value from 0 to 1 to class properties so the number
74            of groups is not needed ahead of time.
75            (CustomRamp.next): Removed. CustomRamp does not support
76            interation anymore.
77            (CustomRamp.GetProperties): Returns a ClassGroupProperties
78            object based on the index value from 0 to 1 that is
79            passed to it.
80            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
81            Made into instances of Monochromatic class instread of
82            deriving from it.
83            (HotToCold.SetNumGroups): Removed. See CustomRamp.
84            (HotToCold.next): Removed. See CustomRamp.
85    
86            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
87            (Classification.SetField, Classification.SetFieldType):
88            Replaced with SetFieldInfo.
89            (Classification.SetFieldInfo): New. Does a better job of
90            what SetField and SetFieldType used to do by combining
91            their function since they should really always be done
92            at the same time.
93            (Classification.SetLayer): Renamed to _set_layer.
94            (Classification._set_layer): Should only be called from
95            Layer's SetClassification. This does not cause a recursive
96            call as SetLayer did because we know that Layer knows about
97            the classification.
98    
99            * Thuban/Model/color.py: Fixes RTbug #1971.
100            (_Transparent): Renamed from Transparent so it doesn't
101            conflict with the module variable.
102            (Transparent, Black): Renamed from Color.Transparent,
103            Color.Black so they are not class variables.
104    
105            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
106            (Layer.Destroy): We don't need to call SetClassification
107            anymore to clear out the back reference in the classifcation
108            to the layer. It's better to set it to None using _set_layer,
109            and we won't be creating another clas object too.
110            (Layer.SetClassification): Classification._set_layer is not
111            recursive so remove all the locking variables. Also clean
112            up the code so that it remains unchanged if something fails.
113    
114            * Thuban/Model/load.py: Fixes RTbug #1971.
115            (SessionLoader.start_classification): Call
116            Classification.SetFieldInfo().
117    
118            * Thuban/Model/save.py: Removed import of Color which wasn't
119            being used.
120    
121            * Thuban/UI/classgen.py: Fixes RTbug #1972.
122            (ClassGenDialog.__init__): Color ramps are now instances
123            already so we don't need to create any new objects.
124            (ClassGenDialog.OnOK): Check for numGroups is no longer
125            necessary because we never use it.
126    
127            * Thuban/UI/classifier.py: Fixes RTbug #1971.
128            (Classifier.__BuildClassification, Classifier.__SetGridTable):
129            Call Classification.SetFieldInfo() instead of SetFieldType.
130    
131            * Thuban/UI/renderer.py: Fixes RTbug #1971.
132    
133            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
134            (MapCanvas.__init__): Subscribe to the idle time event. Set
135            background color to white.
136            (MapCanvas.OnPaint): Set a flag indicating that we should
137            render the map during idle time. If we already have a bitmap
138            just draw it now.
139            (MapCanvas.OnIdle): New. Render the map only during idle time.
140            This also fixes a problem with the busy cursor under gtk.
141    
142            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
143            Fix calls to generate_singletons because the signature changed.
144    
145            * test/test_classification.py: Fix color references and
146            change calls to Classification.[SetField|SetFieldType] to
147            SetFieldInfo.
148    
149            * test/test_load.py: Fix color references.
150    
151            * test/test_load_0_2.py: Fix color references.
152    
153            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
154            Change calls to Classification.[SetField|SetFieldType] to
155            SetFieldInfo.
156    
157    2003-07-01  Frank Koormann   <[email protected]>
158    
159            MERGE from the greater-ms3 branch.
160    
161            * test/test_transientdb.py
162            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
163            New. Test join of two tables with partly equal column names.
164    
165            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
166            If duplicates in left and right tables column names are found,
167            append '_' (underscores) to the name until it is unique.
168            Create always new internal names for the resulting table and reference
169            columns in the join statement with <table>.<column>
170    
171    2003-07-01  Bernhard Herzog  <[email protected]>
172    
173            * test/test_transientdb.py
174            (TestTransientTable.test_transient_joined_table_same_column_name):
175            New. Test whether joining on columns with the same names in both
176            tables works.
177            
178            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
179            sure to use the right internal names even when joining on field
180            with the same names in both tables. Also, detect duplicate names
181            in the joined table correctly.
182    
183    2003-07-01  Frank Koormann   <[email protected]>
184    
185            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
186            Reverse List of layers to render in same order as in desktop legend.
187    
188    2003-06-30  Jonathan Coles   <[email protected]>
189    
190            * Thuban/version.py (make_tuple): Takes a version string
191            and splits it into a tuple of at most three integers.
192            Used make_tuple() to make tuple versions of the version
193            numbers.
194    
195            * Thuban/UI/about.py: Add Thuban email addresses.
196    
197    2003-06-30  Jonathan Coles   <[email protected]>
198    
199            * Thuban/version.py: SQLite/PySQLite version dependencies
200            were too high.
201    
202    2003-06-30  Jonathan Coles   <[email protected]>
203    
204            * Thuban/version.py: Update version to 0.8.1
205            
206            * MANIFEST.in: Added Projections so that default.proj is
207            included.
208    
209    2003-06-26  Jonathan Coles   <[email protected]>
210    
211            New About box with lots more information including library
212            versions and credits. More/better version checking before
213            Thuban starts.
214    
215            * Thuban/UI/about.py: New. New About box that displays
216            library version information and credits.
217    
218            * Thuban/version.py: Added new 'versions' dictionary which
219            contains the verions of various libraries which are checked
220            when the module loads.
221            (verify_versions): Check all version numbers and returns
222            a list of errors.
223    
224            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
225            Reset the status of the buttons as the situation warrants,
226            but in a better more reliable way by not relying on the
227            current status to determine what needs to change.
228    
229            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
230            (verify_versions): Remove most of the code since it is
231            now in Thuban.version.verify_versions.o
232    
233            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
234            About box in Thuban.UI.about.
235    
236            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
237            Returns the version of gdal library being used as a string.
238    
239            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
240            Removed.
241            (get_proj_version): Return the version of PROJ that the file
242            was compiled with.
243            (get_gtk_version): Return th version of GTK that the file
244            was compiled with.
245    
246    2003-06-25  Jonathan Coles   <[email protected]>
247    
248            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
249            of the SelectPropertiesDialog should be self so the window
250            appears on top.
251            (ClassGroupPropertiesCtrl.DoEdit): The parent
252            of the SelectPropertiesDialog should be self so the window
253            appears on top.
254    
255            * Thuban/UI/resource.py: Cleaned up how we determine file
256            extensions.
257            (GetImageResource): Return an wxImage from our Resources.
258    
259    2003-06-24  Jonathan Coles   <[email protected]>
260    
261            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
262            Check that a layer has a classification before trying
263            to get it. Raster layers don't have classifications.
264    
265    2003-06-23  Jonathan Coles   <[email protected]>
266            
267            * setup.py: Add Resources/XML to resource list.
268        
269    2003-06-23  Jonathan Coles   <[email protected]>
270    
271            * setup.cfg: Fix copyright dates
272        
273    2003-06-23  Jonathan Coles   <[email protected]>
274    
275            * MANIFEST.in: Update with Resources/XML
276    
277            * setup.py: Don't include Locale resources yet as we don't
278            have any and it causes problems building the distribution
279            for Windows. Update version to 0.8.0.
280    
281            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
282    
283            * Thuban/UI/mainwindow.py: Add blank line at the end because
284            file was not being read correctly building the Windows
285            distribution.
286    
287    2003-06-23  Jonathan Coles   <[email protected]>
288    
289            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
290    
291            * Thuban/version.py: Temporarily update longversion for
292            the 0.8 release so that it doesn't have the cvs revision.
293    
294    2003-06-23  Jonathan Coles   <[email protected]>
295    
296            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
297            to make sure that we don't create reentrant possibilities with
298            wxYield.
299    
300            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
301            directly to avoid the wxSafeYield() call which generates an
302            OnPaint event causing infinite recursion. Don't try to catch
303            exception anymore. This was for before there were limits on map
304            scaling.
305    
306    2003-06-23  Bernhard Herzog  <[email protected]>
307    
308            Bug fix for RT #1961:
309    
310            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
311            Register DerivedShapestores with the session
312    
313            * Thuban/Model/session.py (Session.Tables): Make sure each table
314            is only listed once.
315    
316            * test/test_load.py (TestJoinedTable.test): Add check_format call.
317            Update file contents to match the one written out.
318    
319    2003-06-20  Bernhard Herzog  <[email protected]>
320    
321            * test/xmlsupport.py (SaxEventLister.startElementNS)
322            (SaxEventLister.endElementNS): Do not include the qname. Python
323            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
324            is (presumably incorrectly) None, whereas it's a string with the
325            element name in the later versions.
326    
327            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
328            (TestEventList.test_even_list_namespace): Update tests to reflect
329            the new behaviour
330            (TestEventList.test_even_list_id_normalization): Fix doc-string
331    
332    2003-06-20  Jonathan Coles   <[email protected]>
333    
334            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
335            by deriving classes to determine if that layer supports shapes.
336            (Layer): Override HasShapes and return true.
337    
338            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
339            instead of a direct call to wx[Begin|End]CusyCursor().
340            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
341            table data.
342    
343            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
344            New. Wrappers around the wxWindows functions that allow us to
345            make additional calls such as wxYield which gives the native
346            system a chance to update the cursor correctly.
347    
348            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
349            instead of a direct call to wx[Begin|End]CusyCursor().
350    
351            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
352            instead of a direct call to wx[Begin|End]CusyCursor().
353            (MapCanvas.find_shape_at): Check if the current search layer
354            support shapes, otherwise go on to the next layer.
355    
356            * test/test_layer.py: Add tests in each type of layer for
357            HasClassification() and HasShapes()
358    
359    2003-06-20  Jonathan Coles   <[email protected]>
360    
361            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
362            turning on the busy cursor to allow the system to change the
363            cursor before we begin painting. This fixes a problem that
364            was occuring only under GTK. Fixes RTbug #1840.
365    
366    2003-06-20  Bernhard Herzog  <[email protected]>
367    
368            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
369            version.
370    
371            * Thuban/Model/save.py (sort_data_stores): New. Make topological
372            sort of the data sources so they can be written with sources that
373            data sources that depend on other data sources come after the
374            sources they depend on.
375            (SessionSaver.__init__): Add idmap instance variable to map from
376            objects to the ids used in the file.
377            (SessionSaver.get_id, SessionSaver.define_id)
378            (SessionSaver.has_id): New. Methods to manage the idmap
379            (SessionSaver.write): Use thuban-0.8.dtd
380            (SessionSaver.write_session): Add a namespace on the session and
381            write out the data sources before the maps.
382            (SessionSaver.write_data_containers): New. Write the data
383            containers.
384            (SessionSaver.write_layer): Layer elements now refer to a
385            shapestore and don't contain filenames anymore.
386    
387            * Thuban/Model/load.py (LoadError): Exception class to raise when
388            errors in the files are discovered
389            (SessionLoader.__init__): Define dispatchers for elements with a
390            thuban-0.8 namespace too.
391            (SessionLoader.check_attrs): New helper method to check and
392            convert attributes
393            (AttrDesc): New. Helper class for SessionLoader.check_attrs
394            (SessionLoader.start_fileshapesource)
395            (SessionLoader.start_derivedshapesource)
396            (SessionLoader.start_filetable, SessionLoader.start_jointable):
397            Handlers for the new elements in the new fileformat
398            (SessionLoader.start_layer): Handle the shapestore attribute in
399            addition to filename.
400            (SessionLoader.start_table, SessionLoader.end_table): Removed.
401            They were never used in the old formats and aren't needed for the
402            new.
403    
404            * Thuban/Model/session.py (Session.DataContainers): New method to
405            return all "data containers", i.e. shapestores and tables
406    
407            * test/xmlsupport.py (SaxEventLister.__init__)
408            (SaxEventLister.startElementNS, sax_eventlist): Add support to
409            normalize IDs.
410    
411            * test/test_xmlsupport.py
412            (TestEventList.test_even_list_id_normalization): New test case for
413            id normalization
414    
415            * test/test_load.py (LoadSessionTest.check_format): Use ID
416            normalization
417            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
418            class atrributes used for ID normalization
419            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
420            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
421            file format
422            (TestJoinedTable): New test for loading sessions with joined
423            tables.
424            (TestLoadError): New. Test whether missing required attributes
425            cause a LoadError.
426    
427            * test/test_save.py (SaveSessionTest.thubanids)
428            (SaveSessionTest.thubanidrefs): New class attributes for ID
429            normalization in .thuban files.
430            (SaveSessionTest.compare_xml): Use id-normalization.
431            (SaveSessionTest.testEmptySession)
432            (SaveSessionTest.testLayerProjection)
433            (SaveSessionTest.testRasterLayer)
434            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
435            (SaveSessionTest.testLayerProjection): The filename used was the
436            same as for testSingleLayer. Use a different one.
437            (SaveSessionTest.test_dbf_table)
438            (SaveSessionTest.test_joined_table): New test cases for saving the
439            new data sources structures.
440            (TestStoreSort, MockDataStore): Classes to test the sorting of the
441            data stores for writing.
442    
443            * test/runtests.py: Add CVS keywords
444    
445    2003-06-20  Jonathan Coles   <[email protected]>
446    
447            * test/test_session.py
448            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
449            Use the cultural_landmark-point.dbf file for the store so that
450            the table rows and shape count match.
451    
452    2003-06-20  Jonathan Coles   <[email protected]>
453    
454            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
455            an exception if the number of shapes is different from the
456            number of rows in the table. Address RTbug #1933.
457    
458            * test/test_layer.py (TestLayer.test_derived_store): Add
459            a test for the new exception in DerivedShapeStore.__init__.
460    
461            * test/support.py (FloatTestCase): Removed since there is
462            already FloatComparisonMixin. Fixes RTbug #1954.
463            (FloatComparisonMixin.assertFloatEqual): Include test for
464            infinity that was part of FloatTestCase.
465    
466            * test/test_range.py (RangeTest): Inherit from
467            support.FloatComparisonMixin now that we don't have
468            support.FloatTestCase.
469    
470    2003-06-20  Bernhard Herzog  <[email protected]>
471    
472            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
473            the implementation in xmlsupport instead.
474            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
475    
476            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
477            of test_save
478    
479    2003-06-20  Bernhard Herzog  <[email protected]>
480    
481            * test/test_load.py (LoadSessionTest.check_format): New helper
482            method to make sure the test files we load might have been written
483            by the current thuban version.
484            (ClassificationTest.TestLayers, TestSingleLayer.test)
485            (TestLayerVisibility.test, TestClassification.test)
486            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
487            Add check_format() calls and fix the thuban data to match the data
488            that would be written by saving the session loaded from it.
489    
490            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
491            the same class and function in test_save.
492    
493            * test/test_xmlsupport.py (TestEventList): New. test cases for
494            sax_eventlist
495    
496    2003-06-20  Bernhard Herzog  <[email protected]>
497    
498            * Resources/XML/thuban.dtd: Add comment about which versions of
499            Thuban are covered by this DTD
500            (map): Fix content model for layers and raster layers. There can
501            be any number or layers and raster layers in any order.
502    
503    2003-06-20  Jonathan Coles   <[email protected]>
504    
505            This is mainly about fixing RTbug #1949.
506    
507            * Thuban/Model/classification.py: Remove "from __future__"
508            import statement since python 2.2 is the earliest supported
509            version.
510    
511            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
512            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
513            depending on the units this projection *forwards* into.
514    
515            * Thuban/Model/save.py (SessionSaver.write_classification):
516            Remove unnecessary use of lambdas and nested functions.
517    
518            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
519            adjustment here if the map projection uses degrees.
520    
521            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
522            scale adjust code since it is now done before calling
523            this method. Don't do anything if the map projection
524            is None.
525    
526    2003-06-19  Bernhard Herzog  <[email protected]>
527    
528            Move version specific load tests to their own file.
529    
530            * test/test_load.py: Expand the doc-string to explain a bit how to
531            handle file format changes.
532            (TestClassification.test): Update the docstring as this test is
533            not about Thuban 0.2 anymore.
534    
535            * test/test_load_0_2.py: New file with the load tests for thuban
536            files created with Thuban 0.2 and earlier.
537    
538    2003-06-19  Bernhard Herzog  <[email protected]>
539    
540            Add XML validation to some of the tests. Validation will only be
541            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
542            To make the DTD available to the test cases it's moved into
543            Resources/XML
544    
545            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
546            for versions up to and including 0.2. Two slight changes: added an
547            encoding specification and fixed the comment which refered to
548            GRASS, not Thuban
549    
550            * test/xmlsupport.py: New support module for tests involving XML.
551            Currently there's a mix-in class for XML validation.
552    
553            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
554    
555            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
556            so that we can validate the
557            (SaveSessionTest.testEmptySession)
558            (SaveSessionTest.testSingleLayer)
559            (SaveSessionTest.testSingleLayer)
560            (SaveSessionTest.testLayerProjection)
561            (SaveSessionTest.testRasterLayer)
562            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
563    
564            * test/runtests.py (main): Call print_additional_summary instead
565            of print_garbage_information
566    
567            * test/support.py (resource_dir): New function to return the
568            "Resource" subdirectory
569            (print_additional_summary): New function to combine several
570            summary functions
571            (run_tests): Use print_additional_summary instead of calling
572            print_garbage_information directly
573    
574    2003-06-19  Bernhard Herzog  <[email protected]>
575    
576            * Doc/thuban.dtd (classification): Correct the content model of
577            the classification element.
578            (projection): Add the "name" attribute
579    
580    2003-06-19  Frank Koormann   <[email protected]>
581    
582            MERGE from the greater-ms3 branch.
583    
584            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
585            scale if projection is latlong to get better estimate.
586    
587            Fix problem of hidden properties dialog under windows after double
588            click on layer tree:
589            The tree control always gets an Expanded / Collapsed event after
590            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
591            raises the already displayed window.
592    
593            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
594            raiseProperties initialized to prevent endless loops
595            (LegendTree._OnItemActivated): Depending on self.raiseProperties
596            simply raise the properties or open the dialog and issue a second
597            event.
598    
599    2003-06-18  Jonathan Coles   <[email protected]>
600    
601            * setup.py: Fix a few problems that occured under Windows.
602    
603    2003-06-18  Jonathan Coles   <[email protected]>
604    
605            When Thuban loaded the map was redrawn twice because the
606            legend was being opened after the mainwindow was created
607            and not during its creation. This meant the map was drawn
608            initially and then had to be redrawn when the legend
609            caused the display to change. Now the legend is opened
610            in the mainwindow constructor which resolves this issue.
611    
612            Also, although we were checking for the existence of
613            gdal and gdalwarp modules, the gdalwarp extension was
614            still being compiled (which may fail if the system doesn't
615            have gdal installed). the build_ext command to setup.py
616            now accepts the flags --with-gdal and --without-gdal.
617            If --without-gdal is specified setup.py will try to
618            use the gdal parameters specified by gdal-config. Under
619            windows, those parameters have to be set in setup.py
620            as with proj4 an wxWindows.
621    
622            * setup.py: Use a list instead of seperate variables for
623            extension parameters so we can create a generic function
624            that runs an appropriate *-config script.
625            (run_cs_script): Renamed from run_wx_script and modified
626            to accept a second argument which is a list of lists to
627            be filled in by the values returned from running the command.
628            (thuban_build_ext): New. Extends the build_ext command and
629            provides the options --with-gdal/--without-gdal which then
630            optionally includes the gdalwarp extension.
631    
632            * Thuban/Model/resource.py: First check if we can import
633            the gdalwarp Thuban extension before checking for gdal.
634            Also added some comments.
635            
636            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
637            the map is None which may be the case if none has been loaded
638            yet.
639    
640            * Thuban/UI/main.py (main): Remove call to ShowLegend.
641    
642            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
643    
644            * Thuban/UI/renderer.py: Check for gdal support before importing
645            gdalwarp.
646            (MapRenderer.render_map): Only try to optimize if we have gdal
647            support otherwise nothing will get drawn.
648    
649            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
650            during startup before a map has been created. Check if map is None
651            before using it and do nothing if it is.
652    
653    2003-06-17  Jonathan Coles   <[email protected]>
654    
655            Fix the problem with raster layers under Windows that caused
656            Thuban to crash. The view should respond to layer projection
657            changed events to update the display. Changes to a projection
658            should not cause the map to be set to full extent.
659            
660            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
661            current_map_proj to remember the current map projection so that
662            when the projection changes we know what the previous projection
663            was.
664            (MapCanvas.SetMap): Unsubscribe and subscribe to
665            LAYER_PROJECTION_CHANGED events.
666            (MapCanvas.projection_changed): Split into two methods that respond
667            to map and layer projection changes.
668            (MapCanvas.map_projection_changed): New. Takes the current view and
669            projects it using the new projection. This does not cause the
670            map to be redrawn at full extent.
671            (MapCanvas.layer_projection_changed): New. Cause a redraw which
672            will draw each layer in its new projection.
673            
674            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
675            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
676            under Windows.
677            
678            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
679            to twice sizeof(void*) because there are two digits for each
680            hex byte.
681    
682    2003-06-16  Bernhard Herzog  <[email protected]>
683    
684            Update to the layer interface: Direct access to the table,
685            shapetable, shapefile and filename attributes is now actively
686            deprecated by issuing deprecation warnings for all places where
687            this happens.
688    
689            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
690            to the instance variables table, shapetable, shapefile and
691            filename via __getattr__ so that we can issue a deprecation
692            warning.
693            (Layer.SetShapeStore): Don't set the deprecated instance variables
694            any more
695            (Layer.SetShapeStore): Don't use deprecated layer instance
696            variables
697            (Layer.Destroy): No need to explicitly remove the instance
698            variables any more
699            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
700            instance variables
701    
702            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
703            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
704            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
705            use deprecated layer instance variables
706    
707            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
708            deprecated layer instance variables
709    
710            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
711            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
712            instance variables
713    
714            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
715            deprecated layer instance variables
716    
717            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
718            deprecated layer instance variables
719    
720            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
721            deprecated layer instance variables
722    
723            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
724            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
725            variables
726    
727            * test/runtests.py (main): Turn Thuban's deprecation warnings into
728            errors so that they're cought by the tests
729    
730            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
731            layer instance variables
732    
733    2003-06-16  Jonathan Coles   <[email protected]>
734    
735            Fix a problem under Windows whereby if the user double-clicks on a
736            layer in the legend that tree item will expand or collapse as well
737            as open the layer properties dialog. The state of the tree item
738            should not be affected.
739    
740            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
741            preventExpandCollapse and subscribe to expanding and collapsing
742            events.
743            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
744            collapsing events and will veto the event if it has been triggered
745            by the user double clicking on a layer.
746            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
747            that an expanding/collapsing event should be vetoed.
748    
749    2003-06-13  Bernhard Herzog  <[email protected]>
750    
751            * Thuban/UI/classifier.py (Classifier.OnClose)
752            (Classifier.map_layers_removed)
753            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
754            in OnClose and not in map_layers_removed or
755            layer_shapestore_replaced to make sure it always happens when the
756            dialog is closed
757    
758    2003-06-13  Jonathan Coles   <[email protected]>
759    
760            This puts back a fix for Windows where a panel is needed so that
761            the background of the table view appears correctly.
762    
763            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
764            object that can be used by derived classes to place any
765            controls (including the grid) onto.
766            (QueryTableFrame.__init__): Use the panel as the parent window
767            for all the controls. Reparent the grid so that the panel is
768            the parent. Call UpdateStatusText() to correctly initialize
769            the status bar.
770    
771    2003-06-13  Jonathan Coles   <[email protected]>
772    
773            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
774            from wxFrame (as opposed to wxDialog like the other classes)
775            but otherwise behaves like the other classes. This is needed
776            for the TableView which isn't really a dialog and needs to
777            have a status bar and control buttons.
778    
779            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
780            instance variable to keep track of how many rows are selected.
781            Subscribe once to the the events we are interested in.
782            (ThubanGrid.OnRangeSelect): Only handle event if event handling
783            hasn't been turned off.
784            (ThubanGrid.OnSelectCell): Only handle event if event handling
785            hasn't been turned off.
786            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
787            as an event listener (which changes the event handler stack)
788            simply set an instance variable to False. This is checked in
789            the event handlers.
790            (ThubanGrid.GetNumberSelected): Return the number of currently
791            selected rows.
792            (TableFrame): Inherit from ThubanFrame so we can have a
793            status bar and control buttons.
794            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
795            Explicitly set which items are selected in the operator choice and
796            action choice so there is always a valid selection. Fixes RTbug #1941.
797            Subscribe to grid cell selection events so we can update the
798            status bar.
799            (QueryTableFrame.UpdateStatusText): Update the status bar with
800            how many rows are in the grid, how many columns, and how many
801            rows are selected.
802            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
803            Call UpdateStatusText when cells are (de)selected.
804            (QueryTableFrame.OnQuery): Use the string value in the value
805            combo if either the selected item index is 0 or if the string
806            cannot be found in the predefined list (this happens if the
807            user changes the text). Fixes RTbug #1940.
808            Only turn off the grid event listeners if there a query comes
809            back with a none empty list of ids. in the case that the list
810            is empty this causes a grid.ClearSelection() call to actually
811            clear the grid selection which causes the selected items in
812            the map to be deselected. Fixes RTbug #1939.
813    
814            * test/test_save.py (XMLWriterTest.Encode): Check return values.
815            Fixes RTbug #1851.
816    
817    2003-06-13  Bernhard Herzog  <[email protected]>
818    
819            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
820            self.selected_shape with the current selection to make sure the
821            contents of the dialog are up to date when it's shown for the
822            first time.
823            The dialog used to work without this by luck. The recent fix to
824            the connector module 'broke' a 'feature' the identify view was
825            relying on, i.e that subscribing to a message in response to
826            receiving a message of that type would mean that the new
827            subscriber would also be called for the same message.
828            
829    2003-06-12  Jonathan Coles   <[email protected]>
830    
831            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
832            the image is rendered. Fixes RTbug #1937.
833    
834    2003-06-12  Jonathan Coles   <[email protected]>
835    
836            * Thuban/Lib/fileutil.py: As is done under Windows, create the
837            user directory if it doesn't exist on a posix system.
838            Fixes RTbug #1815.
839    
840            * Thuban/Model/resource.py (get_user_proj_files): Moved the
841            called to get_application_dir here, so that the directory
842            will only be called if this method is invoked.
843    
844            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
845            the projfilepath if no projection is selected.
846    
847    2003-06-12  Jonathan Coles   <[email protected]>
848    
849            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
850            the scalebar if the current map has no projection set.
851    
852            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
853            projfilepath label to just the basename of the projection file
854            rather than include the entire path.
855    
856            * Thuban/Model/resource.py: Fix missed proj functions that
857            needed to be renamed.
858    
859    2003-06-12  Jonathan Coles   <[email protected]>
860    
861            * Thuban/Model/classification.py: Removed assert statements that
862            tested if the variable was an instance of Color.
863    
864            * Thuban/Model/color.py (Color): Remove commented code that isn't
865            used.
866            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
867            Fixes RTbug #1835.
868            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
869            Needed now that the class doesn't inherit from Color.
870    
871    2003-06-12  Jonathan Coles   <[email protected]>
872    
873            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
874            check unicode strings.
875    
876            * test/test_layer.py: Check for existence of gdal.
877    
878    2003-06-12  Jonathan Coles   <[email protected]>
879        
880            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
881            that was in load.py
882    
883            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
884            that was in save.py
885    
886    2003-06-12  Jonathan Coles   <[email protected]>
887    
888            This is largely a collection of bug fixes. We also handle the
889            case where gdal is not on the system. The XMLReader and XMLWriter
890            classes were moved into there own files to resolve some circular
891            import references and because they shouldn't really be in the
892            file that is dediciated to reading/writing session files since
893            they are also used elsewhere.
894    
895            * Thuban/Model/classgen.py: Renamed functions to follow the
896            function_names_with_underscores style. Fixes RTbug #1903.
897            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
898    
899            * Thuban/Model/layer.py: Import gdal only if it available.
900            (RasterLayer): Handle the case where the gdal library is unavailable.
901            Addresses RTbug #1877.
902    
903            * Thuban/Model/load.py (XMLReader): Moved into seperate file
904            xmlreader.py.
905    
906    2003-06-12  Jonathan Coles   <[email protected]>
907    
908            This is largely a collection of bug fixes. We also handle the
909            case where gdal is not on the system. The XMLReader and XMLWriter
910            classes were moved into there own files to resolve some circular
911            import references and because they shouldn't really be in the
912            file that is dediciated to reading/writing session files since
913            they are also used elsewhere.
914    
915            * Thuban/Model/classgen.py: Renamed functions to follow the
916            function_names_with_underscores style. Fixes RTbug #1903.
917            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
918    
919            * Thuban/Model/layer.py: Import gdal only if it available.
920            (RasterLayer): Handle the case where the gdal library is unavailable.
921            Addresses RTbug #1877.
922    
923            * Thuban/Model/load.py (XMLReader): Moved into seperate file
924            xmlreader.py.
925    
926            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
927            file xmlwriter.py.
928    
929            * Thuban/Model/resource.py: Renamed functions to following the
930            function_names_with_underscores style.
931            (has_gdal_support): New function that returns true if the gdal
932            library is available. Addresses RTbug #1877.
933    
934            * Thuban/UI/application.py (ThubanApplication.OpenSession):
935            Display a message box if the gdal library is not available, but
936            only if there are any layers that would use it. Addresses RTbug #1877.
937    
938            * Thuban/UI/classgen.py: Use renamed projection resource functions.
939            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
940            when using integers versus floats.
941    
942            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
943            determine if the "Add Image Layer" menu option should be
944            greyed out or not. Addresses RTbug #1877.
945    
946            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
947    
948            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
949            optimize if a raster layer is visible. Fixes RTbug #1931.
950            Only draw the raster layer if the gdal library is available.
951            Addresses RTbug #1877.
952    
953            * test/test_classgen.py: Add tests for generate_singletons,
954            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
955            (test_calculate_quantiles): Fix some tests to catch the new
956            ValueError that is raised.
957    
958            * test/test_proj.py: Use renamed projection resource functions.
959    
960            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
961            test for saving classified layers. Fixes RTbug #1902.
962            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
963    
964    2003-06-12  Jan-Oliver Wagner <[email protected]>
965    
966            Fix for http://intevation.de/rt/webrt?serial_num=1900.
967    
968            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
969    
970            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
971            multiplechoicedialog.py rather than from the wxPython library.
972    
973    2003-06-11  Frank Koormann  <[email protected]>
974    
975            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
976            update.
977    
978    2003-06-11  Frank Koormann  <[email protected]>
979    
980            * Thuban/Lib/fileutil.py (get_application_dir): New function to
981            determine the absolute .thuban/thuban directory under
982            "posix" (os.expanduser) and "nt" (read AppData registry key).
983    
984            * Thuban/Model/resource.py: Use get_application_dir
985    
986            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
987            Use get_application_dir.
988    
989    2003-06-10  Bernhard Herzog  <[email protected]>
990    
991            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
992            the messages MAP_LAYERS_REMOVED messages
993            (LayerTableFrame.OnClose): Unsubscribe from it.
994            (LayerTableFrame.map_layers_removed): New. Receiver for
995            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
996            dialog is showing is removed.
997    
998    2003-06-10  Bernhard Herzog  <[email protected]>
999    
1000            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
1001            of the receivers list so that unsubscribing in a receiver doesn't
1002            modify it while iterating over it.
1003    
1004            * test/test_connector.py
1005            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
1006            unsubscribing in a receiver works correctly. See docstring for
1007            details
1008    
1009    2003-06-10  Bernhard Herzog  <[email protected]>
1010    
1011            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
1012            message.
1013    
1014            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
1015            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
1016            LAYER_CHANGED will still be sent if the classification changes.
1017    
1018            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
1019            parameter so we can subscribe to some of its messages
1020            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
1021            and the layer's LAYER_SHAPESTORE_REPLACED
1022            (Classifier.unsubscribe_messages): New. Unsubscribe from message
1023            subscribed to in __init__
1024            (Classifier.map_layers_removed)
1025            (Classifier.layer_shapestore_replaced): receivers for the messages
1026            subscribed to in __init__. Unsubscribe and close the dialog
1027    
1028            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
1029            the map to the Classifier dialog
1030    
1031            * test/test_layer.py (SetShapeStoreTests): Derive from
1032            SubscriberMixin as well so we can test messages
1033            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
1034            messages
1035            (SetShapeStoreTests.tearDown): Clear the messages again
1036            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
1037            for the modified flag too
1038            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
1039            to check whether SetShapeStore sets the modified flag
1040            (SetShapeStoreTests.test_set_shape_store_different_field_name)
1041            (SetShapeStoreTests.test_set_shape_store_same_field)
1042            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
1043            Add tests for the messages. This checks both the new
1044            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
1045    
1046    2003-06-06  Jan-Oliver Wagner <[email protected]>
1047    
1048            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
1049            the menu items.
1050    
1051    2003-06-05  Frank Koormann  <[email protected]>
1052    
1053            * Thuban/UI/identifyview.py (IdentifyView.__init__):
1054            Layout reimplemented without panel. Make life easier to fit the list
1055            in the dialog.
1056    
1057    2003-06-05  Frank Koormann  <[email protected]>
1058    
1059            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
1060            once on initialisation (Former implementation resulted in multiple
1061            entries for each projection).
1062            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
1063            if set, select the projection found under the specified name. This
1064            overwrites any other selection estimate.
1065            Removed projchoice filling from this method.
1066            (ProjFrame._OnSave, ProjFrame._OnAddToList):
1067            Updated call of ProjFrame.__FillAvailList
1068            (LCCPanel._DoLayout): Moved parameter controls in more common order.
1069    
1070            * Resources/Projections/defaults.proj: Extended defaults representing
1071            various common European projections.
1072    
1073    2003-06-05  Frank Koormann  <[email protected]>
1074    
1075            * Thuban/UI/identifyview.py (IdentifyView.__init__):
1076            Use ListCtrl instead of GridCtrl
1077    
1078            * Thuban/Model/resource.py:
1079            Guess location of .thuban directory from tempdir parent directory.
1080    
1081            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
1082            Guess location of .thuban directory from tempdir parent directory.
1083    
1084    2003-06-04  Bernhard Herzog  <[email protected]>
1085    
1086            Do not cache the values returned by the tree widget's
1087            GetFirstChild and GetNextChild methods because it led to lots of
1088            segfaults. The new way requires more brute force but is more
1089            reliable.
1090    
1091            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
1092            variable layer2id
1093            (LegendTree.find_layer): New method to do with brute force what
1094            layer2id tried to accomplish
1095            (LegendTree._OnMsgLayerChanged)
1096            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
1097            Use find_layer instead of layer2id
1098            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
1099            update layer2id anymore
1100            (LegendTree._OnMsgMapLayersRemoved)
1101            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
1102    
1103    2003-06-03  Thomas Koester  <[email protected]>
1104    
1105            * Thuban/Model/classgen.py (GenQuantiles0): New function.
1106    
1107    2003-06-02  Bernhard Herzog  <[email protected]>
1108    
1109            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
1110            New commands.
1111            (main_menu): Add the new commands.
1112            (MainWindow.TableRename): New. Implementation of the table_rename
1113            command.
1114            (MainWindow.RenameLayer): New. Implementation of the layer_rename
1115            command.
1116    
1117            * Thuban/Model/session.py (Session.AddTable): call self.changed to
1118            set the modified flag
1119    
1120            * test/test_session.py (TestSessionSimple.test_add_table): Test
1121            whether the modified flag is set properly
1122    
1123            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
1124            instead of issue so that the modified flags get updated.
1125    
1126            * test/test_base.py (SomeTitledObject): Derive from Modifiable
1127            instead of Publisher to reflect reality better and to accomodate
1128            the fact that SetTitle now calls changed instead of issue
1129    
1130    2003-06-02  Bernhard Herzog  <[email protected]>
1131    
1132            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
1133            acquisition has to happen before the try in a try-finally.
1134    
1135    2003-06-02  Bernhard Herzog  <[email protected]>
1136    
1137            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
1138            possible that a layer is removed that is not currently selected in
1139            the legend so don't check for this.
1140    
1141    2003-05-30  Bernhard Herzog  <[email protected]>
1142    
1143            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
1144            variables to None that have direct or indirect references to
1145            shapefiles or dbf files to make sure that they do go away and the
1146            files are closed.
1147    
1148    2003-05-30  Bernhard Herzog  <[email protected]>
1149    
1150            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
1151            availImgListIndices when a new image list is created
1152            
1153    2003-05-30  Bernhard Herzog  <[email protected]>
1154    
1155            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
1156            changing_selection to indicate whether the LegendTree code itself
1157            is currently changing the selection
1158            (LegendTree.normalize_selection): New method to normalize the
1159            selection by selecting the layer item even if the user clicked on
1160            the classification.
1161            (LegendTree._OnSelChanged): normalize the selection. This works
1162            around a bug in wx which doesn't keep track of the selection
1163            properly when subtrees are deleted.
1164    
1165    2003-05-30  Bernhard Herzog  <[email protected]>
1166    
1167            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
1168            maximum and minimum scale factors.
1169    
1170            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
1171            changes in classgen.py
1172    
1173    2003-05-30  Jonathan Coles   <[email protected]>
1174    
1175            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
1176            all the methods functions. Fixes RTBug #1903.
1177    
1178            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
1179            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
1180            RTBug #1907.
1181    
1182            * Thuban/UI/classgen.py: Use classgen functions that were part
1183            of the ClassGenerator class. Put try/finally blocks around
1184            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
1185            RTBug #1904.
1186    
1187            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
1188    
1189            * Thuban/UI/legend.py: The legend was cleared and repopulated any
1190            time something changed which caused some state to be lost such
1191            as which children were expanded or collapsed. Fixes RTBug #1901.
1192            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
1193            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
1194            the legend but not in the map.
1195            (LegendTree.__FillTree): Move main functionality out into smaller
1196            methods that can be used by other methods.
1197            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
1198            if they are available.
1199            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
1200            that we override the wxTreeCtrl method. Iterate over children
1201            and call __RemoveLayer.
1202            (LegendTree.__AddLayer): New. Add a new layer to the legend.
1203            (LegendTree.__RemoveLayer): Remove a layer from the legend.
1204            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
1205            Should only be called with the id of a layer branch.
1206            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
1207            Returns the root item or creates one if necessary.
1208    
1209            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
1210            ProjectRasterFile with tuple arguments instead of strings.
1211    
1212            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
1213            with try/finally. Fixes RTBug #1904.
1214    
1215            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
1216            with try/finally. Fixes RTBug #1904.
1217            (MapCanvas.FitSelectedToWindow): If a single point is selected
1218            simply center it on the display. Fixes RTBug #1849.
1219    
1220            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
1221            to be compiled as a standalone app. Now the code can only be
1222            called from Python which simplifies the parameter passing.
1223            (ProjectRasterFile): Handle Python arguments. Remove code that
1224            checks for a destination dataset. Add more clean up code.
1225    
1226            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
1227            TestMapWithContents.test_lower_layer_bottom):
1228            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
1229            Fixes RTBug #1907.
1230    
1231            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
1232            extent to the map when the legend is toggled. Fixes RTBug #1881.
1233    
1234    2003-05-29  Jan-Oliver Wagner <[email protected]>
1235    
1236            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
1237            unsubscribes all that is subcribed in __init__.
1238    
1239    2003-05-28  Bernhard Herzog  <[email protected]>
1240    
1241            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
1242            (MainWindow.CanDuplicateLayer): New methods to implement the
1243            Layer/Duplicate command.
1244            (layer_duplicate command): New.
1245            (main_menu): Add layer_duplicate to the Layer menu.
1246    
1247    2003-05-28  Bernhard Herzog  <[email protected]>
1248    
1249            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
1250            renderer so that NULL/None values get displayed differently (by a
1251            gray rectangle).
1252            (TableGrid.__init__): Override the default renderers
1253    
1254    2003-05-28  Bernhard Herzog  <[email protected]>
1255    
1256            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
1257            classification to "None" if the type of the field has changed.
1258    
1259            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
1260            test for the Layer.SetShapeStore method
1261    
1262    2003-05-28  Jan-Oliver Wagner <[email protected]>
1263    
1264            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
1265            does not necessarily have a filename).
1266    
1267    2003-05-28  Jan-Oliver Wagner <[email protected]>
1268    
1269            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
1270            sort the selection list for the dialog.
1271    
1272    2003-05-28  Frank Koormann  <[email protected]>
1273    
1274            * extensions/thuban/wxproj.cpp
1275            (project_point): Removed cast to int for projected point coordinates.
1276            (shape_centroid): Return last point if all polygon vertices fall
1277            to one point.
1278    
1279    2003-05-28  Bernhard Herzog  <[email protected]>
1280    
1281            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
1282            with layers that don't have shapestores, i.e. raster layers.
1283    
1284    2003-05-28  Bernhard Herzog  <[email protected]>
1285    
1286            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
1287            when determining the title from the filename.
1288    
1289            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
1290            reflect changes in the way the title is derived from the filename
1291    
1292    2003-05-28  Frank Koormann  <[email protected]>
1293    
1294            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
1295            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
1296    
1297    2003-05-27  Bernhard Herzog  <[email protected]>
1298    
1299            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
1300            delegate SelectedLayer.
1301            (MainWindow.LayerUnjoinTable): Implement.
1302            (_can_unjoin): New. Helper function for the sensitivity of the
1303            layer/unjoin command.
1304    
1305            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
1306            (DerivedShapeStore.OrigShapeStore): New. Return the original
1307            shapestore. Used to figure out how to unjoin.
1308            (DerivedShapeStore.Shapefile): Fix a typo.
1309    
1310    2003-05-27  Bernhard Herzog  <[email protected]>
1311    
1312            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
1313            well
1314            (JoinDialog.__init__): Use the layer parameter and only build the
1315            left choice when a layer is given
1316            (JoinDialog.OnJoin): Handle layer joins as well
1317            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
1318            that the user selects the "Select..." item. The sensitivitly
1319            updating is now in update_sensitivity
1320            (JoinDialog.y): New method to refactor the sensitivity update of
1321            the join button into its own method.
1322    
1323            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
1324    
1325    2003-05-27  Bernhard Herzog  <[email protected]>
1326    
1327            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
1328            iff there are unreferenced tables in the session
1329    
1330    2003-05-27  Bernhard Herzog  <[email protected]>
1331    
1332            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
1333    
1334            * Thuban/Model/session.py (Session.UnreferencedTables): New method
1335            to return tables that are not referenced by other tables or shape
1336            stores and can be removed.
1337            (Session.RemoveTable): Issue a TABLE_REMOVED message after
1338            removing the table
1339    
1340            * Thuban/UI/mainwindow.py: Remove unused imports
1341            (MainWindow.TableClose): Implement.
1342    
1343            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
1344            messages so that the frame will be automatically closed when a new
1345            session is opened or the table is removed.
1346            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
1347            __init__
1348            (TableFrame.close_on_session_replaced)
1349            (TableFrame.close_on_table_removed): New. Subscribers that close
1350            the window
1351    
1352            * test/test_session.py (TestSessionMessages.test_remove_table)
1353            (TestSessionSimple.test_remove_table): Move the test to
1354            TestSessionSimple and add test for the TABLE_REMOVED message
1355            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
1356            (TestSessionSimple.test_unreferenced_tables) New. Test for the
1357            UnreferencedTables method.
1358            (UnreferencedTablesTests): New. Class with some more sophisticated
1359            tests for UnreferencedTables.
1360    
1361    2003-05-27  Frank Koormann  <[email protected]>
1362    
1363            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
1364            display has some unwanted side effects. Removed again.
1365    
1366    2003-05-27  Frank Koormann  <[email protected]>
1367    
1368            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
1369    
1370            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
1371    
1372    2003-05-27  Jan-Oliver Wagner <[email protected]>
1373    
1374            * test/test_menu.py (MenuTest.test): Added test for
1375            Menu.RemoveItem().
1376    
1377            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
1378            the menu.
1379    
1380    2003-05-27  Frank Koormann  <[email protected]>
1381            
1382            Nonmodal dialogs without parent (i.e. they can fall behind the main
1383            window)
1384    
1385            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
1386            all dialogs in the dialogs dictionary and the canvas.
1387    
1388            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
1389            parent, i.e. can fall behind other windows.
1390            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
1391            dictionary before removing it.
1392    
1393            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
1394    
1395            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
1396            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
1397            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
1398    
1399    2003-05-27  Bernhard Herzog  <[email protected]>
1400    
1401            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
1402            tableview dialog
1403            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
1404            Also, don't use the table's titles as the dialog names. The titles
1405            aren't guaranteed to be unique.
1406            (MainWindow.TableOpen): Open a table view dialog after opening the
1407            table
1408    
1409    2003-05-27  Bernhard Herzog  <[email protected]>
1410    
1411            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
1412            effect can be achieved by simply closing the window showing the
1413            table.
1414            (MainWindow.TableHide): Removed.
1415            (main_menu): Removed "table_hide"
1416    
1417    2003-05-27  Frank Koormann  <[email protected]>
1418    
1419            Fix legend tree display problems under Win32
1420    
1421            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
1422            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
1423            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
1424    
1425            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
1426    
1427    2003-05-27  Jan-Oliver Wagner <[email protected]>
1428    
1429            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
1430            'after' now allows to insert separators almost anywhere in the menu.
1431    
1432    2003-05-27  Frank Koormann  <[email protected]>
1433    
1434            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
1435            "S" of selection box label to hint on hot key (Alt-S). Works under
1436            Win32 but is ignored under GTK.
1437    
1438    2003-05-26  Frank Koormann  <[email protected]>
1439    
1440            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
1441            Center Choices.
1442    
1443    2003-05-26  Bernhard Herzog  <[email protected]>
1444    
1445            Remove the Precision methods again. They're too DBF specific to be
1446            part of the table interface and they're only used in table_to_dbf
1447            anyway.
1448            
1449            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
1450            fixed precision of 12 for doubles.
1451            (TransientTableBase.Precision): Removed
1452            (AutoTransientTable.Width): Delegate to self.table.
1453    
1454            * Thuban/Model/table.py (DBFTable.Precision)
1455            (MemoryTable.Precision): Removed.
1456            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
1457            (table_to_dbf): Use a fixed precision of 12 for floats unless the
1458            column object specifies something else.
1459    
1460            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
1461            test for table_to_dbf
1462    
1463    2003-05-26  Bernhard Herzog  <[email protected]>
1464    
1465            * test/test_transientdb.py
1466            (TestTransientTable.run_iceland_political_tests): Fix a comment.
1467    
1468    2003-05-26  Bernhard Herzog  <[email protected]>
1469    
1470            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
1471            implementation. Mark parts of the file format strings for
1472            localization.
1473    
1474            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
1475            file and add the table to the tables managed by the session
1476    
1477            * test/test_session.py (TestSessionSimple.test_open_table_file):
1478            New. test case for OpenTableFile
1479    
1480    2003-05-26  Jan-Oliver Wagner <[email protected]>
1481    
1482            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
1483            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
1484            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
1485            Replace the true/false of wxWindows by True/False of Python 2.2.1.
1486    
1487    2003-05-26  Jan-Oliver Wagner <[email protected]>
1488    
1489            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
1490            already a selection present, update the grid accordingly.
1491    
1492            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
1493            resizeable and increase its initial size.
1494    
1495    2003-05-26  Frank Koormann  <[email protected]>
1496    
1497            Table export functionality
1498    
1499            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
1500            Return width (in characters) for a column.
1501            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
1502            (table_to_dbf): Write table to dbf file.
1503            (table_to_csv): Write table to csv file.
1504    
1505            * Thuban/Model/transientdb.py (TransientTableBase.Width,
1506            TransientTableBase.Precision): Return column width and precision.
1507    
1508            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
1509            or table_to_csv depending on file selection.
1510    
1511            * test/test_dbf_table.py:
1512            Test table_to_dbf (extension of former part of test).
1513    
1514            * test/test_csv_table.py:
1515            Test table_to_csv.
1516    
1517    2003-05-23  Jan-Oliver Wagner <[email protected]>
1518    
1519            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
1520            Use QueryTableFrame instead of TableFrame.
1521    
1522            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
1523            table window with 'Layer Table:' instead of 'Table:'.
1524    
1525    2003-05-23  Jan-Oliver Wagner <[email protected]>
1526    
1527            Give all tables a title via mix-in TitledObject.LayerShowTable
1528    
1529            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
1530            only if it exists.
1531    
1532            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
1533            and call its init-method with a default title. Remove Title() method.
1534    
1535            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
1536            AutoTransientTable): mix-in TitledObject and call its init-method with
1537            a default title. Remove Title() method.
1538    
1539    2003-05-23  Bernhard Herzog  <[email protected]>
1540    
1541            * Thuban/Model/session.py (Session.AddShapeStore): Define
1542            AddShapeStore analogously to AddTable.
1543    
1544            * test/test_session.py (TestSessionSimple.test_add_shapestore):
1545            New. Test for AddShapeStore
1546    
1547    2003-05-23  Jan-Oliver Wagner <[email protected]>
1548    
1549            Introducing QueryTableFrame and a very coarse ShowTable implementation.
1550    
1551            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
1552            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
1553            The latter implements the selection GUI without dependency on a layer.
1554            LayerTableFrame now is derived from QueryTableFrame and connects
1555            to a layer.
1556    
1557            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
1558            implementation that still needs work.
1559    
1560            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
1561    
1562    2003-05-22  Frank Koormann  <[email protected]>
1563    
1564            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
1565            Added "outer_join = False" as optional parameter.
1566            (TransientJoinedTable.create): If outer join is true, perform a
1567            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
1568            the left table. Records not matching are filled with 0 / None.
1569    
1570            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
1571            (JoinDialog.OnJoin): Consider outer join check box.
1572    
1573    2003-05-22  Bernhard Herzog  <[email protected]>
1574    
1575            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
1576            somewhat safer way. Storing the traceback in a local variable can
1577            lead to memory leaks
1578    
1579    2003-05-22  Bernhard Herzog  <[email protected]>
1580    
1581            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
1582            the wxMessageDialog's Destroy() method.
1583    
1584    2003-05-22  Frank Koormann  <[email protected]>
1585    
1586            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
1587            TransientTable.Title()
1588    
1589    2003-05-22  Frank Koormann  <[email protected]>
1590    
1591            Join Dialog, initial version.
1592    
1593            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
1594    
1595            * Thuban/UI/join.py (JoinDialog): Functional implementation of
1596            former framework. Renamed Table1/Table2 to LeftTable/RightTable
1597            in all occurences.
1598    
1599            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
1600            Typo fixed.
1601    
1602    2003-05-22  Bernhard Herzog  <[email protected]>
1603    
1604            Give the tables titles so that the GUI can display more meaningful
1605            names. For now the titles are fixed but depend on e.g. filenames
1606            or the titles of the joined tables.
1607    
1608            * Thuban/Model/transientdb.py (TransientTable.Title)
1609            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
1610    
1611            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
1612    
1613            * test/test_transientdb.py
1614            (TestTransientTable.test_auto_transient_table_title): New. Test
1615            for the Title method
1616            (TestTransientTable.test_transient_joined_table)
1617            (TestTransientTable.test_transient_table): Add test for the Title
1618            methods
1619    
1620            * test/test_memory_table.py (TestMemoryTable.test_title): New.
1621            Test for the Title method
1622    
1623            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
1624            the Title method
1625    
1626    2003-05-22  Bernhard Herzog  <[email protected]>
1627    
1628            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
1629            Provide a better way to destroy the layers
1630            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
1631            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
1632            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
1633            the new way to destroy the layers.
1634            (TestLayer.test_derived_store): New. Test for using a layer with a
1635            DerivedShapeStore
1636    
1637            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
1638            filename if the shape store actually has one.
1639    
1640    2003-05-22  Bernhard Herzog  <[email protected]>
1641    
1642            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
1643            for the filename
1644    
1645            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
1646            for the FileName method
1647            (TestDBFTableWriting.test_write): Fix spelling of filename
1648    
1649    2003-05-22  Thomas Koester  <[email protected]>
1650    
1651            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
1652            from SciParam that now really is immutable.
1653    
1654    2003-05-22  Frank Koormann  <[email protected]>
1655    
1656            Layer Top/Bottom placement added to legend.
1657    
1658            * Thuban/UI/legend.py
1659            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
1660            bound to tool events.
1661            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
1662            New, methods binding the event methods with the map methods.
1663    
1664            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
1665            layer at top/bottom of layer stack.
1666    
1667            * Resources/Bitmaps/top_layer.xpm: New button icon.
1668    
1669            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
1670    
1671    2003-05-22  Bernhard Herzog  <[email protected]>
1672    
1673            * Thuban/Model/session.py (Session.RemoveTable): New method to
1674            remove tables
1675    
1676            * test/test_session.py (TestSessionSimple.test_remove_table): New.
1677            Test for RemoveTable
1678    
1679    2003-05-22  Thomas Koester  <[email protected]>
1680    
1681            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
1682            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
1683    
1684    2003-05-22  Bernhard Herzog  <[email protected]>
1685    
1686            Implement a way to discover dependencies between tables and
1687            shapestores.
1688    
1689            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
1690            (TransientJoinedTable.Dependencies)
1691            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
1692            interface
1693            (TransientJoinedTable.__init__): Keep tack of the original table
1694            objects in addition to the corresponding transient tables.
1695    
1696            * Thuban/Model/table.py (DBFTable.Dependencies)
1697            (MemoryTable.Dependencies): New. Implement the dependencies
1698            interface
1699    
1700            * Thuban/Model/data.py (ShapeTable): New. Helper class for
1701            ShapefileStore
1702            (ShapefileStore.__init__): Use ShapeTable instead of
1703            AutoTransientTable
1704            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
1705            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
1706            methods for filename and type
1707            (ShapefileStore.Dependencies): New. Implement the dependencies
1708            interface
1709            (DerivedShapeStore): New class to replace SimpleStore. The main
1710            difference to SimpleStore is that it depends not on a shapefile
1711            but another shapestore which expresses the dependencies a bit
1712            better
1713            (SimpleStore.__init__): Add deprecation warning.
1714    
1715            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
1716            Test for the Dependencies method.
1717    
1718            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
1719            New. Test for the Dependencies method.
1720    
1721            * test/test_transientdb.py
1722            (TestTransientTable.test_auto_transient_table_dependencies): New.
1723            Test for the Dependencies method.
1724            (TestTransientTable.test_transient_joined_table): Add test for the
1725            Dependencies method.
1726    
1727            * test/test_session.py (TestSessionSimple.setUp)
1728            (TestSessionSimple.tearDown): New. Implement a better way to
1729            destroy the sessions.
1730            (TestSessionSimple.test_initial_state)
1731            (TestSessionSimple.test_add_table): Bind session to self.session
1732            so that it's destroyed by tearDown
1733            (TestSessionSimple.test_open_shapefile): New. Test for
1734            OpenShapefile and the object it returns
1735    
1736    2003-05-22  Bernhard Herzog  <[email protected]>
1737    
1738            * Thuban/Model/session.py (Session.AddTable): New method to
1739            register tables with the session.
1740            (Session.Tables): Return the tables registered with AddTable too.
1741    
1742            * test/test_session.py (TestSessionSimple.test_add_table): New.
1743            Test case for the AddTable method
1744    
1745    2003-05-22  Frank Koormann  <[email protected]>
1746    
1747            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
1748            lower right corner, center labels for selections, initialize controls
1749            in reasonable order for keyboard navigation.
1750    
1751            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
1752            (ProjFrame.__DoOnProjAvail): Determine position of current projection
1753            using the wxListBox.FindString() method. Still a problem (#1886)
1754    
1755            * Thuban/UI/classifier.py
1756            (Classifier.__init__, SelectPropertiesDialog.__init__)
1757    
1758            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
1759            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
1760            different classification types from here to __init__.
1761            (GenUniquePanel.__init__): Set the column width of the first field
1762            in the Field ListCtrl to the full width.
1763    
1764            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
1765            Button to 'Export'. Center Buttons in Selection Box, set Focus to
1766            Grid.
1767            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
1768            changes focus to the Selection when pressing "Alt-S".
1769    
1770            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
1771            the text if not visible. The italic font sometimes exceeds the
1772            rendering area.
1773    
1774    2003-05-21  Jonathan Coles   <[email protected]>
1775    
1776            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
1777            to OnClose so that Thuban closes correctly.
1778    
1779            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
1780            DockFrame.OnClose, not DockFrame._OnClose.
1781    
1782    2003-05-21  Jonathan Coles   <[email protected]>
1783    
1784          * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove          * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
1785          references to 'inf' and use new Range __init__ to pass floats          references to 'inf' and use new Range __init__ to pass floats

Legend:
Removed from v.971  
changed lines
  Added in v.1363

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26