/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26