1 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
* Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set |
4 |
|
the projection even for the UnknownPanel. |
5 |
|
(UnknownProjPanel.__init__): Define the text and create the textctrl |
6 |
|
widget. |
7 |
|
(UnknownProjPanel._DoLayout): Replaced static text widget by the |
8 |
|
textctrl created in __init__. |
9 |
|
(UnknownProjPanel.SetProjection): Set the text for the text ctrl |
10 |
|
including the parameters of the projection. |
11 |
|
|
12 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
13 |
|
|
14 |
|
* Resources/Projections/epsg.proj: New. This is a list of |
15 |
|
EPSG codes with parameters for proj. The list has been |
16 |
|
generated using devtools/create_epsg.py based on the |
17 |
|
file nad/epsg of the proj 4.4.7 package. Four projection |
18 |
|
definitions have been deleted as they are not accepted by proj: |
19 |
|
"CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03" |
20 |
|
and "HD72 / EOV". |
21 |
|
|
22 |
|
2003-10-22 Bernhard Herzog <[email protected]> |
23 |
|
|
24 |
|
Some more tweaks to the projection dialog which should fix RT |
25 |
|
#1886. |
26 |
|
|
27 |
|
* Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from |
28 |
|
the ProjFile's messages and call the base class methods correctly |
29 |
|
(ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED |
30 |
|
flag on the newly selected item too. Otherwise some other item is |
31 |
|
focused and the first time the focus is moved with the keyboard |
32 |
|
the selection moves in unexpected ways. |
33 |
|
|
34 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the |
35 |
|
focus on the OK button, only on the projection list. That way the |
36 |
|
list really has the focus initially |
37 |
|
(ProjFrame.OnClose): Call the projection list's Destroy method to |
38 |
|
make it unsubscribe all messages |
39 |
|
|
40 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
41 |
|
|
42 |
|
Rework the projection dialog to fix a few bugs, including RT 2166 |
43 |
|
and most of 2168 |
44 |
|
|
45 |
|
* Thuban/UI/projlist.py: New. The class ProjectionList is a |
46 |
|
special wxListCtrl to show a list of projections in a more MVC |
47 |
|
fashion |
48 |
|
|
49 |
|
* Thuban/UI/projdialog.py (ProjFrame): Substantial changes |
50 |
|
throughout the class. The main change is to use the ProjectionList |
51 |
|
class instead of a normal wxListBox. Also, add an explicit |
52 |
|
"Unknown" projection to the projection choice control. |
53 |
|
(ProjPanel.__init__): Add an "unknown" ellipsoid |
54 |
|
(TMPanel.__init__, LCCPanel.__init__): Tweak the order of |
55 |
|
instantiation of the panel's controls to make the tab-order more |
56 |
|
natural |
57 |
|
|
58 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
59 |
|
|
60 |
|
* test/test_load.py (TestSingleLayer.file_contents) |
61 |
|
(TestSingleLayer.test): Add non-ascii characters to the titles of |
62 |
|
session, map and layer. This is effectively a port of the |
63 |
|
TestUnicodeStrings test in test_load_0_8.py which for some reason |
64 |
|
was only added there. |
65 |
|
|
66 |
|
* test/test_load_0_9.py (TestSingleLayer.file_contents) |
67 |
|
(TestSingleLayer.test): Same as in test_load.py: add non-ascii |
68 |
|
characters to the titles of session, map and layer,. |
69 |
|
|
70 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
71 |
|
|
72 |
|
Add EPSG projection handling to .thuban files |
73 |
|
|
74 |
|
* test/test_save.py (SaveSessionTest.dtd) |
75 |
|
(SaveSessionTest.testEmptySession) |
76 |
|
(SaveSessionTest.testLayerProjection) |
77 |
|
(SaveSessionTest.testRasterLayer) |
78 |
|
(SaveSessionTest.testClassifiedLayer) |
79 |
|
(SaveSessionTest.test_dbf_table) |
80 |
|
(SaveSessionTest.test_joined_table) |
81 |
|
(SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace |
82 |
|
(SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and |
83 |
|
use a and epsg projection to test saving them |
84 |
|
|
85 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev |
86 |
|
namespace |
87 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
88 |
|
(TestLayerProjection.file_contents) |
89 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
90 |
|
(TestPostGISLayer.file_contents) |
91 |
|
(TestPostGISLayerPassword.file_contents) |
92 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to use |
93 |
|
1.0-dev namespace |
94 |
|
(TestSingleLayer.file_contents, TestSingleLayer.test): Update to |
95 |
|
use 1.0-dev namespace and use an EPSG projection to test whether |
96 |
|
loading it works |
97 |
|
|
98 |
|
* test/test_load_0_9.py: New. Effectively a copy of test_load.py |
99 |
|
as of Thuban 0.9. These are now tests to determine whether Thuban |
100 |
|
can still read files generated by Thuban 0.9 |
101 |
|
|
102 |
|
* Thuban/Model/save.py (SessionSaver.write) |
103 |
|
(SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev |
104 |
|
namespace |
105 |
|
(SessionSaver.write_projection): Write the projection's epsg |
106 |
|
attribute |
107 |
|
|
108 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Also accept the |
109 |
|
thuban-1.0-dev.dtd namespace |
110 |
|
(SessionLoader.check_attrs): Allow a callable object as conversion |
111 |
|
too |
112 |
|
(SessionLoader.start_projection, SessionLoader.end_projection) |
113 |
|
(SessionLoader.start_parameter): Handle the epsg attribute and |
114 |
|
rename a few instance variables to lower case |
115 |
|
|
116 |
|
* Resources/XML/thuban-1.0.dtd: New. Only difference to |
117 |
|
thuban-0.9.dtd is the epsg attribute for projections. |
118 |
|
|
119 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
120 |
|
|
121 |
|
* test/runtests.py (main): Let the user specify which tests to run |
122 |
|
on the command line |
123 |
|
|
124 |
|
* test/support.py (ThubanTestResult.getDescription): Override to |
125 |
|
give a better short description. The description can be used as a |
126 |
|
parameter to run_tests to run that particular test in isolation. |
127 |
|
|
128 |
|
2003-10-21 Frank Koormann <[email protected]> |
129 |
|
|
130 |
|
Popup menu for legend. Scheduled for the 1.2 release this was too |
131 |
|
simple to implement: The popup menu is bound to the legend tree, while |
132 |
|
the events are hanlded by its anchestor, the legend panel. This |
133 |
|
allows reuse of all the event handlers already implemented for the |
134 |
|
legend toolbar buttons. |
135 |
|
|
136 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros |
137 |
|
to add handlers for the events issued by the popup menu. |
138 |
|
(LegendPanel._OnToggleVisibility): Handler for toggling layer |
139 |
|
visibility event |
140 |
|
(LegendPanel._OnProjection): Handler for layer projection event. |
141 |
|
(LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK |
142 |
|
(LegendTree._OnRightClick): Event handler for right click, select item |
143 |
|
and pop up menu. |
144 |
|
(LegendTree.ToggleVisibility): Toggle layer visibility |
145 |
|
(LegendTree.LayerProjection): Raise layer projection dialog for |
146 |
|
current layer. |
147 |
|
|
148 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
149 |
|
|
150 |
|
* Resources/Projections/defaults.proj: Use correct DOCTYPE |
151 |
|
declaration. The top-level element is projectionlist not projfile |
152 |
|
|
153 |
|
2003-10-20 Bernhard Herzog <[email protected]> |
154 |
|
|
155 |
|
* Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper |
156 |
|
method to write a projfile and display a busy cursor and error |
157 |
|
dialogs. |
158 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport) |
159 |
|
(ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file |
160 |
|
(ProjFrame.__FillAvailList): Translate "<None>" too and display a |
161 |
|
busy cursor while loading the user and system prj files. |
162 |
|
|
163 |
|
2003-10-16 Bernhard Herzog <[email protected]> |
164 |
|
|
165 |
|
* Thuban/Model/resource.py (projfile_cache): Introduce a cache for |
166 |
|
ProjFile objects |
167 |
|
(clear_proj_file_cache): New function to clear the cache. Mainly |
168 |
|
useful for use by the test suite |
169 |
|
(read_proj_file): Use the cache. |
170 |
|
|
171 |
|
* test/test_proj.py (TestProjFile): Clarify the doc-string |
172 |
|
(ProjFileReadTests): Update doc-string |
173 |
|
(ProjFileReadTests.test_get_system_proj_file): Check whether the |
174 |
|
system proj files is cached. |
175 |
|
(ProjFileLoadTestCase): New base class for the proj file tests |
176 |
|
derived from support.FileLoadTestCase to provide some common |
177 |
|
behavior. |
178 |
|
(TestLoadingProjFile) |
179 |
|
(TestLoadingProjFileWithEmptyProjectionlist.file_contents) |
180 |
|
(TestProjFileWithInvalidParameters.file_contents): Derive from |
181 |
|
ProjFileLoadTestCase |
182 |
|
(TestLoadingProjFile.test_caching): New. Test whether the cache |
183 |
|
works |
184 |
|
|
185 |
|
2003-10-16 Silke Reimer <[email protected]> |
186 |
|
|
187 |
|
* debian/*: New directory with configuration files for building a thuban |
188 |
|
deb-package. |
189 |
|
|
190 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
191 |
|
|
192 |
|
* test/test_proj.py: Execute support.run_tests when run as |
193 |
|
__main__ so that missing unsubscribes are detected |
194 |
|
(TestProjFile.tearDown): Destroy the proj_file properly |
195 |
|
|
196 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
197 |
|
|
198 |
|
* Thuban/Model/messages.py (PROJECTION_ADDED) |
199 |
|
(PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for |
200 |
|
the ProjFile objects |
201 |
|
|
202 |
|
* Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can |
203 |
|
easily send messages when the projections change |
204 |
|
(ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages |
205 |
|
when the change was successful |
206 |
|
|
207 |
|
* test/test_proj.py (TestProjFile.setUp): Subscribe to some of the |
208 |
|
proj file messages |
209 |
|
(TestProjFile.test_add_remove) |
210 |
|
(TestProjFile.test_remove_non_existing) |
211 |
|
(TestProjFile.test_replace) |
212 |
|
(TestProjFile.test_replace_non_existing): Test whether the right |
213 |
|
messages are sent |
214 |
|
|
215 |
2003-10-14 Bernhard Herzog <[email protected]> |
2003-10-14 Bernhard Herzog <[email protected]> |
216 |
|
|
217 |
* test/test_proj.py (TestProjFile.test): Refactor into several |
* test/test_proj.py (TestProjFile.test): Refactor into several |