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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26