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