1 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
Add EPSG projection handling to .thuban files |
4 |
|
|
5 |
|
* test/test_save.py (SaveSessionTest.dtd) |
6 |
|
(SaveSessionTest.testEmptySession) |
7 |
|
(SaveSessionTest.testLayerProjection) |
8 |
|
(SaveSessionTest.testRasterLayer) |
9 |
|
(SaveSessionTest.testClassifiedLayer) |
10 |
|
(SaveSessionTest.test_dbf_table) |
11 |
|
(SaveSessionTest.test_joined_table) |
12 |
|
(SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace |
13 |
|
(SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and |
14 |
|
use a and epsg projection to test saving them |
15 |
|
|
16 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev |
17 |
|
namespace |
18 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
19 |
|
(TestLayerProjection.file_contents) |
20 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
21 |
|
(TestPostGISLayer.file_contents) |
22 |
|
(TestPostGISLayerPassword.file_contents) |
23 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to use |
24 |
|
1.0-dev namespace |
25 |
|
(TestSingleLayer.file_contents, TestSingleLayer.test): Update to |
26 |
|
use 1.0-dev namespace and use an EPSG projection to test whether |
27 |
|
loading it works |
28 |
|
|
29 |
|
* test/test_load_0_9.py: New. Effectively a copy of test_load.py |
30 |
|
as of Thuban 0.9. These are now tests to determine whether Thuban |
31 |
|
can still read files generated by Thuban 0.9 |
32 |
|
|
33 |
|
* Thuban/Model/save.py (SessionSaver.write) |
34 |
|
(SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev |
35 |
|
namespace |
36 |
|
(SessionSaver.write_projection): Write the projection's epsg |
37 |
|
attribute |
38 |
|
|
39 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Also accept the |
40 |
|
thuban-1.0-dev.dtd namespace |
41 |
|
(SessionLoader.check_attrs): Allow a callable object as conversion |
42 |
|
too |
43 |
|
(SessionLoader.start_projection, SessionLoader.end_projection) |
44 |
|
(SessionLoader.start_parameter): Handle the epsg attribute and |
45 |
|
rename a few instance variables to lower case |
46 |
|
|
47 |
|
* Resources/XML/thuban-1.0.dtd: New. Only difference to |
48 |
|
thuban-0.9.dtd is the epsg attribute for projections. |
49 |
|
|
50 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
51 |
|
|
52 |
|
* test/runtests.py (main): Let the user specify which tests to run |
53 |
|
on the command line |
54 |
|
|
55 |
|
* test/support.py (ThubanTestResult.getDescription): Override to |
56 |
|
give a better short description. The description can be used as a |
57 |
|
parameter to run_tests to run that particular test in isolation. |
58 |
|
|
59 |
|
2003-10-21 Frank Koormann <[email protected]> |
60 |
|
|
61 |
|
Popup menu for legend. Scheduled for the 1.2 release this was too |
62 |
|
simple to implement: The popup menu is bound to the legend tree, while |
63 |
|
the events are hanlded by its anchestor, the legend panel. This |
64 |
|
allows reuse of all the event handlers already implemented for the |
65 |
|
legend toolbar buttons. |
66 |
|
|
67 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros |
68 |
|
to add handlers for the events issued by the popup menu. |
69 |
|
(LegendPanel._OnToggleVisibility): Handler for toggling layer |
70 |
|
visibility event |
71 |
|
(LegendPanel._OnProjection): Handler for layer projection event. |
72 |
|
(LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK |
73 |
|
(LegendTree._OnRightClick): Event handler for right click, select item |
74 |
|
and pop up menu. |
75 |
|
(LegendTree.ToggleVisibility): Toggle layer visibility |
76 |
|
(LegendTree.LayerProjection): Raise layer projection dialog for |
77 |
|
current layer. |
78 |
|
|
79 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
80 |
|
|
81 |
|
* Resources/Projections/defaults.proj: Use correct DOCTYPE |
82 |
|
declaration. The top-level element is projectionlist not projfile |
83 |
|
|
84 |
|
2003-10-20 Bernhard Herzog <[email protected]> |
85 |
|
|
86 |
|
* Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper |
87 |
|
method to write a projfile and display a busy cursor and error |
88 |
|
dialogs. |
89 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport) |
90 |
|
(ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file |
91 |
|
(ProjFrame.__FillAvailList): Translate "<None>" too and display a |
92 |
|
busy cursor while loading the user and system prj files. |
93 |
|
|
94 |
|
2003-10-16 Bernhard Herzog <[email protected]> |
95 |
|
|
96 |
|
* Thuban/Model/resource.py (projfile_cache): Introduce a cache for |
97 |
|
ProjFile objects |
98 |
|
(clear_proj_file_cache): New function to clear the cache. Mainly |
99 |
|
useful for use by the test suite |
100 |
|
(read_proj_file): Use the cache. |
101 |
|
|
102 |
|
* test/test_proj.py (TestProjFile): Clarify the doc-string |
103 |
|
(ProjFileReadTests): Update doc-string |
104 |
|
(ProjFileReadTests.test_get_system_proj_file): Check whether the |
105 |
|
system proj files is cached. |
106 |
|
(ProjFileLoadTestCase): New base class for the proj file tests |
107 |
|
derived from support.FileLoadTestCase to provide some common |
108 |
|
behavior. |
109 |
|
(TestLoadingProjFile) |
110 |
|
(TestLoadingProjFileWithEmptyProjectionlist.file_contents) |
111 |
|
(TestProjFileWithInvalidParameters.file_contents): Derive from |
112 |
|
ProjFileLoadTestCase |
113 |
|
(TestLoadingProjFile.test_caching): New. Test whether the cache |
114 |
|
works |
115 |
|
|
116 |
|
2003-10-16 Silke Reimer <[email protected]> |
117 |
|
|
118 |
|
* debian/*: New directory with configuration files for building a thuban |
119 |
|
deb-package. |
120 |
|
|
121 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
122 |
|
|
123 |
|
* test/test_proj.py: Execute support.run_tests when run as |
124 |
|
__main__ so that missing unsubscribes are detected |
125 |
|
(TestProjFile.tearDown): Destroy the proj_file properly |
126 |
|
|
127 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
128 |
|
|
129 |
|
* Thuban/Model/messages.py (PROJECTION_ADDED) |
130 |
|
(PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for |
131 |
|
the ProjFile objects |
132 |
|
|
133 |
|
* Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can |
134 |
|
easily send messages when the projections change |
135 |
|
(ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages |
136 |
|
when the change was successful |
137 |
|
|
138 |
|
* test/test_proj.py (TestProjFile.setUp): Subscribe to some of the |
139 |
|
proj file messages |
140 |
|
(TestProjFile.test_add_remove) |
141 |
|
(TestProjFile.test_remove_non_existing) |
142 |
|
(TestProjFile.test_replace) |
143 |
|
(TestProjFile.test_replace_non_existing): Test whether the right |
144 |
|
messages are sent |
145 |
|
|
146 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
147 |
|
|
148 |
|
* test/test_proj.py (TestProjFile.test): Refactor into several |
149 |
|
tests |
150 |
|
(TestProjFile.test_add_remove) |
151 |
|
(TestProjFile.test_remove_non_existing) |
152 |
|
(TestProjFile.test_replace) |
153 |
|
(TestProjFile.test_replace_non_existing): Some of the new |
154 |
|
individual test cases |
155 |
|
(TestProjFileSimple): New class for the rest of the test cases |
156 |
|
that came out of the refactoring |
157 |
|
(ProjFileTest): Derive from xmlsupport.ValidationTest so that the |
158 |
|
derived classes don't have to |
159 |
|
|
160 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
161 |
|
|
162 |
|
Add an optional EPSG code to the projection objects and extend the |
163 |
|
.proj file format accordingly. |
164 |
|
|
165 |
|
* Resources/XML/projfile.dtd (element projection): Add epsg |
166 |
|
attribute |
167 |
|
|
168 |
|
* Thuban/Model/proj.py (Projection.__init__): New parameter and |
169 |
|
instance variable epsg. Update doc-string |
170 |
|
(Projection.EPSGCode, Projection.Label): New methods to provide |
171 |
|
access to EPSG code and a label for use in dialogs |
172 |
|
|
173 |
|
* Thuban/Model/resource.py (ProjFileReader.start_projection) |
174 |
|
(ProjFileReader.end_projection, ProjFileSaver.write_projfile): |
175 |
|
Handle the epsg code attribute when reading or writing proj files |
176 |
|
|
177 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave) |
178 |
|
(ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail) |
179 |
|
(ProjFrame.__FillAvailList): Use the projection's Label method to |
180 |
|
get the string for the list box |
181 |
|
|
182 |
|
* test/test_proj.py (TestProjection.test_label) |
183 |
|
(TestProjection.test_label_epsg) |
184 |
|
(TestProjection.test_epsgcode_for_non_epsg_projection) |
185 |
|
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests |
186 |
|
for the label and EPSGCode methods |
187 |
|
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write) |
188 |
|
(WriteProjFileTests.test_write_empty_file): Create the ProjFile |
189 |
|
objects in the test cases and put the expected contents into the |
190 |
|
test case methods too. Update doTestWrite accordingly |
191 |
|
(TestLoadingProjFile) |
192 |
|
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the |
193 |
|
read tests from TestProjFile. |
194 |
|
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These |
195 |
|
tests are now in the new classes. |
196 |
|
(sample_projfile, sample_projfile_data) |
197 |
|
(sample_projfile2, sample_projfile_data2): Removed. Not used |
198 |
|
anymore. |
199 |
|
(TestProjFile.test_read_unreadable_file): No need to reset the |
200 |
|
permissions at the end anymore since we use a unique filename |
201 |
|
|
202 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
203 |
|
|
204 |
|
* test/test_proj.py: Some more refactoring of the test cases |
205 |
|
(ProjFileTest): New base class for the proj file tests. |
206 |
|
(TestProjFile): Derive from ProjFileTest |
207 |
|
(TestProjFile.test_read_unreadable_file) |
208 |
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
209 |
|
the new filename method to get a unique filename |
210 |
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
211 |
|
(WriteProjFileTests): New class for proj file write tests. |
212 |
|
Contains the write test that were in TestProjFile originally. |
213 |
|
|
214 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
215 |
|
|
216 |
|
* test/test_proj.py (TestProjFile.testRead) |
217 |
|
(TestProjFile.test_read_non_existing_file) |
218 |
|
(TestProjFile.test_read_unreadable_file) |
219 |
|
(TestProjFile.test_read_empty_file): Split into several methods. |
220 |
|
|
221 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
222 |
|
|
223 |
|
* Thuban/UI/sizers.py: New file with custom sizers. |
224 |
|
|
225 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
226 |
|
all projection type specific panels and put them into a |
227 |
|
NotebookLikeSizer. This way the dialog doesn't change its size |
228 |
|
when a different projection is selected |
229 |
|
(ProjFrame.__init__): Rename projection_panels |
230 |
|
projection_panel_defs and reuse projection_panels for a list of |
231 |
|
the instantiated panels. |
232 |
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
233 |
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
234 |
|
the panels |
235 |
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
236 |
|
differently to make the panel narrower. |
237 |
|
(TMPanel._DoLayout): Layout the parameters in one column. |
238 |
|
|
239 |
2003-10-10 Bernhard Herzog <[email protected]> |
2003-10-10 Bernhard Herzog <[email protected]> |
240 |
|
|
241 |
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |