/[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 1246 by bh, Thu Jun 19 19:29:33 2003 UTC revision 1411 by frank, Mon Jul 14 10:09:35 2003 UTC
# Line 1  Line 1 
1    2003-07-14  Frank Koormann   <[email protected]>
2    
3            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
4            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
5    
6            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
7            unicode strings from session file: session title, map title and
8            projection name.
9            
10    2003-07-10  Jonathan Coles   <[email protected]>
11    
12            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
13            drag_stop, not drag_move when the mouse is released.
14    
15    2003-07-10  Jonathan Coles   <[email protected]>
16    
17            The most important part of this is the seperation of view.py into
18            two pieces. viewport.py now has a class called ViewPort which
19            contains all the non-wx parts of view.py and can therefore be
20            tested. view.py contains only the wx-specific parts and is fairly
21            simple.
22    
23            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
24            RTTbug #1992.
25            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
26            RTTbug #1992.
27    
28            * Thuban/Model/classgen.py (generate_singletons,
29            generate_uniform_distribution, generate_quantiles):
30            Added 'fixes' parameter so that property attributes can
31            be held constant over the generated classification groups.
32            (CustomRamp.GetProperties): Remove unused variables.
33    
34            * Thuban/Model/map.py (Map.SetProjection): Send the old
35            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
36            event.
37    
38            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
39            parameter which is a list of records that restricts which
40            records are saved. Fixes RTbug #1997.
41    
42            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
43            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
44    
45            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
46            to allow the user to fix line color/width on generated groups.
47            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
48            functions to optionally fix group properties.
49    
50            * Thuban/UI/main.py (main): Set exception hook to the
51            ShowExceptionDialog. Fixes RTbug #1993.
52    
53            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
54            the table window when it is selectd to be shown.
55    
56            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
57            Export Selection button and move the export buttons underneath
58            the table.
59            (QueryTableFrame.UpdateStatusText): Added event argument so
60            that it can respond to grid selection events. The status text
61            is now updated even when the table is not associated with a
62            layer as was previously assumed.
63            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
64            UpdateStatusText responds to these events.
65            (QueryTableFrame.OnSaveAs): Renamed to doExport.
66            (QueryTableFrame.doExport): Helper function that saves the
67            entire table, or selected rows, to a file.
68            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
69            Respond to export button events and call doExport.
70    
71            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
72            the function doesn't return NULL without first setting a Python
73            Error.
74    
75            * test/runtests.py (main): Only print "Unknown option" for
76            unsupported options.
77    
78            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
79            optional epsilon argument to specify floating point accuracy.
80            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
81            for each item test.
82    
83            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
84            tests for saving selected records.
85    
86            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
87            tests for saving selected records.
88    
89            * test/test_map.py (TestMapWithContents.test_set_projection):
90            MAP_PROJECTION_CHANGED events send the old projection.
91    
92            * test/test_session.py
93            (TestSessionWithContent.test_forward_map_projection):
94            MAP_PROJECTION_CHANGED events send the old projection.
95    
96            * test/test_table.py (TableTest): Update tests to use non-deprecated
97            functions.
98    
99    2003-07-08  Bernhard Herzog  <[email protected]>
100    
101            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
102            constants in the column objects are the standard ones defined in
103            the table module.
104    
105            * test/test_transientdb.py
106            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
107            exporting transient tables as DBF works. This should catch the bug
108            just fixed in TransientTableBase.Width.
109    
110    2003-07-08  Bernhard Herzog  <[email protected]>
111    
112            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
113            interpolated colors correctly.
114    
115            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
116            New. Test case for the fix in classgen.py
117    
118    2003-07-08  Bernhard Herzog  <[email protected]>
119    
120            * test/runtests.py (main): Make the default output less verbose
121            and add a verbosity option (-v) to get the old output
122    
123    2003-07-08  Bernhard Herzog  <[email protected]>
124    
125            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
126            0.9.
127    
128            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
129            New. Return the join type
130    
131            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
132            DTD
133            (SessionSaver.write_data_containers): Save the join type for
134            joined tables
135    
136            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
137            namespace
138            (SessionLoader.start_jointable): Handle the jointype attribute
139    
140            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
141            as of Thuban 0.8. These are now tests to determine whether Thuban
142            can still read files generated by Thuban 0.8
143    
144            * test/test_load.py (LoadSessionTest.dtd)
145            (TestSingleLayer.file_contents)
146            (TestLayerVisibility.file_contents, TestLabels.file_contents)
147            (TestLayerProjection.file_contents)
148            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
149            (TestJoinedTable.file_contents)
150            (TestLoadError.file_contents): Update for new DTD
151            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
152            for new join type attribute
153    
154            * test/test_save.py (SaveSessionTest.dtd)
155            (SaveSessionTest.testEmptySession)
156            (SaveSessionTest.testSingleLayer)
157            (SaveSessionTest.testLayerProjection)
158            (SaveSessionTest.testRasterLayer)
159            (SaveSessionTest.testClassifiedLayer)
160            (SaveSessionTest.test_dbf_table)
161            (SaveSessionTest.test_joined_table): Update for new DTD
162            (SaveSessionTest.test_joined_table): Add test for new join type
163            attribute
164    
165    2003-07-04  Bernhard Herzog  <[email protected]>
166    
167            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
168            function for table_to_dbf
169            (table_to_dbf): Deal with names longer than the 10 character limit
170    
171            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
172            doc-string
173            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
174            long column names
175    
176    2003-07-03  Bernhard Herzog  <[email protected]>
177    
178            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
179    
180    2003-07-03  Bernhard Herzog  <[email protected]>
181    
182            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
183            for the Thuban manual and README with some basic information about
184            the manual
185    
186    2003-07-03  Bernhard Herzog  <[email protected]>
187    
188            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
189            Update doc-string
190            (TransientJoinedTable.create): Do not modify the column objects of
191            the input tables in place and copy all columns of the input tables
192            into the joined table after all.
193    
194            * test/test_transientdb.py
195            (TestTransientTable.test_transient_joined_table_same_column_name):
196            Update to reflect the new behavior
197            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
198            Update to reflect the new behavior
199            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
200            New test case for a bug which modified the column objects in place
201    
202    2003-07-02  Jonathan Coles   <[email protected]>
203    
204            * Thuban/Model/classgen.py (generate_singletons,
205            generate_uniform_distribution, generate_quantiles,
206            GenQuantiles0): Make sure maxValue isn't less than
207            one, otherwise we could divide by zero.
208    
209            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
210            ClassGenTest.doClassSingleTest): Call doBoundsTest to
211            check the end classification groups against the
212            proper property values.
213            (ClassGenTest.doBoundsTest): New. Checks the first and
214            last classification groups to make sure their properties
215            are the correct upper and lower bounds for a color ramp.
216    
217    2003-07-02  Jonathan Coles   <[email protected]>
218    
219            * Thuban/Model/classgen.py (generate_singletons,
220            generate_uniform_distribution, generate_quantiles,
221            GenQuantiles0): The denominator was one to high when
222            calculating the index for the ramp causing the index
223            to never to reach one.
224    
225    2003-07-02  Jonathan Coles   <[email protected]>
226    
227            Changed the singature of ClassGroupRange.__init__ and
228            ClassGroupRange.SetRange() so that the min/max values are
229            passed as a tuple. This makes a better calling scheme for
230            when a Range object is passed instead.
231    
232            * Thuban/Model/classgen.py: Fixed parameters to
233            ClassGroupRange constructor.
234    
235            * Thuban/Model/classification.py (ClassGroupRange.__init__):
236            Consolidate the min/max parameters into a single _range which
237            can either be a tuple or a Range object.
238            (ClassGroupRange.SetRange): Consolidate the min/max parameters
239            into a single _range which can either be a tuple or a Range object.
240    
241            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
242            call to ClassGroupRange constructor to use a tuple.
243    
244            * Thuban/Model/layer.py (Layer.SetClassification): Switch
245            the classification instance variable to the new class
246            before calling _set_layer otherwise subscribers to a
247            LAYER_CHANGED event will not see any difference.
248    
249            * test/test_classification.py: Fix tests of ClassGroupRange
250            so that they use the new signature.
251    
252            * test/test_load.py: Fix use of ClassGroupRange so that it
253            uses the new signature.
254    
255            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
256            uses the new signature.
257    
258            * test/test_save.py: Fix use of ClassGroupRange so that it
259            uses the new signature.
260    
261    
262    2003-07-01  Jonathan Coles   <[email protected]>
263    
264            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
265            Import used objects/class from color.
266            (generate_singletons): We don't
267            need the numGroups parameter anymore because we are using
268            the new ramps with GetProperties().
269            (generate_uniform_distribution): Use new ramp method
270            GetProperties().
271            (generate_quantiles, GenQuantiles0): Use new ramp method
272            GetProperties().
273            (CustomRamp.SetNumGroups): Removed. The ramps now map
274            a value from 0 to 1 to class properties so the number
275            of groups is not needed ahead of time.
276            (CustomRamp.next): Removed. CustomRamp does not support
277            interation anymore.
278            (CustomRamp.GetProperties): Returns a ClassGroupProperties
279            object based on the index value from 0 to 1 that is
280            passed to it.
281            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
282            Made into instances of Monochromatic class instread of
283            deriving from it.
284            (HotToCold.SetNumGroups): Removed. See CustomRamp.
285            (HotToCold.next): Removed. See CustomRamp.
286    
287            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
288            (Classification.SetField, Classification.SetFieldType):
289            Replaced with SetFieldInfo.
290            (Classification.SetFieldInfo): New. Does a better job of
291            what SetField and SetFieldType used to do by combining
292            their function since they should really always be done
293            at the same time.
294            (Classification.SetLayer): Renamed to _set_layer.
295            (Classification._set_layer): Should only be called from
296            Layer's SetClassification. This does not cause a recursive
297            call as SetLayer did because we know that Layer knows about
298            the classification.
299    
300            * Thuban/Model/color.py: Fixes RTbug #1971.
301            (_Transparent): Renamed from Transparent so it doesn't
302            conflict with the module variable.
303            (Transparent, Black): Renamed from Color.Transparent,
304            Color.Black so they are not class variables.
305    
306            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
307            (Layer.Destroy): We don't need to call SetClassification
308            anymore to clear out the back reference in the classifcation
309            to the layer. It's better to set it to None using _set_layer,
310            and we won't be creating another clas object too.
311            (Layer.SetClassification): Classification._set_layer is not
312            recursive so remove all the locking variables. Also clean
313            up the code so that it remains unchanged if something fails.
314    
315            * Thuban/Model/load.py: Fixes RTbug #1971.
316            (SessionLoader.start_classification): Call
317            Classification.SetFieldInfo().
318    
319            * Thuban/Model/save.py: Removed import of Color which wasn't
320            being used.
321    
322            * Thuban/UI/classgen.py: Fixes RTbug #1972.
323            (ClassGenDialog.__init__): Color ramps are now instances
324            already so we don't need to create any new objects.
325            (ClassGenDialog.OnOK): Check for numGroups is no longer
326            necessary because we never use it.
327    
328            * Thuban/UI/classifier.py: Fixes RTbug #1971.
329            (Classifier.__BuildClassification, Classifier.__SetGridTable):
330            Call Classification.SetFieldInfo() instead of SetFieldType.
331    
332            * Thuban/UI/renderer.py: Fixes RTbug #1971.
333    
334            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
335            (MapCanvas.__init__): Subscribe to the idle time event. Set
336            background color to white.
337            (MapCanvas.OnPaint): Set a flag indicating that we should
338            render the map during idle time. If we already have a bitmap
339            just draw it now.
340            (MapCanvas.OnIdle): New. Render the map only during idle time.
341            This also fixes a problem with the busy cursor under gtk.
342    
343            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
344            Fix calls to generate_singletons because the signature changed.
345    
346            * test/test_classification.py: Fix color references and
347            change calls to Classification.[SetField|SetFieldType] to
348            SetFieldInfo.
349    
350            * test/test_load.py: Fix color references.
351    
352            * test/test_load_0_2.py: Fix color references.
353    
354            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
355            Change calls to Classification.[SetField|SetFieldType] to
356            SetFieldInfo.
357    
358    2003-07-01  Frank Koormann   <[email protected]>
359    
360            MERGE from the greater-ms3 branch.
361    
362            * test/test_transientdb.py
363            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
364            New. Test join of two tables with partly equal column names.
365    
366            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
367            If duplicates in left and right tables column names are found,
368            append '_' (underscores) to the name until it is unique.
369            Create always new internal names for the resulting table and reference
370            columns in the join statement with <table>.<column>
371    
372    2003-07-01  Bernhard Herzog  <[email protected]>
373    
374            * test/test_transientdb.py
375            (TestTransientTable.test_transient_joined_table_same_column_name):
376            New. Test whether joining on columns with the same names in both
377            tables works.
378            
379            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
380            sure to use the right internal names even when joining on field
381            with the same names in both tables. Also, detect duplicate names
382            in the joined table correctly.
383    
384    2003-07-01  Frank Koormann   <[email protected]>
385    
386            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
387            Reverse List of layers to render in same order as in desktop legend.
388    
389    2003-06-30  Jonathan Coles   <[email protected]>
390    
391            * Thuban/version.py (make_tuple): Takes a version string
392            and splits it into a tuple of at most three integers.
393            Used make_tuple() to make tuple versions of the version
394            numbers.
395    
396            * Thuban/UI/about.py: Add Thuban email addresses.
397    
398    2003-06-30  Jonathan Coles   <[email protected]>
399    
400            * Thuban/version.py: SQLite/PySQLite version dependencies
401            were too high.
402    
403    2003-06-30  Jonathan Coles   <[email protected]>
404    
405            * Thuban/version.py: Update version to 0.8.1
406            
407            * MANIFEST.in: Added Projections so that default.proj is
408            included.
409    
410    2003-06-26  Jonathan Coles   <[email protected]>
411    
412            New About box with lots more information including library
413            versions and credits. More/better version checking before
414            Thuban starts.
415    
416            * Thuban/UI/about.py: New. New About box that displays
417            library version information and credits.
418    
419            * Thuban/version.py: Added new 'versions' dictionary which
420            contains the verions of various libraries which are checked
421            when the module loads.
422            (verify_versions): Check all version numbers and returns
423            a list of errors.
424    
425            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
426            Reset the status of the buttons as the situation warrants,
427            but in a better more reliable way by not relying on the
428            current status to determine what needs to change.
429    
430            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
431            (verify_versions): Remove most of the code since it is
432            now in Thuban.version.verify_versions.o
433    
434            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
435            About box in Thuban.UI.about.
436    
437            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
438            Returns the version of gdal library being used as a string.
439    
440            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
441            Removed.
442            (get_proj_version): Return the version of PROJ that the file
443            was compiled with.
444            (get_gtk_version): Return th version of GTK that the file
445            was compiled with.
446    
447    2003-06-25  Jonathan Coles   <[email protected]>
448    
449            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
450            of the SelectPropertiesDialog should be self so the window
451            appears on top.
452            (ClassGroupPropertiesCtrl.DoEdit): The parent
453            of the SelectPropertiesDialog should be self so the window
454            appears on top.
455    
456            * Thuban/UI/resource.py: Cleaned up how we determine file
457            extensions.
458            (GetImageResource): Return an wxImage from our Resources.
459    
460    2003-06-24  Jonathan Coles   <[email protected]>
461    
462            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
463            Check that a layer has a classification before trying
464            to get it. Raster layers don't have classifications.
465    
466    2003-06-23  Jonathan Coles   <[email protected]>
467            
468            * setup.py: Add Resources/XML to resource list.
469        
470    2003-06-23  Jonathan Coles   <[email protected]>
471    
472            * setup.cfg: Fix copyright dates
473        
474    2003-06-23  Jonathan Coles   <[email protected]>
475    
476            * MANIFEST.in: Update with Resources/XML
477    
478            * setup.py: Don't include Locale resources yet as we don't
479            have any and it causes problems building the distribution
480            for Windows. Update version to 0.8.0.
481    
482            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
483    
484            * Thuban/UI/mainwindow.py: Add blank line at the end because
485            file was not being read correctly building the Windows
486            distribution.
487    
488    2003-06-23  Jonathan Coles   <[email protected]>
489    
490            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
491    
492            * Thuban/version.py: Temporarily update longversion for
493            the 0.8 release so that it doesn't have the cvs revision.
494    
495    2003-06-23  Jonathan Coles   <[email protected]>
496    
497            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
498            to make sure that we don't create reentrant possibilities with
499            wxYield.
500    
501            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
502            directly to avoid the wxSafeYield() call which generates an
503            OnPaint event causing infinite recursion. Don't try to catch
504            exception anymore. This was for before there were limits on map
505            scaling.
506    
507    2003-06-23  Bernhard Herzog  <[email protected]>
508    
509            Bug fix for RT #1961:
510    
511            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
512            Register DerivedShapestores with the session
513    
514            * Thuban/Model/session.py (Session.Tables): Make sure each table
515            is only listed once.
516    
517            * test/test_load.py (TestJoinedTable.test): Add check_format call.
518            Update file contents to match the one written out.
519    
520    2003-06-20  Bernhard Herzog  <[email protected]>
521    
522            * test/xmlsupport.py (SaxEventLister.startElementNS)
523            (SaxEventLister.endElementNS): Do not include the qname. Python
524            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
525            is (presumably incorrectly) None, whereas it's a string with the
526            element name in the later versions.
527    
528            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
529            (TestEventList.test_even_list_namespace): Update tests to reflect
530            the new behaviour
531            (TestEventList.test_even_list_id_normalization): Fix doc-string
532    
533    2003-06-20  Jonathan Coles   <[email protected]>
534    
535            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
536            by deriving classes to determine if that layer supports shapes.
537            (Layer): Override HasShapes and return true.
538    
539            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
540            instead of a direct call to wx[Begin|End]CusyCursor().
541            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
542            table data.
543    
544            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
545            New. Wrappers around the wxWindows functions that allow us to
546            make additional calls such as wxYield which gives the native
547            system a chance to update the cursor correctly.
548    
549            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
550            instead of a direct call to wx[Begin|End]CusyCursor().
551    
552            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
553            instead of a direct call to wx[Begin|End]CusyCursor().
554            (MapCanvas.find_shape_at): Check if the current search layer
555            support shapes, otherwise go on to the next layer.
556    
557            * test/test_layer.py: Add tests in each type of layer for
558            HasClassification() and HasShapes()
559    
560    2003-06-20  Jonathan Coles   <[email protected]>
561    
562            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
563            turning on the busy cursor to allow the system to change the
564            cursor before we begin painting. This fixes a problem that
565            was occuring only under GTK. Fixes RTbug #1840.
566    
567    2003-06-20  Bernhard Herzog  <[email protected]>
568    
569            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
570            version.
571    
572            * Thuban/Model/save.py (sort_data_stores): New. Make topological
573            sort of the data sources so they can be written with sources that
574            data sources that depend on other data sources come after the
575            sources they depend on.
576            (SessionSaver.__init__): Add idmap instance variable to map from
577            objects to the ids used in the file.
578            (SessionSaver.get_id, SessionSaver.define_id)
579            (SessionSaver.has_id): New. Methods to manage the idmap
580            (SessionSaver.write): Use thuban-0.8.dtd
581            (SessionSaver.write_session): Add a namespace on the session and
582            write out the data sources before the maps.
583            (SessionSaver.write_data_containers): New. Write the data
584            containers.
585            (SessionSaver.write_layer): Layer elements now refer to a
586            shapestore and don't contain filenames anymore.
587    
588            * Thuban/Model/load.py (LoadError): Exception class to raise when
589            errors in the files are discovered
590            (SessionLoader.__init__): Define dispatchers for elements with a
591            thuban-0.8 namespace too.
592            (SessionLoader.check_attrs): New helper method to check and
593            convert attributes
594            (AttrDesc): New. Helper class for SessionLoader.check_attrs
595            (SessionLoader.start_fileshapesource)
596            (SessionLoader.start_derivedshapesource)
597            (SessionLoader.start_filetable, SessionLoader.start_jointable):
598            Handlers for the new elements in the new fileformat
599            (SessionLoader.start_layer): Handle the shapestore attribute in
600            addition to filename.
601            (SessionLoader.start_table, SessionLoader.end_table): Removed.
602            They were never used in the old formats and aren't needed for the
603            new.
604    
605            * Thuban/Model/session.py (Session.DataContainers): New method to
606            return all "data containers", i.e. shapestores and tables
607    
608            * test/xmlsupport.py (SaxEventLister.__init__)
609            (SaxEventLister.startElementNS, sax_eventlist): Add support to
610            normalize IDs.
611    
612            * test/test_xmlsupport.py
613            (TestEventList.test_even_list_id_normalization): New test case for
614            id normalization
615    
616            * test/test_load.py (LoadSessionTest.check_format): Use ID
617            normalization
618            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
619            class atrributes used for ID normalization
620            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
621            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
622            file format
623            (TestJoinedTable): New test for loading sessions with joined
624            tables.
625            (TestLoadError): New. Test whether missing required attributes
626            cause a LoadError.
627    
628            * test/test_save.py (SaveSessionTest.thubanids)
629            (SaveSessionTest.thubanidrefs): New class attributes for ID
630            normalization in .thuban files.
631            (SaveSessionTest.compare_xml): Use id-normalization.
632            (SaveSessionTest.testEmptySession)
633            (SaveSessionTest.testLayerProjection)
634            (SaveSessionTest.testRasterLayer)
635            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
636            (SaveSessionTest.testLayerProjection): The filename used was the
637            same as for testSingleLayer. Use a different one.
638            (SaveSessionTest.test_dbf_table)
639            (SaveSessionTest.test_joined_table): New test cases for saving the
640            new data sources structures.
641            (TestStoreSort, MockDataStore): Classes to test the sorting of the
642            data stores for writing.
643    
644            * test/runtests.py: Add CVS keywords
645    
646    2003-06-20  Jonathan Coles   <[email protected]>
647    
648            * test/test_session.py
649            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
650            Use the cultural_landmark-point.dbf file for the store so that
651            the table rows and shape count match.
652    
653    2003-06-20  Jonathan Coles   <[email protected]>
654    
655            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
656            an exception if the number of shapes is different from the
657            number of rows in the table. Address RTbug #1933.
658    
659            * test/test_layer.py (TestLayer.test_derived_store): Add
660            a test for the new exception in DerivedShapeStore.__init__.
661    
662            * test/support.py (FloatTestCase): Removed since there is
663            already FloatComparisonMixin. Fixes RTbug #1954.
664            (FloatComparisonMixin.assertFloatEqual): Include test for
665            infinity that was part of FloatTestCase.
666    
667            * test/test_range.py (RangeTest): Inherit from
668            support.FloatComparisonMixin now that we don't have
669            support.FloatTestCase.
670    
671    2003-06-20  Bernhard Herzog  <[email protected]>
672    
673            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
674            the implementation in xmlsupport instead.
675            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
676    
677            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
678            of test_save
679    
680    2003-06-20  Bernhard Herzog  <[email protected]>
681    
682            * test/test_load.py (LoadSessionTest.check_format): New helper
683            method to make sure the test files we load might have been written
684            by the current thuban version.
685            (ClassificationTest.TestLayers, TestSingleLayer.test)
686            (TestLayerVisibility.test, TestClassification.test)
687            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
688            Add check_format() calls and fix the thuban data to match the data
689            that would be written by saving the session loaded from it.
690    
691            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
692            the same class and function in test_save.
693    
694            * test/test_xmlsupport.py (TestEventList): New. test cases for
695            sax_eventlist
696    
697    2003-06-20  Bernhard Herzog  <[email protected]>
698    
699            * Resources/XML/thuban.dtd: Add comment about which versions of
700            Thuban are covered by this DTD
701            (map): Fix content model for layers and raster layers. There can
702            be any number or layers and raster layers in any order.
703    
704    2003-06-20  Jonathan Coles   <[email protected]>
705    
706            This is mainly about fixing RTbug #1949.
707    
708            * Thuban/Model/classification.py: Remove "from __future__"
709            import statement since python 2.2 is the earliest supported
710            version.
711    
712            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
713            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
714            depending on the units this projection *forwards* into.
715    
716            * Thuban/Model/save.py (SessionSaver.write_classification):
717            Remove unnecessary use of lambdas and nested functions.
718    
719            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
720            adjustment here if the map projection uses degrees.
721    
722            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
723            scale adjust code since it is now done before calling
724            this method. Don't do anything if the map projection
725            is None.
726    
727    2003-06-19  Bernhard Herzog  <[email protected]>
728    
729            Move version specific load tests to their own file.
730    
731            * test/test_load.py: Expand the doc-string to explain a bit how to
732            handle file format changes.
733            (TestClassification.test): Update the docstring as this test is
734            not about Thuban 0.2 anymore.
735    
736            * test/test_load_0_2.py: New file with the load tests for thuban
737            files created with Thuban 0.2 and earlier.
738    
739  2003-06-19  Bernhard Herzog  <[email protected]>  2003-06-19  Bernhard Herzog  <[email protected]>
740    
741          Add XML validation to some of the tests. Validation will only be          Add XML validation to some of the tests. Validation will only be

Legend:
Removed from v.1246  
changed lines
  Added in v.1411

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26