/[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 1239 by jonathan, Wed Jun 18 15:41:11 2003 UTC revision 1265 by jonathan, Fri Jun 20 14:16:10 2003 UTC
# Line 1  Line 1 
1    2003-06-20  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
4            an exception if the number of shapes is different from the
5            number of rows in the table. Address RTbug #1933.
6    
7            * test/test_layer.py (TestLayer.test_derived_store): Add
8            a test for the new exception in DerivedShapeStore.__init__.
9    
10            * test/support.py (FloatTestCase): Removed since there is
11            already FloatComparisonMixin. Fixes RTbug #1954.
12            (FloatComparisonMixin.assertFloatEqual): Include test for
13            infinity that was part of FloatTestCase.
14    
15            * test/test_range.py (RangeTest): Inherit from
16            support.FloatComparisonMixin now that we don't have
17            support.FloatTestCase.
18    
19    2003-06-20  Bernhard Herzog  <[email protected]>
20    
21            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
22            the implementation in xmlsupport instead.
23            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
24    
25            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
26            of test_save
27    
28    2003-06-20  Bernhard Herzog  <[email protected]>
29    
30            * test/test_load.py (LoadSessionTest.check_format): New helper
31            method to make sure the test files we load might have been written
32            by the current thuban version.
33            (ClassificationTest.TestLayers, TestSingleLayer.test)
34            (TestLayerVisibility.test, TestClassification.test)
35            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
36            Add check_format() calls and fix the thuban data to match the data
37            that would be written by saving the session loaded from it.
38    
39            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
40            the same class and function in test_save.
41    
42            * test/test_xmlsupport.py (TestEventList): New. test cases for
43            sax_eventlist
44    
45    2003-06-20  Bernhard Herzog  <[email protected]>
46    
47            * Resources/XML/thuban.dtd: Add comment about which versions of
48            Thuban are covered by this DTD
49            (map): Fix content model for layers and raster layers. There can
50            be any number or layers and raster layers in any order.
51    
52    2003-06-20  Jonathan Coles   <[email protected]>
53    
54            This is mainly about fixing RTbug #1949.
55    
56            * Thuban/Model/classification.py: Remove "from __future__"
57            import statement since python 2.2 is the earliest supported
58            version.
59    
60            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
61            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
62            depending on the units this projection *forwards* into.
63    
64            * Thuban/Model/save.py (SessionSaver.write_classification):
65            Remove unnecessary use of lambdas and nested functions.
66    
67            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
68            adjustment here if the map projection uses degrees.
69    
70            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
71            scale adjust code since it is now done before calling
72            this method. Don't do anything if the map projection
73            is None.
74    
75    2003-06-19  Bernhard Herzog  <[email protected]>
76    
77            Move version specific load tests to their own file.
78    
79            * test/test_load.py: Expand the doc-string to explain a bit how to
80            handle file format changes.
81            (TestClassification.test): Update the docstring as this test is
82            not about Thuban 0.2 anymore.
83    
84            * test/test_load_0_2.py: New file with the load tests for thuban
85            files created with Thuban 0.2 and earlier.
86    
87    2003-06-19  Bernhard Herzog  <[email protected]>
88    
89            Add XML validation to some of the tests. Validation will only be
90            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
91            To make the DTD available to the test cases it's moved into
92            Resources/XML
93    
94            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
95            for versions up to and including 0.2. Two slight changes: added an
96            encoding specification and fixed the comment which refered to
97            GRASS, not Thuban
98    
99            * test/xmlsupport.py: New support module for tests involving XML.
100            Currently there's a mix-in class for XML validation.
101    
102            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
103    
104            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
105            so that we can validate the
106            (SaveSessionTest.testEmptySession)
107            (SaveSessionTest.testSingleLayer)
108            (SaveSessionTest.testSingleLayer)
109            (SaveSessionTest.testLayerProjection)
110            (SaveSessionTest.testRasterLayer)
111            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
112    
113            * test/runtests.py (main): Call print_additional_summary instead
114            of print_garbage_information
115    
116            * test/support.py (resource_dir): New function to return the
117            "Resource" subdirectory
118            (print_additional_summary): New function to combine several
119            summary functions
120            (run_tests): Use print_additional_summary instead of calling
121            print_garbage_information directly
122    
123    2003-06-19  Bernhard Herzog  <[email protected]>
124    
125            * Doc/thuban.dtd (classification): Correct the content model of
126            the classification element.
127            (projection): Add the "name" attribute
128    
129    2003-06-19  Frank Koormann   <[email protected]>
130    
131            MERGE from the greater-ms3 branch.
132    
133            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
134            scale if projection is latlong to get better estimate.
135    
136            Fix problem of hidden properties dialog under windows after double
137            click on layer tree:
138            The tree control always gets an Expanded / Collapsed event after
139            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
140            raises the already displayed window.
141    
142            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
143            raiseProperties initialized to prevent endless loops
144            (LegendTree._OnItemActivated): Depending on self.raiseProperties
145            simply raise the properties or open the dialog and issue a second
146            event.
147    
148  2003-06-18  Jonathan Coles   <[email protected]>  2003-06-18  Jonathan Coles   <[email protected]>
149    
150          * setup.py: Fix a few problems that occured under Windows.          * setup.py: Fix a few problems that occured under Windows.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26