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

Legend:
Removed from v.1191  
changed lines
  Added in v.1409

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26