/[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 1258 by bh, Fri Jun 20 12:23:28 2003 UTC revision 1363 by jonathan, Wed Jul 2 12:59:42 2003 UTC
# Line 1  Line 1 
1    2003-07-02  Jonathan Coles   <[email protected]>
2    
3            * Thuban/Model/classgen.py (generate_singletons,
4            generate_uniform_distribution, generate_quantiles,
5            GenQuantiles0): Make sure maxValue isn't less than
6            one, otherwise we could divide by zero.
7    
8            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
9            ClassGenTest.doClassSingleTest): Call doBoundsTest to
10            check the end classification groups against the
11            proper property values.
12            (ClassGenTest.doBoundsTest): New. Checks the first and
13            last classification groups to make sure their properties
14            are the correct upper and lower bounds for a color ramp.
15    
16    2003-07-02  Jonathan Coles   <[email protected]>
17    
18            * Thuban/Model/classgen.py (generate_singletons,
19            generate_uniform_distribution, generate_quantiles,
20            GenQuantiles0): The denominator was one to high when
21            calculating the index for the ramp causing the index
22            to never to reach one.
23    
24    2003-07-02  Jonathan Coles   <[email protected]>
25    
26            Changed the singature of ClassGroupRange.__init__ and
27            ClassGroupRange.SetRange() so that the min/max values are
28            passed as a tuple. This makes a better calling scheme for
29            when a Range object is passed instead.
30    
31            * Thuban/Model/classgen.py: Fixed parameters to
32            ClassGroupRange constructor.
33    
34            * Thuban/Model/classification.py (ClassGroupRange.__init__):
35            Consolidate the min/max parameters into a single _range which
36            can either be a tuple or a Range object.
37            (ClassGroupRange.SetRange): Consolidate the min/max parameters
38            into a single _range which can either be a tuple or a Range object.
39    
40            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
41            call to ClassGroupRange constructor to use a tuple.
42    
43            * Thuban/Model/layer.py (Layer.SetClassification): Switch
44            the classification instance variable to the new class
45            before calling _set_layer otherwise subscribers to a
46            LAYER_CHANGED event will not see any difference.
47    
48            * test/test_classification.py: Fix tests of ClassGroupRange
49            so that they use the new signature.
50    
51            * test/test_load.py: Fix use of ClassGroupRange so that it
52            uses the new signature.
53    
54            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
55            uses the new signature.
56    
57            * test/test_save.py: Fix use of ClassGroupRange so that it
58            uses the new signature.
59    
60    
61    2003-07-01  Jonathan Coles   <[email protected]>
62    
63            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
64            Import used objects/class from color.
65            (generate_singletons): We don't
66            need the numGroups parameter anymore because we are using
67            the new ramps with GetProperties().
68            (generate_uniform_distribution): Use new ramp method
69            GetProperties().
70            (generate_quantiles, GenQuantiles0): Use new ramp method
71            GetProperties().
72            (CustomRamp.SetNumGroups): Removed. The ramps now map
73            a value from 0 to 1 to class properties so the number
74            of groups is not needed ahead of time.
75            (CustomRamp.next): Removed. CustomRamp does not support
76            interation anymore.
77            (CustomRamp.GetProperties): Returns a ClassGroupProperties
78            object based on the index value from 0 to 1 that is
79            passed to it.
80            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
81            Made into instances of Monochromatic class instread of
82            deriving from it.
83            (HotToCold.SetNumGroups): Removed. See CustomRamp.
84            (HotToCold.next): Removed. See CustomRamp.
85    
86            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
87            (Classification.SetField, Classification.SetFieldType):
88            Replaced with SetFieldInfo.
89            (Classification.SetFieldInfo): New. Does a better job of
90            what SetField and SetFieldType used to do by combining
91            their function since they should really always be done
92            at the same time.
93            (Classification.SetLayer): Renamed to _set_layer.
94            (Classification._set_layer): Should only be called from
95            Layer's SetClassification. This does not cause a recursive
96            call as SetLayer did because we know that Layer knows about
97            the classification.
98    
99            * Thuban/Model/color.py: Fixes RTbug #1971.
100            (_Transparent): Renamed from Transparent so it doesn't
101            conflict with the module variable.
102            (Transparent, Black): Renamed from Color.Transparent,
103            Color.Black so they are not class variables.
104    
105            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
106            (Layer.Destroy): We don't need to call SetClassification
107            anymore to clear out the back reference in the classifcation
108            to the layer. It's better to set it to None using _set_layer,
109            and we won't be creating another clas object too.
110            (Layer.SetClassification): Classification._set_layer is not
111            recursive so remove all the locking variables. Also clean
112            up the code so that it remains unchanged if something fails.
113    
114            * Thuban/Model/load.py: Fixes RTbug #1971.
115            (SessionLoader.start_classification): Call
116            Classification.SetFieldInfo().
117    
118            * Thuban/Model/save.py: Removed import of Color which wasn't
119            being used.
120    
121            * Thuban/UI/classgen.py: Fixes RTbug #1972.
122            (ClassGenDialog.__init__): Color ramps are now instances
123            already so we don't need to create any new objects.
124            (ClassGenDialog.OnOK): Check for numGroups is no longer
125            necessary because we never use it.
126    
127            * Thuban/UI/classifier.py: Fixes RTbug #1971.
128            (Classifier.__BuildClassification, Classifier.__SetGridTable):
129            Call Classification.SetFieldInfo() instead of SetFieldType.
130    
131            * Thuban/UI/renderer.py: Fixes RTbug #1971.
132    
133            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
134            (MapCanvas.__init__): Subscribe to the idle time event. Set
135            background color to white.
136            (MapCanvas.OnPaint): Set a flag indicating that we should
137            render the map during idle time. If we already have a bitmap
138            just draw it now.
139            (MapCanvas.OnIdle): New. Render the map only during idle time.
140            This also fixes a problem with the busy cursor under gtk.
141    
142            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
143            Fix calls to generate_singletons because the signature changed.
144    
145            * test/test_classification.py: Fix color references and
146            change calls to Classification.[SetField|SetFieldType] to
147            SetFieldInfo.
148    
149            * test/test_load.py: Fix color references.
150    
151            * test/test_load_0_2.py: Fix color references.
152    
153            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
154            Change calls to Classification.[SetField|SetFieldType] to
155            SetFieldInfo.
156    
157    2003-07-01  Frank Koormann   <[email protected]>
158    
159            MERGE from the greater-ms3 branch.
160    
161            * test/test_transientdb.py
162            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
163            New. Test join of two tables with partly equal column names.
164    
165            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
166            If duplicates in left and right tables column names are found,
167            append '_' (underscores) to the name until it is unique.
168            Create always new internal names for the resulting table and reference
169            columns in the join statement with <table>.<column>
170    
171    2003-07-01  Bernhard Herzog  <[email protected]>
172    
173            * test/test_transientdb.py
174            (TestTransientTable.test_transient_joined_table_same_column_name):
175            New. Test whether joining on columns with the same names in both
176            tables works.
177            
178            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
179            sure to use the right internal names even when joining on field
180            with the same names in both tables. Also, detect duplicate names
181            in the joined table correctly.
182    
183    2003-07-01  Frank Koormann   <[email protected]>
184    
185            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
186            Reverse List of layers to render in same order as in desktop legend.
187    
188    2003-06-30  Jonathan Coles   <[email protected]>
189    
190            * Thuban/version.py (make_tuple): Takes a version string
191            and splits it into a tuple of at most three integers.
192            Used make_tuple() to make tuple versions of the version
193            numbers.
194    
195            * Thuban/UI/about.py: Add Thuban email addresses.
196    
197    2003-06-30  Jonathan Coles   <[email protected]>
198    
199            * Thuban/version.py: SQLite/PySQLite version dependencies
200            were too high.
201    
202    2003-06-30  Jonathan Coles   <[email protected]>
203    
204            * Thuban/version.py: Update version to 0.8.1
205            
206            * MANIFEST.in: Added Projections so that default.proj is
207            included.
208    
209    2003-06-26  Jonathan Coles   <[email protected]>
210    
211            New About box with lots more information including library
212            versions and credits. More/better version checking before
213            Thuban starts.
214    
215            * Thuban/UI/about.py: New. New About box that displays
216            library version information and credits.
217    
218            * Thuban/version.py: Added new 'versions' dictionary which
219            contains the verions of various libraries which are checked
220            when the module loads.
221            (verify_versions): Check all version numbers and returns
222            a list of errors.
223    
224            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
225            Reset the status of the buttons as the situation warrants,
226            but in a better more reliable way by not relying on the
227            current status to determine what needs to change.
228    
229            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
230            (verify_versions): Remove most of the code since it is
231            now in Thuban.version.verify_versions.o
232    
233            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
234            About box in Thuban.UI.about.
235    
236            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
237            Returns the version of gdal library being used as a string.
238    
239            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
240            Removed.
241            (get_proj_version): Return the version of PROJ that the file
242            was compiled with.
243            (get_gtk_version): Return th version of GTK that the file
244            was compiled with.
245    
246    2003-06-25  Jonathan Coles   <[email protected]>
247    
248            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
249            of the SelectPropertiesDialog should be self so the window
250            appears on top.
251            (ClassGroupPropertiesCtrl.DoEdit): The parent
252            of the SelectPropertiesDialog should be self so the window
253            appears on top.
254    
255            * Thuban/UI/resource.py: Cleaned up how we determine file
256            extensions.
257            (GetImageResource): Return an wxImage from our Resources.
258    
259    2003-06-24  Jonathan Coles   <[email protected]>
260    
261            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
262            Check that a layer has a classification before trying
263            to get it. Raster layers don't have classifications.
264    
265    2003-06-23  Jonathan Coles   <[email protected]>
266            
267            * setup.py: Add Resources/XML to resource list.
268        
269    2003-06-23  Jonathan Coles   <[email protected]>
270    
271            * setup.cfg: Fix copyright dates
272        
273    2003-06-23  Jonathan Coles   <[email protected]>
274    
275            * MANIFEST.in: Update with Resources/XML
276    
277            * setup.py: Don't include Locale resources yet as we don't
278            have any and it causes problems building the distribution
279            for Windows. Update version to 0.8.0.
280    
281            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
282    
283            * Thuban/UI/mainwindow.py: Add blank line at the end because
284            file was not being read correctly building the Windows
285            distribution.
286    
287    2003-06-23  Jonathan Coles   <[email protected]>
288    
289            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
290    
291            * Thuban/version.py: Temporarily update longversion for
292            the 0.8 release so that it doesn't have the cvs revision.
293    
294    2003-06-23  Jonathan Coles   <[email protected]>
295    
296            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
297            to make sure that we don't create reentrant possibilities with
298            wxYield.
299    
300            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
301            directly to avoid the wxSafeYield() call which generates an
302            OnPaint event causing infinite recursion. Don't try to catch
303            exception anymore. This was for before there were limits on map
304            scaling.
305    
306    2003-06-23  Bernhard Herzog  <[email protected]>
307    
308            Bug fix for RT #1961:
309    
310            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
311            Register DerivedShapestores with the session
312    
313            * Thuban/Model/session.py (Session.Tables): Make sure each table
314            is only listed once.
315    
316            * test/test_load.py (TestJoinedTable.test): Add check_format call.
317            Update file contents to match the one written out.
318    
319    2003-06-20  Bernhard Herzog  <[email protected]>
320    
321            * test/xmlsupport.py (SaxEventLister.startElementNS)
322            (SaxEventLister.endElementNS): Do not include the qname. Python
323            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
324            is (presumably incorrectly) None, whereas it's a string with the
325            element name in the later versions.
326    
327            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
328            (TestEventList.test_even_list_namespace): Update tests to reflect
329            the new behaviour
330            (TestEventList.test_even_list_id_normalization): Fix doc-string
331    
332    2003-06-20  Jonathan Coles   <[email protected]>
333    
334            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
335            by deriving classes to determine if that layer supports shapes.
336            (Layer): Override HasShapes and return true.
337    
338            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
339            instead of a direct call to wx[Begin|End]CusyCursor().
340            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
341            table data.
342    
343            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
344            New. Wrappers around the wxWindows functions that allow us to
345            make additional calls such as wxYield which gives the native
346            system a chance to update the cursor correctly.
347    
348            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
349            instead of a direct call to wx[Begin|End]CusyCursor().
350    
351            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
352            instead of a direct call to wx[Begin|End]CusyCursor().
353            (MapCanvas.find_shape_at): Check if the current search layer
354            support shapes, otherwise go on to the next layer.
355    
356            * test/test_layer.py: Add tests in each type of layer for
357            HasClassification() and HasShapes()
358    
359    2003-06-20  Jonathan Coles   <[email protected]>
360    
361            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
362            turning on the busy cursor to allow the system to change the
363            cursor before we begin painting. This fixes a problem that
364            was occuring only under GTK. Fixes RTbug #1840.
365    
366    2003-06-20  Bernhard Herzog  <[email protected]>
367    
368            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
369            version.
370    
371            * Thuban/Model/save.py (sort_data_stores): New. Make topological
372            sort of the data sources so they can be written with sources that
373            data sources that depend on other data sources come after the
374            sources they depend on.
375            (SessionSaver.__init__): Add idmap instance variable to map from
376            objects to the ids used in the file.
377            (SessionSaver.get_id, SessionSaver.define_id)
378            (SessionSaver.has_id): New. Methods to manage the idmap
379            (SessionSaver.write): Use thuban-0.8.dtd
380            (SessionSaver.write_session): Add a namespace on the session and
381            write out the data sources before the maps.
382            (SessionSaver.write_data_containers): New. Write the data
383            containers.
384            (SessionSaver.write_layer): Layer elements now refer to a
385            shapestore and don't contain filenames anymore.
386    
387            * Thuban/Model/load.py (LoadError): Exception class to raise when
388            errors in the files are discovered
389            (SessionLoader.__init__): Define dispatchers for elements with a
390            thuban-0.8 namespace too.
391            (SessionLoader.check_attrs): New helper method to check and
392            convert attributes
393            (AttrDesc): New. Helper class for SessionLoader.check_attrs
394            (SessionLoader.start_fileshapesource)
395            (SessionLoader.start_derivedshapesource)
396            (SessionLoader.start_filetable, SessionLoader.start_jointable):
397            Handlers for the new elements in the new fileformat
398            (SessionLoader.start_layer): Handle the shapestore attribute in
399            addition to filename.
400            (SessionLoader.start_table, SessionLoader.end_table): Removed.
401            They were never used in the old formats and aren't needed for the
402            new.
403    
404            * Thuban/Model/session.py (Session.DataContainers): New method to
405            return all "data containers", i.e. shapestores and tables
406    
407            * test/xmlsupport.py (SaxEventLister.__init__)
408            (SaxEventLister.startElementNS, sax_eventlist): Add support to
409            normalize IDs.
410    
411            * test/test_xmlsupport.py
412            (TestEventList.test_even_list_id_normalization): New test case for
413            id normalization
414    
415            * test/test_load.py (LoadSessionTest.check_format): Use ID
416            normalization
417            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
418            class atrributes used for ID normalization
419            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
420            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
421            file format
422            (TestJoinedTable): New test for loading sessions with joined
423            tables.
424            (TestLoadError): New. Test whether missing required attributes
425            cause a LoadError.
426    
427            * test/test_save.py (SaveSessionTest.thubanids)
428            (SaveSessionTest.thubanidrefs): New class attributes for ID
429            normalization in .thuban files.
430            (SaveSessionTest.compare_xml): Use id-normalization.
431            (SaveSessionTest.testEmptySession)
432            (SaveSessionTest.testLayerProjection)
433            (SaveSessionTest.testRasterLayer)
434            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
435            (SaveSessionTest.testLayerProjection): The filename used was the
436            same as for testSingleLayer. Use a different one.
437            (SaveSessionTest.test_dbf_table)
438            (SaveSessionTest.test_joined_table): New test cases for saving the
439            new data sources structures.
440            (TestStoreSort, MockDataStore): Classes to test the sorting of the
441            data stores for writing.
442    
443            * test/runtests.py: Add CVS keywords
444    
445    2003-06-20  Jonathan Coles   <[email protected]>
446    
447            * test/test_session.py
448            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
449            Use the cultural_landmark-point.dbf file for the store so that
450            the table rows and shape count match.
451    
452    2003-06-20  Jonathan Coles   <[email protected]>
453    
454            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
455            an exception if the number of shapes is different from the
456            number of rows in the table. Address RTbug #1933.
457    
458            * test/test_layer.py (TestLayer.test_derived_store): Add
459            a test for the new exception in DerivedShapeStore.__init__.
460    
461            * test/support.py (FloatTestCase): Removed since there is
462            already FloatComparisonMixin. Fixes RTbug #1954.
463            (FloatComparisonMixin.assertFloatEqual): Include test for
464            infinity that was part of FloatTestCase.
465    
466            * test/test_range.py (RangeTest): Inherit from
467            support.FloatComparisonMixin now that we don't have
468            support.FloatTestCase.
469    
470    2003-06-20  Bernhard Herzog  <[email protected]>
471    
472            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
473            the implementation in xmlsupport instead.
474            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
475    
476            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
477            of test_save
478    
479  2003-06-20  Bernhard Herzog  <[email protected]>  2003-06-20  Bernhard Herzog  <[email protected]>
480    
481          * test/test_load.py (LoadSessionTest.check_format): New helper          * test/test_load.py (LoadSessionTest.check_format): New helper
# Line 24  Line 502 
502    
503  2003-06-20  Jonathan Coles   <[email protected]>  2003-06-20  Jonathan Coles   <[email protected]>
504    
505            This is mainly about fixing RTbug #1949.
506    
507          * Thuban/Model/classification.py: Remove "from __future__"          * Thuban/Model/classification.py: Remove "from __future__"
508          import statement since python 2.2 is the earliest supported          import statement since python 2.2 is the earliest supported
509          version.          version.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26