/[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 1169 by jonathan, Thu Jun 12 12:43:02 2003 UTC revision 1365 by bh, Thu Jul 3 13:10:09 2003 UTC
# Line 1  Line 1 
1    2003-07-03  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
4            Update doc-string
5            (TransientJoinedTable.create): Do not modify the column objects of
6            the input tables in place and copy all columns of the input tables
7            into the joined table after all.
8    
9            * test/test_transientdb.py
10            (TestTransientTable.test_transient_joined_table_same_column_name):
11            Update to reflect the new behavior
12            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
13            Update to reflect the new behavior
14            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
15            New test case for a bug which modified the column objects in place
16    
17    2003-07-02  Jonathan Coles   <[email protected]>
18    
19            * Thuban/Model/classgen.py (generate_singletons,
20            generate_uniform_distribution, generate_quantiles,
21            GenQuantiles0): Make sure maxValue isn't less than
22            one, otherwise we could divide by zero.
23    
24            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
25            ClassGenTest.doClassSingleTest): Call doBoundsTest to
26            check the end classification groups against the
27            proper property values.
28            (ClassGenTest.doBoundsTest): New. Checks the first and
29            last classification groups to make sure their properties
30            are the correct upper and lower bounds for a color ramp.
31    
32    2003-07-02  Jonathan Coles   <[email protected]>
33    
34            * Thuban/Model/classgen.py (generate_singletons,
35            generate_uniform_distribution, generate_quantiles,
36            GenQuantiles0): The denominator was one to high when
37            calculating the index for the ramp causing the index
38            to never to reach one.
39    
40    2003-07-02  Jonathan Coles   <[email protected]>
41    
42            Changed the singature of ClassGroupRange.__init__ and
43            ClassGroupRange.SetRange() so that the min/max values are
44            passed as a tuple. This makes a better calling scheme for
45            when a Range object is passed instead.
46    
47            * Thuban/Model/classgen.py: Fixed parameters to
48            ClassGroupRange constructor.
49    
50            * Thuban/Model/classification.py (ClassGroupRange.__init__):
51            Consolidate the min/max parameters into a single _range which
52            can either be a tuple or a Range object.
53            (ClassGroupRange.SetRange): Consolidate the min/max parameters
54            into a single _range which can either be a tuple or a Range object.
55    
56            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
57            call to ClassGroupRange constructor to use a tuple.
58    
59            * Thuban/Model/layer.py (Layer.SetClassification): Switch
60            the classification instance variable to the new class
61            before calling _set_layer otherwise subscribers to a
62            LAYER_CHANGED event will not see any difference.
63    
64            * test/test_classification.py: Fix tests of ClassGroupRange
65            so that they use the new signature.
66    
67            * test/test_load.py: Fix use of ClassGroupRange so that it
68            uses the new signature.
69    
70            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
71            uses the new signature.
72    
73            * test/test_save.py: Fix use of ClassGroupRange so that it
74            uses the new signature.
75    
76    
77    2003-07-01  Jonathan Coles   <[email protected]>
78    
79            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
80            Import used objects/class from color.
81            (generate_singletons): We don't
82            need the numGroups parameter anymore because we are using
83            the new ramps with GetProperties().
84            (generate_uniform_distribution): Use new ramp method
85            GetProperties().
86            (generate_quantiles, GenQuantiles0): Use new ramp method
87            GetProperties().
88            (CustomRamp.SetNumGroups): Removed. The ramps now map
89            a value from 0 to 1 to class properties so the number
90            of groups is not needed ahead of time.
91            (CustomRamp.next): Removed. CustomRamp does not support
92            interation anymore.
93            (CustomRamp.GetProperties): Returns a ClassGroupProperties
94            object based on the index value from 0 to 1 that is
95            passed to it.
96            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
97            Made into instances of Monochromatic class instread of
98            deriving from it.
99            (HotToCold.SetNumGroups): Removed. See CustomRamp.
100            (HotToCold.next): Removed. See CustomRamp.
101    
102            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
103            (Classification.SetField, Classification.SetFieldType):
104            Replaced with SetFieldInfo.
105            (Classification.SetFieldInfo): New. Does a better job of
106            what SetField and SetFieldType used to do by combining
107            their function since they should really always be done
108            at the same time.
109            (Classification.SetLayer): Renamed to _set_layer.
110            (Classification._set_layer): Should only be called from
111            Layer's SetClassification. This does not cause a recursive
112            call as SetLayer did because we know that Layer knows about
113            the classification.
114    
115            * Thuban/Model/color.py: Fixes RTbug #1971.
116            (_Transparent): Renamed from Transparent so it doesn't
117            conflict with the module variable.
118            (Transparent, Black): Renamed from Color.Transparent,
119            Color.Black so they are not class variables.
120    
121            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
122            (Layer.Destroy): We don't need to call SetClassification
123            anymore to clear out the back reference in the classifcation
124            to the layer. It's better to set it to None using _set_layer,
125            and we won't be creating another clas object too.
126            (Layer.SetClassification): Classification._set_layer is not
127            recursive so remove all the locking variables. Also clean
128            up the code so that it remains unchanged if something fails.
129    
130            * Thuban/Model/load.py: Fixes RTbug #1971.
131            (SessionLoader.start_classification): Call
132            Classification.SetFieldInfo().
133    
134            * Thuban/Model/save.py: Removed import of Color which wasn't
135            being used.
136    
137            * Thuban/UI/classgen.py: Fixes RTbug #1972.
138            (ClassGenDialog.__init__): Color ramps are now instances
139            already so we don't need to create any new objects.
140            (ClassGenDialog.OnOK): Check for numGroups is no longer
141            necessary because we never use it.
142    
143            * Thuban/UI/classifier.py: Fixes RTbug #1971.
144            (Classifier.__BuildClassification, Classifier.__SetGridTable):
145            Call Classification.SetFieldInfo() instead of SetFieldType.
146    
147            * Thuban/UI/renderer.py: Fixes RTbug #1971.
148    
149            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
150            (MapCanvas.__init__): Subscribe to the idle time event. Set
151            background color to white.
152            (MapCanvas.OnPaint): Set a flag indicating that we should
153            render the map during idle time. If we already have a bitmap
154            just draw it now.
155            (MapCanvas.OnIdle): New. Render the map only during idle time.
156            This also fixes a problem with the busy cursor under gtk.
157    
158            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
159            Fix calls to generate_singletons because the signature changed.
160    
161            * test/test_classification.py: Fix color references and
162            change calls to Classification.[SetField|SetFieldType] to
163            SetFieldInfo.
164    
165            * test/test_load.py: Fix color references.
166    
167            * test/test_load_0_2.py: Fix color references.
168    
169            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
170            Change calls to Classification.[SetField|SetFieldType] to
171            SetFieldInfo.
172    
173    2003-07-01  Frank Koormann   <[email protected]>
174    
175            MERGE from the greater-ms3 branch.
176    
177            * test/test_transientdb.py
178            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
179            New. Test join of two tables with partly equal column names.
180    
181            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
182            If duplicates in left and right tables column names are found,
183            append '_' (underscores) to the name until it is unique.
184            Create always new internal names for the resulting table and reference
185            columns in the join statement with <table>.<column>
186    
187    2003-07-01  Bernhard Herzog  <[email protected]>
188    
189            * test/test_transientdb.py
190            (TestTransientTable.test_transient_joined_table_same_column_name):
191            New. Test whether joining on columns with the same names in both
192            tables works.
193            
194            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
195            sure to use the right internal names even when joining on field
196            with the same names in both tables. Also, detect duplicate names
197            in the joined table correctly.
198    
199    2003-07-01  Frank Koormann   <[email protected]>
200    
201            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
202            Reverse List of layers to render in same order as in desktop legend.
203    
204    2003-06-30  Jonathan Coles   <[email protected]>
205    
206            * Thuban/version.py (make_tuple): Takes a version string
207            and splits it into a tuple of at most three integers.
208            Used make_tuple() to make tuple versions of the version
209            numbers.
210    
211            * Thuban/UI/about.py: Add Thuban email addresses.
212    
213    2003-06-30  Jonathan Coles   <[email protected]>
214    
215            * Thuban/version.py: SQLite/PySQLite version dependencies
216            were too high.
217    
218    2003-06-30  Jonathan Coles   <[email protected]>
219    
220            * Thuban/version.py: Update version to 0.8.1
221            
222            * MANIFEST.in: Added Projections so that default.proj is
223            included.
224    
225    2003-06-26  Jonathan Coles   <[email protected]>
226    
227            New About box with lots more information including library
228            versions and credits. More/better version checking before
229            Thuban starts.
230    
231            * Thuban/UI/about.py: New. New About box that displays
232            library version information and credits.
233    
234            * Thuban/version.py: Added new 'versions' dictionary which
235            contains the verions of various libraries which are checked
236            when the module loads.
237            (verify_versions): Check all version numbers and returns
238            a list of errors.
239    
240            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
241            Reset the status of the buttons as the situation warrants,
242            but in a better more reliable way by not relying on the
243            current status to determine what needs to change.
244    
245            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
246            (verify_versions): Remove most of the code since it is
247            now in Thuban.version.verify_versions.o
248    
249            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
250            About box in Thuban.UI.about.
251    
252            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
253            Returns the version of gdal library being used as a string.
254    
255            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
256            Removed.
257            (get_proj_version): Return the version of PROJ that the file
258            was compiled with.
259            (get_gtk_version): Return th version of GTK that the file
260            was compiled with.
261    
262    2003-06-25  Jonathan Coles   <[email protected]>
263    
264            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
265            of the SelectPropertiesDialog should be self so the window
266            appears on top.
267            (ClassGroupPropertiesCtrl.DoEdit): The parent
268            of the SelectPropertiesDialog should be self so the window
269            appears on top.
270    
271            * Thuban/UI/resource.py: Cleaned up how we determine file
272            extensions.
273            (GetImageResource): Return an wxImage from our Resources.
274    
275    2003-06-24  Jonathan Coles   <[email protected]>
276    
277            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
278            Check that a layer has a classification before trying
279            to get it. Raster layers don't have classifications.
280    
281    2003-06-23  Jonathan Coles   <[email protected]>
282            
283            * setup.py: Add Resources/XML to resource list.
284        
285    2003-06-23  Jonathan Coles   <[email protected]>
286    
287            * setup.cfg: Fix copyright dates
288        
289    2003-06-23  Jonathan Coles   <[email protected]>
290    
291            * MANIFEST.in: Update with Resources/XML
292    
293            * setup.py: Don't include Locale resources yet as we don't
294            have any and it causes problems building the distribution
295            for Windows. Update version to 0.8.0.
296    
297            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
298    
299            * Thuban/UI/mainwindow.py: Add blank line at the end because
300            file was not being read correctly building the Windows
301            distribution.
302    
303    2003-06-23  Jonathan Coles   <[email protected]>
304    
305            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
306    
307            * Thuban/version.py: Temporarily update longversion for
308            the 0.8 release so that it doesn't have the cvs revision.
309    
310    2003-06-23  Jonathan Coles   <[email protected]>
311    
312            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
313            to make sure that we don't create reentrant possibilities with
314            wxYield.
315    
316            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
317            directly to avoid the wxSafeYield() call which generates an
318            OnPaint event causing infinite recursion. Don't try to catch
319            exception anymore. This was for before there were limits on map
320            scaling.
321    
322    2003-06-23  Bernhard Herzog  <[email protected]>
323    
324            Bug fix for RT #1961:
325    
326            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
327            Register DerivedShapestores with the session
328    
329            * Thuban/Model/session.py (Session.Tables): Make sure each table
330            is only listed once.
331    
332            * test/test_load.py (TestJoinedTable.test): Add check_format call.
333            Update file contents to match the one written out.
334    
335    2003-06-20  Bernhard Herzog  <[email protected]>
336    
337            * test/xmlsupport.py (SaxEventLister.startElementNS)
338            (SaxEventLister.endElementNS): Do not include the qname. Python
339            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
340            is (presumably incorrectly) None, whereas it's a string with the
341            element name in the later versions.
342    
343            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
344            (TestEventList.test_even_list_namespace): Update tests to reflect
345            the new behaviour
346            (TestEventList.test_even_list_id_normalization): Fix doc-string
347    
348    2003-06-20  Jonathan Coles   <[email protected]>
349    
350            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
351            by deriving classes to determine if that layer supports shapes.
352            (Layer): Override HasShapes and return true.
353    
354            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
355            instead of a direct call to wx[Begin|End]CusyCursor().
356            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
357            table data.
358    
359            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
360            New. Wrappers around the wxWindows functions that allow us to
361            make additional calls such as wxYield which gives the native
362            system a chance to update the cursor correctly.
363    
364            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
365            instead of a direct call to wx[Begin|End]CusyCursor().
366    
367            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
368            instead of a direct call to wx[Begin|End]CusyCursor().
369            (MapCanvas.find_shape_at): Check if the current search layer
370            support shapes, otherwise go on to the next layer.
371    
372            * test/test_layer.py: Add tests in each type of layer for
373            HasClassification() and HasShapes()
374    
375    2003-06-20  Jonathan Coles   <[email protected]>
376    
377            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
378            turning on the busy cursor to allow the system to change the
379            cursor before we begin painting. This fixes a problem that
380            was occuring only under GTK. Fixes RTbug #1840.
381    
382    2003-06-20  Bernhard Herzog  <[email protected]>
383    
384            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
385            version.
386    
387            * Thuban/Model/save.py (sort_data_stores): New. Make topological
388            sort of the data sources so they can be written with sources that
389            data sources that depend on other data sources come after the
390            sources they depend on.
391            (SessionSaver.__init__): Add idmap instance variable to map from
392            objects to the ids used in the file.
393            (SessionSaver.get_id, SessionSaver.define_id)
394            (SessionSaver.has_id): New. Methods to manage the idmap
395            (SessionSaver.write): Use thuban-0.8.dtd
396            (SessionSaver.write_session): Add a namespace on the session and
397            write out the data sources before the maps.
398            (SessionSaver.write_data_containers): New. Write the data
399            containers.
400            (SessionSaver.write_layer): Layer elements now refer to a
401            shapestore and don't contain filenames anymore.
402    
403            * Thuban/Model/load.py (LoadError): Exception class to raise when
404            errors in the files are discovered
405            (SessionLoader.__init__): Define dispatchers for elements with a
406            thuban-0.8 namespace too.
407            (SessionLoader.check_attrs): New helper method to check and
408            convert attributes
409            (AttrDesc): New. Helper class for SessionLoader.check_attrs
410            (SessionLoader.start_fileshapesource)
411            (SessionLoader.start_derivedshapesource)
412            (SessionLoader.start_filetable, SessionLoader.start_jointable):
413            Handlers for the new elements in the new fileformat
414            (SessionLoader.start_layer): Handle the shapestore attribute in
415            addition to filename.
416            (SessionLoader.start_table, SessionLoader.end_table): Removed.
417            They were never used in the old formats and aren't needed for the
418            new.
419    
420            * Thuban/Model/session.py (Session.DataContainers): New method to
421            return all "data containers", i.e. shapestores and tables
422    
423            * test/xmlsupport.py (SaxEventLister.__init__)
424            (SaxEventLister.startElementNS, sax_eventlist): Add support to
425            normalize IDs.
426    
427            * test/test_xmlsupport.py
428            (TestEventList.test_even_list_id_normalization): New test case for
429            id normalization
430    
431            * test/test_load.py (LoadSessionTest.check_format): Use ID
432            normalization
433            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
434            class atrributes used for ID normalization
435            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
436            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
437            file format
438            (TestJoinedTable): New test for loading sessions with joined
439            tables.
440            (TestLoadError): New. Test whether missing required attributes
441            cause a LoadError.
442    
443            * test/test_save.py (SaveSessionTest.thubanids)
444            (SaveSessionTest.thubanidrefs): New class attributes for ID
445            normalization in .thuban files.
446            (SaveSessionTest.compare_xml): Use id-normalization.
447            (SaveSessionTest.testEmptySession)
448            (SaveSessionTest.testLayerProjection)
449            (SaveSessionTest.testRasterLayer)
450            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
451            (SaveSessionTest.testLayerProjection): The filename used was the
452            same as for testSingleLayer. Use a different one.
453            (SaveSessionTest.test_dbf_table)
454            (SaveSessionTest.test_joined_table): New test cases for saving the
455            new data sources structures.
456            (TestStoreSort, MockDataStore): Classes to test the sorting of the
457            data stores for writing.
458    
459            * test/runtests.py: Add CVS keywords
460    
461    2003-06-20  Jonathan Coles   <[email protected]>
462    
463            * test/test_session.py
464            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
465            Use the cultural_landmark-point.dbf file for the store so that
466            the table rows and shape count match.
467    
468    2003-06-20  Jonathan Coles   <[email protected]>
469    
470            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
471            an exception if the number of shapes is different from the
472            number of rows in the table. Address RTbug #1933.
473    
474            * test/test_layer.py (TestLayer.test_derived_store): Add
475            a test for the new exception in DerivedShapeStore.__init__.
476    
477            * test/support.py (FloatTestCase): Removed since there is
478            already FloatComparisonMixin. Fixes RTbug #1954.
479            (FloatComparisonMixin.assertFloatEqual): Include test for
480            infinity that was part of FloatTestCase.
481    
482            * test/test_range.py (RangeTest): Inherit from
483            support.FloatComparisonMixin now that we don't have
484            support.FloatTestCase.
485    
486    2003-06-20  Bernhard Herzog  <[email protected]>
487    
488            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
489            the implementation in xmlsupport instead.
490            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
491    
492            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
493            of test_save
494    
495    2003-06-20  Bernhard Herzog  <[email protected]>
496    
497            * test/test_load.py (LoadSessionTest.check_format): New helper
498            method to make sure the test files we load might have been written
499            by the current thuban version.
500            (ClassificationTest.TestLayers, TestSingleLayer.test)
501            (TestLayerVisibility.test, TestClassification.test)
502            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
503            Add check_format() calls and fix the thuban data to match the data
504            that would be written by saving the session loaded from it.
505    
506            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
507            the same class and function in test_save.
508    
509            * test/test_xmlsupport.py (TestEventList): New. test cases for
510            sax_eventlist
511    
512    2003-06-20  Bernhard Herzog  <[email protected]>
513    
514            * Resources/XML/thuban.dtd: Add comment about which versions of
515            Thuban are covered by this DTD
516            (map): Fix content model for layers and raster layers. There can
517            be any number or layers and raster layers in any order.
518    
519    2003-06-20  Jonathan Coles   <[email protected]>
520    
521            This is mainly about fixing RTbug #1949.
522    
523            * Thuban/Model/classification.py: Remove "from __future__"
524            import statement since python 2.2 is the earliest supported
525            version.
526    
527            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
528            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
529            depending on the units this projection *forwards* into.
530    
531            * Thuban/Model/save.py (SessionSaver.write_classification):
532            Remove unnecessary use of lambdas and nested functions.
533    
534            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
535            adjustment here if the map projection uses degrees.
536    
537            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
538            scale adjust code since it is now done before calling
539            this method. Don't do anything if the map projection
540            is None.
541    
542    2003-06-19  Bernhard Herzog  <[email protected]>
543    
544            Move version specific load tests to their own file.
545    
546            * test/test_load.py: Expand the doc-string to explain a bit how to
547            handle file format changes.
548            (TestClassification.test): Update the docstring as this test is
549            not about Thuban 0.2 anymore.
550    
551            * test/test_load_0_2.py: New file with the load tests for thuban
552            files created with Thuban 0.2 and earlier.
553    
554    2003-06-19  Bernhard Herzog  <[email protected]>
555    
556            Add XML validation to some of the tests. Validation will only be
557            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
558            To make the DTD available to the test cases it's moved into
559            Resources/XML
560    
561            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
562            for versions up to and including 0.2. Two slight changes: added an
563            encoding specification and fixed the comment which refered to
564            GRASS, not Thuban
565    
566            * test/xmlsupport.py: New support module for tests involving XML.
567            Currently there's a mix-in class for XML validation.
568    
569            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
570    
571            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
572            so that we can validate the
573            (SaveSessionTest.testEmptySession)
574            (SaveSessionTest.testSingleLayer)
575            (SaveSessionTest.testSingleLayer)
576            (SaveSessionTest.testLayerProjection)
577            (SaveSessionTest.testRasterLayer)
578            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
579    
580            * test/runtests.py (main): Call print_additional_summary instead
581            of print_garbage_information
582    
583            * test/support.py (resource_dir): New function to return the
584            "Resource" subdirectory
585            (print_additional_summary): New function to combine several
586            summary functions
587            (run_tests): Use print_additional_summary instead of calling
588            print_garbage_information directly
589    
590    2003-06-19  Bernhard Herzog  <[email protected]>
591    
592            * Doc/thuban.dtd (classification): Correct the content model of
593            the classification element.
594            (projection): Add the "name" attribute
595    
596    2003-06-19  Frank Koormann   <[email protected]>
597    
598            MERGE from the greater-ms3 branch.
599    
600            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
601            scale if projection is latlong to get better estimate.
602    
603            Fix problem of hidden properties dialog under windows after double
604            click on layer tree:
605            The tree control always gets an Expanded / Collapsed event after
606            the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply
607            raises the already displayed window.
608    
609            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
610            raiseProperties initialized to prevent endless loops
611            (LegendTree._OnItemActivated): Depending on self.raiseProperties
612            simply raise the properties or open the dialog and issue a second
613            event.
614    
615    2003-06-18  Jonathan Coles   <[email protected]>
616    
617            * setup.py: Fix a few problems that occured under Windows.
618    
619    2003-06-18  Jonathan Coles   <[email protected]>
620    
621            When Thuban loaded the map was redrawn twice because the
622            legend was being opened after the mainwindow was created
623            and not during its creation. This meant the map was drawn
624            initially and then had to be redrawn when the legend
625            caused the display to change. Now the legend is opened
626            in the mainwindow constructor which resolves this issue.
627    
628            Also, although we were checking for the existence of
629            gdal and gdalwarp modules, the gdalwarp extension was
630            still being compiled (which may fail if the system doesn't
631            have gdal installed). the build_ext command to setup.py
632            now accepts the flags --with-gdal and --without-gdal.
633            If --without-gdal is specified setup.py will try to
634            use the gdal parameters specified by gdal-config. Under
635            windows, those parameters have to be set in setup.py
636            as with proj4 an wxWindows.
637    
638            * setup.py: Use a list instead of seperate variables for
639            extension parameters so we can create a generic function
640            that runs an appropriate *-config script.
641            (run_cs_script): Renamed from run_wx_script and modified
642            to accept a second argument which is a list of lists to
643            be filled in by the values returned from running the command.
644            (thuban_build_ext): New. Extends the build_ext command and
645            provides the options --with-gdal/--without-gdal which then
646            optionally includes the gdalwarp extension.
647    
648            * Thuban/Model/resource.py: First check if we can import
649            the gdalwarp Thuban extension before checking for gdal.
650            Also added some comments.
651            
652            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
653            the map is None which may be the case if none has been loaded
654            yet.
655    
656            * Thuban/UI/main.py (main): Remove call to ShowLegend.
657    
658            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
659    
660            * Thuban/UI/renderer.py: Check for gdal support before importing
661            gdalwarp.
662            (MapRenderer.render_map): Only try to optimize if we have gdal
663            support otherwise nothing will get drawn.
664    
665            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
666            during startup before a map has been created. Check if map is None
667            before using it and do nothing if it is.
668    
669    2003-06-17  Jonathan Coles   <[email protected]>
670    
671            Fix the problem with raster layers under Windows that caused
672            Thuban to crash. The view should respond to layer projection
673            changed events to update the display. Changes to a projection
674            should not cause the map to be set to full extent.
675            
676            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
677            current_map_proj to remember the current map projection so that
678            when the projection changes we know what the previous projection
679            was.
680            (MapCanvas.SetMap): Unsubscribe and subscribe to
681            LAYER_PROJECTION_CHANGED events.
682            (MapCanvas.projection_changed): Split into two methods that respond
683            to map and layer projection changes.
684            (MapCanvas.map_projection_changed): New. Takes the current view and
685            projects it using the new projection. This does not cause the
686            map to be redrawn at full extent.
687            (MapCanvas.layer_projection_changed): New. Cause a redraw which
688            will draw each layer in its new projection.
689            
690            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
691            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
692            under Windows.
693            
694            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
695            to twice sizeof(void*) because there are two digits for each
696            hex byte.
697    
698    2003-06-16  Bernhard Herzog  <[email protected]>
699    
700            Update to the layer interface: Direct access to the table,
701            shapetable, shapefile and filename attributes is now actively
702            deprecated by issuing deprecation warnings for all places where
703            this happens.
704    
705            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
706            to the instance variables table, shapetable, shapefile and
707            filename via __getattr__ so that we can issue a deprecation
708            warning.
709            (Layer.SetShapeStore): Don't set the deprecated instance variables
710            any more
711            (Layer.SetShapeStore): Don't use deprecated layer instance
712            variables
713            (Layer.Destroy): No need to explicitly remove the instance
714            variables any more
715            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
716            instance variables
717    
718            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
719            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
720            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
721            use deprecated layer instance variables
722    
723            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
724            deprecated layer instance variables
725    
726            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
727            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
728            instance variables
729    
730            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
731            deprecated layer instance variables
732    
733            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
734            deprecated layer instance variables
735    
736            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
737            deprecated layer instance variables
738    
739            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
740            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
741            variables
742    
743            * test/runtests.py (main): Turn Thuban's deprecation warnings into
744            errors so that they're cought by the tests
745    
746            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
747            layer instance variables
748    
749    2003-06-16  Jonathan Coles   <[email protected]>
750    
751            Fix a problem under Windows whereby if the user double-clicks on a
752            layer in the legend that tree item will expand or collapse as well
753            as open the layer properties dialog. The state of the tree item
754            should not be affected.
755    
756            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
757            preventExpandCollapse and subscribe to expanding and collapsing
758            events.
759            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
760            collapsing events and will veto the event if it has been triggered
761            by the user double clicking on a layer.
762            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
763            that an expanding/collapsing event should be vetoed.
764    
765    2003-06-13  Bernhard Herzog  <[email protected]>
766    
767            * Thuban/UI/classifier.py (Classifier.OnClose)
768            (Classifier.map_layers_removed)
769            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
770            in OnClose and not in map_layers_removed or
771            layer_shapestore_replaced to make sure it always happens when the
772            dialog is closed
773    
774    2003-06-13  Jonathan Coles   <[email protected]>
775    
776            This puts back a fix for Windows where a panel is needed so that
777            the background of the table view appears correctly.
778    
779            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
780            object that can be used by derived classes to place any
781            controls (including the grid) onto.
782            (QueryTableFrame.__init__): Use the panel as the parent window
783            for all the controls. Reparent the grid so that the panel is
784            the parent. Call UpdateStatusText() to correctly initialize
785            the status bar.
786    
787    2003-06-13  Jonathan Coles   <[email protected]>
788    
789            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
790            from wxFrame (as opposed to wxDialog like the other classes)
791            but otherwise behaves like the other classes. This is needed
792            for the TableView which isn't really a dialog and needs to
793            have a status bar and control buttons.
794    
795            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
796            instance variable to keep track of how many rows are selected.
797            Subscribe once to the the events we are interested in.
798            (ThubanGrid.OnRangeSelect): Only handle event if event handling
799            hasn't been turned off.
800            (ThubanGrid.OnSelectCell): Only handle event if event handling
801            hasn't been turned off.
802            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
803            as an event listener (which changes the event handler stack)
804            simply set an instance variable to False. This is checked in
805            the event handlers.
806            (ThubanGrid.GetNumberSelected): Return the number of currently
807            selected rows.
808            (TableFrame): Inherit from ThubanFrame so we can have a
809            status bar and control buttons.
810            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
811            Explicitly set which items are selected in the operator choice and
812            action choice so there is always a valid selection. Fixes RTbug #1941.
813            Subscribe to grid cell selection events so we can update the
814            status bar.
815            (QueryTableFrame.UpdateStatusText): Update the status bar with
816            how many rows are in the grid, how many columns, and how many
817            rows are selected.
818            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
819            Call UpdateStatusText when cells are (de)selected.
820            (QueryTableFrame.OnQuery): Use the string value in the value
821            combo if either the selected item index is 0 or if the string
822            cannot be found in the predefined list (this happens if the
823            user changes the text). Fixes RTbug #1940.
824            Only turn off the grid event listeners if there a query comes
825            back with a none empty list of ids. in the case that the list
826            is empty this causes a grid.ClearSelection() call to actually
827            clear the grid selection which causes the selected items in
828            the map to be deselected. Fixes RTbug #1939.
829    
830            * test/test_save.py (XMLWriterTest.Encode): Check return values.
831            Fixes RTbug #1851.
832    
833    2003-06-13  Bernhard Herzog  <[email protected]>
834    
835            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
836            self.selected_shape with the current selection to make sure the
837            contents of the dialog are up to date when it's shown for the
838            first time.
839            The dialog used to work without this by luck. The recent fix to
840            the connector module 'broke' a 'feature' the identify view was
841            relying on, i.e that subscribing to a message in response to
842            receiving a message of that type would mean that the new
843            subscriber would also be called for the same message.
844            
845    2003-06-12  Jonathan Coles   <[email protected]>
846    
847            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
848            the image is rendered. Fixes RTbug #1937.
849    
850    2003-06-12  Jonathan Coles   <[email protected]>
851    
852            * Thuban/Lib/fileutil.py: As is done under Windows, create the
853            user directory if it doesn't exist on a posix system.
854            Fixes RTbug #1815.
855    
856            * Thuban/Model/resource.py (get_user_proj_files): Moved the
857            called to get_application_dir here, so that the directory
858            will only be called if this method is invoked.
859    
860            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
861            the projfilepath if no projection is selected.
862    
863    2003-06-12  Jonathan Coles   <[email protected]>
864    
865            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
866            the scalebar if the current map has no projection set.
867    
868            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
869            projfilepath label to just the basename of the projection file
870            rather than include the entire path.
871    
872            * Thuban/Model/resource.py: Fix missed proj functions that
873            needed to be renamed.
874    
875    2003-06-12  Jonathan Coles   <[email protected]>
876    
877            * Thuban/Model/classification.py: Removed assert statements that
878            tested if the variable was an instance of Color.
879    
880            * Thuban/Model/color.py (Color): Remove commented code that isn't
881            used.
882            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
883            Fixes RTbug #1835.
884            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
885            Needed now that the class doesn't inherit from Color.
886    
887    2003-06-12  Jonathan Coles   <[email protected]>
888    
889            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
890            check unicode strings.
891    
892            * test/test_layer.py: Check for existence of gdal.
893    
894    2003-06-12  Jonathan Coles   <[email protected]>
895        
896            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
897            that was in load.py
898    
899            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
900            that was in save.py
901    
902    2003-06-12  Jonathan Coles   <[email protected]>
903    
904            This is largely a collection of bug fixes. We also handle the
905            case where gdal is not on the system. The XMLReader and XMLWriter
906            classes were moved into there own files to resolve some circular
907            import references and because they shouldn't really be in the
908            file that is dediciated to reading/writing session files since
909            they are also used elsewhere.
910    
911            * Thuban/Model/classgen.py: Renamed functions to follow the
912            function_names_with_underscores style. Fixes RTbug #1903.
913            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
914    
915            * Thuban/Model/layer.py: Import gdal only if it available.
916            (RasterLayer): Handle the case where the gdal library is unavailable.
917            Addresses RTbug #1877.
918    
919            * Thuban/Model/load.py (XMLReader): Moved into seperate file
920            xmlreader.py.
921    
922  2003-06-12  Jonathan Coles   <[email protected]>  2003-06-12  Jonathan Coles   <[email protected]>
923    
924          This is largely a collection of bug fixes. We also handle the          This is largely a collection of bug fixes. We also handle the

Legend:
Removed from v.1169  
changed lines
  Added in v.1365

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26