1 |
|
2003-11-19 Bernhard Herzog <[email protected]> |
2 |
|
|
3 |
|
* test/test_table.py: Revert to revision 1.5 again. Changing the |
4 |
|
tests to use the new table interface is completely wrong since the |
5 |
|
whole purpose of the tests in this module is to test the old |
6 |
|
interface. |
7 |
|
|
8 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
9 |
|
|
10 |
|
* Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters): |
11 |
|
New. Test whether the connection matches a set of connection |
12 |
|
parameters |
13 |
|
|
14 |
|
* Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string |
15 |
|
(DBFrame.OnAdd): Use the new MatchesParameters method when looking |
16 |
|
for existing connections with the same parameters and break out of |
17 |
|
the loop correctly. |
18 |
|
|
19 |
|
* test/test_postgis_db.py (TestBriefDescription) |
20 |
|
(TestPostGISSimple.test_brief_description): Rename |
21 |
|
TestBriefDescription to TestPostGISSimple and the test method to |
22 |
|
test_brief_description so that we can add more test methods. |
23 |
|
(TestPostGISSimple.test_matches_parameters): New. Test the new |
24 |
|
MatchesParameters method |
25 |
|
|
26 |
|
2003-11-18 Bernhard Herzog <[email protected]> |
27 |
|
|
28 |
|
* Thuban/Lib/connector.py (Publisher): Introduce a new flag, |
29 |
|
_was_destroyed, to indicate whether an publisher instance has |
30 |
|
already been destroyed. |
31 |
|
(Publisher.Unsubscribe): Only disconnect if the publisher has not |
32 |
|
been destroyed yet. |
33 |
|
(Publisher.Destroy): Set the _was_destroyed flag to true. |
34 |
|
|
35 |
|
* test/test_connector.py |
36 |
|
(TestPublisher.test_unsubscribe_after_destroy): New. Test that |
37 |
|
calling Unsubscribe after Destroy doesn't raise an exception |
38 |
|
|
39 |
|
2003-11-14 Bernhard Herzog <[email protected]> |
40 |
|
|
41 |
|
* Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix |
42 |
|
typo in doc-string |
43 |
|
|
44 |
|
2003-11-13 Bernhard Herzog <[email protected]> |
45 |
|
|
46 |
|
Quote table and column names properly for postgis. |
47 |
|
|
48 |
|
* Thuban/Model/postgisdb.py (quote_identifier): New. Function to |
49 |
|
quote an identifier for use in an sql statement |
50 |
|
(PostGISColumn.__init__): Add the quoted_name attribute |
51 |
|
(PostGISTable.__init__): New instance variable quoted_tablename |
52 |
|
(PostGISTable._fetch_table_information): Use the quoted table |
53 |
|
name. New isntance variable quoted_geo_col with a quoted version |
54 |
|
of geometry_column |
55 |
|
(PostGISTable.NumRows, PostGISTable.RowIdToOrdinal) |
56 |
|
(PostGISTable.RowOrdinalToId): Use the quoted table name |
57 |
|
(PostGISTable.ReadValue, PostGISTable.ValueRange) |
58 |
|
(PostGISTable.UniqueValues, PostGISTable.SimpleQuery) |
59 |
|
(PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape) |
60 |
|
(PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion): |
61 |
|
Use quoted table and column names |
62 |
|
|
63 |
|
* test/test_postgis_db.py (TestPostGISSpecialCases) |
64 |
|
(TestPostGISIgnoredColumns): Rename the class to |
65 |
|
TestPostGISSpecialCases because that better describes the new |
66 |
|
cases |
67 |
|
(TestPostGISSpecialCases.test_unsupported_types) |
68 |
|
(TestPostGISSpecialCases.test): Rename the method to |
69 |
|
test_unsupported_types because we need a more descriptive name now |
70 |
|
that there are more methods |
71 |
|
(TestPostGISSpecialCases.test_table_name_quoting) |
72 |
|
(TestPostGISSpecialCases.test_column_name_quoting) |
73 |
|
(TestPostGISSpecialCases.test_shapestore_name_quoting): New test |
74 |
|
cases to test quoting of table and column names in PostGISTable |
75 |
|
and PostGISShapeStore |
76 |
|
|
77 |
|
* test/postgissupport.py |
78 |
|
(skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if |
79 |
|
AddGeometryColumn desn't support table or column names with sapces |
80 |
|
or double quotes |
81 |
|
|
82 |
|
2003-11-12 Jan-Oliver Wagner <[email protected]> |
83 |
|
|
84 |
|
* Extensions/wms/__init__.py: New: Init to make this |
85 |
|
directory a package. |
86 |
|
|
87 |
|
* Extensions/wms/wms.py: New: Provide layers via OGC WMS. |
88 |
|
|
89 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
90 |
|
|
91 |
|
* Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New. |
92 |
|
Constant for the file woth deprecated epsg projections |
93 |
|
(get_system_proj_file): Update doc-string |
94 |
|
|
95 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space |
96 |
|
above the EPS widgets, introduce a check box for the deprecated |
97 |
|
eps projections and a label for the epsg widgets |
98 |
|
(ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections |
99 |
|
too |
100 |
|
|
101 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
102 |
|
|
103 |
|
Avoid warnings when run under Python 2.3 |
104 |
|
|
105 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape) |
106 |
|
(BaseRenderer.draw_label_layer): Coordinates must be ints. |
107 |
|
|
108 |
|
* Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a |
109 |
|
real method so that we can convert to int. |
110 |
|
(MapRenderer.label_font): The font size mist be an int. |
111 |
|
|
112 |
|
* Thuban/UI/common.py (Color2wxColour): The color values must be |
113 |
|
ints. Also, remove the unnecessary asserts. |
114 |
|
|
115 |
|
* test/test_load_0_8.py (TestUnicodeStrings.file_contents) |
116 |
|
(TestUnicodeStrings.test): Python source code should not contain |
117 |
|
non-ascii characters unless an encoding is specified in the file. |
118 |
|
Therefore use \x escapes in the string literals for non-ascii |
119 |
|
characters. |
120 |
|
|
121 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
122 |
|
|
123 |
|
* Thuban/Model/resource.py (get_system_proj_file): Add a filename |
124 |
|
parameter so that this function can be used for all proj files in |
125 |
|
Resource/Projections |
126 |
|
(DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for |
127 |
|
get_system_proj_file |
128 |
|
|
129 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one |
130 |
|
ProjFile self.__sysProjFile use a dictionary of system ProjFile |
131 |
|
objects self._sys_proj_files |
132 |
|
(ProjFrame.build_dialog): Adapt to the new changes in the |
133 |
|
ProjectionList constructor. Add a check button to toggle whether |
134 |
|
EPSG projections are shown |
135 |
|
(ProjFrame._OnShowEPSG): New. Handler for the epsg check button |
136 |
|
events. |
137 |
|
(ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show |
138 |
|
the busy cursor if the files have not yet been loaded by the |
139 |
|
dialog. |
140 |
|
(ProjFrame.load_system_proj): Add a parameter for the name of the |
141 |
|
proj file. Maintain the dictionary of system projections |
142 |
|
self._sys_proj_files |
143 |
|
|
144 |
|
* Thuban/UI/projlist.py (ProjectionList): Merge the system_projs, |
145 |
|
user_projs parameters into one parameter proj_files which is a |
146 |
|
list of proj files. |
147 |
|
(ProjectionList._subscribe_proj_files) |
148 |
|
(ProjectionList._unsubscribe_proj_files): New. Move |
149 |
|
subscription/unsubscription of projfile messages to separate |
150 |
|
methods |
151 |
|
(ProjectionList.Destroy): The unsubscribe is now done in |
152 |
|
_unsubscribe_proj_files |
153 |
|
(ProjectionList.update_projections): We now have a list of proj |
154 |
|
file objects |
155 |
|
(ProjectionList.SetProjFiles): New method to set a new list of |
156 |
|
proj file objects |
157 |
|
|
158 |
|
* test/test_proj.py (ProjFileReadTests.test_get_system_proj_file): |
159 |
|
Specify explicitly which system proj file to load. |
160 |
|
|
161 |
|
2003-11-11 Bernhard Herzog <[email protected]> |
162 |
|
|
163 |
|
* Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all |
164 |
|
instance variables to cut cyclic references. The GC would have |
165 |
|
collected the loader eventually but it can happen that it doesn't |
166 |
|
run at all until thuban is closed (2.3 but not 2.2 tries a bit |
167 |
|
harder and forces a collection when the interpreter terminates) |
168 |
|
(load_session): Call the handler's Destroy method to make sure |
169 |
|
that it gets garbage collected early. Otherwise it will be |
170 |
|
collected very late if at all and it holds some references to e.g. |
171 |
|
shapestores and the session which can lead to leaks (of e.g. the |
172 |
|
temporary files) |
173 |
|
|
174 |
|
* test/test_load.py (TestSingleLayer.test_leak): New. test for the |
175 |
|
resource leak in load_session |
176 |
|
|
177 |
|
2003-11-10 Bernhard Herzog <[email protected]> |
178 |
|
|
179 |
|
* Thuban/UI/baserenderer.py: Add a way to specify how layers in |
180 |
|
extensions are to be rendered. |
181 |
|
(_renderer_extensions): New. List with renderer for layers in |
182 |
|
extensions |
183 |
|
(add_renderer_extension): New. Add a renderer extension |
184 |
|
(init_renderer_extensions): New. Init the renderer extensions |
185 |
|
(BaseRenderer.render_map_incrementally): Search |
186 |
|
_renderer_extensions for how to draw unknown layer types |
187 |
|
(BaseRenderer.draw_raster_data): Add format parameter so that |
188 |
|
formats other than BMP can be drawn |
189 |
|
(BaseRenderer.draw_raster_layer): Pass an explicit format to |
190 |
|
draw_raster_data |
191 |
|
|
192 |
|
* Thuban/UI/renderer.py (raster_format_map): New. Mapping form the |
193 |
|
strings of the format parameter of draw_raster_data method to wx |
194 |
|
constants |
195 |
|
(MapRenderer.draw_raster_data): Add the format parameter and use |
196 |
|
raster_format_map to map it to the right wxwindows constant for |
197 |
|
wxImageFromStream |
198 |
|
|
199 |
|
* test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add |
200 |
|
the format parameter and record it |
201 |
|
(TestBaseRenderer.test_raster_no_projection): check the format |
202 |
|
paramter of the draw_raster_data method |
203 |
|
(TestBaseRenderer.test_renderer_extension): New. Test the renderer |
204 |
|
extension facility |
205 |
|
|
206 |
|
2003-11-07 Bernhard Herzog <[email protected]> |
207 |
|
|
208 |
|
Tweak the usage of the sqlite database to make common use cases |
209 |
|
more responsive. In most cases copying the data to the sqlite |
210 |
|
database takes so long that using sqlite doesn't have enough |
211 |
|
advantages. |
212 |
|
|
213 |
|
* Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add |
214 |
|
comments about performance and query the min and max in separate |
215 |
|
statements because only that way will indexes be used. |
216 |
|
(TransientTableBase.UniqueValues): Add some comments about |
217 |
|
performance. |
218 |
|
(AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues): |
219 |
|
Do not copy the data to the transient DB but use the transient |
220 |
|
copy if it exists. See the new comments for the performance trade |
221 |
|
offs |
222 |
|
|
223 |
|
* test/test_transientdb.py |
224 |
|
(TestTransientTable.test_auto_transient_table): Make sure that the |
225 |
|
data is copied to the transient database at some point. |
226 |
|
|
227 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
228 |
|
|
229 |
|
* Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some |
230 |
|
globals to locals so that it's a bit faster |
231 |
|
|
232 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
233 |
|
|
234 |
|
* Thuban/UI/baserenderer.py |
235 |
|
(BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue |
236 |
|
method. ReadValue is faster than ReadRowAsDict since it only reads |
237 |
|
one cell especially now that the dbf file objects actually |
238 |
|
implement it. |
239 |
|
|
240 |
|
* Thuban/Model/table.py (DBFTable.ReadValue): Use the new |
241 |
|
read_attribute method of the dbf objects |
242 |
|
|
243 |
|
2003-11-03 Bernhard Herzog <[email protected]> |
244 |
|
|
245 |
|
* Extensions/profiling/profiling.py (popup_dialog_box): New config |
246 |
|
variable to indicate whether the result should be shown in a |
247 |
|
dialog box |
248 |
|
(profile_screen_renderer, time_screen_renderer): Only show a |
249 |
|
dialog box if popup_dialog_box is true. |
250 |
|
(profile_screen_renderer): Flush stdout after the printing the |
251 |
|
first part of the "profiling..." message |
252 |
|
|
253 |
|
* Thuban/UI/baserenderer.py |
254 |
|
(BaseRenderer.draw_shape_layer_incrementally): Cache the pens and |
255 |
|
brushes for the groups so that they're not created over and over |
256 |
|
again |
257 |
|
|
258 |
|
* Thuban/Model/classification.py (Classification.__getattr__) |
259 |
|
(Classification._compile_classification) |
260 |
|
(Classification._clear_compiled_classification): New. Methods to |
261 |
|
manage a 'compiled' representation of the classification groups |
262 |
|
which is created on demand |
263 |
|
(Classification.InsertGroup, Classification.RemoveGroup) |
264 |
|
(Classification.ReplaceGroup): reset the compiled representation |
265 |
|
(Classification.FindGroup): Use the compiled representation to |
266 |
|
find the matching group |
267 |
|
(ClassGroupRange.GetRangeTuple): New. Return the range as a tuple |
268 |
|
|
269 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
270 |
|
|
271 |
|
* Thuban/Model/classification.py (Classification.SetDefaultGroup): |
272 |
|
Send a CLASS_CHANGED message |
273 |
|
(Classification.RemoveGroup): Send a CLASS_CHANGED message and do |
274 |
|
not return the removed group since it wasn't used. |
275 |
|
|
276 |
|
* test/test_classification.py |
277 |
|
(TestClassification.test_set_default_group): New. Test the |
278 |
|
SetDefaultGroup method |
279 |
|
(TestClassification.test_insert_group): New. Test the InsertGroup |
280 |
|
method |
281 |
|
(TestClassification.test_remove_group): New. Test the RemoveGroup |
282 |
|
method |
283 |
|
(TestClassification.test_replace_group): New. Test the |
284 |
|
ReplaceGroup method |
285 |
|
|
286 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
287 |
|
|
288 |
|
* test/test_classification.py (TestClassification.setUp): |
289 |
|
Subscribe to the CLASS_CHANGED messages |
290 |
|
(TestClassification.tearDown): New. Destroy the classification |
291 |
|
properly |
292 |
|
(TestClassification.test_defaults): Add tests for the default line |
293 |
|
width and whether no messages were sent yet |
294 |
|
(TestClassification.test_set_default_properties): Add tests for |
295 |
|
messages and setting the default line width |
296 |
|
(TestClassification.test_add_singleton) |
297 |
|
(TestClassification.test_add_range) |
298 |
|
(TestClassification.test_multiple_groups): Add tests for messages |
299 |
|
|
300 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
301 |
|
|
302 |
|
Some more refactoring in preparation for new tests: |
303 |
|
|
304 |
|
* test/test_classification.py (TestClassification.setUp): New. |
305 |
|
Instantiate the classification here. Update the test methods |
306 |
|
accordingly. |
307 |
|
(TestClassification.test_multiple_groups): Make sure that the two |
308 |
|
singletons matching 1 are considered different. |
309 |
|
|
310 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
311 |
|
|
312 |
|
* test/test_classification.py (red, green, blue): New. These |
313 |
|
constants were used in several cases. Update the relevant methods. |
314 |
|
(TestClassification.test_defaults) |
315 |
|
(TestClassification.test_set_default_properties) |
316 |
|
(TestClassification.test_add_singleton) |
317 |
|
(TestClassification.test_add_range) |
318 |
|
(TestClassification.test_multiple_groups) |
319 |
|
(TestClassification.test_deepcopy): New. These were formerly all |
320 |
|
part of the single method test. |
321 |
|
(TestClassification.test_deepcopy): Removed. |
322 |
|
(TestClassIterator): Removed. The test case is now a method of |
323 |
|
TestClassification since it tests part of the public interface of |
324 |
|
Classification |
325 |
|
(TestClassification.test_iterator): New. Used to be |
326 |
|
TestClassIterator effectively |
327 |
|
|
328 |
|
2003-10-31 Jan-Oliver Wagner <[email protected]> |
329 |
|
|
330 |
|
GUIfied the functions of the profiling extension. |
331 |
|
|
332 |
|
* /Extensions/profiling/__init__.py: New: Init to make this |
333 |
|
directory a package. |
334 |
|
|
335 |
|
* Extensions/profiling/profiling.py: Moved menu entries to |
336 |
|
the Extensions menu. Applied _() for strings. |
337 |
|
(profile_screen_renderer): Catch the detailed printout and present |
338 |
|
it in a dialog. |
339 |
|
(time_screen_renderer): Raise a dialog to present the result instead |
340 |
|
of printing it to stdout. |
341 |
|
|
342 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
343 |
|
|
344 |
|
* test/test_classification.py (TestClassGroupProperties) |
345 |
|
(TestClassGroup, TestClassGroupDefault, TestClassGroupRange) |
346 |
|
(TestClassGroupSingleton, TestClassIterator, TestClassification): |
347 |
|
Split TestClassification into several classes, one for each class |
348 |
|
being tested. TestClassification itself now only tests |
349 |
|
Classification. This split makes changes to the tests a bit easier |
350 |
|
|
351 |
|
2003-10-31 Bernhard Herzog <[email protected]> |
352 |
|
|
353 |
|
* Extensions/profiling/profiling.py: New. Extension to measure |
354 |
|
Thuban performance |
355 |
|
|
356 |
|
2003-10-31 Frank Koormann <[email protected]> |
357 |
|
|
358 |
|
Added two items to legend popup menu: Remove Layer and Show Layer Table |
359 |
|
|
360 |
|
* Thuban/UI/legend.py (LegendPanel._OnRemoveLayer, |
361 |
|
LegendPanel._OnShowTable): New event handlers, call the corresponding |
362 |
|
mainwindow methods. |
363 |
|
(LegendTree._OnRightClick): Added items to popup menu. |
364 |
|
|
365 |
|
2003-10-30 Bernhard Herzog <[email protected]> |
366 |
|
|
367 |
|
* Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle |
368 |
|
EVT_WINDOW_DESTROY |
369 |
|
(ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does |
370 |
|
nothing but is convenient for the derived classes. |
371 |
|
|
372 |
|
* Thuban/UI/tableview.py |
373 |
|
(TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New. |
374 |
|
Unsubscribe the messages here not in OnClose because that might |
375 |
|
get called multiple times. Fixes RT #2196 |
376 |
|
(TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed |
377 |
|
anymore. |
378 |
|
|
379 |
|
* README: Update the minimum requirement for wxPython. Since we |
380 |
|
now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4, |
381 |
|
the version in which that was introduced for all platforms |
382 |
|
|
383 |
|
2003-10-30 Frank Koormann <[email protected]> |
384 |
|
|
385 |
|
* Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of |
386 |
|
the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor |
387 |
|
frame. |
388 |
|
|
389 |
|
2003-10-30 Jan-Oliver Wagner <[email protected]> |
390 |
|
|
391 |
|
Improved APR import extension, added further EPSG definitions |
392 |
|
and some cleanup regarding string class. |
393 |
|
|
394 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo): |
395 |
|
Added test for alias 'longlat'. |
396 |
|
|
397 |
|
* Resources/Projections/epsg-deprecated.proj: New. Contains |
398 |
|
deprecated EPSG definitions. |
399 |
|
|
400 |
|
* Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added |
401 |
|
the variable names for objects. |
402 |
|
|
403 |
|
* Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New. |
404 |
|
Copied from importAPR and provided with documentation. |
405 |
|
|
406 |
|
* Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym): |
407 |
|
Moved to apr.py. |
408 |
|
(APR_View): Added object ref 'ITheme'. |
409 |
|
|
410 |
|
* Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string |
411 |
|
split function by corresponding use of the string class method. |
412 |
|
|
413 |
|
* Thuban/Model/xmlwriter.py: Replaced string replace function by |
414 |
|
corresponding string method. |
415 |
|
|
416 |
|
2003-10-29 Bernhard Herzog <[email protected]> |
417 |
|
|
418 |
|
* Thuban/UI/baserenderer.py |
419 |
|
(BaseRenderer.draw_shape_layer_incrementally): Speed up the |
420 |
|
special case of a classification that only has the default group |
421 |
|
|
422 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
423 |
|
|
424 |
|
* po/fr.po, po/es.po: Updated translations from Daniel Calvelo |
425 |
|
|
426 |
|
* po/de.po: Update. |
427 |
|
|
428 |
|
* Thuban/UI/application.py |
429 |
|
(ThubanApplication.ShowExceptionDialog): Handle translation of the |
430 |
|
dialog message properly |
431 |
|
|
432 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
433 |
|
|
434 |
|
Rework how localization works so that we use wx's translation |
435 |
|
functions when running Thuban as a normal application but not when |
436 |
|
we don't need any UI, such as in the test suite. See the comment |
437 |
|
in Thuban/__init__.py for details |
438 |
|
|
439 |
|
* Thuban/__init__.py (_): Add one level of indirection to make the |
440 |
|
translation handling more flexible and to make it possible to use |
441 |
|
either wx's translation services or not. |
442 |
|
(gettext_identity, translation_function_installed) |
443 |
|
(install_translation_function): New function to help with this |
444 |
|
|
445 |
|
* Thuban/UI/__init__.py: Install the wx specific translation |
446 |
|
function if it's OK to do that |
447 |
|
|
448 |
|
* test/support.py (initthuban): Install a dummy translation |
449 |
|
function so that importing Thuban.UI doesn't install a wx specific |
450 |
|
one for which would need to import wxPython |
451 |
|
|
452 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
453 |
|
|
454 |
|
* HOWTO-Release: Source archives should be created first and the |
455 |
|
binary packages should be created from the source archives. |
456 |
|
There's an official debian package now so there's no need to test |
457 |
|
the rpm on debian anymore |
458 |
|
|
459 |
|
2003-10-27 Bernhard Herzog <[email protected]> |
460 |
|
|
461 |
|
Several rendering changes: |
462 |
|
|
463 |
|
- Render the selection into a separate bitmap so that only that |
464 |
|
bitmap needs to be redrawn when the selection changes |
465 |
|
|
466 |
|
- Render incrementally showing previews and allowing interaction |
467 |
|
before rendering is complete |
468 |
|
|
469 |
|
- Update the renderer interface a bit. Most parameters of |
470 |
|
RenderMap are now parameters of the constructor |
471 |
|
|
472 |
|
* Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map |
473 |
|
and the update region as parameters. Update the doc-string |
474 |
|
(BaseRenderer.render_map_incrementally): New. Generator function |
475 |
|
to renders the map incrementally |
476 |
|
(BaseRenderer.render_map): Remove the map argument (it's now in |
477 |
|
the constructor) and simply iterate over the |
478 |
|
render_map_incrementally generator to draw the map. |
479 |
|
(BaseRenderer.draw_shape_layer_incrementally) |
480 |
|
(BaseRenderer.draw_shape_layer): Renamed to |
481 |
|
draw_shape_layer_incrementally and changed into a generator that |
482 |
|
yields True every 500 shapes. Used by render_map_incrementally to |
483 |
|
render shape layers incrementally |
484 |
|
|
485 |
|
* Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the |
486 |
|
map and region parameters which are now in the constructor |
487 |
|
(ScreenRenderer.RenderMapIncrementally): New. Public frontend for |
488 |
|
the inherited render_map_incrementally. |
489 |
|
(BaseRenderer.draw_shape_layer): Removed. |
490 |
|
(ScreenRenderer.draw_selection_incrementally): New. The selection |
491 |
|
drawing part of the removed draw_shape_layer as a generator |
492 |
|
(ScreenRenderer.layer_shapes): Update because of the region |
493 |
|
parameter change |
494 |
|
(ExportRenderer.__init__): New. Extend the inherited constructor |
495 |
|
with the destination region for the drawing |
496 |
|
(ExportRenderer.RenderMap): Removed the map and region parameters |
497 |
|
which are now in the constructor |
498 |
|
|
499 |
|
* Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a |
500 |
|
bitmap suitable for a preview in a tool |
501 |
|
(CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the |
502 |
|
bitmap |
503 |
|
(MapPrintout.draw_on_dc): Adapt to new renderer interface |
504 |
|
(MapCanvas.OnPaint): Handle drawing the selection bitmap if it |
505 |
|
exists |
506 |
|
(MapCanvas.OnIdle): Update the logic to deal with incremental |
507 |
|
rendering and the selection bitmap |
508 |
|
(MapCanvas._do_redraw): Handle the instantiation of the render |
509 |
|
iterator and the redraws during rendering |
510 |
|
(MapCanvas._render_iterator): New. Generator to incrementally |
511 |
|
redraw both bitmaps |
512 |
|
(MapCanvas.Export): Adapt to new renderer interface. |
513 |
|
(MapCanvas.full_redraw): Reset the selection bitmap and the |
514 |
|
renderer iterator too |
515 |
|
(MapCanvas.redraw_selection): New. Force a redraw of the selection |
516 |
|
bitmap |
517 |
|
(MapCanvas.shape_selected): Only redraw the selection bitmap |
518 |
|
|
519 |
|
* test/test_baserenderer.py |
520 |
|
(TestBaseRenderer.test_polygon_no_projection) |
521 |
|
(TestBaseRenderer.test_raster_no_projection) |
522 |
|
(TestBaseRenderer.test_point_map_projection) |
523 |
|
(TestBaseRenderer.test_point_layer_and_map_projection) |
524 |
|
(TestBaseRenderer.test_point_layer_projection) |
525 |
|
(TestBaseRenderer.test_point_with_classification): Adapt to new |
526 |
|
renderer interface |
527 |
|
|
528 |
|
2003-10-24 Bernhard Herzog <[email protected]> |
529 |
|
|
530 |
|
* libraries/thuban/wxproj.cpp (draw_polygon_shape) |
531 |
|
(point_in_polygon_shape, shape_centroid): Raise an exception if |
532 |
|
the shape can't be read. Previously invalid shape ids would lead |
533 |
|
to a segfault. |
534 |
|
|
535 |
|
* test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id): |
536 |
|
New. test whether an exception is raised for invalid shape ids |
537 |
|
|
538 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
539 |
|
|
540 |
|
* Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat' |
541 |
|
as alias for 'latlong'. |
542 |
|
|
543 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat' |
544 |
|
as alias for 'latlong'. |
545 |
|
|
546 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
547 |
|
|
548 |
|
* Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set |
549 |
|
the projection even for the UnknownPanel. |
550 |
|
(UnknownProjPanel.__init__): Define the text and create the textctrl |
551 |
|
widget. |
552 |
|
(UnknownProjPanel._DoLayout): Replaced static text widget by the |
553 |
|
textctrl created in __init__. |
554 |
|
(UnknownProjPanel.SetProjection): Set the text for the text ctrl |
555 |
|
including the parameters of the projection. |
556 |
|
|
557 |
|
2003-10-24 Jan-Oliver Wagner <[email protected]> |
558 |
|
|
559 |
|
* Resources/Projections/epsg.proj: New. This is a list of |
560 |
|
EPSG codes with parameters for proj. The list has been |
561 |
|
generated using devtools/create_epsg.py based on the |
562 |
|
file nad/epsg of the proj 4.4.7 package. Four projection |
563 |
|
definitions have been deleted as they are not accepted by proj: |
564 |
|
"CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03" |
565 |
|
and "HD72 / EOV". |
566 |
|
|
567 |
|
2003-10-22 Bernhard Herzog <[email protected]> |
568 |
|
|
569 |
|
Some more tweaks to the projection dialog which should fix RT |
570 |
|
#1886. |
571 |
|
|
572 |
|
* Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from |
573 |
|
the ProjFile's messages and call the base class methods correctly |
574 |
|
(ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED |
575 |
|
flag on the newly selected item too. Otherwise some other item is |
576 |
|
focused and the first time the focus is moved with the keyboard |
577 |
|
the selection moves in unexpected ways. |
578 |
|
|
579 |
|
* Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the |
580 |
|
focus on the OK button, only on the projection list. That way the |
581 |
|
list really has the focus initially |
582 |
|
(ProjFrame.OnClose): Call the projection list's Destroy method to |
583 |
|
make it unsubscribe all messages |
584 |
|
|
585 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
586 |
|
|
587 |
|
Rework the projection dialog to fix a few bugs, including RT 2166 |
588 |
|
and most of 2168 |
589 |
|
|
590 |
|
* Thuban/UI/projlist.py: New. The class ProjectionList is a |
591 |
|
special wxListCtrl to show a list of projections in a more MVC |
592 |
|
fashion |
593 |
|
|
594 |
|
* Thuban/UI/projdialog.py (ProjFrame): Substantial changes |
595 |
|
throughout the class. The main change is to use the ProjectionList |
596 |
|
class instead of a normal wxListBox. Also, add an explicit |
597 |
|
"Unknown" projection to the projection choice control. |
598 |
|
(ProjPanel.__init__): Add an "unknown" ellipsoid |
599 |
|
(TMPanel.__init__, LCCPanel.__init__): Tweak the order of |
600 |
|
instantiation of the panel's controls to make the tab-order more |
601 |
|
natural |
602 |
|
|
603 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
604 |
|
|
605 |
|
* test/test_load.py (TestSingleLayer.file_contents) |
606 |
|
(TestSingleLayer.test): Add non-ascii characters to the titles of |
607 |
|
session, map and layer. This is effectively a port of the |
608 |
|
TestUnicodeStrings test in test_load_0_8.py which for some reason |
609 |
|
was only added there. |
610 |
|
|
611 |
|
* test/test_load_0_9.py (TestSingleLayer.file_contents) |
612 |
|
(TestSingleLayer.test): Same as in test_load.py: add non-ascii |
613 |
|
characters to the titles of session, map and layer,. |
614 |
|
|
615 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
616 |
|
|
617 |
|
Add EPSG projection handling to .thuban files |
618 |
|
|
619 |
|
* test/test_save.py (SaveSessionTest.dtd) |
620 |
|
(SaveSessionTest.testEmptySession) |
621 |
|
(SaveSessionTest.testLayerProjection) |
622 |
|
(SaveSessionTest.testRasterLayer) |
623 |
|
(SaveSessionTest.testClassifiedLayer) |
624 |
|
(SaveSessionTest.test_dbf_table) |
625 |
|
(SaveSessionTest.test_joined_table) |
626 |
|
(SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace |
627 |
|
(SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and |
628 |
|
use a and epsg projection to test saving them |
629 |
|
|
630 |
|
* test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev |
631 |
|
namespace |
632 |
|
(TestLayerVisibility.file_contents, TestLabels.file_contents) |
633 |
|
(TestLayerProjection.file_contents) |
634 |
|
(TestRasterLayer.file_contents, TestJoinedTable.file_contents) |
635 |
|
(TestPostGISLayer.file_contents) |
636 |
|
(TestPostGISLayerPassword.file_contents) |
637 |
|
(TestLoadError.file_contents, TestLoadError.test): Update to use |
638 |
|
1.0-dev namespace |
639 |
|
(TestSingleLayer.file_contents, TestSingleLayer.test): Update to |
640 |
|
use 1.0-dev namespace and use an EPSG projection to test whether |
641 |
|
loading it works |
642 |
|
|
643 |
|
* test/test_load_0_9.py: New. Effectively a copy of test_load.py |
644 |
|
as of Thuban 0.9. These are now tests to determine whether Thuban |
645 |
|
can still read files generated by Thuban 0.9 |
646 |
|
|
647 |
|
* Thuban/Model/save.py (SessionSaver.write) |
648 |
|
(SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev |
649 |
|
namespace |
650 |
|
(SessionSaver.write_projection): Write the projection's epsg |
651 |
|
attribute |
652 |
|
|
653 |
|
* Thuban/Model/load.py (SessionLoader.__init__): Also accept the |
654 |
|
thuban-1.0-dev.dtd namespace |
655 |
|
(SessionLoader.check_attrs): Allow a callable object as conversion |
656 |
|
too |
657 |
|
(SessionLoader.start_projection, SessionLoader.end_projection) |
658 |
|
(SessionLoader.start_parameter): Handle the epsg attribute and |
659 |
|
rename a few instance variables to lower case |
660 |
|
|
661 |
|
* Resources/XML/thuban-1.0.dtd: New. Only difference to |
662 |
|
thuban-0.9.dtd is the epsg attribute for projections. |
663 |
|
|
664 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
665 |
|
|
666 |
|
* test/runtests.py (main): Let the user specify which tests to run |
667 |
|
on the command line |
668 |
|
|
669 |
|
* test/support.py (ThubanTestResult.getDescription): Override to |
670 |
|
give a better short description. The description can be used as a |
671 |
|
parameter to run_tests to run that particular test in isolation. |
672 |
|
|
673 |
|
2003-10-21 Frank Koormann <[email protected]> |
674 |
|
|
675 |
|
Popup menu for legend. Scheduled for the 1.2 release this was too |
676 |
|
simple to implement: The popup menu is bound to the legend tree, while |
677 |
|
the events are hanlded by its anchestor, the legend panel. This |
678 |
|
allows reuse of all the event handlers already implemented for the |
679 |
|
legend toolbar buttons. |
680 |
|
|
681 |
|
* Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros |
682 |
|
to add handlers for the events issued by the popup menu. |
683 |
|
(LegendPanel._OnToggleVisibility): Handler for toggling layer |
684 |
|
visibility event |
685 |
|
(LegendPanel._OnProjection): Handler for layer projection event. |
686 |
|
(LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK |
687 |
|
(LegendTree._OnRightClick): Event handler for right click, select item |
688 |
|
and pop up menu. |
689 |
|
(LegendTree.ToggleVisibility): Toggle layer visibility |
690 |
|
(LegendTree.LayerProjection): Raise layer projection dialog for |
691 |
|
current layer. |
692 |
|
|
693 |
|
2003-10-21 Bernhard Herzog <[email protected]> |
694 |
|
|
695 |
|
* Resources/Projections/defaults.proj: Use correct DOCTYPE |
696 |
|
declaration. The top-level element is projectionlist not projfile |
697 |
|
|
698 |
|
2003-10-20 Bernhard Herzog <[email protected]> |
699 |
|
|
700 |
|
* Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper |
701 |
|
method to write a projfile and display a busy cursor and error |
702 |
|
dialogs. |
703 |
|
(ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport) |
704 |
|
(ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file |
705 |
|
(ProjFrame.__FillAvailList): Translate "<None>" too and display a |
706 |
|
busy cursor while loading the user and system prj files. |
707 |
|
|
708 |
|
2003-10-16 Bernhard Herzog <[email protected]> |
709 |
|
|
710 |
|
* Thuban/Model/resource.py (projfile_cache): Introduce a cache for |
711 |
|
ProjFile objects |
712 |
|
(clear_proj_file_cache): New function to clear the cache. Mainly |
713 |
|
useful for use by the test suite |
714 |
|
(read_proj_file): Use the cache. |
715 |
|
|
716 |
|
* test/test_proj.py (TestProjFile): Clarify the doc-string |
717 |
|
(ProjFileReadTests): Update doc-string |
718 |
|
(ProjFileReadTests.test_get_system_proj_file): Check whether the |
719 |
|
system proj files is cached. |
720 |
|
(ProjFileLoadTestCase): New base class for the proj file tests |
721 |
|
derived from support.FileLoadTestCase to provide some common |
722 |
|
behavior. |
723 |
|
(TestLoadingProjFile) |
724 |
|
(TestLoadingProjFileWithEmptyProjectionlist.file_contents) |
725 |
|
(TestProjFileWithInvalidParameters.file_contents): Derive from |
726 |
|
ProjFileLoadTestCase |
727 |
|
(TestLoadingProjFile.test_caching): New. Test whether the cache |
728 |
|
works |
729 |
|
|
730 |
|
2003-10-16 Silke Reimer <[email protected]> |
731 |
|
|
732 |
|
* debian/*: New directory with configuration files for building a thuban |
733 |
|
deb-package. |
734 |
|
|
735 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
736 |
|
|
737 |
|
* test/test_proj.py: Execute support.run_tests when run as |
738 |
|
__main__ so that missing unsubscribes are detected |
739 |
|
(TestProjFile.tearDown): Destroy the proj_file properly |
740 |
|
|
741 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
742 |
|
|
743 |
|
* Thuban/Model/messages.py (PROJECTION_ADDED) |
744 |
|
(PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for |
745 |
|
the ProjFile objects |
746 |
|
|
747 |
|
* Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can |
748 |
|
easily send messages when the projections change |
749 |
|
(ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages |
750 |
|
when the change was successful |
751 |
|
|
752 |
|
* test/test_proj.py (TestProjFile.setUp): Subscribe to some of the |
753 |
|
proj file messages |
754 |
|
(TestProjFile.test_add_remove) |
755 |
|
(TestProjFile.test_remove_non_existing) |
756 |
|
(TestProjFile.test_replace) |
757 |
|
(TestProjFile.test_replace_non_existing): Test whether the right |
758 |
|
messages are sent |
759 |
|
|
760 |
|
2003-10-14 Bernhard Herzog <[email protected]> |
761 |
|
|
762 |
|
* test/test_proj.py (TestProjFile.test): Refactor into several |
763 |
|
tests |
764 |
|
(TestProjFile.test_add_remove) |
765 |
|
(TestProjFile.test_remove_non_existing) |
766 |
|
(TestProjFile.test_replace) |
767 |
|
(TestProjFile.test_replace_non_existing): Some of the new |
768 |
|
individual test cases |
769 |
|
(TestProjFileSimple): New class for the rest of the test cases |
770 |
|
that came out of the refactoring |
771 |
|
(ProjFileTest): Derive from xmlsupport.ValidationTest so that the |
772 |
|
derived classes don't have to |
773 |
|
|
774 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
775 |
|
|
776 |
|
Add an optional EPSG code to the projection objects and extend the |
777 |
|
.proj file format accordingly. |
778 |
|
|
779 |
|
* Resources/XML/projfile.dtd (element projection): Add epsg |
780 |
|
attribute |
781 |
|
|
782 |
|
* Thuban/Model/proj.py (Projection.__init__): New parameter and |
783 |
|
instance variable epsg. Update doc-string |
784 |
|
(Projection.EPSGCode, Projection.Label): New methods to provide |
785 |
|
access to EPSG code and a label for use in dialogs |
786 |
|
|
787 |
|
* Thuban/Model/resource.py (ProjFileReader.start_projection) |
788 |
|
(ProjFileReader.end_projection, ProjFileSaver.write_projfile): |
789 |
|
Handle the epsg code attribute when reading or writing proj files |
790 |
|
|
791 |
|
* Thuban/UI/projdialog.py (ProjFrame._OnSave) |
792 |
|
(ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail) |
793 |
|
(ProjFrame.__FillAvailList): Use the projection's Label method to |
794 |
|
get the string for the list box |
795 |
|
|
796 |
|
* test/test_proj.py (TestProjection.test_label) |
797 |
|
(TestProjection.test_label_epsg) |
798 |
|
(TestProjection.test_epsgcode_for_non_epsg_projection) |
799 |
|
(TestProjection.test_epsgcode_for_real_epsg_projection): New tests |
800 |
|
for the label and EPSGCode methods |
801 |
|
(WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write) |
802 |
|
(WriteProjFileTests.test_write_empty_file): Create the ProjFile |
803 |
|
objects in the test cases and put the expected contents into the |
804 |
|
test case methods too. Update doTestWrite accordingly |
805 |
|
(TestLoadingProjFile) |
806 |
|
(TestLoadingProjFileWithEmptyProjectionlist): New classes with the |
807 |
|
read tests from TestProjFile. |
808 |
|
(TestProjFile.doTestRead, TestProjFile.testRead): Removed. These |
809 |
|
tests are now in the new classes. |
810 |
|
(sample_projfile, sample_projfile_data) |
811 |
|
(sample_projfile2, sample_projfile_data2): Removed. Not used |
812 |
|
anymore. |
813 |
|
(TestProjFile.test_read_unreadable_file): No need to reset the |
814 |
|
permissions at the end anymore since we use a unique filename |
815 |
|
|
816 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
817 |
|
|
818 |
|
* test/test_proj.py: Some more refactoring of the test cases |
819 |
|
(ProjFileTest): New base class for the proj file tests. |
820 |
|
(TestProjFile): Derive from ProjFileTest |
821 |
|
(TestProjFile.test_read_unreadable_file) |
822 |
|
(TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use |
823 |
|
the new filename method to get a unique filename |
824 |
|
(TestProjFile.doTestWrite, TestProjFile.testWrite): Removed. |
825 |
|
(WriteProjFileTests): New class for proj file write tests. |
826 |
|
Contains the write test that were in TestProjFile originally. |
827 |
|
|
828 |
|
2003-10-13 Bernhard Herzog <[email protected]> |
829 |
|
|
830 |
|
* test/test_proj.py (TestProjFile.testRead) |
831 |
|
(TestProjFile.test_read_non_existing_file) |
832 |
|
(TestProjFile.test_read_unreadable_file) |
833 |
|
(TestProjFile.test_read_empty_file): Split into several methods. |
834 |
|
|
835 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
836 |
|
|
837 |
|
* Thuban/UI/sizers.py: New file with custom sizers. |
838 |
|
|
839 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate |
840 |
|
all projection type specific panels and put them into a |
841 |
|
NotebookLikeSizer. This way the dialog doesn't change its size |
842 |
|
when a different projection is selected |
843 |
|
(ProjFrame.__init__): Rename projection_panels |
844 |
|
projection_panel_defs and reuse projection_panels for a list of |
845 |
|
the instantiated panels. |
846 |
|
(ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail) |
847 |
|
(ProjFrame.__DoOnProjChoice): Changes due to the new handling of |
848 |
|
the panels |
849 |
|
(UnknownProjPanel._DoLayout): Place the newlines in the message |
850 |
|
differently to make the panel narrower. |
851 |
|
(TMPanel._DoLayout): Layout the parameters in one column. |
852 |
|
|
853 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
854 |
|
|
855 |
|
* Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method |
856 |
|
that contains all the setup for the dialog's widgets, layout and |
857 |
|
event handling. |
858 |
|
(__): Call build_dialog to build the dialog. |
859 |
|
(ProjFrame.__set_properties, ProjFrame.__do_layout): Removed. |
860 |
|
Their functionality is now in build_dialog |
861 |
|
(ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons) |
862 |
|
(ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail) |
863 |
|
(ProjFrame.__DoOnProjChoice): Small updates due to slightly |
864 |
|
different widget names and hierarchy introduced with build_dialog. |
865 |
|
|
866 |
|
2003-10-10 Bernhard Herzog <[email protected]> |
867 |
|
|
868 |
|
* README: Fix typo. |
869 |
|
|
870 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
871 |
|
|
872 |
|
* Thuban/Model/proj.py (ProjFile.Add): Do not check whether the |
873 |
|
projection is already in the list. This is *a lot* faster when |
874 |
|
loading files with hundreds of projections since it saves a linear |
875 |
|
search. OTOH this will allow adding the same projection to the |
876 |
|
user.proj file multiple times in the projection dialog but we'll |
877 |
|
deal with that later |
878 |
|
|
879 |
|
2003-10-09 Jan-Oliver Wagner <[email protected]> |
880 |
|
|
881 |
|
* devtools: New. Directory for developer tools that are not intended |
882 |
|
for the regular user. |
883 |
|
|
884 |
|
* devtools/create_epsg.py: New. Convert the epsg file of proj into |
885 |
|
a python .proj file. |
886 |
|
|
887 |
|
2003-10-09 Bernhard Herzog <[email protected]> |
888 |
|
|
889 |
|
* test/test_proj.py |
890 |
|
(TestProjection.test_get_parameter_without_equals_sign): New. Test |
891 |
|
whether GetParameter handles parameters without "=" sign correctly |
892 |
|
|
893 |
|
* Thuban/Model/proj.py (Projection.GetParameter): Handle |
894 |
|
parameters that do not contain a "=". Update the doc-string |
895 |
|
|
896 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
897 |
|
|
898 |
|
* Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the |
899 |
|
length limit on the projname text control |
900 |
|
|
901 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
902 |
|
|
903 |
|
* test/test_proj.py (TestProjection.test_get_projection_units_geo) |
904 |
|
(TestProjection.test_get_projection_units_normal): New. Tests for |
905 |
|
the Projection.GetProjectedUnits method |
906 |
|
|
907 |
|
2003-10-08 Jan-Oliver Wagner <[email protected]> |
908 |
|
|
909 |
|
* Thuban/Model/resource.py (get_user_proj_file): small bug-fix: |
910 |
|
Added missing 'val' parameter. |
911 |
|
|
912 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
913 |
|
|
914 |
|
* Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the |
915 |
|
projection type of the currently selected projection is not known, |
916 |
|
i.e. there's no panel for it, use the UnknownProjPanel |
917 |
|
(ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split |
918 |
|
the actual replacing of the proj panel into the new method |
919 |
|
_show_proj_panel. |
920 |
|
(UnknownProjPanel): Add doc-string. |
921 |
|
(UnknownProjPanel._DoLayout): Insert a newline into the text so |
922 |
|
that the panel is not so wide. |
923 |
|
|
924 |
|
2003-10-08 Bernhard Herzog <[email protected]> |
925 |
|
|
926 |
|
* Thuban/Model/resource.py (read_proj_file): Return the warnings |
927 |
|
too. Update the doc-string |
928 |
|
(get_proj_files): Removed. It wasn't used anywhere |
929 |
|
(get_system_proj_files, get_system_proj_file): Rename to |
930 |
|
get_system_proj_file and return the ProjFile object and not a list |
931 |
|
of ProjFile objects. Update the callers. |
932 |
|
(get_user_proj_files, get_user_proj_file): Rename to |
933 |
|
get_user_proj_file return the ProjFile object and not a list of |
934 |
|
ProjFile objects. Update the callers. |
935 |
|
(ProjFileReader.__init__): New instance variable for the warnings. |
936 |
|
Rename the __pf ivar to projfile. Update the methods referring to |
937 |
|
__pf |
938 |
|
(ProjFileReader.end_projection): Catch any errors raised when |
939 |
|
instantiating the projection and record that as an error. The |
940 |
|
projection will not be in the final ProjFile object. |
941 |
|
(ProjFileReader.GetWarnings): New method to return the warnings. |
942 |
|
|
943 |
|
* Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to |
944 |
|
show the warnings from the projfile reader |
945 |
|
(ProjFrame._OnImport): Deal with any warnings returned by |
946 |
|
read_proj_file |
947 |
|
(ProjFrame.__FillAvailList): Deal with any warnings returned by |
948 |
|
get_system_proj_file or get_user_proj_file. |
949 |
|
|
950 |
|
* test/test_proj.py (TestProjFile.doTestRead): Check the warnings. |
951 |
|
(TestProjFileWithInvalidParameters.file_contents): New test cases |
952 |
|
to test whether read_proj_file handles invalid projection |
953 |
|
parameters correctly |
954 |
|
(TestProjFile.test_get_system_proj_file): New. Simple test for |
955 |
|
resource.get_system_proj_file |
956 |
|
|
957 |
|
2003-10-07 Bernhard Herzog <[email protected]> |
958 |
|
|
959 |
|
* test/test_derivedshapestore.py |
960 |
|
(TestDerivedShapeStoreExceptions.tearDown): Clear the session |
961 |
|
properly so that the temporary directories get deleted correctly |
962 |
|
|
963 |
2003-10-06 Bernhard Herzog <[email protected]> |
2003-10-06 Bernhard Herzog <[email protected]> |
964 |
|
|
965 |
Handle the title changes in a proper MVC way. |
Handle the title changes in a proper MVC way. |