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

Legend:
Removed from v.1237  
changed lines
  Added in v.1267

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26