/[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 1737 by bh, Tue Sep 23 09:08:13 2003 UTC revision 1790 by bh, Wed Oct 8 13:10:53 2003 UTC
# Line 1  Line 1 
1    2003-10-08  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
4            projection type of the currently selected projection is not known,
5            i.e. there's no panel for it, use the UnknownProjPanel
6            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
7            the actual replacing of the proj panel into the new method
8            _show_proj_panel.
9            (UnknownProjPanel): Add doc-string.
10            (UnknownProjPanel._DoLayout): Insert a newline into the text so
11            that the panel is not so wide.
12    
13    2003-10-08  Bernhard Herzog  <[email protected]>
14    
15            * Thuban/Model/resource.py (read_proj_file): Return the warnings
16            too. Update the doc-string
17            (get_proj_files): Removed. It wasn't used anywhere
18            (get_system_proj_files, get_system_proj_file): Rename to
19            get_system_proj_file and return the ProjFile object and not a list
20            of ProjFile objects. Update the callers.
21            (get_user_proj_files, get_user_proj_file): Rename to
22            get_user_proj_file return the ProjFile object and not a list of
23            ProjFile objects. Update the callers.
24            (ProjFileReader.__init__): New instance variable for the warnings.
25            Rename the __pf ivar to projfile. Update the methods referring to
26            __pf
27            (ProjFileReader.end_projection): Catch any errors raised when
28            instantiating the projection and record that as an error. The
29            projection will not be in the final ProjFile object.
30            (ProjFileReader.GetWarnings): New method to return the warnings.
31    
32            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
33            show the warnings from the projfile reader
34            (ProjFrame._OnImport): Deal with any warnings returned by
35            read_proj_file
36            (ProjFrame.__FillAvailList): Deal with any warnings returned by
37            get_system_proj_file or get_user_proj_file.
38    
39            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
40            (TestProjFileWithInvalidParameters.file_contents): New test cases
41            to test whether read_proj_file handles invalid projection
42            parameters correctly
43            (TestProjFile.test_get_system_proj_file): New. Simple test for
44            resource.get_system_proj_file
45    
46    2003-10-07  Bernhard Herzog  <[email protected]>
47    
48            * test/test_derivedshapestore.py
49            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
50            properly so that the temporary directories get deleted correctly
51    
52    2003-10-06  Bernhard Herzog  <[email protected]>
53    
54            Handle the title changes in a proper MVC way.
55    
56            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
57            canvas' TITLE_CHANGED messages
58            (MainWindow.update_title): New. Update the main window's title
59            (MainWindow.__SetTitle): Removed. Use update_title instead.
60            (MainWindow.SetMap): Use update_title instead of __SetTitle
61            (MainWindow.RenameMap): Do change the window title explicitly
62            here. That's handled in a proper MVC way now.
63            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
64            messages
65    
66            * Thuban/Lib/connector.py (Conduit): New class to help classes
67            that forward messages
68    
69            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
70            (ViewPort): Derive from Conduit instead of Publisher
71            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
72            when calling the inherited versions
73            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
74            methods to subscribe and unsubscribe map messages
75            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
76            handle the map subscriptions
77            (ViewPort.Map, ViewPort.map_projection_changed)
78            (ViewPort.layer_projection_changed): Add or update doc-strings
79    
80            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
81            typo
82            (MyConduit): Helper class for the Conduit test.
83            (TestConduit): Test cases for Conduit
84    
85            * test/test_connector.py: Use support.run_tests as main.
86    
87            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
88            the TITLE_CHANGED messages
89            (ViewPortTest.test_forwarding_title_changed): New test to check
90            whether the viewport forwards the map's TITLE_CHANGED messages
91            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
92            after the port's because the latter may require a still functional
93            map.
94    
95    2003-10-06  Bernhard Herzog  <[email protected]>
96    
97            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
98            doc-string
99    
100    2003-10-06  Bernhard Herzog  <[email protected]>
101    
102            * test/test_viewport.py (ViewPortTest.setUp)
103            (SimpleViewPortTest.test_init_with_size): Move the test for the
104            initial size as a constructor parameter from ViewPortTest.setUp
105            method to a new separate test in SimpleViewPortTest.
106    
107    2003-10-06  Bernhard Herzog  <[email protected]>
108    
109            * test/test_viewport.py (MockView): New class derived from
110            ViewPort with a mock implementation of GetTextExtent to be used in
111            the test cases
112            (ViewPortTest.setUp): Use MockView instead of ViewPort
113    
114            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
115            into what would be a "pure virtual function" in C++: always raise
116            NotImplementedError. Mock implementations for test cases don't
117            belong into the real code
118    
119    2003-10-02  Bernhard Herzog  <[email protected]>
120    
121            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
122            close the dbf file we create so that it's contents have been
123            written properly.
124    
125            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
126            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
127            Update to shapelib 1.2.10
128    
129    2003-10-01  Jan-Oliver Wagner <[email protected]>
130    
131            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
132            it annoys lintian which warns about these files not being
133            executable. The #! isn't necessary here since if you absolutely
134            must execute them you can always say "python <filename>".
135    
136    2003-09-26  Bernhard Herzog  <[email protected]>
137    
138            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
139            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
140            is ported to a newer the import will fail, so it should be noticed
141            immediately that this function is gone.
142            Fixes RT#1919
143    
144    2003-09-26  Bernhard Herzog  <[email protected]>
145    
146            Add a DTD for the projection files and make thuban write valid
147            projection files
148    
149            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
150            files
151    
152            * Thuban/Model/resource.py (ProjFileSaver.write): Use
153            'projectionlist' as the name in the document type declaration so
154            that it matches the element type of the root element.
155    
156            * test/test_proj.py (sample_projfile, sample_projfile2): Use
157            'projectionlist' as the name in the document type declaration just
158            as it is done now in the files thuban would write
159            (sample_projfile, sample_projfile_data): Fix spelling of
160            "Mercator"
161            (TestProjFile.doTestWrite): Validate the written and the expected
162            XML data
163            (TestProjFile): Derive from ValidationTest so that we can run xml
164            validation tests
165    
166    2003-09-24  Bernhard Herzog  <[email protected]>
167    
168            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
169            modify the list returned by map.Layers() in place since it is the
170            actual list of layers used by the map.
171    
172    2003-09-23  Jan-Oliver Wagner <[email protected]>
173    
174            * Doc/manual/thuban-manual.xml: Added subsection to chapter
175            Extensions to describe the extensions coming with the Thuban
176            standard package (gns2shp and importAPR).
177    
178    2003-09-23  Bernhard Herzog  <[email protected]>
179    
180            * libraries/thuban/wxproj.cpp (project_point): if there's an
181            inverse but no forward projection, convert to degrees after
182            applying the inverse projection. Fixes RT#2096
183    
184            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
185            implicitly tests for the fix to RT#2096
186    
187            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
188            Check that the sequences have the same lengths
189    
190            * Resources/Projections/defaults.proj (Geographic projection): Use
191            a much more precise value for the to_meter attribute.
192    
193  2003-09-22  Bernhard Herzog  <[email protected]>  2003-09-22  Bernhard Herzog  <[email protected]>
194    
195          * test/support.py (initthuban): Make sure to unset the LANG env.          * test/support.py (initthuban): Make sure to unset the LANG env.
# Line 1364  Line 1556 
1556    
1557          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
1558          it annoys lintian which warns about these files not being          it annoys lintian which warns about these files not being
1559          executable. The #1 isn't necessary here since if you absolutely          executable. The #! isn't necessary here since if you absolutely
1560          must execute them you can always say "python <filename>".          must execute them you can always say "python <filename>".
1561    
1562          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove

Legend:
Removed from v.1737  
changed lines
  Added in v.1790

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26