/[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 1208 by bh, Fri Jun 13 18:16:15 2003 UTC revision 1297 by jonathan, Mon Jun 23 13:28:11 2003 UTC
# Line 1  Line 1 
1    2003-06-23  Jonathan Coles   <[email protected]>
2            
3            * setup.py: Add Resources/XML to resource list.
4        
5    2003-06-23  Jonathan Coles   <[email protected]>
6    
7            * setup.cfg: Fix copyright dates
8        
9    2003-06-23  Jonathan Coles   <[email protected]>
10    
11            * MANIFEST.in: Update with Resources/XML
12    
13            * setup.py: Don't include Locale resources yet as we don't
14            have any and it causes problems building the distribution
15            for Windows. Update version to 0.8.0.
16    
17            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
18    
19            * Thuban/UI/mainwindow.py: Add blank line at the end because
20            file was not being read correctly building the Windows
21            distribution.
22    
23    2003-06-23  Jonathan Coles   <[email protected]>
24    
25            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
26    
27            * Thuban/version.py: Temporarily update longversion for
28            the 0.8 release so that it doesn't have the cvs revision.
29    
30    2003-06-23  Jonathan Coles   <[email protected]>
31    
32            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
33            to make sure that we don't create reentrant possibilities with
34            wxYield.
35    
36            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
37            directly to avoid the wxSafeYield() call which generates an
38            OnPaint event causing infinite recursion. Don't try to catch
39            exception anymore. This was for before there were limits on map
40            scaling.
41    
42    2003-06-23  Bernhard Herzog  <[email protected]>
43    
44            Bug fix for RT #1961:
45    
46            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
47            Register DerivedShapestores with the session
48    
49            * Thuban/Model/session.py (Session.Tables): Make sure each table
50            is only listed once.
51    
52            * test/test_load.py (TestJoinedTable.test): Add check_format call.
53            Update file contents to match the one written out.
54    
55    2003-06-20  Bernhard Herzog  <[email protected]>
56    
57            * test/xmlsupport.py (SaxEventLister.startElementNS)
58            (SaxEventLister.endElementNS): Do not include the qname. Python
59            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
60            is (presumably incorrectly) None, whereas it's a string with the
61            element name in the later versions.
62    
63            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
64            (TestEventList.test_even_list_namespace): Update tests to reflect
65            the new behaviour
66            (TestEventList.test_even_list_id_normalization): Fix doc-string
67    
68    2003-06-20  Jonathan Coles   <[email protected]>
69    
70            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
71            by deriving classes to determine if that layer supports shapes.
72            (Layer): Override HasShapes and return true.
73    
74            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
75            instead of a direct call to wx[Begin|End]CusyCursor().
76            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
77            table data.
78    
79            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
80            New. Wrappers around the wxWindows functions that allow us to
81            make additional calls such as wxYield which gives the native
82            system a chance to update the cursor correctly.
83    
84            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
85            instead of a direct call to wx[Begin|End]CusyCursor().
86    
87            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
88            instead of a direct call to wx[Begin|End]CusyCursor().
89            (MapCanvas.find_shape_at): Check if the current search layer
90            support shapes, otherwise go on to the next layer.
91    
92            * test/test_layer.py: Add tests in each type of layer for
93            HasClassification() and HasShapes()
94    
95    2003-06-20  Jonathan Coles   <[email protected]>
96    
97            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
98            turning on the busy cursor to allow the system to change the
99            cursor before we begin painting. This fixes a problem that
100            was occuring only under GTK. Fixes RTbug #1840.
101    
102    2003-06-20  Bernhard Herzog  <[email protected]>
103    
104            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
105            version.
106    
107            * Thuban/Model/save.py (sort_data_stores): New. Make topological
108            sort of the data sources so they can be written with sources that
109            data sources that depend on other data sources come after the
110            sources they depend on.
111            (SessionSaver.__init__): Add idmap instance variable to map from
112            objects to the ids used in the file.
113            (SessionSaver.get_id, SessionSaver.define_id)
114            (SessionSaver.has_id): New. Methods to manage the idmap
115            (SessionSaver.write): Use thuban-0.8.dtd
116            (SessionSaver.write_session): Add a namespace on the session and
117            write out the data sources before the maps.
118            (SessionSaver.write_data_containers): New. Write the data
119            containers.
120            (SessionSaver.write_layer): Layer elements now refer to a
121            shapestore and don't contain filenames anymore.
122    
123            * Thuban/Model/load.py (LoadError): Exception class to raise when
124            errors in the files are discovered
125            (SessionLoader.__init__): Define dispatchers for elements with a
126            thuban-0.8 namespace too.
127            (SessionLoader.check_attrs): New helper method to check and
128            convert attributes
129            (AttrDesc): New. Helper class for SessionLoader.check_attrs
130            (SessionLoader.start_fileshapesource)
131            (SessionLoader.start_derivedshapesource)
132            (SessionLoader.start_filetable, SessionLoader.start_jointable):
133            Handlers for the new elements in the new fileformat
134            (SessionLoader.start_layer): Handle the shapestore attribute in
135            addition to filename.
136            (SessionLoader.start_table, SessionLoader.end_table): Removed.
137            They were never used in the old formats and aren't needed for the
138            new.
139    
140            * Thuban/Model/session.py (Session.DataContainers): New method to
141            return all "data containers", i.e. shapestores and tables
142    
143            * test/xmlsupport.py (SaxEventLister.__init__)
144            (SaxEventLister.startElementNS, sax_eventlist): Add support to
145            normalize IDs.
146    
147            * test/test_xmlsupport.py
148            (TestEventList.test_even_list_id_normalization): New test case for
149            id normalization
150    
151            * test/test_load.py (LoadSessionTest.check_format): Use ID
152            normalization
153            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
154            class atrributes used for ID normalization
155            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
156            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
157            file format
158            (TestJoinedTable): New test for loading sessions with joined
159            tables.
160            (TestLoadError): New. Test whether missing required attributes
161            cause a LoadError.
162    
163            * test/test_save.py (SaveSessionTest.thubanids)
164            (SaveSessionTest.thubanidrefs): New class attributes for ID
165            normalization in .thuban files.
166            (SaveSessionTest.compare_xml): Use id-normalization.
167            (SaveSessionTest.testEmptySession)
168            (SaveSessionTest.testLayerProjection)
169            (SaveSessionTest.testRasterLayer)
170            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
171            (SaveSessionTest.testLayerProjection): The filename used was the
172            same as for testSingleLayer. Use a different one.
173            (SaveSessionTest.test_dbf_table)
174            (SaveSessionTest.test_joined_table): New test cases for saving the
175            new data sources structures.
176            (TestStoreSort, MockDataStore): Classes to test the sorting of the
177            data stores for writing.
178    
179            * test/runtests.py: Add CVS keywords
180    
181    2003-06-20  Jonathan Coles   <[email protected]>
182    
183            * test/test_session.py
184            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
185            Use the cultural_landmark-point.dbf file for the store so that
186            the table rows and shape count match.
187    
188    2003-06-20  Jonathan Coles   <[email protected]>
189    
190            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
191            an exception if the number of shapes is different from the
192            number of rows in the table. Address RTbug #1933.
193    
194            * test/test_layer.py (TestLayer.test_derived_store): Add
195            a test for the new exception in DerivedShapeStore.__init__.
196    
197            * test/support.py (FloatTestCase): Removed since there is
198            already FloatComparisonMixin. Fixes RTbug #1954.
199            (FloatComparisonMixin.assertFloatEqual): Include test for
200            infinity that was part of FloatTestCase.
201    
202            * test/test_range.py (RangeTest): Inherit from
203            support.FloatComparisonMixin now that we don't have
204            support.FloatTestCase.
205    
206    2003-06-20  Bernhard Herzog  <[email protected]>
207    
208            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
209            the implementation in xmlsupport instead.
210            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
211    
212            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
213            of test_save
214    
215    2003-06-20  Bernhard Herzog  <[email protected]>
216    
217            * test/test_load.py (LoadSessionTest.check_format): New helper
218            method to make sure the test files we load might have been written
219            by the current thuban version.
220            (ClassificationTest.TestLayers, TestSingleLayer.test)
221            (TestLayerVisibility.test, TestClassification.test)
222            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
223            Add check_format() calls and fix the thuban data to match the data
224            that would be written by saving the session loaded from it.
225    
226            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
227            the same class and function in test_save.
228    
229            * test/test_xmlsupport.py (TestEventList): New. test cases for
230            sax_eventlist
231    
232    2003-06-20  Bernhard Herzog  <[email protected]>
233    
234            * Resources/XML/thuban.dtd: Add comment about which versions of
235            Thuban are covered by this DTD
236            (map): Fix content model for layers and raster layers. There can
237            be any number or layers and raster layers in any order.
238    
239    2003-06-20  Jonathan Coles   <[email protected]>
240    
241            This is mainly about fixing RTbug #1949.
242    
243            * Thuban/Model/classification.py: Remove "from __future__"
244            import statement since python 2.2 is the earliest supported
245            version.
246    
247            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
248            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
249            depending on the units this projection *forwards* into.
250    
251            * Thuban/Model/save.py (SessionSaver.write_classification):
252            Remove unnecessary use of lambdas and nested functions.
253    
254            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
255            adjustment here if the map projection uses degrees.
256    
257            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
258            scale adjust code since it is now done before calling
259            this method. Don't do anything if the map projection
260            is None.
261    
262    2003-06-19  Bernhard Herzog  <[email protected]>
263    
264            Move version specific load tests to their own file.
265    
266            * test/test_load.py: Expand the doc-string to explain a bit how to
267            handle file format changes.
268            (TestClassification.test): Update the docstring as this test is
269            not about Thuban 0.2 anymore.
270    
271            * test/test_load_0_2.py: New file with the load tests for thuban
272            files created with Thuban 0.2 and earlier.
273    
274    2003-06-19  Bernhard Herzog  <[email protected]>
275    
276            Add XML validation to some of the tests. Validation will only be
277            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
278            To make the DTD available to the test cases it's moved into
279            Resources/XML
280    
281            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
282            for versions up to and including 0.2. Two slight changes: added an
283            encoding specification and fixed the comment which refered to
284            GRASS, not Thuban
285    
286            * test/xmlsupport.py: New support module for tests involving XML.
287            Currently there's a mix-in class for XML validation.
288    
289            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
290    
291            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
292            so that we can validate the
293            (SaveSessionTest.testEmptySession)
294            (SaveSessionTest.testSingleLayer)
295            (SaveSessionTest.testSingleLayer)
296            (SaveSessionTest.testLayerProjection)
297            (SaveSessionTest.testRasterLayer)
298            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
299    
300            * test/runtests.py (main): Call print_additional_summary instead
301            of print_garbage_information
302    
303            * test/support.py (resource_dir): New function to return the
304            "Resource" subdirectory
305            (print_additional_summary): New function to combine several
306            summary functions
307            (run_tests): Use print_additional_summary instead of calling
308            print_garbage_information directly
309    
310    2003-06-19  Bernhard Herzog  <[email protected]>
311    
312            * Doc/thuban.dtd (classification): Correct the content model of
313            the classification element.
314            (projection): Add the "name" attribute
315    
316    2003-06-19  Frank Koormann   <[email protected]>
317    
318            MERGE from the greater-ms3 branch.
319    
320            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
321            scale if projection is latlong to get better estimate.
322    
323            Fix problem of hidden properties dialog under windows after double
324            click on layer tree:
325            The tree control always gets an Expanded / Collapsed event after
326            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
327            raises the already displayed window.
328    
329            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
330            raiseProperties initialized to prevent endless loops
331            (LegendTree._OnItemActivated): Depending on self.raiseProperties
332            simply raise the properties or open the dialog and issue a second
333            event.
334    
335    2003-06-18  Jonathan Coles   <[email protected]>
336    
337            * setup.py: Fix a few problems that occured under Windows.
338    
339    2003-06-18  Jonathan Coles   <[email protected]>
340    
341            When Thuban loaded the map was redrawn twice because the
342            legend was being opened after the mainwindow was created
343            and not during its creation. This meant the map was drawn
344            initially and then had to be redrawn when the legend
345            caused the display to change. Now the legend is opened
346            in the mainwindow constructor which resolves this issue.
347    
348            Also, although we were checking for the existence of
349            gdal and gdalwarp modules, the gdalwarp extension was
350            still being compiled (which may fail if the system doesn't
351            have gdal installed). the build_ext command to setup.py
352            now accepts the flags --with-gdal and --without-gdal.
353            If --without-gdal is specified setup.py will try to
354            use the gdal parameters specified by gdal-config. Under
355            windows, those parameters have to be set in setup.py
356            as with proj4 an wxWindows.
357    
358            * setup.py: Use a list instead of seperate variables for
359            extension parameters so we can create a generic function
360            that runs an appropriate *-config script.
361            (run_cs_script): Renamed from run_wx_script and modified
362            to accept a second argument which is a list of lists to
363            be filled in by the values returned from running the command.
364            (thuban_build_ext): New. Extends the build_ext command and
365            provides the options --with-gdal/--without-gdal which then
366            optionally includes the gdalwarp extension.
367    
368            * Thuban/Model/resource.py: First check if we can import
369            the gdalwarp Thuban extension before checking for gdal.
370            Also added some comments.
371            
372            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
373            the map is None which may be the case if none has been loaded
374            yet.
375    
376            * Thuban/UI/main.py (main): Remove call to ShowLegend.
377    
378            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
379    
380            * Thuban/UI/renderer.py: Check for gdal support before importing
381            gdalwarp.
382            (MapRenderer.render_map): Only try to optimize if we have gdal
383            support otherwise nothing will get drawn.
384    
385            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
386            during startup before a map has been created. Check if map is None
387            before using it and do nothing if it is.
388    
389    2003-06-17  Jonathan Coles   <[email protected]>
390    
391            Fix the problem with raster layers under Windows that caused
392            Thuban to crash. The view should respond to layer projection
393            changed events to update the display. Changes to a projection
394            should not cause the map to be set to full extent.
395            
396            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
397            current_map_proj to remember the current map projection so that
398            when the projection changes we know what the previous projection
399            was.
400            (MapCanvas.SetMap): Unsubscribe and subscribe to
401            LAYER_PROJECTION_CHANGED events.
402            (MapCanvas.projection_changed): Split into two methods that respond
403            to map and layer projection changes.
404            (MapCanvas.map_projection_changed): New. Takes the current view and
405            projects it using the new projection. This does not cause the
406            map to be redrawn at full extent.
407            (MapCanvas.layer_projection_changed): New. Cause a redraw which
408            will draw each layer in its new projection.
409            
410            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
411            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
412            under Windows.
413            
414            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
415            to twice sizeof(void*) because there are two digits for each
416            hex byte.
417    
418    2003-06-16  Bernhard Herzog  <[email protected]>
419    
420            Update to the layer interface: Direct access to the table,
421            shapetable, shapefile and filename attributes is now actively
422            deprecated by issuing deprecation warnings for all places where
423            this happens.
424    
425            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
426            to the instance variables table, shapetable, shapefile and
427            filename via __getattr__ so that we can issue a deprecation
428            warning.
429            (Layer.SetShapeStore): Don't set the deprecated instance variables
430            any more
431            (Layer.SetShapeStore): Don't use deprecated layer instance
432            variables
433            (Layer.Destroy): No need to explicitly remove the instance
434            variables any more
435            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
436            instance variables
437    
438            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
439            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
440            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
441            use deprecated layer instance variables
442    
443            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
444            deprecated layer instance variables
445    
446            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
447            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
448            instance variables
449    
450            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
451            deprecated layer instance variables
452    
453            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
454            deprecated layer instance variables
455    
456            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
457            deprecated layer instance variables
458    
459            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
460            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
461            variables
462    
463            * test/runtests.py (main): Turn Thuban's deprecation warnings into
464            errors so that they're cought by the tests
465    
466            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
467            layer instance variables
468    
469    2003-06-16  Jonathan Coles   <[email protected]>
470    
471            Fix a problem under Windows whereby if the user double-clicks on a
472            layer in the legend that tree item will expand or collapse as well
473            as open the layer properties dialog. The state of the tree item
474            should not be affected.
475    
476            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
477            preventExpandCollapse and subscribe to expanding and collapsing
478            events.
479            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
480            collapsing events and will veto the event if it has been triggered
481            by the user double clicking on a layer.
482            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
483            that an expanding/collapsing event should be vetoed.
484    
485  2003-06-13  Bernhard Herzog  <[email protected]>  2003-06-13  Bernhard Herzog  <[email protected]>
486    
487          * Thuban/UI/classifier.py (Classifier.OnClose)          * Thuban/UI/classifier.py (Classifier.OnClose)

Legend:
Removed from v.1208  
changed lines
  Added in v.1297

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26