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

Legend:
Removed from v.1175  
changed lines
  Added in v.1363

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26