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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26