/[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 1235 by jonathan, Wed Jun 18 14:47:50 2003 UTC revision 1281 by bh, Fri Jun 20 18:29:26 2003 UTC
# Line 1  Line 1 
1    2003-06-20  Bernhard Herzog  <[email protected]>
2    
3            * test/xmlsupport.py (SaxEventLister.startElementNS)
4            (SaxEventLister.endElementNS): Do not include the qname. Python
5            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
6            is (presumably incorrectly) None, whereas it's a string with the
7            element name in the later versions.
8    
9            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
10            (TestEventList.test_even_list_namespace): Update tests to reflect
11            the new behaviour
12            (TestEventList.test_even_list_id_normalization): Fix doc-string
13    
14    2003-06-20  Jonathan Coles   <[email protected]>
15    
16            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
17            by deriving classes to determine if that layer supports shapes.
18            (Layer): Override HasShapes and return true.
19    
20            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
21            instead of a direct call to wx[Begin|End]CusyCursor().
22            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
23            table data.
24    
25            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
26            New. Wrappers around the wxWindows functions that allow us to
27            make additional calls such as wxYield which gives the native
28            system a chance to update the cursor correctly.
29    
30            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
31            instead of a direct call to wx[Begin|End]CusyCursor().
32    
33            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
34            instead of a direct call to wx[Begin|End]CusyCursor().
35            (MapCanvas.find_shape_at): Check if the current search layer
36            support shapes, otherwise go on to the next layer.
37    
38            * test/test_layer.py: Add tests in each type of layer for
39            HasClassification() and HasShapes()
40    
41    2003-06-20  Jonathan Coles   <[email protected]>
42    
43            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
44            turning on the busy cursor to allow the system to change the
45            cursor before we begin painting. This fixes a problem that
46            was occuring only under GTK. Fixes RTbug #1840.
47    
48    2003-06-20  Bernhard Herzog  <[email protected]>
49    
50            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
51            version.
52    
53            * Thuban/Model/save.py (sort_data_stores): New. Make topological
54            sort of the data sources so they can be written with sources that
55            data sources that depend on other data sources come after the
56            sources they depend on.
57            (SessionSaver.__init__): Add idmap instance variable to map from
58            objects to the ids used in the file.
59            (SessionSaver.get_id, SessionSaver.define_id)
60            (SessionSaver.has_id): New. Methods to manage the idmap
61            (SessionSaver.write): Use thuban-0.8.dtd
62            (SessionSaver.write_session): Add a namespace on the session and
63            write out the data sources before the maps.
64            (SessionSaver.write_data_containers): New. Write the data
65            containers.
66            (SessionSaver.write_layer): Layer elements now refer to a
67            shapestore and don't contain filenames anymore.
68    
69            * Thuban/Model/load.py (LoadError): Exception class to raise when
70            errors in the files are discovered
71            (SessionLoader.__init__): Define dispatchers for elements with a
72            thuban-0.8 namespace too.
73            (SessionLoader.check_attrs): New helper method to check and
74            convert attributes
75            (AttrDesc): New. Helper class for SessionLoader.check_attrs
76            (SessionLoader.start_fileshapesource)
77            (SessionLoader.start_derivedshapesource)
78            (SessionLoader.start_filetable, SessionLoader.start_jointable):
79            Handlers for the new elements in the new fileformat
80            (SessionLoader.start_layer): Handle the shapestore attribute in
81            addition to filename.
82            (SessionLoader.start_table, SessionLoader.end_table): Removed.
83            They were never used in the old formats and aren't needed for the
84            new.
85    
86            * Thuban/Model/session.py (Session.DataContainers): New method to
87            return all "data containers", i.e. shapestores and tables
88    
89            * test/xmlsupport.py (SaxEventLister.__init__)
90            (SaxEventLister.startElementNS, sax_eventlist): Add support to
91            normalize IDs.
92    
93            * test/test_xmlsupport.py
94            (TestEventList.test_even_list_id_normalization): New test case for
95            id normalization
96    
97            * test/test_load.py (LoadSessionTest.check_format): Use ID
98            normalization
99            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
100            class atrributes used for ID normalization
101            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
102            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
103            file format
104            (TestJoinedTable): New test for loading sessions with joined
105            tables.
106            (TestLoadError): New. Test whether missing required attributes
107            cause a LoadError.
108    
109            * test/test_save.py (SaveSessionTest.thubanids)
110            (SaveSessionTest.thubanidrefs): New class attributes for ID
111            normalization in .thuban files.
112            (SaveSessionTest.compare_xml): Use id-normalization.
113            (SaveSessionTest.testEmptySession)
114            (SaveSessionTest.testLayerProjection)
115            (SaveSessionTest.testRasterLayer)
116            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
117            (SaveSessionTest.testLayerProjection): The filename used was the
118            same as for testSingleLayer. Use a different one.
119            (SaveSessionTest.test_dbf_table)
120            (SaveSessionTest.test_joined_table): New test cases for saving the
121            new data sources structures.
122            (TestStoreSort, MockDataStore): Classes to test the sorting of the
123            data stores for writing.
124    
125            * test/runtests.py: Add CVS keywords
126    
127    2003-06-20  Jonathan Coles   <[email protected]>
128    
129            * test/test_session.py
130            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
131            Use the cultural_landmark-point.dbf file for the store so that
132            the table rows and shape count match.
133    
134    2003-06-20  Jonathan Coles   <[email protected]>
135    
136            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
137            an exception if the number of shapes is different from the
138            number of rows in the table. Address RTbug #1933.
139    
140            * test/test_layer.py (TestLayer.test_derived_store): Add
141            a test for the new exception in DerivedShapeStore.__init__.
142    
143            * test/support.py (FloatTestCase): Removed since there is
144            already FloatComparisonMixin. Fixes RTbug #1954.
145            (FloatComparisonMixin.assertFloatEqual): Include test for
146            infinity that was part of FloatTestCase.
147    
148            * test/test_range.py (RangeTest): Inherit from
149            support.FloatComparisonMixin now that we don't have
150            support.FloatTestCase.
151    
152    2003-06-20  Bernhard Herzog  <[email protected]>
153    
154            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
155            the implementation in xmlsupport instead.
156            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
157    
158            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
159            of test_save
160    
161    2003-06-20  Bernhard Herzog  <[email protected]>
162    
163            * test/test_load.py (LoadSessionTest.check_format): New helper
164            method to make sure the test files we load might have been written
165            by the current thuban version.
166            (ClassificationTest.TestLayers, TestSingleLayer.test)
167            (TestLayerVisibility.test, TestClassification.test)
168            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
169            Add check_format() calls and fix the thuban data to match the data
170            that would be written by saving the session loaded from it.
171    
172            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
173            the same class and function in test_save.
174    
175            * test/test_xmlsupport.py (TestEventList): New. test cases for
176            sax_eventlist
177    
178    2003-06-20  Bernhard Herzog  <[email protected]>
179    
180            * Resources/XML/thuban.dtd: Add comment about which versions of
181            Thuban are covered by this DTD
182            (map): Fix content model for layers and raster layers. There can
183            be any number or layers and raster layers in any order.
184    
185    2003-06-20  Jonathan Coles   <[email protected]>
186    
187            This is mainly about fixing RTbug #1949.
188    
189            * Thuban/Model/classification.py: Remove "from __future__"
190            import statement since python 2.2 is the earliest supported
191            version.
192    
193            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
194            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
195            depending on the units this projection *forwards* into.
196    
197            * Thuban/Model/save.py (SessionSaver.write_classification):
198            Remove unnecessary use of lambdas and nested functions.
199    
200            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
201            adjustment here if the map projection uses degrees.
202    
203            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
204            scale adjust code since it is now done before calling
205            this method. Don't do anything if the map projection
206            is None.
207    
208    2003-06-19  Bernhard Herzog  <[email protected]>
209    
210            Move version specific load tests to their own file.
211    
212            * test/test_load.py: Expand the doc-string to explain a bit how to
213            handle file format changes.
214            (TestClassification.test): Update the docstring as this test is
215            not about Thuban 0.2 anymore.
216    
217            * test/test_load_0_2.py: New file with the load tests for thuban
218            files created with Thuban 0.2 and earlier.
219    
220    2003-06-19  Bernhard Herzog  <[email protected]>
221    
222            Add XML validation to some of the tests. Validation will only be
223            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
224            To make the DTD available to the test cases it's moved into
225            Resources/XML
226    
227            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
228            for versions up to and including 0.2. Two slight changes: added an
229            encoding specification and fixed the comment which refered to
230            GRASS, not Thuban
231    
232            * test/xmlsupport.py: New support module for tests involving XML.
233            Currently there's a mix-in class for XML validation.
234    
235            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
236    
237            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
238            so that we can validate the
239            (SaveSessionTest.testEmptySession)
240            (SaveSessionTest.testSingleLayer)
241            (SaveSessionTest.testSingleLayer)
242            (SaveSessionTest.testLayerProjection)
243            (SaveSessionTest.testRasterLayer)
244            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
245    
246            * test/runtests.py (main): Call print_additional_summary instead
247            of print_garbage_information
248    
249            * test/support.py (resource_dir): New function to return the
250            "Resource" subdirectory
251            (print_additional_summary): New function to combine several
252            summary functions
253            (run_tests): Use print_additional_summary instead of calling
254            print_garbage_information directly
255    
256    2003-06-19  Bernhard Herzog  <[email protected]>
257    
258            * Doc/thuban.dtd (classification): Correct the content model of
259            the classification element.
260            (projection): Add the "name" attribute
261    
262    2003-06-19  Frank Koormann   <[email protected]>
263    
264            MERGE from the greater-ms3 branch.
265    
266            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
267            scale if projection is latlong to get better estimate.
268    
269            Fix problem of hidden properties dialog under windows after double
270            click on layer tree:
271            The tree control always gets an Expanded / Collapsed event after
272            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
273            raises the already displayed window.
274    
275            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
276            raiseProperties initialized to prevent endless loops
277            (LegendTree._OnItemActivated): Depending on self.raiseProperties
278            simply raise the properties or open the dialog and issue a second
279            event.
280    
281    2003-06-18  Jonathan Coles   <[email protected]>
282    
283            * setup.py: Fix a few problems that occured under Windows.
284    
285  2003-06-18  Jonathan Coles   <[email protected]>  2003-06-18  Jonathan Coles   <[email protected]>
286    
287          When Thuban loaded the map was redrawn twice because the          When Thuban loaded the map was redrawn twice because the
# Line 43  Line 327 
327          gdalwarp.          gdalwarp.
328          (MapRenderer.render_map): Only try to optimize if we have gdal          (MapRenderer.render_map): Only try to optimize if we have gdal
329          support otherwise nothing will get drawn.          support otherwise nothing will get drawn.
330          (MapCanvas.FitMapToWindow): This may be called during startup  
331          before a map has been created. Check if map is None before          * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
332          using it and do nothing if it is.          during startup before a map has been created. Check if map is None
333            before using it and do nothing if it is.
334    
335  2003-06-17  Jonathan Coles   <[email protected]>  2003-06-17  Jonathan Coles   <[email protected]>
336    

Legend:
Removed from v.1235  
changed lines
  Added in v.1281

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26