1 |
|
2003-10-30 Jan-Oliver Wagner <[email protected]> |
2 |
|
|
3 |
|
Improved APR import extension, added further EPSG definitions |
4 |
|
and some cleanup regarding string class. |
5 |
|
|
6 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo): |
7 |
|
Added test for alias 'longlat'. |
8 |
|
|
9 |
|
* Resources/Projections/epsg-deprecated.proj: New. Contains |
10 |
|
deprecated EPSG definitions. |
11 |
|
|
12 |
|
* Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added |
13 |
|
the variable names for objects. |
14 |
|
|
15 |
|
* Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New. |
16 |
|
Copied from importAPR and provided with documentation. |
17 |
|
|
18 |
|
* Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym): |
19 |
|
Moved to apr.py. |
20 |
|
(APR_View): Added object ref 'ITheme'. |
21 |
|
|
22 |
|
* Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string |
23 |
|
split function by corresponding use of the string class method. |
24 |
|
|
25 |
|
* Thuban/Model/xmlwriter.py: Replaced string replace function by |
26 |
|
corresponding string method. |
27 |
|
|
28 |
|
2003-10-29 Bernhard Herzog <[email protected]> |
29 |
|
|
30 |
|
* Thuban/UI/baserenderer.py |
31 |
|
(BaseRenderer.draw_shape_layer_incrementally): Speed up the |
32 |
|
special case of a classification that only has the default group |
33 |
|
|
34 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
35 |
|
|
36 |
|
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
37 |
|
|
38 |
|
* po/de.po: Update. |
39 |
|
|
40 |
|
* Thuban/UI/application.py |
41 |
|
(ThubanApplication.ShowExceptionDialog): Handle translation of the |
42 |
|
dialog message properly |
43 |
|
|
44 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
Rework how localization works so that we use wx's translation |
47 |
|
functions when running Thuban as a normal application but not when |
48 |
|
we don't need any UI, such as in the test suite. See the comment |
49 |
|
in Thuban/__init__.py for details |
50 |
|
|
51 |
|
* Thuban/__init__.py (_): Add one level of indirection to make the |
52 |
|
translation handling more flexible and to make it possible to use |
53 |
|
either wx's translation services or not. |
54 |
|
(gettext_identity, translation_function_installed) |
55 |
|
(install_translation_function): New function to help with this |
56 |
|
|
57 |
|
* Thuban/UI/__init__.py: Install the wx specific translation |
58 |
|
function if it's OK to do that |
59 |
|
|
60 |
|
* test/support.py (initthuban): Install a dummy translation |
61 |
|
function so that importing Thuban.UI doesn't install a wx specific |
62 |
|
one for which would need to import wxPython |
63 |
|
|
64 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
65 |
|
|
66 |
|
* HOWTO-Release: Source archives should be created first and the |
67 |
|
binary packages should be created from the source archives. |
68 |
|
There's an official debian package now so there's no need to test |
69 |
|
the rpm on debian anymore |
70 |
|
|
71 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
72 |
|
|
73 |
|
Several rendering changes: |
74 |
|
|
75 |
|
- Render the selection into a separate bitmap so that only that |
76 |
|
bitmap needs to be redrawn when the selection changes |
77 |
|
|
78 |
|
- Render incrementally showing previews and allowing interaction |
79 |
|
before rendering is complete |
80 |
|
|
81 |
|
- Update the renderer interface a bit. Most parameters of |
82 |
|
RenderMap are now parameters of the constructor |
83 |
|
|
84 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map |
85 |
|
and the update region as parameters. Update the doc-string |
86 |
|
(BaseRenderer.render_map_incrementally): New. Generator function |
87 |
|
to renders the map incrementally |
88 |
|
(BaseRenderer.render_map): Remove the map argument (it's now in |
89 |
|
the constructor) and simply iterate over the |
90 |
|
render_map_incrementally generator to draw the map. |
91 |
|
(BaseRenderer.draw_shape_layer_incrementally) |
92 |
|
(BaseRenderer.draw_shape_layer): Renamed to |
93 |
|
draw_shape_layer_incrementally and changed into a generator that |
94 |
|
yields True every 500 shapes. Used by render_map_incrementally to |
95 |
|
render shape layers incrementally |
96 |
|
|
97 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the |
98 |
|
map and region parameters which are now in the constructor |
99 |
|
(ScreenRenderer.RenderMapIncrementally): New. Public frontend for |
100 |
|
the inherited render_map_incrementally. |
101 |
|
(BaseRenderer.draw_shape_layer): Removed. |
102 |
|
(ScreenRenderer.draw_selection_incrementally): New. The selection |
103 |
|
drawing part of the removed draw_shape_layer as a generator |
104 |
|
(ScreenRenderer.layer_shapes): Update because of the region |
105 |
|
parameter change |
106 |
|
(ExportRenderer.__init__): New. Extend the inherited constructor |
107 |
|
with the destination region for the drawing |
108 |
|
(ExportRenderer.RenderMap): Removed the map and region parameters |
109 |
|
which are now in the constructor |
110 |
|
|
111 |
|
* Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a |
112 |
|
bitmap suitable for a preview in a tool |
113 |
|
(CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the |
114 |
|
bitmap |
115 |
|
(MapPrintout.draw_on_dc): Adapt to new renderer interface |
116 |
|
(MapCanvas.OnPaint): Handle drawing the selection bitmap if it |
117 |
|
exists |
118 |
|
(MapCanvas.OnIdle): Update the logic to deal with incremental |
119 |
|
rendering and the selection bitmap |
120 |
|
(MapCanvas._do_redraw): Handle the instantiation of the render |
121 |
|
iterator and the redraws during rendering |
122 |
|
(MapCanvas._render_iterator): New. Generator to incrementally |
123 |
|
redraw both bitmaps |
124 |
|
(MapCanvas.Export): Adapt to new renderer interface. |
125 |
|
(MapCanvas.full_redraw): Reset the selection bitmap and the |
126 |
|
renderer iterator too |
127 |
|
(MapCanvas.redraw_selection): New. Force a redraw of the selection |
128 |
|
bitmap |
129 |
|
(MapCanvas.shape_selected): Only redraw the selection bitmap |
130 |
|
|
131 |
|
* test/test_baserenderer.py |
132 |
|
(TestBaseRenderer.test_polygon_no_projection) |
133 |
|
(TestBaseRenderer.test_raster_no_projection) |
134 |
|
(TestBaseRenderer.test_point_map_projection) |
135 |
|
(TestBaseRenderer.test_point_layer_and_map_projection) |
136 |
|
(TestBaseRenderer.test_point_layer_projection) |
137 |
|
(TestBaseRenderer.test_point_with_classification): Adapt to new |
138 |
|
renderer interface |
139 |
|
|
140 |
|
2003-10-24 Bernhard Herzog <[email protected]> |
141 |
|
|
142 |
|
* libraries/thuban/wxproj.cpp (draw_polygon_shape) |
143 |
|
(point_in_polygon_shape, shape_centroid): Raise an exception if |
144 |
|
the shape can't be read. Previously invalid shape ids would lead |
145 |
|
to a segfault. |
146 |
|
|
147 |
|
* test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id): |
148 |
|
New. test whether an exception is raised for invalid shape ids |
149 |
|
|
150 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
151 |
|
|
152 |
|
* Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat' |
153 |
|
as alias for 'latlong'. |
154 |
|
|
155 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat' |
156 |
|
as alias for 'latlong'. |
157 |
|
|
158 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
159 |
|
|
160 |
|
* Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set |
161 |
|
the projection even for the UnknownPanel. |
162 |
|
(UnknownProjPanel.__init__): Define the text and create the textctrl |
163 |
|
widget. |
164 |
|
(UnknownProjPanel._DoLayout): Replaced static text widget by the |
165 |
|
textctrl created in __init__. |
166 |
|
(UnknownProjPanel.SetProjection): Set the text for the text ctrl |
167 |
|
including the parameters of the projection. |
168 |
|
|
169 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
170 |
|
|
171 |
|
* Resources/Projections/epsg.proj: New. This is a list of |
172 |
|
EPSG codes with parameters for proj. The list has been |
173 |
|
generated using devtools/create_epsg.py based on the |
174 |
|
file nad/epsg of the proj 4.4.7 package. Four projection |
175 |
|
definitions have been deleted as they are not accepted by proj: |
176 |
|
"CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03" |
177 |
|
and "HD72 / EOV". |
178 |
|
|
179 |
|
2003-10-22 Bernhard Herzog <[email protected]> |
180 |
|
|
181 |
|
Some more tweaks to the projection dialog which should fix RT |
182 |
|
#1886. |
183 |
|
|
184 |
|
* Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from |
185 |
|
the ProjFile's messages and call the base class methods correctly |
186 |
|
(ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED |
187 |
|
flag on the newly selected item too. Otherwise some other item is |
188 |
|
focused and the first time the focus is moved with the keyboard |
189 |
|
the selection moves in unexpected ways. |
190 |
|
|
191 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the |
192 |
|
focus on the OK button, only on the projection list. That way the |
193 |
|
list really has the focus initially |
194 |
|
(ProjFrame.OnClose): Call the projection list's Destroy method to |
195 |
|
make it unsubscribe all messages |
196 |
|
|
197 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
198 |
|
|
199 |
|
Rework the projection dialog to fix a few bugs, including RT 2166 |
200 |
|
and most of 2168 |
201 |
|
|
202 |
|
* Thuban/UI/projlist.py: New. The class ProjectionList is a |
203 |
|
special wxListCtrl to show a list of projections in a more MVC |
204 |
|
fashion |
205 |
|
|
206 |
|
* Thuban/UI/projdialog.py (ProjFrame): Substantial changes |
207 |
|
throughout the class. The main change is to use the ProjectionList |
208 |
|
class instead of a normal wxListBox. Also, add an explicit |
209 |
|
"Unknown" projection to the projection choice control. |
210 |
|
(ProjPanel.__init__): Add an "unknown" ellipsoid |
211 |
|
(TMPanel.__init__, LCCPanel.__init__): Tweak the order of |
212 |
|
instantiation of the panel's controls to make the tab-order more |
213 |
|
natural |
214 |
|
|
215 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
216 |
|
|
217 |
|
* test/test_load.py (TestSingleLayer.file_contents) |
218 |
|
(TestSingleLayer.test): Add non-ascii characters to the titles of |
219 |
|
session, map and layer. This is effectively a port of the |
220 |
|
TestUnicodeStrings test in test_load_0_8.py which for some reason |
221 |
|
was only added there. |
222 |
|
|
223 |
|
* test/test_load_0_9.py (TestSingleLayer.file_contents) |
224 |
|
(TestSingleLayer.test): Same as in test_load.py: add non-ascii |
225 |
|
characters to the titles of session, map and layer,. |
226 |
|
|
227 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
228 |
|
|
229 |
|
Add EPSG projection handling to .thuban files |
230 |
|
|
231 |
|
* test/test_save.py (SaveSessionTest.dtd) |
232 |
|
(SaveSessionTest.testEmptySession) |
233 |
|
(SaveSessionTest.testLayerProjection) |
234 |
|
(SaveSessionTest.testRasterLayer) |
235 |
|
(SaveSessionTest.testClassifiedLayer) |
236 |
|
(SaveSessionTest.test_dbf_table) |
237 |
|
(SaveSessionTest.test_joined_table) |
238 |
|
(SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace |
239 |
|
(SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and |
240 |
|
use a and epsg projection to test saving them |
241 |
|
|
242 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev |
243 |
|
namespace |
244 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
245 |
|
(TestLayerProjection.file_contents) |
246 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
247 |
|
(TestPostGISLayer.file_contents) |
248 |
|
(TestPostGISLayerPassword.file_contents) |
249 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to use |
250 |
|
1.0-dev namespace |
251 |
|
(TestSingleLayer.file_contents, TestSingleLayer.test): Update to |
252 |
|
use 1.0-dev namespace and use an EPSG projection to test whether |
253 |
|
loading it works |
254 |
|
|
255 |
|
* test/test_load_0_9.py: New. Effectively a copy of test_load.py |
256 |
|
as of Thuban 0.9. These are now tests to determine whether Thuban |
257 |
|
can still read files generated by Thuban 0.9 |
258 |
|
|
259 |
|
* Thuban/Model/save.py (SessionSaver.write) |
260 |
|
(SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev |
261 |
|
namespace |
262 |
|
(SessionSaver.write_projection): Write the projection's epsg |
263 |
|
attribute |
264 |
|
|
265 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Also accept the |
266 |
|
thuban-1.0-dev.dtd namespace |
267 |
|
(SessionLoader.check_attrs): Allow a callable object as conversion |
268 |
|
too |
269 |
|
(SessionLoader.start_projection, SessionLoader.end_projection) |
270 |
|
(SessionLoader.start_parameter): Handle the epsg attribute and |
271 |
|
rename a few instance variables to lower case |
272 |
|
|
273 |
|
* Resources/XML/thuban-1.0.dtd: New. Only difference to |
274 |
|
thuban-0.9.dtd is the epsg attribute for projections. |
275 |
|
|
276 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
277 |
|
|
278 |
|
* test/runtests.py (main): Let the user specify which tests to run |
279 |
|
on the command line |
280 |
|
|
281 |
|
* test/support.py (ThubanTestResult.getDescription): Override to |
282 |
|
give a better short description. The description can be used as a |
283 |
|
parameter to run_tests to run that particular test in isolation. |
284 |
|
|
285 |
|
2003-10-21 Frank Koormann <[email protected]> |
286 |
|
|
287 |
|
Popup menu for legend. Scheduled for the 1.2 release this was too |
288 |
|
simple to implement: The popup menu is bound to the legend tree, while |
289 |
|
the events are hanlded by its anchestor, the legend panel. This |
290 |
|
allows reuse of all the event handlers already implemented for the |
291 |
|
legend toolbar buttons. |
292 |
|
|
293 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros |
294 |
|
to add handlers for the events issued by the popup menu. |
295 |
|
(LegendPanel._OnToggleVisibility): Handler for toggling layer |
296 |
|
visibility event |
297 |
|
(LegendPanel._OnProjection): Handler for layer projection event. |
298 |
|
(LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK |
299 |
|
(LegendTree._OnRightClick): Event handler for right click, select item |
300 |
|
and pop up menu. |
301 |
|
(LegendTree.ToggleVisibility): Toggle layer visibility |
302 |
|
(LegendTree.LayerProjection): Raise layer projection dialog for |
303 |
|
current layer. |
304 |
|
|
305 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
306 |
|
|
307 |
|
* Resources/Projections/defaults.proj: Use correct DOCTYPE |
308 |
|
declaration. The top-level element is projectionlist not projfile |
309 |
|
|
310 |
2003-10-20 Bernhard Herzog <[email protected]> |
2003-10-20 Bernhard Herzog <[email protected]> |
311 |
|
|
312 |
* Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper |
* Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper |