/[thuban]/branches/WIP-pyshapelib-bramz/ChangeLog
ViewVC logotype

Contents of /branches/WIP-pyshapelib-bramz/ChangeLog

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2680 - (show annotations)
Mon May 15 14:36:50 2006 UTC (18 years, 10 months ago) by dpinte
Original Path: trunk/thuban/ChangeLog
File size: 469239 byte(s)
2006-05-15 Didrik Pinte <dpinte@itae.be>
  * Thuban/version.py : Updated imports to support pysqlite2

  * Thuban/Model/transientdb.py : Updated imports to support pysqlite2
    Patched the querying system to support the param style of pysqlite2

--Cette ligne,

M    thuban/Thuban/Model/transientdb.py
M    thuban/Thuban/version.py
M    thuban/ChangeLog

1 2006-05-15 Didrik Pinte <[email protected]>
2 * Thuban/version.py : Updated imports to support pysqlite2
3
4 * Thuban/Model/transientdb.py : Updated imports to support pysqlite2
5 Patched the querying system to support the param style of pysqlite2
6
7 2006-04-24 Didrik Pinte <[email protected]>
8 * Extensions/svgexport/__init__.py: The extension now works on win32
9 architecture. Bug #87 corrected.
10
11 2006-04-20 Bernhard Reiter <[email protected]>
12 * Doc/technotes/coding_guidelines.txt: Changed text from CVS to SVN.
13 Removed emacs specific hint and replaced it with a general hint
14 that editors might support writing changelogs.
15
16 2006-04-12 Bernhard Reiter <[email protected]>
17
18 * Thuban/version.py: Changed thuban_release mechanism to use "svn"
19 instead of "cvs".
20
21 2006-03-31 Bernhard Reiter <[email protected]>
22
23 * libraries/thuban/wxproj.cpp: including proj_api.h instead of
24 projects.h now. According the Frank Warmerdam and man pj_init
25 this is the public interface to proj. Thus I have changed PJ to projPJ.
26 And I could remove the hack to avoid clashes with typedef PVALUE
27 and #define LP in projects.h clashing with symbols when trying to
28 build on windows. The file is cleaner and nicer now.
29
30 2006-03-29 Bernhard Reiter <[email protected]>
31
32 * libraries/thuban/wxproj.cpp: undef LP to avoid clash when
33 trying to build with mingw.
34
35 2005-10-18 Bernhard Reiter <[email protected]>
36
37 * Thuban/UI/about.py: remove unused import of getdefaultlocale.
38 Added display of internal encoding to the about dialog text.
39
40 * Extensions/svgexport/__init__.py: changed version to "1.0.0+cvs".
41
42 2005-10-18 Bernhard Reiter <[email protected]>
43
44 Startup improved: We fail right away if the internal encoding could
45 not be determined.
46
47 * Thuban/__init__.py (get_internal_encoding): new.
48
49 * test/test_stringrepresentation.py (class TestInternalEncoding):
50 Preserve the internal encoding for the tests in this class.
51
52 2005-10-17 Bernhard Reiter <[email protected]>
53
54 * test/test_stringrepresentation.py: New file, for now testing
55 that set_internal_coding() is throwing an exception for bad exceptions.
56
57 * Thuban/__init__.py (set_internal_encoding): added a forwards
58 and backward translation, so that we fail early if the
59 internal_encoding is bad.
60
61 2005-10-17 Bernhard Reiter <[email protected]>
62
63 svgexport 1.0.0cvs: Fixed ARC layer writing: No filling is done.
64 You could actually get polylines with filling in between,
65 when the classification for the lines had a fill color.
66 E.g. this happens when you generate a classification from a ramp.
67
68 * Extensions/svgexport/test/test_svgmapwriter.py:
69 New test_export_arc_no_fill(). Extend copyright notice to 2005.
70
71 * Extensions/svgexport/svgmapwriter.py
72 (SVGRenderer.draw_shape_layer_incrementally()):
73 Setting TRANSPARENT_BRUSH for shaptype ARC.
74 Extend copyright notice to 2005.
75
76 * Extensions/svgexport/__init__.py: Extend copyright notice to 2005.
77
78 2005-09-08 Frank Koormann <[email protected]>
79
80 * Doc/manual/thuban-manual.xml (Map Management): Fixed typo reported
81 by Erik (sigra.at.home.se)
82
83 2005-08-18 Jan-Oliver Wagner <[email protected]>
84
85 * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
86 Call the right method for the default size.
87
88 2005-08-11 Jan-Oliver Wagner <[email protected]>
89
90 * Extensions/export_shapefile: New.
91
92 * Extensions/export_shapefile/__init__.py: New. Initialize
93 the export_shapefile extension.
94
95 * Extensions/export_shapefile/export_shapefile.py: New.
96 Exports a layer as a Shapefile.
97
98 2005-08-08 Jan-Oliver Wagner <[email protected]>
99
100 * po/de.po: String fixes. This fixes Debian bug #313843.
101
102 2005-07-27 Jan-Oliver Wagner <[email protected]>
103
104 Remove the attributes from the layer element in
105 .thuban files for the save routine.
106 This also solves RT bug #3149,
107 https://intevation.de/rt/webrt?serial_num=3149
108
109 * test/test_load.py: (TestSingleLayer, TestNonAsciiColumnName,
110 TestLayerVisibility, TestSymbolSize, TestClassification, TestLabels,
111 TestLayerProjection, TestJoinedTable, TestLabelLayer): Removed
112 attributes from layer element to classification clnull element.
113
114 * test/test_save.py (SaveSessionTest.testSingleLayer,
115 SaveSessionTest.testLayerProjection,
116 SaveSessionTest.testClassifiedLayer,
117 SaveSessionTest.test_joined_table, SaveSessionTest.test_save_postgis):
118 Removed attributes from layer element to classification clnull element.
119 (test_save_postgis.NonConnectionStore._fetch_table_information):
120 added pretending to have a shape_type.
121
122 * Resources/XML/thuban-1.1.dtd: Make the attributes field
123 and field_type of classification optional.
124
125 * Thuban/Model/classification.py (Classification.TreeItem.build_info):
126 Added output of size.
127
128 * Thuban/Model/load.py (SessionLoader.start_classification):
129 Change attribute 'field' and 'field_type' from obligatory to
130 optional to allow empty classes (ie. only with a default=clnull).
131
132 * Thuban/Model/save.py (SessionSaver.write_layer): Don't write
133 any attributes anymore for the layer element.
134 (SessionSaver.write_classification): Even if there is no
135 classification field, still write the classification because
136 the clnull (default) symbol will not be defined anymore as
137 part of the layer element.
138
139 2005-07-05 Bernhard Herzog <[email protected]>
140
141 * setup.py (setup call): Version 1.1.0
142
143 * NEWS: Update for 1.1.0
144
145 * MANIFEST.in: Add *.txt to files taken from Doc. Otherwise the
146 technores won't be included
147
148 * Thuban/UI/about.py (About.__init__): Extend copyright notice to
149 2005
150
151 * po/de.po: Updated.
152
153 2005-07-05 Bernhard Herzog <[email protected]>
154
155 * README: gdal 1.1.8 is too old. 1.2.5 works.
156
157 2005-07-05 Bernhard Herzog <[email protected]>
158
159 * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
160 masktype attributes.
161
162 2005-07-05 Bernhard Herzog <[email protected]>
163
164 * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
165 (Layer.ClipBoundingBox): Rename ClipBoundingBox to
166 __mangle_bounding_box. See the comments in the code and RT #2845
167
168 * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
169 Remove the explicit test of ClipBoundingBox. The method isn't
170 public anymore and the direct call in the test wasn't necessary in
171 the first place. If ClipBoundingBox (now __mangle_bounding_box)
172 isn't called, the return value of ShapesInRegion will be
173 different.
174
175 2005-07-05 Bernhard Herzog <[email protected]>
176
177 * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
178 ZeroDivisionError exceptions. I don't know when they happen
179 exactly. It probably happens when the projections aren't set
180 properly.
181
182 2005-07-01 Bernhard Herzog <[email protected]>
183
184 First step towards unicode. With this roughly we're at step 1
185 string_representation.txt
186
187 * Doc/technotes/string_representation.txt: New. Document how
188 strings are represented in Thuban and how to get to a Unicode
189 Thuban.
190
191 * Thuban/__init__.py (set_internal_encoding)
192 (unicode_from_internal, internal_from_unicode): New. The first few
193 functions for the internal string representation
194
195 * Thuban/UI/about.py (unicodeToLocale): Removed. Use
196 internal_from_unicode instead.
197
198 * Thuban/UI/__init__.py (install_wx_translation): Determine the
199 encoding to use for the internal string representation. Also,
200 change the translation function to return strings in internal
201 representation even on unicode builds of wxPython
202
203 * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
204 filenames too.
205 (SessionLoader.start_clrange): Use check_attrs to decode and check
206 the attributes.
207
208 * Thuban/Model/xmlreader.py (XMLReader.encode): Use
209 internal_from_unicode to convert unicode strings.
210
211 * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
212 unicode_from_internal when applicable
213
214 * test/runtests.py (main): New command line option:
215 internal-encoding to specify the internal string encoding to use
216 in the tests.
217
218 * test/support.py (initthuban): Set the internal encoding to
219 latin-1
220
221 * test/test_load.py (TestSingleLayer.test, TestClassification.test)
222 (TestLabelLayer.test): Use the internal string representation when
223 dealing with non-ascii characters
224
225 * test/test_load_1_0.py (TestSingleLayer.test)
226 (TestClassification.test, TestLabelLayer.test): Use the internal
227 string representation when dealing with non-ascii characters
228
229 * test/test_load_0_9.py (TestSingleLayer.test)
230 (TestClassification.test): Use the internal string representation
231 when dealing with non-ascii characters
232
233 * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
234 internal string representation when dealing with non-ascii
235 characters
236
237 * test/test_save.py (XMLWriterTest.testEncode)
238 (SaveSessionTest.testClassifiedLayer): Use the internal string
239 representation when dealing with non-ascii characters where
240 applicable
241
242 2005-06-30 Bernhard Herzog <[email protected]>
243
244 * test/runtests.py: Untabify.
245
246 2005-06-30 Bernhard Herzog <[email protected]>
247
248 * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
249 untabify.
250
251 2005-06-30 Bernhard Herzog <[email protected]>
252
253 * Extensions/ogr/test/__init__.py: Add missing coding directive
254
255 2005-06-28 Jan-Oliver Wagner <[email protected]>
256
257 * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
258 Use the default size for rendering selected items of default type.
259 Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
260
261 2005-06-28 Jan-Oliver Wagner <[email protected]>
262
263 * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
264 (APR_TClr.GetThubanColor): Fix bug in color interpretation.
265 Thanks to Frank Koormann who identified this problem.
266
267 * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
268 another symbol identified.
269
270 2005-06-27 Jan-Oliver Wagner <[email protected]>
271
272 * Doc/manual/thuban-manual-de.xml: More translations.
273
274 2005-05-12 Jonathan Coles <[email protected]>
275
276 * Thuban/UI/projdialog.py: Add missing import, which led to an
277 exception when opening a layer's projection.
278
279 2005-05-09 Bernhard Herzog <[email protected]>
280
281 * test/support.py (FileLoadTestCase.filename): Fix doc-string.
282
283 2005-05-09 Bernhard Herzog <[email protected]>
284
285 * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
286 connection to autoconnect. Fixes RT#3148.
287
288 * test/test_postgis_db.py
289 (TestPostGISSpecialCases.test_simple_error_handling): New test
290 that attempts to reproduce RT#3148.
291
292 2005-05-06 Jonathan Coles <[email protected]>
293
294 Add support for saving and loading the opacity and mask type
295 properties of RasterLayers. Also add support for proper use
296 of alpha information while drawing images not in 'RAW' format.
297 If transparency in an image format (e.g, PNG) is supported by
298 wxWidgets then the image would previously have been draw with
299 transparent regions, but the opaque regions would have been
300 unaffected by a change in the layer's opacity. This patch
301 corrects the problem.
302
303 * Thuban/Model/layer.py (RasterLayer): Added opacity and
304 masktype parameters to the constructor, and set the
305 appropriate variables to those values.
306
307 * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
308 code to read the opacity and mask type of the layer and construct
309 a new layer with the additional parameters.
310
311 * Thuban/Model/save.py (SessionSaver.write_layer): Added code
312 to save the opacity and mask type of a layer.
313
314 * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
315 the opacity of the layer to draw_raster_data rather than the layer.
316 (BaseRenderer.draw_raster_data): Remove the layer parameter because
317 the function doesn't need to know about the layer. Add the optional
318 opacity parameter whose default is 1.0. Add 'PNG' as a supported
319 graphics format.
320
321 * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
322 signature to match that in BaseRenderer. Use the new opacity argument
323 in place of calling layer.Opacity(). In the case where the
324 format is not 'RAW', alpha_data is None and the loaded image has
325 alpha information, use the file's alpha information. This is
326 still subject to the layer's opacity setting.
327
328 * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
329 Fixed signature to match that in BaseRenderer.
330
331 * test/test_load.py (TestRasterLayer): Change file_contents to
332 include opacity and masktype variables.
333 (TestRasterLayer.test): Include tests for opacity and masktype
334 changes.
335
336 * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
337 test to cover a variety of combinations of masktype and opacity
338 settings.
339
340 2005-05-02 Jan-Oliver Wagner <[email protected]>
341
342 * debian/rules: add --use-wx-python-swig-hack
343 to the build command.
344 Thanks to Moritz Lennert for pointing this out.
345
346 2005-04-28 Jan-Oliver Wagner <[email protected]>
347
348 Introduce OGRFileShapeStore in ogr extension.
349 This allows at least that loaded shapefile shape stores
350 can be saved correctly in the thuban session file
351 and reloaded again (reload is via core shapefile
352 routine, not OGR). For other types, .thuban files
353 can not be reloaded for the time being.
354
355 * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
356 class ist to be used for any file-based shape stores
357 accessed through OGR.
358
359 * Extensions/ogr/ogrstart.py (open_with_ogr): Added
360 forgotten _ for i18n. Adapted call OpenFileShapestore
361 regarding new parameter.
362 (OpenFileShapestore): Use OGRFileShapeStore instead of
363 OGRShapeStore. Fix return value (None instead of null).
364 Add new parameter "mainwindow" to avoid accessing global
365 context.
366
367 2005-04-27 Jan-Oliver Wagner <[email protected]>
368
369 Introduce FileShapeStore as generalization for
370 file-based shape stores. In a first instance
371 this allows additional modules to handle shapefile
372 format as well, namely the OGR extension.
373
374 * Thuban/Model/data.py: Various small fixes in doc-strings.
375 (FileShapeStore): New class.
376 (ShapefileStore): Derive from FileShapeStore.
377 (ShapefileStore.__init__): Call __init__ of FileShapeStore,
378 rename self.table to self._table, initialize self._bbox
379 (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
380 and self.FileName() instead of self.filename.
381 (ShapefileStore.Table): Use self._table instead of self.table.
382 (ShapefileStore.FileName): Removed (moved to FileShapeStore).
383 (ShapefileStore.BoundingBox): Use self._bbox instead of self.bbox.
384
385 * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
386 (SessionSaver.write_data_containers): Only use methods of the
387 base class FileShapeStore.
388
389 2005-04-26 Martin Schulze <[email protected]>
390
391 * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
392 function to the modified render engine
393
394 2005-04-25 Martin Schulze <[email protected]>
395
396 * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
397 Added a description according to the CVS log message
398
399 2005-04-23 Martin Schulze <[email protected]>
400
401 * Thuban/UI/renderer.py: Added a missing import
402
403 2005-04-23 Russell Nelson <[email protected]>
404
405 * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
406 way the previous tool is remembered, so that middle-button
407 panning works even if you haven't selected a tool.
408
409 2005-04-11 Bernhard Herzog <[email protected]>
410
411 * libraries/thuban/wxproj.cpp: Move the compatibility code that
412 deals with the wxPython 2.4 version of wxPython.h into the #ifdef
413 branch that includes wxPython.h because it's only needed when
414 wxPython.h is used. Also, it won't compile when
415 USE_WX_PYTHON_SWIG_HACK is set otherwise.
416
417 2005-04-07 Bernhard Herzog <[email protected]>
418
419 * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
420 (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
421 ClassGrid.__init__ and it's value is outside of the valid
422 range (must be < 32768). wxPython 2.5 complains about it with an
423 exception.
424
425 2005-04-05 Jan-Oliver Wagner <[email protected]>
426
427 * Doc/manual/thuban-manual-de.xml: More translations.
428
429 2005-04-05 Bernhard Herzog <[email protected]>
430
431 * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
432 wxPython 2.4 as well. Also, remove a now obsolete comment.
433
434 2005-04-05 Bernhard Herzog <[email protected]>
435
436 Use wxPython.h by default but provide a workaround when it isn't
437 available.
438
439 * setup.py (wxproj_extension): New variable. Assign the Extension
440 instance for Lib.wxproj to this variable instead of putting it
441 directly into the listso that it can be accessed by other code
442 later.
443 (thuban_build_ext.user_options): Added boolean option
444 --use-wx-python-swig-hack.
445 (thuban_build_ext.initialize_options): Initialize the new option
446 to False.
447 (thuban_build_ext.finalize_options): If the new option was given,
448 define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
449 (thuban_build_ext): Update the doc-string
450
451 * libraries/thuban/wxproj.cpp: Normally we use
452 wx/wxPython/wxPython.h now. Only if USE_WX_PYTHON_SWIG_HACK is
453 defined, use swigPtrConvertHack.h instead.
454
455 * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
456 copied over from wxPython.h.
457 (decode_pointer_new): New. Equivalent of decode_pointer for
458 wxPython 2.5.
459 (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
460
461 * README: Add section on potential build problems which explains
462 how the work-around for a missing wxPython.h is activated.
463
464 2005-03-29 Bernhard Herzog <[email protected]>
465
466 * test/postgissupport.py (find_postgis_sql): Added yet another
467 potential location for (lw)postgis.sql because the file has moved
468 again in postgis 1.0.0 rc4.
469
470 2005-03-29 Bernhard Herzog <[email protected]>
471
472 * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
473 match the site of the legend_icon_layer icon. Otherwise wxpython
474 2.5 complains when the legend is created with the error:
475
476 PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
477 bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
478 0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
479 in wxImageList: this might work on this platform but definitely
480 won't under Windows.
481
482 2005-03-23 Jonathan Coles <[email protected]>
483
484 These changes add support for adjusting the opacity of a raster layer.
485
486 * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
487 (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
488 a LAYER_CHANGED event if the opacity actually changes.
489
490 * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
491 layer parameter needed in the implementation of this method in
492 renderer.py.
493
494 * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
495 typo 00 -> 0.
496
497 * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
498 control to adjust opacity.
499
500 * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
501 alpha data based on the opacity level of the layer.
502
503 * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
504 accepts a layer parameter.
505
506 * test/test_layer.py (TestLayerModification.test_raster_layer):
507 Rename opacity method calls and add test for LAYER_CHANGED.
508
509 2005-03-16 Bernhard Herzog <[email protected]>
510
511 * test/test_connector.py (DeletionTestMixin.check_deletions)
512 (DeletionTestMixin.check_deletetions): renamed to check_deletions.
513 update the callers.
514
515 2005-03-14 Jan-Oliver Wagner <[email protected]>
516
517 * Doc/manual/thuban-manual-de.xml: More translations.
518
519 2005-03-10 Jan-Oliver Wagner <[email protected]>
520
521 Introducing initialization callbacks for extensions.
522
523 * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
524 optional parameter init_callback.
525 (ExtensionDesc.init_ext): New. Executes the callback and sets
526 a status.
527
528 * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
529 initialization of the extensions.
530 (ThubanApplication.init_extensions): Init all extensions.
531
532 * Thuban/UI/about.py (About.__init__): Added status of the extensions
533 to the about text.
534
535 * Extensions/gns2shp/__init__.py: Added init method for Extension
536 description.
537 (init): New. Contains the initialization of the module.
538
539 2005-03-04 Nina Hüffmeyer <[email protected]>
540
541 * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
542 OGRConnection to open a datasource. Removed dialog to display all
543 available drivers. Added some doc strings.
544
545 * Extensions/ogr/ogrstart.py: Added menu entry for opening an
546 OGRDatasource with a string. Added two opening methods which return an
547 OGRDatasource (either data from file or from DB).
548
549 * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
550 represents a geometry reference of an OGRFeature. OGRShape now has a
551 list of referenced geometry objects (important for geometry
552 collections).
553 For OGRShapeStores loaded from a DB an ID column can be specified now.
554
555 2005-02-22 Jan-Oliver Wagner <[email protected]>
556
557 * test/test_map.py (TestMapWithContents.test_tree_info):
558 Added label layer for comparison.
559
560 2005-02-18 Jonathan Coles <[email protected]>
561
562 * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
563 which builds a mask. Handle the majority of an image in a loop,
564 creating 8 bits at a time. Later, handle the edge case where less
565 than 8 bits are packed.
566
567 2005-02-18 Bernhard Herzog <[email protected]>
568
569 * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
570 doc-string
571
572 2005-02-18 Jonathan Coles <[email protected]>
573
574 * setup.py: Remove wx_cs_params from gdal compile options.
575
576 2005-02-18 Jonathan Coles <[email protected]>
577
578 Refactored baserenderer.py and renderer.py to remove baserenderer.py's
579 dependencies on wxPython. Added a new method projected_raster_layer()
580 that returns a raster layer image in projected space. This must be
581 implemented in classes derived from BaseRenderer. This also eliminates
582 the dependency on gdal in baserenderer.py.
583
584 * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
585 new projected_raster_layer() to get projected raster image instead
586 of directly calling ProjectRasterFile().
587 (BaseRenderer.projected_raster_layer): New. This must be implemented
588 by derived classes. It takes almost the same arguments as ProjectRasterFile
589 did and returns a projected image with mask and alpha data (if requested).
590 (BaseRenderer.render_map_incrementally): Remove the check for gdal since
591 that check will be done in MapRenderer.projected_raster_layer(). This
592 also allows other implementations to use different projection code.
593
594 * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
595 Implementation of BaseRenderer.projected_raster_layer. Checks for
596 gdal support and wxPython version. Also handles exceptions from
597 ProjectRasterFile.
598
599 * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
600 and added a variable which can be set through the options argument
601 of ProjectRasterFile.
602
603 * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
604 Calls ProjectRasterFile and returns the result.
605 (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
606 of calling projected_raster_layer() with different options.
607 (TestBaseRenderer.test_raster_no_projection): Removed tests based on
608 wxPython version and all tests of masks and alpha channels. These are
609 now in test_projected_raster_layer().
610
611 2005-02-17 Jan-Oliver Wagner <[email protected]>
612
613 * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
614 doc-strings to comply with coding_guidelines.
615
616 2005-02-17 Jan-Oliver Wagner <[email protected]>
617
618 Docstring improvements and minor fixes for labellayer.
619
620 * Thuban/Model/map.py:
621 (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
622 Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
623 Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
624 Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
625 doc string.
626 (Map.BoundingBox): Removed superfluous test for label_layer
627 and improved doc string.
628 (Map.TreeInfo): Added label_layer and improved sdo string.
629
630 * Thuban/Model/label.py: Added import of _.
631 (Label, Label.__init__): Improved/added doc string.
632 (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
633 LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
634 Improved/added doc string.
635 (LabelLayer.AddLabel): Use already defined names for
636 align strings and improved doc string.
637 (LabelLayer.TreeInfo): New. Return the object data for
638 the tree view.
639
640 2005-02-16 Jonathan Coles <[email protected]>
641
642 Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
643 so that that wxproj doesn't crash. Added GUI support for selecting
644 alpha channel (opacity can't be selected yet).
645
646 NOTE: If wxPython.h is including in future distribution packages
647 then it will not be necessary to have the files swigPtrConvertHack.h
648 and wxPython_int.h included with Thuban. This is hopefully
649 a temporary workaround.
650
651 * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
652 access to the macro wxCHECK_VERSION so that it will properly
653 generate a bit mask. There was a problem between wx2.4 and wx2.5
654 that this works around.
655
656 * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
657 of RasterLayer.MaskType.
658 (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
659 (RasterLayer.MaskType): New. Returns the type of mask to use. Can
660 specify none, a bitmap, or an alpha channel.
661 (RasterLayer.SetMaskType): New. Set what kind of mask to use.
662
663 * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
664 Set the raster warping options for the mask based on the value
665 of RasterLayer.MaskType.
666
667 * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
668 deprecated calls to SetItemSelectedImage in favor of SetItemImage
669 with wxTreeItemIcon_Selected.
670
671 * Thuban/UI/rasterlayerproperties.py: Support selecting to use
672 an alpha channel for the mask.
673
674 * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
675 data if it is available and an alpha channel is supported under
676 the current version of wxPython.
677
678 * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
679 to select whether 1's or 0's select the desired portion of an image
680 in the bit mask. wx2.4 has a bug where the documentation is the opposite
681 from behavior.
682 (ProjectRasterFile): Only generate an alpha channel if the version
683 of wxPython is >= 2.5.3.
684
685 * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
686 When wxPython >= 2.5.3 use the special swig functions to decode an
687 object's address.
688
689 * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
690 based on the version of wxPython. If >= 2.5.3 use the special swig
691 functions from wxPython to decode wxPython objects, otherwise use
692 the old method of retrieving the address from the object __repr__ string.
693
694 * libraries/thuban/wxPython_int.h: Copied from wxPython source.
695 Unnecessary code was removed to make it smaller.
696
697 * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
698 Add tests for returning an alpha channel.
699
700 * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
701 tests that used removed functions UseMask and SetUseMask
702
703
704 2005-02-08 Bernhard Herzog <[email protected]>
705
706 More wxPython 2.5 changes. This time taken from a patch from
707 Daniel Calvelo Aros.
708
709 * Thuban/UI/tableview.py (QueryTableFrame.__init__)
710 (QueryTableFrame.__init__): Pass the size of a spacer as a single
711 item.
712
713 * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
714 (ProjFrame.build_dialog): Pass the size of a spacer as a single
715 item.
716
717 * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
718 size of a spacer as a single item.
719
720 * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
721 size of a spacer as a single item.
722
723 2005-02-08 Bernhard Herzog <[email protected]>
724
725 Compatibility with wxPython 2.5. The changes should make it work
726 better with 2.5 while still keeping compatibility with 2.4. There
727 are still problems with 2.5, though.
728
729 * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
730 of a spacer as a single item.
731
732 * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
733 from wxControl
734
735 * Thuban/UI/legend.py (LegendTree): When running with wxPython <
736 2.5, add an implementation of the GetFirstChild method that does
737 not require the second parameter.
738 (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
739 (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
740 (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
741 pass the second parameter to GetFirstChild
742
743 2005-02-08 Nina Hüffmeyer <[email protected]>
744
745 * Extensions/ogr/ogrshapes.py: Removed some print commands.
746
747 * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
748 additional menu but appears as a possibility in the menu Map.
749
750 2005-02-07 Jonathan Coles <[email protected]>
751 * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
752 and PYTHON_ERRF since they were no longer necessary.
753
754 2005-02-07 Bernhard Reiter <[email protected]>
755 * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
756 Enable translation for message string.
757
758 2005-02-06 Martin Schulze <[email protected]>
759
760 * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
761 the arguments of the contstructor to fit the global scheme
762
763 2005-01-31 Nina Hüffmeyer <[email protected]>
764
765 * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
766 some dialogs needed to start ogr.
767
768 * Extensions/ogr/__init__.py: Changed comments to avoid encoding
769 warnings.
770
771 * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
772 encoding warnings.
773
774 2005-01-28 Jonathan Coles <[email protected]>
775
776 * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
777 mask is packed into a bit array. It's now slightly faster.
778
779 2005-01-28 Jonathan Coles <[email protected]>
780
781 * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
782 default to true.
783
784 * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
785 code that loads the state of the layer's use_mask flag. Its
786 usefulness is still being debated.
787
788 * Thuban/Model/save.py (SessionSaver.write_layer): Remove
789 code that saves the state of the layer's use_mask flag. Its
790 usefulness is still being debated.
791
792 * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
793 options to ProjectRasterFile based on the state of layer.UseMask().
794 Catch more exceptions from ProjectRasterFile so that Thuban doesn't
795 quit is there is a problem projecting.
796 (BaseRenderer.draw_raster_data): Change the documentation to
797 describe the new format (XBM) that the mask data will be in.
798
799 * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
800 data is in XBM format when format='RAW' which means it doesn't
801 need to be converted to a wxImage before being used as a mask
802 for a wxBitmap. Assume that if format != 'RAW' that the image
803 data and mask data are in the same format.
804
805 * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
806 and a mask is requested, convert the alpha band to a bit array in
807 XBM format. if an alpha channel is requested, simply return the
808 data in the alpha band. Provide better error handling by returning
809 python error messages (also fixes RT #2947).
810 (ProjectRasterFile): Support multiple mask options, rather than simply
811 a flag indicating that a mask should or should not be used. Provide
812 better error handling by returning python error messages.
813
814 * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
815 Add mask data to test.
816
817 * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
818 should use the mask by default.
819 (TestLayerModificaton.test_raster_layer): Test that a layer should use
820 the mask by default.
821
822 * test/test_load.py (TestRasterLayer.test): Remove testing for
823 use_mask flag in file.
824
825 * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
826 for use_mask in file.
827
828 * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
829
830 2005-01-26 Jonathan Coles <[email protected]>
831
832 Add a new dialog box for raster layers. The dialog box allows
833 the user to toggle a mask that is generated by ProjectRasterFile
834 and is used to only draw the real parts of the projected image.
835
836 * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
837 Instruct the warping code to generate a mask if the raster layer
838 requests one.
839 (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
840
841 * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
842 obsolete optional mask argument.
843
844 * Thuban/UI/classifier.py (Classifier): Change the parent class
845 to LayerProperties and rework the code to support layout calls
846 from the parent.
847 (Classifier.dialog_layout): New. Layout the dialog box.
848 (Classifier.map_layers_removed): Removed. Moved to parent class.
849 (Classifier.map_replaced): Removed. Moved to parent class.
850 (Classifier._OnTry): Renamed to OnTry to support parent class.
851 (Classifier.OnClose): Removed. Supplied in parent class.
852 (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
853 (Classifier._OnOK): Renamed to OnOK to support parent class.
854 (Classifier._OnRevert): Renamed to OnRevert to support parent class.
855
856 * Thuban/UI/layerproperties.py: New. Base class for layer properties
857 dialog boxes.
858
859 * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
860 raster layer properties.
861
862 * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
863 with the non-simple version supplied with gdal. This allows added
864 features such as creating an alpha band.
865 (GetImageData): Generate a mask array from the alpha band that is
866 generated by gdal if the user has selected it. Try to support images
867 that have more than three bands, such as images with RGB plus an
868 alpha band.
869 (ProjectRasterFile): Convert python argument for mask and tell
870 gdal to enable or disable an alpha band.
871
872 * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
873 describing what kind of layer the class is. Defaults to "Unknown",
874 but should be overridden by subclasses.
875 (Layer.Type): New. Override base class method.
876 (RasterLayer.__init__): Create a flag for using a mask. Record extra
877 data from gdal for display in the properties dialog.
878 (RasterLayer.Type): New. Override base class method.
879 (RasterLayer.UseMask): New. Returns True if the mask should be used.
880 (RasterLayer.SetUseMask): New. Set if the mask should be used.
881 (RasterLayer.ImageInfo): New. Return extra information about the image.
882
883 * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
884 the mask information.
885
886 * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
887
888 * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
889 Classifier classes as dialogs to use with the proper layer types.
890
891 * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
892 Fix test.
893
894 * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
895 (TestLayerModification.build_path): New. Support function.
896 (TestLayerModification.test_raster_layer): New. Test new methods.
897
898 * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
899
900 * test/test_load.py (TestRasterLayer): Add tests for mask.
901
902 * test/test_load_1_0_1.py: New. Copied from test_load.py.
903
904 * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
905 obsolete optional mask argument.
906
907 2005-01-26 Nina Hüffmeyer <[email protected]>
908
909 * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
910 which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
911 RowOrdinalToId() and ReadRowAsDict().
912
913 * Extensions/ogr/ogrstart.py: Added menu item which opens database
914 layers for existing database connections.
915
916 * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
917
918
919 2005-01-26 Jan-Oliver Wagner <[email protected]>
920
921 * Doc/manual/thuban-manual-de.xml: More translations.
922
923 2005-01-24 Bernhard Herzog <[email protected]>
924
925 Rework the status bar updates a bit to make sure the message about
926 the projections is produced at the right times.
927
928 * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
929 New class variable with messages that may require a status bar
930 update.
931 (MainWindow.view_position_changed)
932 (MainWindow.update_status_bar): Rename from view_position_changed
933 to update_status_bar. It's meaning has changed now that it may
934 also generate messages about problems with projection settings.
935 (MainWindow.__init__): Use the new update_status_bar_messages
936 class variable to subscribe update_status_bar
937 (MainWindow.set_position_text): Update doc-string. This method
938 has to be renamed at some point. See doc-string and comments.
939 (MainWindow.OnClose): Unsubscribe update_status_bar from all
940 messages in update_status_bar_messages
941
942 * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
943 class attribute. map messages to be forwarded by the viewport.
944 (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
945 the messages in forwarded_map_messages
946
947 2005-01-21 Bernhard Herzog <[email protected]>
948
949 * test/postgissupport.py (PostGISDatabase.__init__): Tweak
950 doc-string
951 (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
952 different name for the initialization SQL file.
953
954 2005-01-21 Jonathan Coles <[email protected]>
955
956 * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
957 a projection and returns a formatted string representing the
958 parameters to feed to gdalwarp. This function eliminates
959 redundancy in draw_raster_layer().
960 (BaseRenderer.render_map_incrementally): Removed the optimization which
961 drew the top most raster layer first and then only those vector-
962 based layers that are above it. With the support for transparency
963 this optimization breaks correct behaviour.
964 (BaseRenderer.draw_raster_layer): Reorganize code to support possible
965 future enhancements to raster layer bounding box. The old behaviour has
966 not changed. Also, change calling parameters to draw_raster_data()
967 to specify new RAW data format and mask.
968 (BaseRenderer.draw_raster_data): Change signature to include an optional
969 parameter for mask information. Change documentation to mention
970 support for new parameter and added option for RAW data format.
971 The data argument is now a list of [width, height, data].
972
973 * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
974 mask parameter. Add new condition for RAW format, which
975 significantly reduces rendering time. Add condition for
976 mask parameter.
977
978 * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
979 data array of RGB values from the projected image returned from
980 the gdal warping functions. In the case of palette based images, it
981 converts the NO_DATA index to the mask color.
982 (ProjectRasterFile): Removed all custom memory driver references
983 and replaced it with the standard in-memory dataset provided
984 by gdal. The return data is no longer a BMP file, but an array
985 of RGB values, one set triple per pixel.
986
987 * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
988 * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
989 * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
990
991 * setup.py (thuban_build_ext.finalize_options): Removed mention
992 of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
993 files. These are obsolete with the new version of gdalwarp.cpp
994
995 * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
996 Updated signature.
997 (TestBaseRenderer.test_raster_no_projection): Changed the test
998 data to be data in the uncompressed RAW format returned from
999 ProjectRasterFile.
1000
1001 2005-01-21 Jan-Oliver Wagner <[email protected]>
1002
1003 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
1004 string available for i18n.
1005
1006 2005-01-20 Russell Nelson <[email protected]>
1007
1008 * Resources/Projections/defaults.proj: Ruin the speling of the
1009 Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
1010 It's the wrong thing to do in the long run, but it's necessary for
1011 those users until that bug is fixed. Otherwise the projection
1012 dialog segfaults. Better to annoy some Lambert-93 users with a
1013 spelling mistake than every Fedora Core 3 user of Thuban-CVS.
1014
1015 2005-01-20 Bernhard Reiter <[email protected]>
1016
1017 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
1018 docstring and comment that the warning code here is a hack.
1019
1020 2005-01-20 Russell Nelson <[email protected]>
1021
1022 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
1023 user about misprojected layers when their lat/lon bounding
1024 box exceeds rational lat/lon values.
1025
1026 2005-01-20 Bernhard Reiter <[email protected]>
1027
1028 * Thuban/UI/about.py (unicodeToLocale): Improved:
1029 Use 'ascii' and then 'replace' for other characters
1030 when getdefaultlocale returns None. Thanks to Bernhard H. .
1031
1032 2005-01-20 Bernhard Reiter <[email protected]>
1033
1034 * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
1035 that OnRangeText might be called twice and using None as argument.
1036
1037 2005-01-20 Bernhard Reiter <[email protected]>
1038
1039 * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
1040 OnRangeText(0) to work around a different in wx Behaviour noticed
1041 on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
1042
1043 2005-01-20 Bernhard Reiter <[email protected]>
1044
1045 * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
1046 None. (Fixes rt#2910.)
1047
1048 2005-01-18 Frank Koormann <[email protected]>
1049
1050 New Extension: mouseposition
1051 Tool to collect mouse click positions (map coordinates) in a dialog.
1052
1053 * Extensions/mouseposition/__init__.py: New, extension registration
1054
1055 * Extensions/mouseposition/mouseposition.py: New, implements the
1056 dialog and adds a tool to Thuban mainwindow.
1057
1058 * Extensions/mouseposition/position.xpm: New, icon for tool.
1059
1060 2005-01-14 Jan-Oliver Wagner <[email protected]>
1061
1062 * Doc/manual/thuban-manual-de.xml: More translations.
1063
1064 2005-01-11 Frank Koormann <[email protected]>
1065
1066 * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
1067 Fix indention bug.
1068
1069 2005-01-09 Frank Koormann <[email protected]>
1070
1071 * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
1072 BugFix 2901: Explicitly copy layers ClassificationColumn since it
1073 is not part of the layers Classification.
1074
1075 2005-01-03 Frank Koormann <[email protected]>
1076
1077 * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
1078 BugFix 2883: Former implementation only worked on classified point
1079 layers: KeyError was raised, now use the default size if field is None.
1080
1081 2004-12-27 Bernhard Reiter <[email protected]>
1082
1083 svgexport 1.0.0cvs: Fixed label export.
1084
1085 * Extensions/svgexport/test/test_svgmapwriter.py:
1086 class TestSVGRenderer(): New class; new test test_label_font().
1087
1088 * Extensions/svgexport/svgmapwriter.py
1089 (SVGRenderer.label_font()): initialised Font size with self.factor now,
1090 makes test_label_font happy.
1091
1092 * Extensions/svgexport/TODO: crossed out fixed label export item.
1093 Added item for options.
1094
1095 * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
1096
1097 2004-12-27 Russell Nelson <[email protected]>
1098
1099 Middle mouse button pans.
1100
1101 * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
1102 OnMiddleDown and OnMiddleUp events.
1103 (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
1104 previously used tool.
1105 (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
1106 pressing the middle mouse button.
1107
1108 2004-12-27 Jan-Oliver Wagner <[email protected]>
1109
1110 * Doc/manual/thuban-manual-de.xml: More translations.
1111
1112 2004-12-23 Jan-Oliver Wagner <[email protected]>
1113
1114 * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
1115 \n to stderr after the warnings. Thanks to Russell Nelson.
1116
1117 2004-12-20 Nina Hueffmeyer <[email protected]>
1118
1119 * Extensions/ogr/ogrshapes.py: Fixed some issues from
1120 Bernhard (coding guidelines etc.). Additionally it is now possible to
1121 display shapefiles containing feature collections (e.g.polygons
1122 with holes). Works with gdal 1.2.1 now.
1123
1124 * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
1125 from Bernhard (coding guidelines etc.). If ogr can't be imported,
1126 tests are skipped now.
1127
1128 * Extensions/ogr/ogrstart.py: Fixed some typings.
1129
1130 2004-12-20 Bernhard Reiter <[email protected]>
1131
1132 * Extensions/svgexport/TODO: updated to add support for
1133 raster layers and labels for 1.0.1.
1134
1135 * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
1136 Issue a warning now.
1137
1138 2004-12-19 Bernhard Reiter <[email protected]>
1139
1140 * Extensions/svgexport/TODO: Added idea to support triggering
1141 the application down the pipe.
1142
1143 2004-12-19 Bernhard Reiter <[email protected]>
1144
1145 svgexport: Improved code quality, mainly by better naming.
1146
1147 * Extensions/svgexport/svgmapwriter.py:
1148 DrawPath() renamed to DrawPolygonPath(),
1149 added documentation, improved comments and variable names.
1150
1151 * Extensions/svgexport/svgmapwriter.py,
1152 Extensions/svgexport/test/test_svgmapwriter.py:
1153 All using DrawPolygonPath() now, the default parameter closed=True
1154 omitted.
1155
1156 * Extensions/svgexport/test/test_svgmapwriter.py:
1157 renamed test_polygon_opened() to test_polyline()
1158 renamed test_transparent_polygon() to test_transparent_polyline()
1159
1160 2004-12-18 Jan-Oliver Wagner <[email protected]>
1161
1162 Some fixes of gns2shp extension.
1163
1164 * Extensions/gns2shp/test/__init__.py: New. Make this directory a
1165 package.
1166
1167 * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
1168 dynamically.
1169
1170 * Extensions/gns2shp/test/README: Simplified description how to test.
1171
1172 * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
1173 fixed some dimensions of fields according to the GNS documentation
1174 which seems to change undocumented.
1175 Now killing trailing \n and/or \r from MODIFY_DATE.
1176 This fixes RT#2453.
1177
1178 2004-12-18 Bernhard Reiter <[email protected]>
1179
1180 svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
1181
1182 * Extensions/svgexport/test/test_svgmapwriter.py:
1183 Added new tests: test_export_polygon_with_hole()
1184 and test_polygon_with_hole().
1185
1186 * Extensions/svgexport/svgmapwriter.py
1187 (draw_polygon_shape()): Uses DrawPath correctly now.
1188
1189 * Doc/manual/thuban-manual.xml: Added documentation for stable
1190 extention svgexport.
1191 * Doc/manual/thuban-manual-de.xml: Copied English section about
1192 svexport over.
1193
1194 * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
1195
1196 * Extensions/svgexport/svgsaver.py,maplegend.py:
1197 Moved from experimental to stable extension menu.
1198
1199 * Extensions/svgexport/TODO: updated.
1200
1201
1202 2004-12-18 Bernhard Reiter <[email protected]>
1203
1204 Added Extensions/svgexport/TODO
1205
1206 2004-12-18 Bernhard Reiter <[email protected]>
1207
1208 Refactored in svgexport:
1209 DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
1210
1211 * Extensions/svgexport/svgmapwriter.py
1212 Added verbosity level 3 to print out polygon points.
1213 (class Point): added __repr__
1214 (class Brush, __str__()): Added space after ,.
1215 (DrawPolygon): Renamed to DrawPath()
1216 (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
1217 (DrawLines): Using DrawPath now.
1218
1219 * Extensions/svgexport/test/test_svgmapwriter.py:
1220 Replaced DrawPolygon() calls with DrawPath() and put the first argument
1221 inside another list. Adapted test data with a newline before "M".
1222
1223 2004-12-18 Bernhard Reiter <[email protected]>
1224
1225 Refactored svgexport tests: 9 double tests runs eliminated;
1226 code size reduced by 8 lines.
1227
1228 * Extensions/svgexport/test/test_svgmapwriter.py:
1229 (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
1230 (class BaseWithDCtools): New, subclass from BaseTestWithDC.
1231 (class TestDrawSplines): now subclass from BaseTestWithDCtools,
1232 this fixed the double running of the nine tests of TestVirtualDC.
1233 (class TestVirtualDC): Using self.dc and self.file from setUp().
1234
1235 2004-12-17 Bernhard Herzog <[email protected]>
1236
1237 Two windows specific fixes ported from thuban-1­0-branch:
1238
1239 * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
1240 instead of getlocale because getlocale doesn't return a usable
1241 encoding name on a german windows 2000
1242
1243 * setup.py: windows build: Removed the absolute path names and
1244 made all prfixes relative to the directory containing setup.py.
1245 Makes it a little easier to adapt to a different system.
1246
1247 2004-12-16 Bernhard Herzog <[email protected]>
1248
1249 Add support for PostGIS tables with LINESTRING geometries.
1250 Fixes RT#2299
1251
1252 * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
1253
1254 * test/postgissupport.py
1255 (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
1256 table to "roads-multi" because it now uses MULTILINESTRING
1257 geometries and introduce a new "roads" table that uses LINESTRING
1258 (coords_to_multilinestring): Make the doc string more precise
1259 (coords_to_linestring): New. Create a LINESTRING WKT
1260 representatin
1261 (wkt_converter): Add coords_to_linestring
1262 (upload_shapefile): Rephrase the doc-string a bit.
1263
1264 * test/test_postgis_db.py (TestPostGISShapestoreArc)
1265 (LineStringTests)
1266 (TestPostGISShapestoreLineString)
1267 (TestPostGISShapestoreMultiLineString): Split
1268 TestPostGISShapestoreArc into a base class LineStringTests and two
1269 derived classes TestPostGISShapestoreLineString for LINESTRING
1270 geometries and TestPostGISShapestoreMultiLineString for
1271 MULTILINESTRING geometries. Most test methods are in the base
1272 class with the exception of tests that explicitly check the raw
1273 format.
1274
1275 2004-12-16 Bernhard Herzog <[email protected]>
1276
1277 Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1278
1279 * test/postgissupport.py (find_postgis_sql): Different postgis
1280 versions put the postgis.sql file into slightly different places
1281 so we have to look in both. The updated doc string describes this
1282 is more detail.
1283
1284 * test/test_postgis_db.py
1285 (TestPostGISSpecialCases.test_column_name_quoting): The return
1286 value of UniqueValues is unsorted, so it has to be sorted for
1287 comparison.
1288
1289 2004-12-16 Bernhard Herzog <[email protected]>
1290
1291 Fix for RT#2237
1292
1293 * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1294 panel to be shown is the UnknownProjPanel disable the OK and Try
1295 buttons. Otherwise enable them.
1296 (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1297 the parameters. In that case __GetProjection also returns None
1298 now.
1299
1300 2004-12-15 Bernhard Herzog <[email protected]>
1301
1302 * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1303 minimum number of classes to 2. The calculate_quantiles needs at
1304 least two and raises an exception otherwise.
1305 Fixes RT#2549
1306
1307 2004-12-15 Bernhard Herzog <[email protected]>
1308
1309 * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1310 so that it returns a result for select statements.
1311 (PostgreSQLServer.server_version): New. Return the version of the
1312 server software.
1313 (PostgreSQLServer.require_authentication): The format of
1314 pg_hba.conf has changed between PostgrSQL 7.2 and 7.3. Check the
1315 server version and generate the file in the correct format
1316
1317 2004-12-15 Bernhard Herzog <[email protected]>
1318
1319 * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1320 in the doc string and rephrase it a little.
1321
1322 2004-12-15 Frank Koormann <[email protected]>
1323
1324 * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1325 session has been loaded successfully. The check is called by the relevant
1326 tests after executing load_session().
1327
1328 2004-12-13 Bernhard Herzog <[email protected]>
1329
1330 Make sure the region used to determine which shapes are visible
1331 actually matches the region on the printed page. If this isn't
1332 done properly some shapes might not be printed.
1333 Fixes RT #2692
1334
1335 * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1336 renderer has to be at the same position as the mapregion
1337
1338 * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1339 has to be moved by (self.shiftx, self.shifty) too.
1340
1341 2004-12-13 Bernhard Herzog <[email protected]>
1342
1343 * libraries/pyprojection/Projection.i: Work around a bug in the
1344 generated python code which leads to exception in the __del__
1345 method when the constructor fails. See the comments in the code
1346 for more details.
1347
1348 * libraries/pyprojection/Projection.py: Updated from Projection.i
1349 with SWIG.
1350
1351 2004-12-13 Bernhard Herzog <[email protected]>
1352
1353 * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1354 (TestAltPath.test_02_path_error_fix_from_list)
1355 (TestAltPath.test_05_path_error_fix_from_list_changed)
1356 (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1357 is destroyed in tearDown, so there's no need to do it in a test
1358 case.
1359
1360 * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1361 debug print
1362
1363 2004-12-13 Bernhard Herzog <[email protected]>
1364
1365 * Extensions/svgexport/test/test_svgmapwriter.py
1366 (TestDrawSplines.setUp): Do not use super with the unittest
1367 classes because in Python 2.2 they're still old-style classes.
1368
1369 2004-12-13 Frank Koormann <[email protected]>
1370
1371 Alternative Path feature: When loading a (moved) session where
1372 shapefiles cannot be found, ask the user. Use the specified path
1373 if further shapefiles are missing. However, ask the usr for confirmation
1374 in such cases.
1375
1376 * test/test_load.py (TestAltPath): New, tests for alternative path feature
1377 in load_session()
1378 (Shapefile_CallBack): Helper, implements controllable callback.
1379
1380 * Thuban/UI/application.py (ThubanApplication.OnInit):
1381 Added "alt_path" to self.path
1382 (ThubanApplication.OpenSession): Added shapefile_callback as second
1383 callback similar to db_connection_callback.
1384 (ThubanApplication.run_alt_path_dialog): New, implementaion of
1385 shapefile_callback. In addition to raising the dialog the control of
1386 self.path('alt_path') is implemented here.
1387
1388 * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1389 (SessionLoader.open_shapefile): Open shapefile, eventually with
1390 alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1391 formerly used in start_fileshapesource()/start_layer().
1392 (SessionLoader.start_fileshapesource): Call open_shapefile().
1393 (SessionLoader.start_layer): Call open_shapefile().
1394 (load_session): Added shapefile_callback.
1395
1396 * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1397 feature (search / check).
1398
1399 * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1400
1401 2004-12-11 Bernhard Reiter <[email protected]>
1402
1403 svgexport 0.9.2: Point size supports for maps.
1404
1405 * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1406 (def draw_point_shape): new parameter size defaults to 2 as before.
1407 (draw_shape_layer_incrementally): Moved draw_func log line higher.
1408 Added draw_func call with size when dealing with a point layer.
1409
1410 * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1411
1412 2004-12-11 Bernhard Reiter <[email protected]>
1413
1414 Made sure that newlines are inserted in the svg path d attributes
1415 to raise the chance that the line length will be below 255 characters,
1416 as recommended by REC SVG 1.1 in section 8.3.1.
1417
1418 * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1419 Adding \n before L's and changed whitespace handling.
1420
1421 * Extensions/svgexport/test/test_svgmapwriter.py:
1422 Adapted tests to new whitespace handling of DrawPolygon.
1423
1424 2004-12-11 Bernhard Reiter <[email protected]>
1425
1426 * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1427
1428 * Extensions/svgexport/test/test_svgmapwriter.py:
1429 Removed test_drawbezier in favour of new test_drawspline3 and
1430 test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1431 All only to test DrawSpline.
1432
1433 * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1434 New implementation now really using the strange algorithm of
1435 xfig 3.1's approximated splines and its conversion to postscript
1436 with one twist: SVG can do quadratic beziers, so skipped translation
1437 to cubic beziers.
1438 (TestWithDC): Typo in comment fixed.
1439
1440 2004-12-09 Martin Schulze <[email protected]>
1441
1442 * Thuban/Model/classgen.py: Added missing character encoding
1443
1444 * Extensions/wms/properties.py (OpenWMSProperties): removed
1445
1446 * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1447 support for get_srs_discrepancies() since there are no
1448 discrepancies anymore (was a thinko)
1449
1450 * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1451 format priority now that more formats are supported globally by
1452 the render engine.
1453
1454 2004-12-08 Silke Reimer <[email protected]>
1455 * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1456 because it is not available in all versions of ogr
1457
1458 2004-12-08 Bernhard Reiter <[email protected]>
1459 * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1460 global tests until a real one is commited.
1461
1462 2004-12-07 Nina Hüffmeyer <[email protected]>
1463
1464 * /Extensions/ogr/: Adding a new extension to read shapefiles with
1465 ogr. It is planned to add other vector formats.
1466
1467 * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1468
1469 2004-12-07 Jan-Oliver Wagner <[email protected]>
1470
1471 * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1472 part of a (non-)fix to renable that the tests are always
1473 executed.
1474
1475 2004-12-07 Bernhard Reiter <[email protected]>
1476
1477 * Extensions/svgexport/test/test_svgmapwriter.py:
1478 Added test_drawbezier() to test DrawSpline().
1479
1480 * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1481 Really implemented bezier drawing.
1482
1483 * Extensions/svgexport/__init__.py: Bumped version of svgexport
1484 to 0.9.1 because now the legend examples lines styles
1485 will be drawing with beziers.
1486
1487 2004-12-05 Martin Schulze <[email protected]>
1488
1489 * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1490 GIF as supported bitmap image formats (helpful for the WMS extension)
1491
1492 2004-11-30 Martin Schulze <[email protected]>
1493
1494 * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1495 Improved the test for the internal compare method
1496
1497 2004-11-27 Jan-Oliver Wagner <[email protected]>
1498
1499 * Thuban/UI/about.py (About.__init__): Added
1500 Norbert Solymosi for hungarian translation and Ole Rahn
1501 as contrbutor. Moved Bernhard Reiter from Contributor
1502 to Developer.
1503
1504 2004-11-27 Bernhard Reiter <[email protected]>
1505
1506 * Extensions/svgexport/test/test_svgmapwriter.py:
1507 Removed Jan from author list as he did not change enough significant
1508 lines yet.
1509
1510 * Extensions/svgexport/__init__.py: Added Bernhard as author
1511 of the Extension.
1512
1513 2004-11-27 Jan-Oliver Wagner <[email protected]>
1514
1515 * po/hu.po: New. Hungarian translation. Contributed
1516 by Norbert Solymosi.
1517
1518 2004-11-26 Bernhard Herzog <[email protected]>
1519
1520 * Extensions/svgexport/test/test_svgmapwriter.py
1521 (Testobjectexport.test_transparent_polygon): Commented out some
1522 debug prints
1523
1524 2004-11-24 Jan-Oliver Wagner <[email protected]>
1525
1526 Fix broken tests for svg extension and added svg legend
1527 to Experimental menu.
1528
1529 * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1530 the test run correctly even if the extension is a package.
1531 Also removed the "import Thuban" which makes no sense.
1532
1533 * Extensions/svgexport/__init__.py: Fix to have the extensions'
1534 test module also be executed from the global test routine.
1535 This is done by looking for the absense of the DISPLAY variable.
1536
1537 * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1538 to Experimental menu since this module has yet not reached a stable
1539 status (ie. 1.0).
1540
1541 2004-11-22 Bernhard Reiter <[email protected]>
1542
1543 * Extensions/svgexport/svgmapwriter.py:
1544 Added verbose variable and some logging depending on it.
1545 (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1546 because counting i is not necessary.
1547 (class Pen, class Brush): Added simple __str__ methods.
1548 (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1549 not exported to svg file) Note: holes still unhandled.
1550
1551 * Extensions/svgexport/test/test_svgmapwriter.py:
1552 Made a baseclass TestWithDC for test needed a DC.
1553 Added tests for bug #2698 (transparent polygons are not
1554 exported to svg file):
1555 Testobjectexport.test_transparent_polygon()
1556
1557 * Thuban/Model/base.py (UnsetModified):
1558 Fixed some typos in docstring.
1559
1560 * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1561 Added hints on the used algorithm for handling holes.
1562
1563 2004-11-20 Jan-Oliver Wagner <[email protected]>
1564
1565 Some face lifting for the examples.
1566
1567 * Examples/__init__.py: Make this directory a package.
1568
1569 * Examples/simple_extensions/__init__.py: Make this directory a package.
1570
1571 * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1572 menu to Examples menu.
1573
1574 * Examples/simple_extensions/simple_command.py: Some more comments,
1575 minor changes.
1576
1577 * Examples/simple_extensions/simple_tool.py: Minor changes.
1578
1579 2004-11-20 Jan-Oliver Wagner <[email protected]>
1580
1581 Changed way of extension registry for wms and added extension
1582 registry for umn_mapserver extension.
1583
1584 * Extensions/wms/__init__.py: Added registry entry and the importing
1585 of the actual wms module. Included a test for the required PyOGCLib.
1586
1587 * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1588
1589 * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1590 importing of the actual umn mapserver management modules.
1591 Included a test for the required Python MapScript.
1592
1593 2004-11-20 Jan-Oliver Wagner <[email protected]>
1594
1595 Changed way of extension registry for importAPR, bboxdump
1596 and added extension registry for svgexport.extension registry for
1597 svgexport.
1598
1599 * Extensions/importAPR/__init__.py: Added registry entry and the importing
1600 of the actual importAPR module.
1601
1602 * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1603 __init__.py).
1604
1605 * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1606 »···of the actual bboxdump module.
1607
1608 * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1609 »···__init__.py).
1610
1611 * Extensions/svgexport/__init__.py: Added registry entry and the importing
1612 of the svgsaver module.
1613
1614 * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1615 to Experimental menu since this module has yet not reached a stable
1616 status (ie. 1.0).
1617
1618 2004-11-18 Jan-Oliver Wagner <[email protected]>
1619
1620 Now the hit test considers the size of point symbols.
1621
1622 * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1623 'size' defaulting to the previously fixed value 5.
1624 Extended doc-string.
1625 (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1626 for symbols.
1627 Now the size of the largest point symbol is determined to find out
1628 about whether the point has been hit.
1629 This fixes the problem that only clicks inside a fixed distance of
1630 5 where found.
1631
1632 2004-11-17 Jan-Oliver Wagner <[email protected]>
1633
1634 Another open issue fixed regarding sizeable symbols: correct rendering of
1635 selected symbols.
1636
1637 * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1638 Added consideration of the specific size of point symbols.
1639 The property for each point symbol is retrieved and the size applied
1640 for the rendering method.
1641 Added doc-string.
1642
1643 2004-11-16 Jan-Oliver Wagner <[email protected]>
1644
1645 Changed way of Extension Registry for gns2shp and profiling.
1646
1647 * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1648 __init__.py).
1649
1650 * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1651 of the actual gns2shp module.
1652
1653 * Extensions/profiling/profiling.py: Removed registry entry (moved to
1654 __init__.py).
1655
1656 * Extensions/profiling/__init__.py: Added registry entry and the importing
1657 of the actual profiling module.
1658
1659 2004-10-28 Bernhard Reiter <[email protected]>
1660
1661 * Extensions/svgexport/: Minor improvements to doc strings.
1662
1663 2004-10-07 Jan-Oliver Wagner <[email protected]>
1664
1665 Further elements for sizable point objects now
1666 making this feature usable though not yet complete.
1667
1668 * Thuban/Model/save.py (SessionSaver.write_classification): Write
1669 attribute 'size' for cldata when the shape layer is of point type.
1670 This also now make the test_load.py tests happy.
1671
1672 * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1673 gradient.
1674
1675 * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1676 ID_SELPROP_SPINCTRL_LINEWIDTH.
1677 (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1678 (ID_SELPROP_SPINCTRL_SIZE): New Id.
1679 (SelectPropertiesDialog.__init__): Added a second spin control
1680 for the size in case the corresponding layer is of point type.
1681 (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1682 (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1683 (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1684 and refresh preview.
1685
1686
1687
1688 2004-10-04 Martin Schulze <[email protected]>
1689
1690 * Extensions/wms/test/test_parser.py
1691 (TestWMSCapabilitiesParser.test_compareLists): Added missing
1692 self-test for compareLists()
1693 (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1694 self-test for compareDicts()
1695 (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1696 to verify the test routine fails with non-equal arguments
1697 (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1698 to verify the test routine fails with non-equal arguments
1699
1700 2004-10-03 Jan-Oliver Wagner <[email protected]>
1701
1702 First elements for sizeable point objects.
1703
1704 * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1705
1706 * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1707
1708 * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1709 of a corresponding argument is given.
1710 (TestSymbolSize): New. Test the size attribute of cldata.
1711
1712 * Thuban/Model/classification.py: Removed some trailing whitespaces.
1713 (ClassGroupProperties.__init__): Set default size.
1714 (ClassGroupProperties.SetProperties): Set the size.
1715 (ClassGroupProperties.GetSize): New. Return the size.
1716 (ClassGroupProperties.SetSize): New. Set the size.
1717 (ClassGroupProperties__eq__): Compare also size.
1718 (ClassGroupProperties__repr__): Print also size.
1719
1720 * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1721 the size attribute.
1722
1723 * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1724 Also, now there is a return value that indicates whether the drawing
1725 size exceeded the given rect extent and if so the new extent.
1726 Finally, point objects are drawn depending on the size. If either
1727 the width or height is exceeded, the new extent is returned.
1728 (ClassRenderer.Draw): Now when calling the previewer drawing function,
1729 evaluate the return value and, if not None, adapt the grid widget size
1730 accordingly and redraw again.
1731
1732 * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1733 If the draw function is for points, call it with the size as additional
1734 parameter.
1735 (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1736 the size. Compute the radius using the size.
1737
1738 * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1739 that Thuban supports size, apply this correctly.
1740
1741 * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1742
1743 2004-10-03 Jan-Oliver Wagner <[email protected]>
1744
1745 * Doc/manual/thuban-manual-de.xml: Started translation of
1746 Map chapter.
1747
1748 2004-10-01 Martin Schulze <[email protected]>
1749
1750 * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1751 argument for general use through properties-dialog selector
1752
1753 * Thuban/UI/classifier.py: Register properties dialog classes for
1754 both provided layer classes/types.
1755
1756 * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1757 map can be retrieved through the parent which is passed to the
1758 constructor anyway and doesn't require an argument of its own,
1759 required for the unification of arguments for general use through
1760 properties-dialog selector.
1761 (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1762 whether a dialog is already opened (and raising it to the users
1763 attention) and creating a new dialog into a function of its own
1764 (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1765 method
1766 (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1767 global registration of properties dialog classes (which are indeed
1768 layer-specific).
1769
1770 * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1771 for general use through properties-dialog selector, the map can be
1772 retrieved through the parent and doesn't require an argument of
1773 its own.
1774
1775 * Extensions/wms/wms.py: Register the properties dialog class for
1776 the provided WMS layer
1777
1778 2004-09-28 Jan-Oliver Wagner <[email protected]>
1779
1780 New feature: Registry for Extensions.
1781
1782 * Thuban/UI/extensionregistry.py: This module defines a registry for
1783 Extensions.
1784
1785 * Thuban/UI/about.py (About.__init__): Added description
1786 of the registered extensions with all of the information.
1787
1788 * Thuban/Model/extension.py (Extension): Improved doc-string.
1789
1790 * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1791 Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1792 Extensions/wms/wms.py: Added registration of the extension.
1793
1794 2004-09-27 Bernhard Reiter <[email protected]>
1795
1796 More fixes to svgexport to make used ids unique and
1797 conforming to XML's Name production.
1798
1799 * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1800 test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1801 test_make_id_nonintegersetid(). Switched SetID and SetBaseID.
1802 Added Bernhard R. as author.
1803 * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1804 concatenation char now (makes test_make_ide_nosetbaseid() valid).
1805 Also transform second id part with "%d" and catch the TypeError
1806 to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1807 Corrected typo inBernhard's author line.
1808 (SetBaseID): Return the transformed base id. Transform characters
1809 which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1810 import binascii. If to be set string starts with "xml" or so, add "t".
1811 (draw_shape_layer_incrementally): use the returned value of SetBaseID
1812 for used_baseids checks.
1813
1814 2004-09-25 Bernhard Herzog <[email protected]>
1815
1816 * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1817 Remove a debug print and some tab characters.
1818
1819 2004-09-25 Bernhard Reiter <[email protected]>
1820
1821 * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1822 (SetBaseID, SetID, make_id): Improved docstring comments to explain
1823 the interaction of the three functions and the XML id contrains.
1824
1825
1826 2004-09-23 Jan-Oliver Wagner <[email protected]>
1827
1828 * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1829 Module.
1830
1831 * Doc/README: Added info on ThubanModel.xmi.
1832
1833 2004-09-23 Jan-Oliver Wagner <[email protected]>
1834
1835 * Doc/README: New. Some info about how to generate technical
1836 documentation from the source code.
1837 This text was send to the Thuban developer mailing list on
1838 September 21st 2004 by Bernhard Reiter.
1839
1840 2004-09-21 Bernhard Reiter <[email protected]>
1841
1842 Improved the svgexport to only use unique ids. Will issues
1843 an error message dialoge when two layer names are the same.
1844 ShapeIDs are now added with a dash within the svg ids.
1845
1846 * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1847 * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1848 (TestSVGRenderer): New test class with test_make_in() and
1849 test_check_for_layer_name_clash()
1850 * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1851 and draw_shape_layer_incrementally() to not use a baseid twice,
1852 satisfying test_check_for_layer_name_clash()
1853 (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1854 test_make_in().
1855 * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1856 and wxICON_HAND.
1857 (write_to_svg): Put dc and rendering in a try statement and on
1858 catching SVGmapWriterError notify the user and delete the target file.
1859
1860 2004-09-20 Bernhard Reiter <[email protected]>
1861
1862 * Model/base.by, Model/layer.py: Fixed typos in docstrings.
1863
1864 2004-09-03 Jan Schüngel <[email protected]>
1865
1866 * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
1867 small bug with the line color. Now the line color will now only set
1868 if it is set in Thuban an not Transparent.
1869
1870 * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
1871 deleting the layers from mapfile. Now all layers will delete backwards
1872 from the last.
1873
1874 2004-08-20 Silke Reimer <[email protected]>
1875
1876 * Thuban/Model/layer.py:
1877 Fixes bug in projection handling: Otherwise very large region might not
1878 have valid values in the layer's projection.
1879
1880 2004-08-20 Silke Reimer <[email protected]>
1881
1882 * Thuban/UI/about.py:
1883 small changes to be consistent with coding style.
1884
1885 2004-08-13 Martin Schulze <[email protected]>
1886
1887 * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
1888 Adjusted a comment
1889
1890 2004-08-11 Silke Reimer <[email protected]>
1891
1892 * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
1893 too many and too enhanced imports of locale
1894
1895 2004-08-10 Silke Reimer <[email protected]>
1896
1897 * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
1898 function unicodeToLocale() to convert special characters to users
1899 locale encoding
1900
1901 2004-08-10 Jan-Oliver Wagner <[email protected]>
1902
1903 * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
1904 lower case letter'
1905
1906 2004-08-09 Jan Schüngel <[email protected]>
1907
1908 * ChangeLog: Rewrite the last ChangeLog entry to follow
1909 the standard way.
1910
1911 * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
1912 the function where it is needed, because it don't works if it stands
1913 at the beginning.
1914 (MF_Layer.__init__): Removed the extra numclassed variable. Now
1915 numclasses from the mapscript will be used.
1916 (MF_Layer.get_index): New. Return the index of the layer in mapfile.
1917 (MF_Layer.set_classes): New. A Classlist will be set to the layer.
1918 (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
1919 (MF_Layer.remove_allclasses): New. All class of the layer will remove.
1920 (MF_Map.create_new_layer): New. A new Layer is created and associated
1921 with the mapscript object.
1922 (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
1923 the mapscript.
1924 (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
1925 linked to the layer in thuban, else the layerobject linked to the
1926 thubanlayer will be used.
1927 AnnotationLayer will now store the filename of the shapefile.
1928 (MF_Map.remove_layer): If a layer is removed the associated object
1929 must be set new.
1930
1931 * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
1932 layers which are exists in thuban to the mapobj. All removed Layers
1933 will be removed from the mapobj.
1934 Added comments to all functions.
1935 (thuban_to_map): No layer will be removed here.
1936
1937 * Extensions/umn_mapserver/mf_handle.py
1938 (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
1939 Layersettings for the mapserver kann be edited.
1940
1941 * Extensions/umn_mapserver/mf_import.py: Now all layers which are
1942 imported, will be linked with the associated MF_Layer.
1943 (import_mapfile): All layers, which are not selected, will be removed.
1944 Disable the "import layer from mapfile" menu option.
1945
1946 * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1947 Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1948 layer on permanently.
1949
1950 2004-08-03 Jan Schüngel <[email protected]>
1951
1952 * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1953 New. This function removes all metadata
1954 (MF_Layer.set_group): New. Set the group setting.
1955 (MF_Layer.get_group): New. Get the group setting.
1956 (MF_Map): Removed the extra numlayers variable, used the mapscript
1957 parameter instead.
1958 (MF_Map.get_numlayers): New. This get numlayers.
1959 (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1960 (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1961 if the object is an instance. Also added the annotation layer here to
1962 export, but only the layer is created in the mapfile.
1963
1964 * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1965 the check if a mapobj exist, because its not needed anymore. The
1966 export function is only available if a mapobj exist.
1967 Use the new function to remove all layers.
1968
1969 * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1970 option and the metadata button. The layer dialog is temporary disabled.
1971 (Metadata_CustomDataTable): Added some functions to show the grid
1972 correct.
1973
1974 * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1975 the number of layer from import_mapfile to this function.
1976 (AnnotationLayer): New. This Class shows the Annotation layer in
1977 thuban. The layer don't do anything. It's only to show the layer
1978 and to save the layer order.
1979 (add_annotationlayer): New. Import an annotation layer to thuban.
1980 (select_layer2import): New. Import only layers to thuban and not
1981 the other settings like projection or scalebar.
1982 (create_new_mapfile): Moved the _has_umn_mapobj function and the
1983 create_new_mapfile functions from mf_handle.py to mf_import.py.
1984
1985 * Extensions/umn_mapserver/sample/iceland.map: Added the group
1986 parameter to the roads and cultural layers. Also added a new
1987 Annotation Layer for the cultural points.
1988
1989 * Extensions/umn_mapserver/sample/iceland.html: Added the select
1990 option for the annotation layer.
1991
1992 * Extensions/umn_mapserver/sample/index.html: Added the start
1993 parameter for the annotation layer.
1994
1995 2004-08-01 Jan-Oliver Wagner <[email protected]>
1996
1997 * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1998 translation completed.
1999
2000 * Doc/manual/thuban-manual.xml (Chapter Session Management):
2001 Fixed unprecise description for Save Session.
2002
2003 2004-07-31 Jan-Oliver Wagner <[email protected]>
2004
2005 Started translation of Users Manual into german.
2006
2007 * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
2008
2009 * Doc/manual/Makefile: Added build instructions for german
2010 users manual.
2011
2012 * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
2013
2014 2004-07-28 Jan Schüngel <[email protected]>
2015
2016 * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
2017 functions. Now all metadata will handle by the function and its not
2018 needed to initialize it from outside. Therefor the associated mapobj
2019 will be stored in the Metadata Object. So we can use the special
2020 functions from the associated mapobj to get the Metadata.
2021 Therefor all initialization code for the metadata is removed from the
2022 other classes.
2023 (MF_Layer): Added a function to get the metadata object.
2024 (MF_Map): Added a function to set the mappath, the path where
2025 the mapfile ist stored.
2026
2027 * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
2028 to set the extent in the mapfile. Now the code is set by the displayed
2029 data in the Thuban-view.
2030 (export_mapfile): The shapepath is now set empty, until relative
2031 pathnames are supported.
2032
2033 * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
2034 metadata. Yet only mapfile metadata are supported. Layer and class
2035 supported are not implemented.
2036 Added a dialog to handle layer informations. The dialog only shows the
2037 selected layer at the moment.
2038
2039 * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
2040 code for setting the extent in thuban. Now the extent is set to the
2041 given extent from the mapfile.
2042 Fixed a logical mistake. Now the extent is set when realy a layer is
2043 loaded, and not if one is selected to load.
2044
2045 * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
2046 move the shown map in the browser.
2047
2048 * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
2049 line to the mapobj and added metadata to the political layer.
2050
2051 * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
2052 for Metadata.
2053
2054 2004-07-26 Martin Schulze <[email protected]>
2055
2056 * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
2057 ClassMapper
2058
2059 * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
2060 case for the new ClassMapper
2061
2062
2063 2004-07-22 Bernhard Herzog <[email protected]>
2064
2065 * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New. Return the
2066 visible extent of the map in projected coordinates
2067
2068 * test/test_viewport.py (SimpleViewPortTest.test_default_size)
2069 (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
2070 tests.
2071 (SimpleViewPortTest.test_visible_extent): New. The real test for
2072 VisibleExtent()
2073
2074 2004-07-22 Bernhard Herzog <[email protected]>
2075
2076 * test/test_viewport.py: Use support.run_tests as the main
2077 function when running asa script.
2078
2079 2004-07-22 Jan Schüngel <[email protected]>
2080
2081 * Extensions/umn_mapserver/mf_export.py: Added "import os"
2082 Removed the old "import Thuban.UI.mainwindow" code.
2083 (tbextent_to_map): Removed the extra function and at the code direct
2084 to "thuban_to_map" function.
2085 (write_creatorcomment): Added. Now a short comment is added to the
2086 beginning of an generated mapfile.
2087 (export_mapfile): Now the Path and filename are saved in to variables,
2088 and not together in one variable. This is needed for the new
2089 write_creatorcomment function.
2090
2091 * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
2092 import module "re". Also added Range and the ClassGroupRange import
2093 from Thuban. Both are needed for the new range expression import.
2094 (create_rangeexpression): Added. Creates a Range Expression in Thuban
2095 style from a given mapfile expression.
2096 (added_rasterlayer): Make some small code changes. The shapepath is
2097 now stored in an extra variable and the clazz_name is set empty if no
2098 class name set in the mapfile.
2099 Changed the Error message for Range Expressions, becaus the new
2100 function create a error string which will be shown in the dialog.
2101
2102 * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
2103 range expression import.
2104
2105 2004-07-21 Jan-Oliver Wagner <[email protected]>
2106
2107 * Extensions/umn_mapserver/README: Added hint that
2108 installation as root can be avoided. Removed all tabs.
2109
2110 2004-07-16 Bernhard Herzog <[email protected]>
2111
2112 * test/test_viewport.py
2113 (ViewPortTest.test_changing_map_projection): Check that changing
2114 the projection of an empty map shown in a viewport doesn't lead to
2115 exceptions in the viewport's handler for the
2116 MAP_PROJECTION_CHANGED messages
2117
2118 * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
2119 try to keep the same region visible when the map actually contains
2120 something
2121
2122 2004-07-15 Jan Schüngel <[email protected]>
2123
2124 * Extensions/umn_mapserver/mapfile.py: Added a function to get the
2125 mappath directly from the mapobj. Is needed because of the changes
2126 in mf_import.py.
2127 (MF_Layer.add_thubanclass): Added a new comment.
2128 (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
2129 mapobj is empty there is no extent get from thuban an so no one can
2130 set to th mapobj.
2131
2132 * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
2133 the discription.
2134 Split the funktion in to three smaller ones. The new functions are
2135 add_rasterlayer, add_polygonlayer and select_layer2import.
2136 Removed the mapfilepath and filepath initialisation, because its know
2137 include in the new functions.
2138 Now nothing will be imported if cancel is pressed in the
2139 layer choice dialog.
2140
2141 2004-07-14 Jan Schüngel <[email protected]>
2142
2143 * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
2144 import.
2145 (MF_Symbolset): Removed the extra variable for numsymbols.
2146 (MF_Class.__init__): Added a comment to the exception clause.
2147 Removed the extent init, because it was not needed anymore.
2148 (MF_Layer.add_thubanclass): Added the code to set the class name to
2149 the expression value from thuban if no label is defined.
2150 Added the code to export Range expressions from thuban to the mapfile.
2151 (MF_Map.set_extent): Removed the exception and replace it by some if
2152 code. If the size of a map is not defined the size will be set to 1,1.
2153 This is necessary because if the extent is set, mapscript checks if
2154 the size is greater than zero.
2155 (MF_Web): Added the get and set function for the template.
2156
2157 * Extensions/umn_mapserver/mf_export.py: Added the function to check
2158 if a mapobject exists and used it to set the status of the menu items.
2159 If no mapfile exists the settings could not be edditied.
2160 Define after which menuitem the exportitem will include.
2161
2162 * Extensions/umn_mapserver/mf_handle.py: Removed the import
2163 Thuban.UI.mainwindow clause, because it is not needed.
2164 Added the command Refresh() to all "OnChangeColor()" functions,
2165 because the color preview window was not updated on a color change.
2166 Added the function to check if a mapobject exists and used it to set the
2167 status of the menu items. If no mapobject exists the settings could not
2168 be edditied.
2169 (Map_Dialog): Moved the imagetype selector from the
2170 Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
2171 (Web_Dialog): Removed the name label and added the template textbox.
2172
2173 * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
2174 the exception handling on loading the layers by an if statement. It
2175 is not necessary to us the exception there.
2176 The Filepath creation now use os.path.join to build the path.
2177
2178 * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
2179 definition from global to the setUp function. Now the testMap will
2180 initialize new on each test.
2181
2182 * Extensions/umn_mapserver/sample/iceland.map: Include three new
2183 classes in the Line Layer, to test logical Expressions.
2184 Set the status of the class "Point9" in the Point Layer to off
2185
2186 2004-07-13 Bernhard Herzog <[email protected]>
2187
2188 * Thuban/UI/baserenderer.py
2189 (BaseRenderer.render_map_incrementally): Fix a logic bug in the
2190 optimization that tries not to draw layers under a raster layer.
2191 The bug was harmless. All it effectively did was to produce The a
2192 strange messages about not being able to draw Layer instances for
2193 all vector layers below a raster layer which would be invisible
2194 anyway because the raster layer currently always covers the entire
2195 window
2196
2197 2004-07-08 Jan Schüngel <[email protected]>
2198
2199 * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
2200 a list of supported outputformats. This formats are not alle supported
2201 because there is no possibility to get the outputformat without the
2202 name known. Make some formal changes to the code.
2203 (MF_Map.set_name()): Fixed a bug if the name is None.
2204
2205 * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
2206 statement, because its not needed anymore. The Outputformat is now
2207 given as string from the object. Make some formal changes to the code.
2208
2209 * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
2210 most of the new setting which were added during the last changes.
2211 Removed the MF_Size Test.
2212
2213 * Extensions/umn_mapserver/test/test.map: Added a new class to the
2214 cultural Layer to test expressions and the the status of that layer
2215 from on to default.
2216 Changed the data path the the correct Thuban Data
2217 Added the Outputformat Object and Symbol Object
2218
2219 2004-07-07 Jan Schüngel <[email protected]>
2220
2221 * Extensions/umn_mapserver/mapfile.py: Added some new
2222 settings to edit (outputformat, label, imagetype)
2223
2224 * Extensions/umn_mapserver/mf_handle.py: Added some setting to
2225 the Label Dialog and add the OutputDialog.
2226 Make some changes to the code order.
2227
2228 2004-07-06 Jan Schüngel <[email protected]>
2229
2230 * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
2231 and line Obj and add the scalebar_status_type, scalebar_style_type and
2232 scalebar_position_type.
2233 Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
2234 are only used to create a Symbol like the circle in Thuban.
2235 Added the scalebarObject (MF_Scalebar)
2236 (MF_Class): Added set_status and get_status.
2237 (MF_Layer.add_thubanclass): Added code to set the class status
2238 (MF_Map): Added code to handle the symbols and scalebar
2239 (MF_Label): Added the set_partials and get_partials functions
2240
2241 * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
2242 from mapfile. Added a function to create a circle object like the one
2243 from thuban if no one exists.
2244
2245 * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
2246 press ok in the assosiated dialog and not at the end of the
2247 colordialog.
2248 Added the Dialog for the Scalebar.
2249 (Label_Dialog): Added the offset option
2250
2251 * Extensions/umn_mapserver/mf_import.py: Added code to import the
2252 status of the Classes.
2253 Fixed a bug with the projection. Now the to_meter parameter will be
2254 added to the Projection only if it doesn't exists.
2255
2256 2004-07-01 Jan Schüngel <[email protected]>
2257
2258 Added the functionality to handle the content thuban is not
2259 able to handle directly.
2260
2261 * Extensions/umn_mapserver/mf_handle.py: New. This module extents
2262 Thuban with the possibility to edit the mapfile content.
2263
2264 * Extensions/umn_mapserver/mf_import.py: Added the possibility
2265 to import mapfiles without any layer selected. So it is possible
2266 to edit the other settings in a mapfile.
2267 (import_mapfile): Added code to use the editing functions.
2268 Added the possibility to import the projection to a layer if one
2269 is defined.
2270 Status settings (On,Off) will now set in thuban (visible, invisible).
2271 fixed a bug with with classnames. If no classname is set in mapfile
2272 the value in Thuban will set to the expression.
2273
2274 * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
2275 possibility to save a new mapfile or use the old one which is
2276 imported or new created.
2277 Added code to use the editing functions.
2278 Remove some not needed import statements
2279
2280 * Extensions/umn_mapserver/mapfile.py: Added new types which are
2281 need for the editing functions.
2282 Added needed set-functions for the editing functions.
2283 Added the possibility to export rasterimages.
2284 Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
2285 MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
2286 moment.
2287 (MF_Class.set_thubanstyle): Now point layers will set to a default
2288 symbol to show a circle in mapserver and not only a 1px dot.
2289 (MF_Style.__init__): Fixed a bug with the color. Color was not set
2290 correct before.
2291 (MF_Size): Removed, because it is not needed.
2292
2293 * Extensions/umn_mapserver/README: Added the hints to use the
2294 export and editing functions, too.
2295
2296 * Extensions/umn_mapserver/sample/iceland.map: Added the
2297 new parameter "UNITS METERS".
2298 Change the political layer to status OFF.
2299
2300 * Extensions/umn_mapserver/sample/README: Added some
2301 more details to setup the sample in the MapServer.
2302
2303 2004-06-26 Bernhard Reiter <[email protected]>
2304
2305 * Extensions/svgexport/test/test_svgmapwriter.py:
2306 Removed class VFile and used standard StringIO instead.
2307
2308 2004-06-23 Jan Schüngel <[email protected]>
2309
2310 Add the export function to the umn_mapserver extension.
2311
2312 * Extension/umn_mapserver/mf_export.py: New. This module extents
2313 Thuban with the possibility to export the Thuban content.
2314
2315 * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
2316 with the export module. Especially added the possibility to
2317 add thuban objects directly to the map objects.
2318
2319 * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
2320 because of the hint from Bernhard Herzog.
2321 Corrected the handling of absolute pathnames.
2322 Changed the Text of the Menu-Item, now the beginning is upper case.
2323
2324 * Extensions/umn_mapserver/README: Added the --with-tiff statement.
2325
2326 2004-06-16 Jan Schüngel <[email protected]>
2327
2328 Add a sample and make some changes.
2329
2330 * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
2331 import from * to explicit used statements. Changed the
2332 Thuban.UI.mainwindow import phrase, too.
2333 (import_mapfile):Corrected a clerical mistake.
2334 Added wxCHANGE_DIR in OpenFile Dialog.
2335 Added a MultipleChoiceDialog, to select the layers to load from
2336 mapfile into thuban. Thereby the projection is only set if one layer
2337 is selected.
2338 Added the possibility to handle relative pathnames which uses
2339 up-level references.
2340 Removed some doubled code.
2341 Corrected an error with integer values used as label in thuban
2342 ClassGroup.
2343
2344 * Extensions/umn_mapserver/sample: New.
2345
2346 * Extensions/umn_mapserver/sample/README: New. Describes the
2347 usage of the sample files.
2348
2349 * Extensions/umn_mapserver/sample/iceland.map: New. This is
2350 a suitable .map-file for the iceland data.
2351
2352 * Extensions/umn_mapserver/sample/index.html: New. The template
2353 for the mapfile.
2354
2355 * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
2356 file for the Iceland Application on web.
2357
2358 * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
2359 some details.
2360
2361 * Extensions/umn_mapserver/test/test_mapserver
2362 (mapserver_import_Test_generalClasses.test_MF_Color):
2363 Corrected the thubancolor test.
2364
2365 2004-06-15 Jan Schüngel <[email protected]>
2366
2367 * Extensions/umn_mapserver/README: New. Install instruction.
2368
2369 2004-06-14 Bernhard Reiter <[email protected]>
2370
2371 * libraries/thuban/cpl_mfile.h: Added copyright header.
2372
2373 * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
2374 Free Software License so that it is most useful with gdalwarp
2375 and bmpdataset.
2376
2377 2004-06-14 Bernhard Herzog <[email protected]>
2378
2379 * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
2380 import of wxPython.wx itself (as opposed to the contents of
2381 wxPython.wx). For some reason wxPython.wx is available as
2382 wxPython.wx.wx in at least some 2.4 releases. Fixes RT#2482
2383 wrt. wxPython 2.4.
2384
2385 2004-06-10 Jan Schüngel <[email protected]>
2386
2387 Initial version of new extension "umn_mapserver". This extension aims
2388 to manage configuration for the UMN MapServer application. This
2389 inital version just imports the .map-files and displays all, Thuban is
2390 capable of.
2391
2392 * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
2393
2394 * Extensions/umn_mapserver/test/README: New. Describes how to run the
2395 tests.
2396
2397 * Extensions/umn_mapserver/test/test.map: New. This is a test
2398 .map-file for automated tests of the umn_mapserver extension of
2399 Thuban.
2400
2401 * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
2402 UMN Mapserver classes.
2403
2404 * Extensions/umn_mapserver/__init__.py: New. Init to make this
2405 directory a package.
2406
2407 * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
2408 '.map'-file objects.
2409
2410 * Extensions/umn_mapserver/mf_import.py: New. This module extends
2411 Thuban with the possibility to handle UMN MapServer mapfiles.
2412
2413 2004-06-03 Bernhard Herzog <[email protected]>
2414
2415 * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
2416 to a tuple before using it as arguments to the % operator. This
2417 fixes the formatting issue filed in RT#2239 on 2004-01-13 and
2418 reported today on thuban-list by Jan Schüngel
2419
2420 * test/test_layer.py (TestLayerModification.setUp): Save the
2421 filename as an instance variable so we can refer to it in tests
2422 (TestLayerModification.test_tree_info): Uncomment this method
2423 again and make it work. This tests for the formatting issue
2424 filed in RT#2239 on 2004-01-13
2425
2426 2004-05-28 Bernhard Herzog <[email protected]>
2427
2428 * Thuban/UI/baserenderer.py: Fix some typos.
2429
2430 2004-05-18 Jan-Oliver Wagner <[email protected]>
2431
2432 * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
2433 by increasing a field size.
2434
2435 2004-05-17 Bernhard Herzog <[email protected]>
2436
2437 Update to newest shapelib and get rid of Thuban specific
2438 extensions, i.e. use the new DBFUpdateHeader instead of our
2439 DBFCommit kludge
2440
2441 * libraries/shapelib/shpopen.c: Update to version from current
2442 shapelib CVS.
2443
2444 * libraries/shapelib/shapefil.h: Update to version from current
2445 shapelib CVS.
2446
2447 * libraries/shapelib/dbfopen.c: Update to version from current
2448 shapelib CVS.
2449 (DBFCommit): Effectively removed since shapelib itself has
2450 DBFUpdateHeader now which is better for what DBFCommit wanted to
2451 achieve.
2452 We're now using an unmodified version of dbfopen.
2453
2454 * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
2455 value '1' to the Lib.dbflibc extension. This simply reflects the
2456 shapelib and pyshapelib updates
2457
2458 2004-05-16 Jan-Oliver Wagner <[email protected]>
2459
2460 Finished introduction of Menu.FindOrInsertMenu.
2461
2462 * Extensions/drawshape/drawshape.py: Add the command
2463 to the experimental menu additionally to the toolbar.
2464
2465 * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
2466 finding menu on its own.
2467
2468 * Doc/manual/thuban-manual.xml: updated sample file
2469 to use FindOrInsertMenu().
2470
2471 * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
2472 instead of finding menu on its own.
2473
2474 2004-05-11 Jan-Oliver Wagner <[email protected]>
2475
2476 * test/test_menu.py (MenuTest.test): Added testing
2477 of method Menu.FindOrInsertMenu.
2478
2479 2004-05-10 Jan-Oliver Wagner <[email protected]>
2480
2481 Introduce and use Menu.FindOrInsertMenu.
2482
2483 * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
2484 given menu or, if not found, insert it.
2485
2486 * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
2487 /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
2488 /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
2489 menu on its own.
2490
2491 2004-05-06 Jan-Oliver Wagner <[email protected]>
2492
2493 Introduce a abstract ColorDialog class and remove
2494 and outdated file.
2495
2496 * Thuban/UI/proj4dialog.py: Removed. It is has been
2497 replaced by projdialog for quite a while and is not used
2498 anymore.
2499
2500 * Thuban/UI/colordialog.py: New. Abstraction for color selection
2501 dialog(s).
2502
2503 * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
2504 Now calls the abstract ColorDialog instead of wxColourDialog.
2505 This also removed the dependency to Color class conversion
2506 from this function.
2507
2508 2004-05-04 Frank Koormann <[email protected]>
2509
2510 * Extensions/bboxdump/__init__.py: Fixed string left over from
2511 copying.
2512
2513 * Extensions/bboxdump/bboxdump.py (bboxdump):
2514 Use layer.ShapeStore().AllShapes() to loop over shapes instead of
2515 xrange(layer.NumShapes()). Compile the bboxmessage from a list
2516 of formatted outputs (string.join) instead of appending to the
2517 message. Two progress bar dialogs to report progress on the sometimes
2518 lenghty processing.
2519
2520 2004-04-22 Frank Koormann <[email protected]>
2521
2522 New Extension to dump bounding boxes of all shapes of the selected
2523 layer. An optional column can be specified to group the objects,
2524 in this case the bounding box is a union of the separate boxes.
2525 Dump can be displayed in a ScrolledMessageDialog or written to file.
2526 The Extension is simply a combination of available and well tested
2527 Thuban functionality.
2528
2529 * Extensions/bboxdump/__init__.py: New: Init to make this
2530 directory a package.
2531
2532 * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
2533 all shapes of the selected layer.
2534
2535 2004-04-22 Jan-Oliver Wagner <[email protected]>
2536
2537 * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
2538 strings to be i18n now.
2539
2540 2004-04-18 Jan-Oliver Wagner <[email protected]>
2541
2542 Changing popup menu of legend from direct building
2543 to using the Menu construction as used for the mainwindow.
2544
2545 * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
2546 layer_to_bottom, layer_visibility
2547 (MainWindow.LayerToTop): New. Put current layer to the top.
2548 (MainWindow.LayerToBottom): New. Put current layer to bottom.
2549 (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
2550 Replace 1,0 by True, False.
2551 (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
2552 current layer.
2553 (MainWindow.LayerShowTable): Removed raising of dialog.
2554 (_has_selected_layer_visible): New. Support function.
2555
2556 * Thuban/UI/legend.py: ID_POP_xxx: removed.
2557 (LegendPanel.__init__): Removed EVT_MENU bindings.
2558 (LegendTree._OnRightClick): Replace direct creation of
2559 menu via wx Classes by applying the menu definition
2560 as of Menu class of menu.py.
2561
2562 2004-04-16 Jan-Oliver Wagner <[email protected]>
2563
2564 * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
2565 button string to stronger clearify that Thuban will be closed when hitting
2566 the button.
2567
2568 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
2569 Now for layers without a ShapeStore a corresponding message is given
2570 to the user, that this layer has no table to show.
2571
2572 2004-04-15 Martin Schulze <[email protected]>
2573
2574 * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
2575 recalculate the format for the internal render engine as well.
2576
2577 * Extensions/wms/properties.py (wmsProperties): First start for a
2578 properties dialog. It's functional for a first selection of
2579 layers, but still has some weired wxWidgets/GTK problems but
2580 beautification can be done later.
2581
2582 * Extensions/wms/layer.py: Added more documentation
2583 (WMSLayer.getFormats): New: Return list of supported image formats
2584 by the WMS server
2585 (WMSLayer.getLayers): New: Return the list of layer names
2586 supported by the WMS server
2587 (WMSLayer.getLayerTitle): New: Return the title of the named layer
2588 (WMSLayer.getWMSFormat): New: Return the image format that is used
2589 for WMS GetMap requests
2590 (WMSLayer.setWMSFormat): New: Set the image format that is used
2591 for WMS GetMap requests
2592 (WMSLayer.__init__): Move away from using only one layer to using
2593 a list of layers (unsorted at the moment, though).
2594 (WMSLayer.getVisibleLayers): New: Return the list of names for all
2595 visible layers
2596 (WMSLayer.setVisibleLayers): New: Set the list of names for all
2597 visible layers
2598
2599 * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
2600 order to establish a clean structure.
2601
2602 * Extensions/wms/layer.py: Moved the WMS layer into a file on its
2603 own in order to establish a clean structure.
2604
2605 2004-04-13 Martin Schulze <[email protected]>
2606
2607 * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
2608 support for oldstyle (WMS 1.0 apparently) image format
2609 specification.
2610
2611 * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
2612 supported graphic formats back to JPEG and BMP, PNG and others are
2613 too *cough* experimental... Sorry, I meant to filter this out
2614 before I committed this part. This should make the WMS extension
2615 run from CVS again.
2616 (wms_dialog): Reset an empty URL to None so that the subsequent
2617 program can depend on this, since the dialog will indeed return an
2618 empty URL, causing another declaration of love by Python.
2619
2620 * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
2621 Whenever a native BoundingBox request cannot be fulfilled, check
2622 whether the requested SRS is EPSG:3426, in which case return the
2623 LatLonBoundingBox values.
2624
2625 * Extensions/wms/test/test_parser.py
2626 (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
2627 ignoring AUTO:* SRS.
2628 (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
2629 Added another test method to test whether the LatLonBoundingBox
2630 values will be returned if BoundingBox values are requested with
2631 SRS set to EPSG:3426.
2632
2633 * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
2634 Added rudimentary support for non-EPSG SRS, i.e. ignore them for
2635 the moment by placing them into a variable which is currently
2636 unused. Also test whether the EPSG SRS is numerical as it should
2637 be and add an error message if it is not.
2638
2639 * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
2640 appear in the real world as well. Since we cannot handle them yet
2641 (OGCLib can't either), we will ignore them for the moment.
2642
2643 * Extensions/wms/parser.py: Use a variable for denoting the sample
2644 filename
2645 (WMSCapabilitiesParser.peekLayers): Added support for error
2646 messages during grok(). They will be aggregated in an array and
2647 may be displayed later. We may have to add a classification
2648 "Warning" and "Error" to this. That requires more experience,
2649 though, since not every error may be lethal.
2650
2651 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
2652 ShowTable() dialog/frame when the user attempts to display it
2653 while it has been opened before already and not closed again.
2654
2655 2004-04-11 Martin Schulze <[email protected]>
2656
2657 * Extensions/wms/infodialog.py: Adjusted the class documentation
2658
2659 * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
2660 Switch to using Thuban{Begin,End}BusyCursor instead of the pure
2661 wxWidgets variants.
2662 (WMSLayer.__init__): The epsg_id variable is named top_srs now.
2663
2664 * Extensions/wms/infodialog.py: Added an information dialog that
2665 will display various information about the WMS current resource,
2666 so that additional information such as the title, the abstract,
2667 fees and access constraints can be displayed for the user if they
2668 are documented in the WMS XML.
2669
2670 2004-04-10 Martin Schulze <[email protected]>
2671
2672 * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
2673 string handling. It's "foo".lower() and not lower(foo) without
2674 lower imported from strings or something.
2675
2676 * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
2677 from capabilities.py and parser.py. Implement priority list for
2678 supported graphics formats, take care of wbmp != bmp. PNG, TIFF
2679 and GIF are supported here, but not yet by main Thuban. Hence,
2680 support for them may be removed later. Special contribution to
2681 usability: get wxWidgets to change the cursor when we're waiting
2682 for data from the network so the user won't start to worry. This
2683 causes a redrawing error/warning, though.
2684
2685 * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
2686 the DOM object.
2687
2688 2004-04-01 Martin Schulze <[email protected]>
2689
2690 * Extensions/wms/capabilities.py: Adjusted documentation
2691 (WMSCapabilities.__init__): Improved documentation, fixed syntax
2692 (WMSCapabilities.saveCapabilities): Only catch IOError when
2693 handling files
2694 (WMSCapabilities.loadCapabilities): Only catch IOError when
2695 handling files
2696 __main__: corrected variable naming
2697 (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
2698 class a specialisation of WMSCapabilitiesParser as well. Also
2699 execute grok() after loading or fetching capabilities, if that
2700 went well, so that subsequent calls can already access the data.
2701 (WMSCapabilities.getVersion): Export the used version of the
2702 GetCapabilities request, so we can use it for subsequent calls,
2703 i.e. for GetMap requests.
2704 (WMSCapabilities.fetchCapabilities): Added proper error handling
2705 when the GetCapabilities request failed, so that the surrounding
2706 program can act accordingly.
2707
2708 2004-03-30 Martin Schulze <[email protected]>
2709
2710 * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
2711 Adjusted the getLayerSRS method to return the list of SRSes
2712 extracted from <SRS> elements instead of <BoundingBox> elements.
2713 Added a bit of documentation as well.
2714 (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
2715 since it was only implemented due to a misunderstanding.
2716
2717 * Extensions/wms/test/test_parser.py
2718 (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
2719 reflect the corrected interpretation of the standard: i.e. a layer
2720 does not have to define a BoundingBox for all SRSes it supports.
2721 Hence the <SRS></SRS> specification is authoritative, not the list
2722 of BoundingBoxes.
2723 (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
2724 to ensure None is returned for a non-existing SRS.
2725 (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
2726 since it is not applicable anymore. Listing more SRSes in <SRS>
2727 elements is valid according to the specs.
2728
2729 2004-03-26 Bernhard Reiter <[email protected]>
2730
2731 * README: Nicer formatting of text. Improved descriptions.
2732 Reflected wxWidgets name change.
2733
2734 * Thuban/UI/about.py: Extended copyright to 2004 and added
2735 information about the thuban-devel mailinglist.
2736
2737 2004-03-24 Martin Schulze <[email protected]>
2738
2739 * Extensions/wms/capabilities.py: Renamed the class to contain
2740 'WMS', also added a linebreak where required
2741
2742 * Extensions/wms/parser.py: Finally added the XML parser for the
2743 GetCapabilities response.
2744
2745 * Extensions/wms/test/sample.xml: Adjusted the sample file so that
2746 <SRS> elements match the <BoundingBox> elements, except for the
2747 layer 'beschriftung'.
2748
2749 * Extensions/wms/test/test_parser.py: Encode non-ascii strings
2750 since Python uses unicode strings internally, otherwise
2751 comparisons will fail. Removed tests for getLayerBBoxSRS() since
2752 the SRS will be calculated anyway and this method is obsoleted by
2753 getLayerSRS(). Denote SRS as strings and not as cardinal numbers.
2754 Move loading the sample file into the setUp method. Added a test
2755 for finding the integrity problem in the sample response.
2756 Improved formatting.
2757
2758 * Extensions/wms/domutils.py: Added convenience routines for
2759 handling of Document Object Model (DOM) nodes.
2760
2761 * Extensions/wms/test/test_domutils.py: Added a test for the
2762 domutils module
2763
2764 2004-03-19 Martin Schulze <[email protected]>
2765
2766 * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
2767 Moved path detection and adding into a module of its own,
2768 adjustpath, which exports thubandir as main Thuban directory.
2769
2770 * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
2771 detection and adding into a module of its own, adjustpath, which
2772 exports thubandir as main Thuban directory. Reorganised the
2773 module in order to support the SkipTest feature for Thuban test
2774 cases.
2775
2776 * Extensions/wms/test/adjustpath.py: Moved path detection and
2777 adding into a module of its own.
2778
2779 2004-03-18 Martin Schulze <[email protected]>
2780
2781 * Extensions/wms/test/test_parser.py: Added another test for
2782 checking whether the WMS XML parser (to be implemented) returns
2783 the information we expect. This requires a sample WMS WML file
2784 (sample.xml) which has been extracted from the frida server and
2785 "improved" manually.
2786
2787 * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
2788 main Thuban directory to the path in order to be able to import
2789 random modules. Adjusted the PyOGCLib detection to reuse the
2790 information gathered. Also added a note about the PYTHONPATH
2791 environment variable.
2792
2793 * Extensions/wms/test/test_ogclib.py: The format specification is
2794 a mime-type, not a graphic format, hence image/jpeg wou ld be the
2795 proper format and not JPEG. We'll also have to take care of the
2796 encoding of / as %2F.
2797
2798 2004-03-16 Martin Schulze <[email protected]>
2799
2800 * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
2801 comprehensive test for the getMapURL method, built compare URLs
2802 according to the documentation in OGC 01-068r3
2803
2804 * Extensions/wms/capabilities.py (WMSCapabilities): Added the
2805 class WMSCapabilities to manage capabilites, will incorporate
2806 parsing the capabilities response and provide details for other
2807 classes.
2808
2809 2004-03-12 Bernhard Herzog <[email protected]>
2810
2811 Support views in addition to normal tables in the postgis
2812 shapestore
2813
2814 * Thuban/Model/postgisdb.py
2815 (PostGISShapeStore._fetch_table_information): Add a fallback for
2816 the case where the table name is not in the geometry_columns
2817 table. This is usually the case for views. Also, set
2818 self.shapestore here.
2819 (PostGISShapeStore.ShapeType): No need to query the database all
2820 the time. The shape type is now determined in
2821 _fetch_table_information
2822
2823 * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
2824 (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
2825 New parameter to specify views.
2826 (PostGISDatabase.has_data): Also compare the views. New views
2827 parameter
2828 (PostGISDatabase.initdb): Create the views.
2829 (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
2830 view
2831
2832 * test/test_postgis_db.py
2833 (TestPostGISShapestorePointFromViews): New. Test a
2834 PostGISShapeStore with a view
2835 (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
2836 the geometry_column explicitly to test whether that works
2837
2838 2004-03-12 Bernhard Herzog <[email protected]>
2839
2840 Final step for explicit id/geometry columns: Loading and saving
2841
2842 * Resources/XML/thuban-1.1.dtd: New. Derived from thuban-1.0.dtd
2843 with the following changes:
2844 (dbshapesource): Two new attributes id_column and geometry_column
2845
2846 * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
2847 (SessionSaver.write_session): Use the new namespace
2848 (SessionSaver.write_data_containers): Write the new dbshapesource
2849 parameters
2850
2851 * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
2852 the new file format version
2853 (SessionLoader.start_dbshapesource): Handle the new db parameters
2854
2855 * test/test_save.py: Update to the new dtd and namespace
2856 (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
2857 mock object to provide a working IDColumn method.
2858
2859 * test/test_load_1_0.py: New. Copy of the test_load.py before
2860 today's changes but with the round-trip tests removed.
2861
2862 * test/test_load_0_9.py: Update doc-string.
2863
2864 * test/test_load.py: Update all .thuban files to the new dtd and
2865 namespace.
2866 (TestPostGISLayer.file_contents): Add the new dbshapesource
2867 paramters
2868
2869 2004-03-11 Bernhard Herzog <[email protected]>
2870
2871 Next step for explicit id/geometry columns: User interaction
2872
2873 * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
2874 the dialog is constructed. Add combo boxes to select id and
2875 geometry column. Rename some instance variables.
2876 (ChooseDBTableDialog.GetTable): Return id and geometry column
2877 names
2878 (ChooseDBTableDialog.OnTableSelect): New. Event handler for
2879 selections in the table list
2880
2881 * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
2882 and geometry_column
2883
2884 * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
2885 parameters for id_column and geometry column of PostGISShapeStore
2886 here as well.
2887
2888 * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
2889 (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
2890 (PostGISConnection.GeometryTables): Use a better query to
2891 determine which relations in the database might be usable for
2892 shapestores. Now supports views as well but is more PostgreSQL
2893 specific
2894 (PostGISConnection.table_columns): New. Somewhat experimental
2895 method to let the db dialogs provide lists of columns to users so
2896 that they can select id and geometry columns.
2897 (PostGISTable.__init__): The default value of the id_column
2898 parameter is now None it still means "gid" effectively, though.
2899 (PostGISTable.IDColumn): New introspection method to return a
2900 column object for the id column
2901 (PostGISShapeStore.GeometryColumn): New introspection method to
2902 return a column object for the geometry column
2903
2904 * test/test_postgis_db.py
2905 (TestPostGISConnection.test_gis_tables_non_empty):
2906 Removed. Subsumed by the new:
2907 (TestPostGISConnection.test_gis_tables_with_views_and_tables):
2908 New. Tes the GeometryTables and table_columns methods with actual
2909 tables and views.
2910 (PointTests.test_id_column, PointTests.test_geometry_column):
2911 New. tests for the new methods.
2912 (TestPostGISShapestorePoint.setUp)
2913 (TestPostGISShapestorePointSRID.setUp)
2914 (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
2915 instance variables needed by the new tests
2916
2917 2004-03-11 Bernhard Herzog <[email protected]>
2918
2919 * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
2920 numbers given to ReadValue are ordinals.
2921
2922 2004-03-11 Bernhard Herzog <[email protected]>
2923
2924 Elimiate the requirement for PostGIS tables to have a column
2925 called "gid".
2926
2927 * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
2928 id_column to specify which column to use to identify rows. Also
2929 new instance variables id_column and quoted_id_column
2930 (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
2931 (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
2932 (PostGISTable.SimpleQuery): Use the id column name provided to the
2933 constructor instead of "gid"
2934 (PostGISShapeStore.__init__): New parameter id_column analogously
2935 to PostGISTable.__init__. This parameter is simply passed through
2936 to the base class constructor
2937 (PostGISShapeStore._create_col_from_description): Fix typo in
2938 doc-string
2939 (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
2940 (PostGISShapeStore.ShapesInRegion): Use the id column name
2941 provided to the constructor instead of "gid"
2942
2943 * test/postgissupport.py
2944 (PostgreSQLServer.get_default_static_data_db): New static table
2945 landmarks_point_id with an id column != "gid. Update the comments
2946 a bit.
2947 (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
2948 doc-
2949 (upload_shapefile): New parameter gid_column to use a name other
2950 than "gid" for the column to store the shape ids
2951
2952 * test/test_postgis_db.py (TableTests): New. Mixin-class
2953 containing all tests previously in TestPostGISTable. The actual
2954 tests are the same but the code is a bit more configurable to
2955 allow for different id columns etc.
2956 (TestPostGISTable): Derive from TableTests now for the actual
2957 tests.
2958 (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
2959 except that it the landmarks_point_id table to test the id_column
2960 parameter
2961 (PointTests): Extend the doc-string
2962 (TestPostGISShapestorePointExplicitGIDColumn)
2963 (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
2964 from PointTests to test the explicit id_column parameter. One
2965 tests with the name of the column holding the shape ids, the other
2966 uses PostgreSQL's OID column. For the latter a number of methods
2967 have to be overwritten to make them independent of the actual id
2968 values.
2969
2970 2004-03-08 Silke Reimer <[email protected]>
2971
2972 Update debian directory:
2973
2974 * debian/changelog: Added new version.
2975 * deiban/rules: Updated management of patches (with cbds)
2976 * debian/control: Added cbds to dependencies
2977 * debian/patches/*: New. Adds better support for patches of thuban in
2978 debian
2979 * debian/menu: Syntax of menu changed slightly
2980 * debian/setup.py.patch: removed because it has been moved to
2981 debian/patechs/setup.py.patch
2982
2983
2984 2004-02-26 Bernhard Herzog <[email protected]>
2985
2986 Create the Doc/technotes directory for text files with information
2987 for developers
2988
2989 * Doc/technotes/README: New. README for the technotes
2990
2991 * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
2992 Thuban
2993
2994 * Doc/technotes/release_process.txt: New. Used to be
2995 HOWTO-Release. Now slightly adapted to technote formatting style.
2996
2997 * HOWTO-Release: Removed. It's contents are now in
2998 Doc/technotes/release_process.txt
2999
3000 2004-02-25 Bernhard Herzog <[email protected]>
3001
3002 * libraries/thuban/wxproj.cpp (get_wx_version): New. Return the
3003 version of wxWindows the module was compiled with so we can check
3004 that against the wxPython version.
3005
3006 * Thuban/version.py (thuban_branch, thuban_release): New variables
3007 controlling which and how Thuban versions are shown. See the
3008 comments for details.
3009 (verify_versions): Also check that the wx version that wxproj is
3010 compiled against matches that of the wxPython we use at runtime
3011
3012 2004-02-20 Bernhard Herzog <[email protected]>
3013
3014 * Extensions/wms/wms.py (epsg_code_to_projection): Use
3015 get_system_proj_file to read the epsg projections. The old way
3016 depended on the current directory being the top Thuban directory.
3017
3018 2004-02-20 Bernhard Herzog <[email protected]>
3019
3020 * Extensions/svgexport/test/test_svgmapwriter.py
3021 (TestVirtualDC.test_clippath): Remove a debug print
3022
3023 2004-02-20 Bernhard Herzog <[email protected]>
3024
3025 * Extensions/svgexport/__init__.py: New. Turn
3026 Extensions/svgexport into a package.
3027
3028 * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
3029 doc-string a bit. The doc-string must come first, otherwise it's
3030 not a doc-string. The __future__ import must be the first thing
3031 after the doc-string. Use only double quotes in doc-strings.
3032 Single quotes trip up emacs syntax highlighting if the text
3033 contains apostrophes.
3034
3035 2004-02-20 Bernhard Herzog <[email protected]>
3036
3037 * Extensions/svgexport/test/__init__.py,
3038 Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
3039 suite for svgexport
3040
3041 * test/runtests.py (find_test_modules): New. Function with the
3042 module finding code from main.
3043 (main): Use find_test_modules to figure out the default test
3044 modules and take modules from Extensions.svgexport.test too.
3045
3046 2004-02-19 Bernhard Herzog <[email protected]>
3047
3048 * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
3049 the mainwindow has a reference to the map of the initial session.
3050 This fixes a bug introduced with the fix for RT#2245
3051
3052 2004-02-19 Bernhard Herzog <[email protected]>
3053
3054 * Extensions/svgexport/svgsaver.py,
3055 Extensions/svgexport/svgmapwriter.py,
3056 Extensions/svgexport/maplegend.py: Added again. This time in the
3057 correct place.
3058
3059 2004-02-17 Bernhard Herzog <[email protected]>
3060
3061 Fix for RT#2245
3062
3063 * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
3064 instance variables before trying to create any windows. Creating
3065 windows can start an event loop if e.g. message boxes are popped
3066 up for some reason, and event handlers, especially EVT_UPDATE_UI
3067 may want to access things from the application.
3068 (ThubanApplication.maps_changed): The mainwindow may not have been
3069 created yet, so check whether it has been created before calling
3070 its methods
3071
3072 * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
3073 have a map
3074
3075 2004-02-17 Bernhard Herzog <[email protected]>
3076
3077 * test/test_svgmapwriter.py, Extensions/svgsaver.py,
3078 Extensions/svgmapwriter.py, Extensions/maplegend.py,
3079 extensions/svgexport/svgsaver.py,
3080 extensions/svgexport/svgmapwriter.py,
3081 extensions/svgexport/maplegend.py: Removed. These files were in
3082 the wrong places or didn't work at all.
3083
3084 2004-02-16 Bernhard Herzog <[email protected]>
3085
3086 * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
3087 line
3088
3089 2004-02-16 Bernhard Herzog <[email protected]>
3090
3091 * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
3092
3093 2004-02-15 Markus Rechtien <[email protected]>
3094
3095 * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
3096 to write a session to a file in SVG format.
3097 * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
3098 to write a SVG map of a session.
3099 * Extensions/svgexport/maplegend: New. Writes a basic maplegend
3100 in SVG format for the current session.
3101
3102 2004-02-13 Bernhard Herzog <[email protected]>
3103
3104 * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
3105 can't be created, return immediately after displaying the error
3106 message.
3107
3108 2004-02-11 Bernhard Herzog <[email protected]>
3109
3110 Handle postgis tables with more than one geometry column.
3111
3112 * Thuban/Model/postgisdb.py
3113 (PostGISTable._fetch_table_information): Delegate the creation of
3114 column objects to a different method so that we can extend that in
3115 derived classes
3116 (PostGISTable._create_col_from_description): New. Column object
3117 creation part of _fetch_table_information
3118 (PostGISShapeStore._create_col_from_description): New. Extend
3119 inherited method to handle geometry columns
3120 (PostGISShapeStore.__init__): New parameter geometry_column to
3121 specify which geometry column to use. Optional but mandatory for
3122 tables with more than one geometry column
3123 (PostGISShapeStore._fetch_table_information): Also use the name of
3124 the geometry column when looking for the srid
3125 (PostGISShapeStore.ShapeType): Also use the name of the geometry
3126 column when looking for the shape type
3127
3128 * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
3129 NonConnectionStore to changes in the PostGISShapeStore
3130
3131 * test/test_postgis_db.py
3132 (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
3133 PostGISShapeStore with tables having two geometry columns.
3134
3135 2004-02-10 Bernhard Herzog <[email protected]>
3136
3137 Fix some postgis problems. What remains to be done is real
3138 handling of SRIDs as they affect how reprojection is done
3139
3140 * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
3141 doc-string
3142 (PostGISShapeStore._fetch_table_information): New. Extend
3143 inherited method to retrieve srid
3144 (PostGISShapeStore.BoundingBox): Handle tables without data.
3145 extent yields NULL for those
3146 (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
3147
3148 * test/test_postgis_db.py
3149 (TestPostGISSpecialCases.test_shapestore_empty_table): New test
3150 for the special case of a table without any data
3151 (TestPostGISShapestorePointSRID): New class with tests for a table
3152 that uses srids
3153 (PolygonTests): Fix a doc-string typo
3154
3155 * test/postgissupport.py (PostGISDatabase.__init__): New parameter
3156 reference_systems with a specification of spacial reference
3157 systems to create in the new db.
3158 (PostgreSQLServer.new_postgis_db)
3159 (PostgreSQLServer.get_static_data_db): New parameter
3160 reference_systems to be passed through ultimately to
3161 PostGISDatabase. In new_postgis_db also check whether an existing
3162 db already has the right srids
3163 (PostgreSQLServer.get_default_static_data_db): Add srids and a
3164 table that uses srids
3165 (PostGISDatabase.initdb): Create the entries for the reference
3166 systems
3167 (PostGISDatabase.has_data): Add reference_systems parameter to
3168 check for those too
3169 (upload_shapefile): New parameter srid to create tables with a
3170 specific srid
3171
3172 2004-02-06 Frank Koormann <[email protected]>
3173
3174 * po/pt_BR.po: Fixed charset
3175
3176 2004-02-05 Frank Koormann <[email protected]>
3177
3178 * po/pt_BR.po: Fixed format string for error message, missing %s
3179 added (Thuban/UI/application.py:273)
3180
3181 2004-02-03 Frank Koormann <[email protected]>
3182
3183 First version of Portuguese (Brazilian) translation
3184
3185 * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
3186 Brazilian Portuguese by Eduardo Patto Kanegae.
3187
3188 * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
3189 translators.
3190
3191
3192 2004-01-22 Frank Koormann <[email protected]>
3193
3194 * Doc/manual/thuban-manual.xml: Added section on installation of
3195 Thuban under Win32 systems. Fixed image path references in the postgis
3196 section. Some minor source formattings.
3197
3198 2004-01-21 Frank Koormann <[email protected]>
3199
3200 Make Thuban remember path selections (at least for one application run).
3201
3202 * Thuban/UI/application.py (Application.OnInit): Initialize path as a
3203 attribute of application object. Path is a dictionary of
3204 strings, currently with the items "data" and "projection".
3205 (Application.SetPath): New, stores path for the specified item.
3206 (Application.Path): New, return path for the specified item.
3207
3208 * Thuban/UI/mainwindow.py
3209 (MainWindow.OpenSession, MainWindow.SaveSessionAs,
3210 MainWindow.AddLayer, MainWindow.AddRasterLayer,
3211 MainWindow.TableOpen): Access "data" path information of the
3212 application.
3213
3214 * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
3215 Access "projection" path information of the application.
3216
3217 2004-01-05 Bernhard Herzog <[email protected]>
3218
3219 * po/ru.po: Updated translations from Alex Shevlakov
3220
3221 2004-01-05 Bernhard Herzog <[email protected]>
3222
3223 * po/Makefile, po/README: Move the description of how to generate
3224 the translation statistics to the README.
3225
3226 2003-12-23 Bernhard Herzog <[email protected]>
3227
3228 * NEWS: Update for 1.0.0
3229
3230 * po/it.po: Another update from Maurizio Napolitano
3231
3232 2003-12-23 Bernhard Herzog <[email protected]>
3233
3234 * po/it.po: Updated translation from Maurizio Napolitano
3235
3236 2003-12-23 Bernhard Herzog <[email protected]>
3237
3238 * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
3239 for translation
3240
3241 * Thuban/UI/mainwindow.py (MainWindow.TableRename)
3242 (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
3243 strings for translation
3244
3245 * po/de.po: Update with the newly marked strings.
3246
3247 2003-12-22 Bernhard Herzog <[email protected]>
3248
3249 * HOWTO-Release: Fix the places where version numbers have to be
3250 updated
3251
3252 2003-12-22 Bernhard Herzog <[email protected]>
3253
3254 * setup.py (setup call): 1.0.0, yeah!
3255
3256 * Thuban/version.py (longversion): 1.0.0, yeah!
3257
3258 * Thuban/Model/load.py (SessionLoader.__init__): Accept the
3259 1.0.0 namespace too
3260
3261 * Thuban/Model/save.py (SessionSaver.write_session): Save with
3262 1.0.0 namespace
3263
3264 * test/test_load.py (LoadSessionTest.dtd)
3265 (TestSingleLayer.file_contents)
3266 (TestNonAsciiColumnName.file_contents)
3267 (TestLayerVisibility.file_contents)
3268 (TestClassification.file_contents, TestLabels.file_contents)
3269 (TestLayerProjection.file_contents)
3270 (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3271 (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
3272 (TestPostGISLayerPassword.file_contents)
3273 (TestLoadError.file_contents, TestLoadError.test): Update for
3274 1.0.0 namespace
3275
3276 * test/test_save.py (SaveSessionTest.dtd)
3277 (SaveSessionTest.testEmptySession)
3278 (SaveSessionTest.testSingleLayer)
3279 (SaveSessionTest.testLayerProjection)
3280 (SaveSessionTest.testRasterLayer)
3281 (SaveSessionTest.testClassifiedLayer)
3282 (SaveSessionTest.test_dbf_table)
3283 (SaveSessionTest.test_joined_table)
3284 (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
3285
3286 2003-12-22 Bernhard Herzog <[email protected]>
3287
3288 * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
3289 alignment flags are byte strings not unicode and that they have
3290 valid values
3291
3292 * test/test_load.py (TestLabelLayer): New. Test loading (and
3293 indirectly saving) of maps with labels.
3294
3295 2003-12-22 Bernhard Herzog <[email protected]>
3296
3297 * Thuban/UI/tableview.py (TableGrid.OnDestroy)
3298 (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
3299 unsubscribe all subscribers.
3300 (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
3301 self.grid since it may already have been destroyed.
3302 Fixes RT #2256
3303
3304 2003-12-19 Bernhard Herzog <[email protected]>
3305
3306 * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
3307
3308 2003-12-16 Bernhard Herzog <[email protected]>
3309
3310 * debian/bitmappath.patch, debian/setup.py.patch:
3311 added to ensure compliance with FHS for debian
3312 * debian/rules, debian/changelog:
3313 added patches in rules to ensure compliance with FHS for debian
3314
3315 2003-12-16 Bernhard Herzog <[email protected]>
3316
3317 * po/Makefile (mo): Make the output a bit nicer so that it prints
3318 statistics about the translations. Add a comment how produce even
3319 nicer statistics with sed.
3320
3321 2003-12-09 Frank Koormann <[email protected]>
3322
3323 * Resources/Projections/defaults.proj:
3324 French projection sample with correct accents (UNICODE).
3325
3326 2003-12-05 Bernhard Herzog <[email protected]>
3327
3328 * MANIFEST.in: Add the devtools directory
3329
3330 * setup.py (setup call): Use license instead of licence. This
3331 silences a deprecation warning on Python 2.3
3332
3333 2003-12-05 Frank Koormann <[email protected]>
3334
3335 Documentation synced with 1.0rc1
3336
3337 * Doc/manual/thuban-manual.xml:
3338 Minor formatting changes and references to database layers .
3339 Introduction.Internationalization: New section on i18n.
3340 MapManagement.AddingandRemovingLayers: Added item on database layers.
3341 MapManagement.TheLegend: Added section and screenshot on popup menu.
3342 ProjectionManagement: Updated screenshot and sentence on EPSG.
3343 Appendix.SupportedDataSources: Added PostGIS.
3344 Appendix.WorkingwithPostGIS: New section.
3345
3346 * Doc/manual/images/6_projection.png: Updated screenshot including
3347 EPSG checkboxes.
3348
3349 * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
3350
3351 * Doc/manual/images/app_postgis_add_layer.png,
3352 Doc/manual/images/app_postgis_db_add.png,
3353 Doc/manual/images/app_postgis_db_management.png:
3354 New screenshots focussing on database layers
3355
3356 2003-12-05 Frank Koormann <[email protected]>
3357
3358 * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
3359 write warning to stderr instead of rising a warning dialog
3360
3361 2003-12-03 Bernhard Herzog <[email protected]>
3362
3363 Fix for RT #2243
3364
3365 * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
3366 New. Like has_selected_layer but for shape layers only
3367 (_has_selected_shape_layer): New. Like _has_selected_layer but for
3368 shape layers only
3369 (layer_show_table command, layer_jointable command): Use these
3370 commands should only be available for shape layers
3371
3372 2003-12-03 Bernhard Herzog <[email protected]>
3373
3374 * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
3375 publishers that are wx objects and may have been destroyed by wx
3376 already. Fixes RT #2242.
3377
3378 2003-12-03 Bernhard Herzog <[email protected]>
3379
3380 * po/ru.po: Updates from Alex Shevlakov
3381
3382 2003-12-03 Silke Reimer <silkeintevation.de>
3383
3384 * debian/control, debian/changelog: Added gdal-support to
3385 debian package, updated to new thuban version
3386
3387
3388 2003-12-03 Bernhard Herzog <[email protected]>
3389
3390 * Thuban/Lib/version.py: New. Module for version number
3391 manipulations. The version of make_tuple here also deals better
3392 with more unusual version number strings, such as e.g.
3393 "1.2+cvs20031111"
3394
3395 * Thuban/version.py (make_tuple): Removed. It's now in
3396 Thuban.Lib.version. Use that implementation instead.
3397
3398 * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
3399
3400 2003-12-02 Bernhard Herzog <[email protected]>
3401
3402 * MANIFEST.in: Add debian files
3403
3404 * setup.py (setup call): Add packages for the Extensions so that
3405 they're installed too
3406 (data_files): Add READMEs and sample data from some Extensions
3407
3408 * NEWS: Add note about the extensions in binary packages
3409
3410 2003-12-02 Bernhard Herzog <[email protected]>
3411
3412 * Thuban/Model/save.py (SessionSaver.write_session): Save files
3413 with the thuban-1.0rc1
3414
3415 * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
3416 thuban-1.0rc1 namespace too
3417
3418 * test/test_save.py (SaveSessionTest.dtd)
3419 (SaveSessionTest.testEmptySession)
3420 (SaveSessionTest.testSingleLayer)
3421 (SaveSessionTest.testLayerProjection)
3422 (SaveSessionTest.testRasterLayer)
3423 (SaveSessionTest.testClassifiedLayer)
3424 (SaveSessionTest.test_dbf_table)
3425 (SaveSessionTest.test_joined_table)
3426 (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
3427 namespace
3428
3429 * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
3430 namespace
3431 (TestSingleLayer.file_contents)
3432 (TestNonAsciiColumnName.file_contents)
3433 (TestLayerVisibility.file_contents)
3434 (TestClassification.file_contents, TestLabels.file_contents)
3435 (TestLayerProjection.file_contents)
3436 (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3437 (TestPostGISLayer.file_contents)
3438 (TestPostGISLayerPassword.file_contents)
3439 (TestLoadError.file_contents, TestLoadError.test): Update to
3440 thuban-1.0rc1 namespace
3441
3442 2003-12-01 Bernhard Herzog <[email protected]>
3443
3444 * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
3445 nt to better match Intevation's current w32 setup
3446
3447 * HOWTO-Release: Add note about updating MANIFEST.in
3448
3449 * MANIFEST.in: Add the Extensions
3450
3451 * NEWS: Update for 1.0rc1
3452
3453 2003-12-01 Bernhard Herzog <[email protected]>
3454
3455 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
3456 cards for the dialog so that shapefiles ending in all uppercase
3457 SHP are listed too
3458
3459 2003-11-28 Bernhard Herzog <[email protected]>
3460
3461 * Thuban/version.py (longversion): Update to 1.0rc1
3462
3463 * setup.py (setup call): Update version to 1.0rc1. Use the
3464 [email protected] email address as author email instead of my
3465 personal one.
3466
3467 2003-11-28 Bernhard Herzog <[email protected]>
3468
3469 * po/de.po: Update german translation.
3470
3471 2003-11-28 Bernhard Herzog <[email protected]>
3472
3473 Unify the filenames stored in .thuban files so that the .thuban
3474 files are more platform independend
3475
3476 * Thuban/Model/save.py (unify_filename): New. Unify filenames so
3477 that they can be used on both windows and unix
3478 (SessionSaver.prepare_filename): New. Handle all filename
3479 transformations for filenames stored in the thuban file
3480 (SessionSaver.write_data_containers, SessionSaver.write_layer):
3481 Use prepare_filename
3482
3483 * test/test_save.py (SaveSessionTest.testSingleLayer)
3484 (SaveSessionTest.testLayerProjection)
3485 (SaveSessionTest.testRasterLayer)
3486 (SaveSessionTest.testClassifiedLayer)
3487 (SaveSessionTest.test_dbf_table)
3488 (SaveSessionTest.test_joined_table): Filenames are always stored
3489 with slashes on all currently supported platforms so adapt all
3490 tests to this
3491
3492 * test/test_load.py (LoadSessionTest.filenames): With the new
3493 filename scheme the filenames in the tests should be
3494 understandable on all currently supported platforms so we turn
3495 this into an empty list because we don't have to normalize them
3496 anymore
3497
3498 2003-11-28 Bernhard Herzog <[email protected]>
3499
3500 * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
3501 Add the ellipsoid to the projection since some Proj versions
3502 complain if it's missing.
3503
3504 2003-11-27 Bernhard Herzog <[email protected]>
3505
3506 Corect some bounding box projection problems
3507
3508 * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
3509 version of ForwardBBox
3510 (Projection._transform_bbox): New. common implementation of
3511 ForwardBBox and InverseBBox
3512 (Projection.ForwardBBox): Use _transform_bbox.
3513
3514 * test/test_proj.py (TestProjection.test): Add test for
3515 InverseBBox
3516
3517 * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
3518 (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
3519 new InverseBBox method to determine the unprojected bounding box
3520 (Layer.ShapesInRegion): Use the ForwardBBox method to project the
3521 bbox.
3522
3523 * test/test_layer.py (TestLayer.test_point_layer_with_projection):
3524 Removed.
3525 (TestLayer.test_arc_layer_with_projection): New. This test is
3526 better able to test whether bounding boxes are projected correctly
3527 than test_point_layer_with_projection
3528
3529 * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
3530 InverseBBox to unproject bboxes
3531
3532 2003-11-25 Bernhard Herzog <[email protected]>
3533
3534 * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
3535 source code.
3536
3537 2003-11-25 Bernhard Herzog <[email protected]>
3538
3539 * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
3540 there for backwards compatibility and all code relying on that
3541 should have been updated by now.
3542
3543 2003-11-25 Bernhard Herzog <[email protected]>
3544
3545 * test/test_load.py (TestClassification.test): Add the missing
3546 round trip test.
3547 (TestClassification.file_contents): Update to the newest file
3548 format
3549
3550 2003-11-25 Bernhard Herzog <[email protected]>
3551
3552 Add very experimental (and possibly dangerous) extension to draw
3553 polygons:
3554
3555 * Extensions/drawshape/README: New. Brief installation
3556 instructions
3557
3558 * Extensions/drawshape/drawshape.py: New. Implementation of the
3559 drawshape extensions
3560
3561 * Extensions/drawshape/patch.diff: Patch to apply before the
3562 extension can be used.
3563
3564 2003-11-24 Bernhard Herzog <[email protected]>
3565
3566 * Thuban/Model/data.py (ShapefileStore._open_shapefile)
3567 (ShapefileStore.__init__): Factor opening the shapefile into a
3568 separate method (the new _open_shapefile). This makes the code a
3569 bit more readable but the real reason is that it makes some evil
3570 hacks easier. :-)
3571
3572 2003-11-24 Bernhard Herzog <[email protected]>
3573
3574 * Thuban/Model/load.py (SessionLoader.check_attrs): If no
3575 converter is specified for an attribute assume it's a string
3576 containing only Latin1 characters. Update doc-string accordingly.
3577 This change should fix many places where unicode objects might
3578 accidentally enter Thuban.
3579
3580 * test/test_load.py (TestNonAsciiColumnName): New test to check
3581 what happens with column names in DBF files that contain non-ascii
3582 characters
3583
3584 2003-11-21 Bernhard Herzog <[email protected]>
3585
3586 Enable the experimental attribute editing again and introduce a
3587 command line switch to actually activate it
3588
3589 * Thuban/UI/main.py (options): New. Container for options set on
3590 the commmand line
3591 (main): Add the --enable-attribute-editing flag.
3592
3593 * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
3594 editing is enabled use the grid ctrl which allows editing of the
3595 values
3596
3597 * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
3598 New. Just delegate this to the underlying table.
3599
3600 2003-11-20 Bernhard Herzog <[email protected]>
3601
3602 * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
3603 Skip this test if run under non-posix systems since it only works
3604 there
3605
3606 2003-11-19 Bernhard Herzog <[email protected]>
3607
3608 * Thuban/Model/resource.py: Rework the way gdal support is
3609 determined so that we can give a reason in the about why gdal is
3610 not supported.
3611 (gdal_support_status): New. Variable holding a string with the
3612 reason for no gdal support
3613
3614 * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
3615 not supported to the message
3616
3617 2003-11-19 Bernhard Herzog <[email protected]>
3618
3619 Remove the old table interface and its test cases
3620
3621 * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
3622 (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
3623 anymore
3624
3625 * Thuban/Model/transientdb.py (TransientTableBase)
3626 (AutoTransientTable): Do not derive from OldTableInterfaceMixin
3627 anymore
3628
3629 * test/test_table.py: Removed since the old interface it tests is
3630 gone.
3631
3632 * test/runtests.py (main): The old table interface is gone and
3633 with it the deprecation warnings so remove the code that turns
3634 these warnings into errors
3635
3636 2003-11-19 Bernhard Herzog <[email protected]>
3637
3638 * test/test_table.py: Revert to revision 1.5 again. Changing the
3639 tests to use the new table interface is completely wrong since the
3640 whole purpose of the tests in this module is to test the old
3641 interface.
3642
3643 2003-11-18 Bernhard Herzog <[email protected]>
3644
3645 * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
3646 New. Test whether the connection matches a set of connection
3647 parameters
3648
3649 * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
3650 (DBFrame.OnAdd): Use the new MatchesParameters method when looking
3651 for existing connections with the same parameters and break out of
3652 the loop correctly.
3653
3654 * test/test_postgis_db.py (TestBriefDescription)
3655 (TestPostGISSimple.test_brief_description): Rename
3656 TestBriefDescription to TestPostGISSimple and the test method to
3657 test_brief_description so that we can add more test methods.
3658 (TestPostGISSimple.test_matches_parameters): New. Test the new
3659 MatchesParameters method
3660
3661 2003-11-18 Bernhard Herzog <[email protected]>
3662
3663 * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
3664 _was_destroyed, to indicate whether an publisher instance has
3665 already been destroyed.
3666 (Publisher.Unsubscribe): Only disconnect if the publisher has not
3667 been destroyed yet.
3668 (Publisher.Destroy): Set the _was_destroyed flag to true.
3669
3670 * test/test_connector.py
3671 (TestPublisher.test_unsubscribe_after_destroy): New. Test that
3672 calling Unsubscribe after Destroy doesn't raise an exception
3673
3674 2003-11-14 Bernhard Herzog <[email protected]>
3675
3676 * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
3677 typo in doc-string
3678
3679 2003-11-13 Bernhard Herzog <[email protected]>
3680
3681 Quote table and column names properly for postgis.
3682
3683 * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
3684 quote an identifier for use in an sql statement
3685 (PostGISColumn.__init__): Add the quoted_name attribute
3686 (PostGISTable.__init__): New instance variable quoted_tablename
3687 (PostGISTable._fetch_table_information): Use the quoted table
3688 name. New isntance variable quoted_geo_col with a quoted version
3689 of geometry_column
3690 (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
3691 (PostGISTable.RowOrdinalToId): Use the quoted table name
3692 (PostGISTable.ReadValue, PostGISTable.ValueRange)
3693 (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
3694 (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
3695 (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
3696 Use quoted table and column names
3697
3698 * test/test_postgis_db.py (TestPostGISSpecialCases)
3699 (TestPostGISIgnoredColumns): Rename the class to
3700 TestPostGISSpecialCases because that better describes the new
3701 cases
3702 (TestPostGISSpecialCases.test_unsupported_types)
3703 (TestPostGISSpecialCases.test): Rename the method to
3704 test_unsupported_types because we need a more descriptive name now
3705 that there are more methods
3706 (TestPostGISSpecialCases.test_table_name_quoting)
3707 (TestPostGISSpecialCases.test_column_name_quoting)
3708 (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
3709 cases to test quoting of table and column names in PostGISTable
3710 and PostGISShapeStore
3711
3712 * test/postgissupport.py
3713 (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
3714 AddGeometryColumn desn't support table or column names with sapces
3715 or double quotes
3716
3717 2003-11-12 Jan-Oliver Wagner <[email protected]>
3718
3719 * Extensions/wms/__init__.py: New: Init to make this
3720 directory a package.
3721
3722 * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
3723
3724 2003-11-11 Bernhard Herzog <[email protected]>
3725
3726 * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
3727 Constant for the file woth deprecated epsg projections
3728 (get_system_proj_file): Update doc-string
3729
3730 * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
3731 above the EPS widgets, introduce a check box for the deprecated
3732 eps projections and a label for the epsg widgets
3733 (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
3734 too
3735
3736 2003-11-11 Bernhard Herzog <[email protected]>
3737
3738 Avoid warnings when run under Python 2.3
3739
3740 * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
3741 (BaseRenderer.draw_label_layer): Coordinates must be ints.
3742
3743 * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
3744 real method so that we can convert to int.
3745 (MapRenderer.label_font): The font size mist be an int.
3746
3747 * Thuban/UI/common.py (Color2wxColour): The color values must be
3748 ints. Also, remove the unnecessary asserts.
3749
3750 * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
3751 (TestUnicodeStrings.test): Python source code should not contain
3752 non-ascii characters unless an encoding is specified in the file.
3753 Therefore use \x escapes in the string literals for non-ascii
3754 characters.
3755
3756 2003-11-11 Bernhard Herzog <[email protected]>
3757
3758 * Thuban/Model/resource.py (get_system_proj_file): Add a filename
3759 parameter so that this function can be used for all proj files in
3760 Resource/Projections
3761 (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
3762 get_system_proj_file
3763
3764 * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
3765 ProjFile self.__sysProjFile use a dictionary of system ProjFile
3766 objects self._sys_proj_files
3767 (ProjFrame.build_dialog): Adapt to the new changes in the
3768 ProjectionList constructor. Add a check button to toggle whether
3769 EPSG projections are shown
3770 (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
3771 events.
3772 (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
3773 the busy cursor if the files have not yet been loaded by the
3774 dialog.
3775 (ProjFrame.load_system_proj): Add a parameter for the name of the
3776 proj file. Maintain the dictionary of system projections
3777 self._sys_proj_files
3778
3779 * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
3780 user_projs parameters into one parameter proj_files which is a
3781 list of proj files.
3782 (ProjectionList._subscribe_proj_files)
3783 (ProjectionList._unsubscribe_proj_files): New. Move
3784 subscription/unsubscription of projfile messages to separate
3785 methods
3786 (ProjectionList.Destroy): The unsubscribe is now done in
3787 _unsubscribe_proj_files
3788 (ProjectionList.update_projections): We now have a list of proj
3789 file objects
3790 (ProjectionList.SetProjFiles): New method to set a new list of
3791 proj file objects
3792
3793 * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
3794 Specify explicitly which system proj file to load.
3795
3796 2003-11-11 Bernhard Herzog <[email protected]>
3797
3798 * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
3799 instance variables to cut cyclic references. The GC would have
3800 collected the loader eventually but it can happen that it doesn't
3801 run at all until thuban is closed (2.3 but not 2.2 tries a bit
3802 harder and forces a collection when the interpreter terminates)
3803 (load_session): Call the handler's Destroy method to make sure
3804 that it gets garbage collected early. Otherwise it will be
3805 collected very late if at all and it holds some references to e.g.
3806 shapestores and the session which can lead to leaks (of e.g. the
3807 temporary files)
3808
3809 * test/test_load.py (TestSingleLayer.test_leak): New. test for the
3810 resource leak in load_session
3811
3812 2003-11-10 Bernhard Herzog <[email protected]>
3813
3814 * Thuban/UI/baserenderer.py: Add a way to specify how layers in
3815 extensions are to be rendered.
3816 (_renderer_extensions): New. List with renderer for layers in
3817 extensions
3818 (add_renderer_extension): New. Add a renderer extension
3819 (init_renderer_extensions): New. Init the renderer extensions
3820 (BaseRenderer.render_map_incrementally): Search
3821 _renderer_extensions for how to draw unknown layer types
3822 (BaseRenderer.draw_raster_data): Add format parameter so that
3823 formats other than BMP can be drawn
3824 (BaseRenderer.draw_raster_layer): Pass an explicit format to
3825 draw_raster_data
3826
3827 * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
3828 strings of the format parameter of draw_raster_data method to wx
3829 constants
3830 (MapRenderer.draw_raster_data): Add the format parameter and use
3831 raster_format_map to map it to the right wxwindows constant for
3832 wxImageFromStream
3833
3834 * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
3835 the format parameter and record it
3836 (TestBaseRenderer.test_raster_no_projection): check the format
3837 paramter of the draw_raster_data method
3838 (TestBaseRenderer.test_renderer_extension): New. Test the renderer
3839 extension facility
3840
3841 2003-11-07 Bernhard Herzog <[email protected]>
3842
3843 Tweak the usage of the sqlite database to make common use cases
3844 more responsive. In most cases copying the data to the sqlite
3845 database takes so long that using sqlite doesn't have enough
3846 advantages.
3847
3848 * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
3849 comments about performance and query the min and max in separate
3850 statements because only that way will indexes be used.
3851 (TransientTableBase.UniqueValues): Add some comments about
3852 performance.
3853 (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
3854 Do not copy the data to the transient DB but use the transient
3855 copy if it exists. See the new comments for the performance trade
3856 offs
3857
3858 * test/test_transientdb.py
3859 (TestTransientTable.test_auto_transient_table): Make sure that the
3860 data is copied to the transient database at some point.
3861
3862 2003-11-03 Bernhard Herzog <[email protected]>
3863
3864 * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
3865 globals to locals so that it's a bit faster
3866
3867 2003-11-03 Bernhard Herzog <[email protected]>
3868
3869 * Thuban/UI/baserenderer.py
3870 (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
3871 method. ReadValue is faster than ReadRowAsDict since it only reads
3872 one cell especially now that the dbf file objects actually
3873 implement it.
3874
3875 * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
3876 read_attribute method of the dbf objects
3877
3878 2003-11-03 Bernhard Herzog <[email protected]>
3879
3880 * Extensions/profiling/profiling.py (popup_dialog_box): New config
3881 variable to indicate whether the result should be shown in a
3882 dialog box
3883 (profile_screen_renderer, time_screen_renderer): Only show a
3884 dialog box if popup_dialog_box is true.
3885 (profile_screen_renderer): Flush stdout after the printing the
3886 first part of the "profiling..." message
3887
3888 * Thuban/UI/baserenderer.py
3889 (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
3890 brushes for the groups so that they're not created over and over
3891 again
3892
3893 * Thuban/Model/classification.py (Classification.__getattr__)
3894 (Classification._compile_classification)
3895 (Classification._clear_compiled_classification): New. Methods to
3896 manage a 'compiled' representation of the classification groups
3897 which is created on demand
3898 (Classification.InsertGroup, Classification.RemoveGroup)
3899 (Classification.ReplaceGroup): reset the compiled representation
3900 (Classification.FindGroup): Use the compiled representation to
3901 find the matching group
3902 (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
3903
3904 2003-10-31 Bernhard Herzog <[email protected]>
3905
3906 * Thuban/Model/classification.py (Classification.SetDefaultGroup):
3907 Send a CLASS_CHANGED message
3908 (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
3909 not return the removed group since it wasn't used.
3910
3911 * test/test_classification.py
3912 (TestClassification.test_set_default_group): New. Test the
3913 SetDefaultGroup method
3914 (TestClassification.test_insert_group): New. Test the InsertGroup
3915 method
3916 (TestClassification.test_remove_group): New. Test the RemoveGroup
3917 method
3918 (TestClassification.test_replace_group): New. Test the
3919 ReplaceGroup method
3920
3921 2003-10-31 Bernhard Herzog <[email protected]>
3922
3923 * test/test_classification.py (TestClassification.setUp):
3924 Subscribe to the CLASS_CHANGED messages
3925 (TestClassification.tearDown): New. Destroy the classification
3926 properly
3927 (TestClassification.test_defaults): Add tests for the default line
3928 width and whether no messages were sent yet
3929 (TestClassification.test_set_default_properties): Add tests for
3930 messages and setting the default line width
3931 (TestClassification.test_add_singleton)
3932 (TestClassification.test_add_range)
3933 (TestClassification.test_multiple_groups): Add tests for messages
3934
3935 2003-10-31 Bernhard Herzog <[email protected]>
3936
3937 Some more refactoring in preparation for new tests:
3938
3939 * test/test_classification.py (TestClassification.setUp): New.
3940 Instantiate the classification here. Update the test methods
3941 accordingly.
3942 (TestClassification.test_multiple_groups): Make sure that the two
3943 singletons matching 1 are considered different.
3944
3945 2003-10-31 Bernhard Herzog <[email protected]>
3946
3947 * test/test_classification.py (red, green, blue): New. These
3948 constants were used in several cases. Update the relevant methods.
3949 (TestClassification.test_defaults)
3950 (TestClassification.test_set_default_properties)
3951 (TestClassification.test_add_singleton)
3952 (TestClassification.test_add_range)
3953 (TestClassification.test_multiple_groups)
3954 (TestClassification.test_deepcopy): New. These were formerly all
3955 part of the single method test.
3956 (TestClassification.test_deepcopy): Removed.
3957 (TestClassIterator): Removed. The test case is now a method of
3958 TestClassification since it tests part of the public interface of
3959 Classification
3960 (TestClassification.test_iterator): New. Used to be
3961 TestClassIterator effectively
3962
3963 2003-10-31 Jan-Oliver Wagner <[email protected]>
3964
3965 GUIfied the functions of the profiling extension.
3966
3967 * /Extensions/profiling/__init__.py: New: Init to make this
3968 directory a package.
3969
3970 * Extensions/profiling/profiling.py: Moved menu entries to
3971 the Extensions menu. Applied _() for strings.
3972 (profile_screen_renderer): Catch the detailed printout and present
3973 it in a dialog.
3974 (time_screen_renderer): Raise a dialog to present the result instead
3975 of printing it to stdout.
3976
3977 2003-10-31 Bernhard Herzog <[email protected]>
3978
3979 * test/test_classification.py (TestClassGroupProperties)
3980 (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
3981 (TestClassGroupSingleton, TestClassIterator, TestClassification):
3982 Split TestClassification into several classes, one for each class
3983 being tested. TestClassification itself now only tests
3984 Classification. This split makes changes to the tests a bit easier
3985
3986 2003-10-31 Bernhard Herzog <[email protected]>
3987
3988 * Extensions/profiling/profiling.py: New. Extension to measure
3989 Thuban performance
3990
3991 2003-10-31 Frank Koormann <[email protected]>
3992
3993 Added two items to legend popup menu: Remove Layer and Show Layer Table
3994
3995 * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
3996 LegendPanel._OnShowTable): New event handlers, call the corresponding
3997 mainwindow methods.
3998 (LegendTree._OnRightClick): Added items to popup menu.
3999
4000 2003-10-30 Bernhard Herzog <[email protected]>
4001
4002 * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
4003 EVT_WINDOW_DESTROY
4004 (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
4005 nothing but is convenient for the derived classes.
4006
4007 * Thuban/UI/tableview.py
4008 (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
4009 Unsubscribe the messages here not in OnClose because that might
4010 get called multiple times. Fixes RT #2196
4011 (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
4012 anymore.
4013
4014 * README: Update the minimum requirement for wxPython. Since we
4015 now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
4016 the version in which that was introduced for all platforms
4017
4018 2003-10-30 Frank Koormann <[email protected]>
4019
4020 * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
4021 the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
4022 frame.
4023
4024 2003-10-30 Jan-Oliver Wagner <[email protected]>
4025
4026 Improved APR import extension, added further EPSG definitions
4027 and some cleanup regarding string class.
4028
4029 * test/test_proj.py (TestProjection.test_get_projection_units_geo):
4030 Added test for alias 'longlat'.
4031
4032 * Resources/Projections/epsg-deprecated.proj: New. Contains
4033 deprecated EPSG definitions.
4034
4035 * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
4036 the variable names for objects.
4037
4038 * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
4039 Copied from importAPR and provided with documentation.
4040
4041 * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
4042 Moved to apr.py.
4043 (APR_View): Added object ref 'ITheme'.
4044
4045 * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
4046 split function by corresponding use of the string class method.
4047
4048 * Thuban/Model/xmlwriter.py: Replaced string replace function by
4049 corresponding string method.
4050
4051 2003-10-29 Bernhard Herzog <[email protected]>
4052
4053 * Thuban/UI/baserenderer.py
4054 (BaseRenderer.draw_shape_layer_incrementally): Speed up the
4055 special case of a classification that only has the default group
4056
4057 2003-10-27 Bernhard Herzog <[email protected]>
4058
4059 * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
4060
4061 * po/de.po: Update.
4062
4063 * Thuban/UI/application.py
4064 (ThubanApplication.ShowExceptionDialog): Handle translation of the
4065 dialog message properly
4066
4067 2003-10-27 Bernhard Herzog <[email protected]>
4068
4069 Rework how localization works so that we use wx's translation
4070 functions when running Thuban as a normal application but not when
4071 we don't need any UI, such as in the test suite. See the comment
4072 in Thuban/__init__.py for details
4073
4074 * Thuban/__init__.py (_): Add one level of indirection to make the
4075 translation handling more flexible and to make it possible to use
4076 either wx's translation services or not.
4077 (gettext_identity, translation_function_installed)
4078 (install_translation_function): New function to help with this
4079
4080 * Thuban/UI/__init__.py: Install the wx specific translation
4081 function if it's OK to do that
4082
4083 * test/support.py (initthuban): Install a dummy translation
4084 function so that importing Thuban.UI doesn't install a wx specific
4085 one for which would need to import wxPython
4086
4087 2003-10-27 Bernhard Herzog <[email protected]>
4088
4089 * HOWTO-Release: Source archives should be created first and the
4090 binary packages should be created from the source archives.
4091 There's an official debian package now so there's no need to test
4092 the rpm on debian anymore
4093
4094 2003-10-27 Bernhard Herzog <[email protected]>
4095
4096 Several rendering changes:
4097
4098 - Render the selection into a separate bitmap so that only that
4099 bitmap needs to be redrawn when the selection changes
4100
4101 - Render incrementally showing previews and allowing interaction
4102 before rendering is complete
4103
4104 - Update the renderer interface a bit. Most parameters of
4105 RenderMap are now parameters of the constructor
4106
4107 * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
4108 and the update region as parameters. Update the doc-string
4109 (BaseRenderer.render_map_incrementally): New. Generator function
4110 to renders the map incrementally
4111 (BaseRenderer.render_map): Remove the map argument (it's now in
4112 the constructor) and simply iterate over the
4113 render_map_incrementally generator to draw the map.
4114 (BaseRenderer.draw_shape_layer_incrementally)
4115 (BaseRenderer.draw_shape_layer): Renamed to
4116 draw_shape_layer_incrementally and changed into a generator that
4117 yields True every 500 shapes. Used by render_map_incrementally to
4118 render shape layers incrementally
4119
4120 * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
4121 map and region parameters which are now in the constructor
4122 (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
4123 the inherited render_map_incrementally.
4124 (BaseRenderer.draw_shape_layer): Removed.
4125 (ScreenRenderer.draw_selection_incrementally): New. The selection
4126 drawing part of the removed draw_shape_layer as a generator
4127 (ScreenRenderer.layer_shapes): Update because of the region
4128 parameter change
4129 (ExportRenderer.__init__): New. Extend the inherited constructor
4130 with the destination region for the drawing
4131 (ExportRenderer.RenderMap): Removed the map and region parameters
4132 which are now in the constructor
4133
4134 * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
4135 bitmap suitable for a preview in a tool
4136 (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
4137 bitmap
4138 (MapPrintout.draw_on_dc): Adapt to new renderer interface
4139 (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
4140 exists
4141 (MapCanvas.OnIdle): Update the logic to deal with incremental
4142 rendering and the selection bitmap
4143 (MapCanvas._do_redraw): Handle the instantiation of the render
4144 iterator and the redraws during rendering
4145 (MapCanvas._render_iterator): New. Generator to incrementally
4146 redraw both bitmaps
4147 (MapCanvas.Export): Adapt to new renderer interface.
4148 (MapCanvas.full_redraw): Reset the selection bitmap and the
4149 renderer iterator too
4150 (MapCanvas.redraw_selection): New. Force a redraw of the selection
4151 bitmap
4152 (MapCanvas.shape_selected): Only redraw the selection bitmap
4153
4154 * test/test_baserenderer.py
4155 (TestBaseRenderer.test_polygon_no_projection)
4156 (TestBaseRenderer.test_raster_no_projection)
4157 (TestBaseRenderer.test_point_map_projection)
4158 (TestBaseRenderer.test_point_layer_and_map_projection)
4159 (TestBaseRenderer.test_point_layer_projection)
4160 (TestBaseRenderer.test_point_with_classification): Adapt to new
4161 renderer interface
4162
4163 2003-10-24 Bernhard Herzog <[email protected]>
4164
4165 * libraries/thuban/wxproj.cpp (draw_polygon_shape)
4166 (point_in_polygon_shape, shape_centroid): Raise an exception if
4167 the shape can't be read. Previously invalid shape ids would lead
4168 to a segfault.
4169
4170 * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
4171 New. test whether an exception is raised for invalid shape ids
4172
4173 2003-10-24 Jan-Oliver Wagner <[email protected]>
4174
4175 * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
4176 as alias for 'latlong'.
4177
4178 * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
4179 as alias for 'latlong'.
4180
4181 2003-10-24 Jan-Oliver Wagner <[email protected]>
4182
4183 * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
4184 the projection even for the UnknownPanel.
4185 (UnknownProjPanel.__init__): Define the text and create the textctrl
4186 widget.
4187 (UnknownProjPanel._DoLayout): Replaced static text widget by the
4188 textctrl created in __init__.
4189 (UnknownProjPanel.SetProjection): Set the text for the text ctrl
4190 including the parameters of the projection.
4191
4192 2003-10-24 Jan-Oliver Wagner <[email protected]>
4193
4194 * Resources/Projections/epsg.proj: New. This is a list of
4195 EPSG codes with parameters for proj. The list has been
4196 generated using devtools/create_epsg.py based on the
4197 file nad/epsg of the proj 4.4.7 package. Four projection
4198 definitions have been deleted as they are not accepted by proj:
4199 "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
4200 and "HD72 / EOV".
4201
4202 2003-10-22 Bernhard Herzog <[email protected]>
4203
4204 Some more tweaks to the projection dialog which should fix RT
4205 #1886.
4206
4207 * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
4208 the ProjFile's messages and call the base class methods correctly
4209 (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
4210 flag on the newly selected item too. Otherwise some other item is
4211 focused and the first time the focus is moved with the keyboard
4212 the selection moves in unexpected ways.
4213
4214 * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
4215 focus on the OK button, only on the projection list. That way the
4216 list really has the focus initially
4217 (ProjFrame.OnClose): Call the projection list's Destroy method to
4218 make it unsubscribe all messages
4219
4220 2003-10-21 Bernhard Herzog <[email protected]>
4221
4222 Rework the projection dialog to fix a few bugs, including RT 2166
4223 and most of 2168
4224
4225 * Thuban/UI/projlist.py: New. The class ProjectionList is a
4226 special wxListCtrl to show a list of projections in a more MVC
4227 fashion
4228
4229 * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
4230 throughout the class. The main change is to use the ProjectionList
4231 class instead of a normal wxListBox. Also, add an explicit
4232 "Unknown" projection to the projection choice control.
4233 (ProjPanel.__init__): Add an "unknown" ellipsoid
4234 (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
4235 instantiation of the panel's controls to make the tab-order more
4236 natural
4237
4238 2003-10-21 Bernhard Herzog <[email protected]>
4239
4240 * test/test_load.py (TestSingleLayer.file_contents)
4241 (TestSingleLayer.test): Add non-ascii characters to the titles of
4242 session, map and layer. This is effectively a port of the
4243 TestUnicodeStrings test in test_load_0_8.py which for some reason
4244 was only added there.
4245
4246 * test/test_load_0_9.py (TestSingleLayer.file_contents)
4247 (TestSingleLayer.test): Same as in test_load.py: add non-ascii
4248 characters to the titles of session, map and layer,.
4249
4250 2003-10-21 Bernhard Herzog <[email protected]>
4251
4252 Add EPSG projection handling to .thuban files
4253
4254 * test/test_save.py (SaveSessionTest.dtd)
4255 (SaveSessionTest.testEmptySession)
4256 (SaveSessionTest.testLayerProjection)
4257 (SaveSessionTest.testRasterLayer)
4258 (SaveSessionTest.testClassifiedLayer)
4259 (SaveSessionTest.test_dbf_table)
4260 (SaveSessionTest.test_joined_table)
4261 (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
4262 (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
4263 use a and epsg projection to test saving them
4264
4265 * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
4266 namespace
4267 (TestLayerVisibility.file_contents, TestLabels.file_contents)
4268 (TestLayerProjection.file_contents)
4269 (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4270 (TestPostGISLayer.file_contents)
4271 (TestPostGISLayerPassword.file_contents)
4272 (TestLoadError.file_contents, TestLoadError.test): Update to use
4273 1.0-dev namespace
4274 (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
4275 use 1.0-dev namespace and use an EPSG projection to test whether
4276 loading it works
4277
4278 * test/test_load_0_9.py: New. Effectively a copy of test_load.py
4279 as of Thuban 0.9. These are now tests to determine whether Thuban
4280 can still read files generated by Thuban 0.9
4281
4282 * Thuban/Model/save.py (SessionSaver.write)
4283 (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
4284 namespace
4285 (SessionSaver.write_projection): Write the projection's epsg
4286 attribute
4287
4288 * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
4289 thuban-1.0-dev.dtd namespace
4290 (SessionLoader.check_attrs): Allow a callable object as conversion
4291 too
4292 (SessionLoader.start_projection, SessionLoader.end_projection)
4293 (SessionLoader.start_parameter): Handle the epsg attribute and
4294 rename a few instance variables to lower case
4295
4296 * Resources/XML/thuban-1.0.dtd: New. Only difference to
4297 thuban-0.9.dtd is the epsg attribute for projections.
4298
4299 2003-10-21 Bernhard Herzog <[email protected]>
4300
4301 * test/runtests.py (main): Let the user specify which tests to run
4302 on the command line
4303
4304 * test/support.py (ThubanTestResult.getDescription): Override to
4305 give a better short description. The description can be used as a
4306 parameter to run_tests to run that particular test in isolation.
4307
4308 2003-10-21 Frank Koormann <[email protected]>
4309
4310 Popup menu for legend. Scheduled for the 1.2 release this was too
4311 simple to implement: The popup menu is bound to the legend tree, while
4312 the events are hanlded by its anchestor, the legend panel. This
4313 allows reuse of all the event handlers already implemented for the
4314 legend toolbar buttons.
4315
4316 * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
4317 to add handlers for the events issued by the popup menu.
4318 (LegendPanel._OnToggleVisibility): Handler for toggling layer
4319 visibility event
4320 (LegendPanel._OnProjection): Handler for layer projection event.
4321 (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
4322 (LegendTree._OnRightClick): Event handler for right click, select item
4323 and pop up menu.
4324 (LegendTree.ToggleVisibility): Toggle layer visibility
4325 (LegendTree.LayerProjection): Raise layer projection dialog for
4326 current layer.
4327
4328 2003-10-21 Bernhard Herzog <[email protected]>
4329
4330 * Resources/Projections/defaults.proj: Use correct DOCTYPE
4331 declaration. The top-level element is projectionlist not projfile
4332
4333 2003-10-20 Bernhard Herzog <[email protected]>
4334
4335 * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
4336 method to write a projfile and display a busy cursor and error
4337 dialogs.
4338 (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
4339 (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
4340 (ProjFrame.__FillAvailList): Translate "<None>" too and display a
4341 busy cursor while loading the user and system prj files.
4342
4343 2003-10-16 Bernhard Herzog <[email protected]>
4344
4345 * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
4346 ProjFile objects
4347 (clear_proj_file_cache): New function to clear the cache. Mainly
4348 useful for use by the test suite
4349 (read_proj_file): Use the cache.
4350
4351 * test/test_proj.py (TestProjFile): Clarify the doc-string
4352 (ProjFileReadTests): Update doc-string
4353 (ProjFileReadTests.test_get_system_proj_file): Check whether the
4354 system proj files is cached.
4355 (ProjFileLoadTestCase): New base class for the proj file tests
4356 derived from support.FileLoadTestCase to provide some common
4357 behavior.
4358 (TestLoadingProjFile)
4359 (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
4360 (TestProjFileWithInvalidParameters.file_contents): Derive from
4361 ProjFileLoadTestCase
4362 (TestLoadingProjFile.test_caching): New. Test whether the cache
4363 works
4364
4365 2003-10-16 Silke Reimer <[email protected]>
4366
4367 * debian/*: New directory with configuration files for building a thuban
4368 deb-package.
4369
4370 2003-10-14 Bernhard Herzog <[email protected]>
4371
4372 * test/test_proj.py: Execute support.run_tests when run as
4373 __main__ so that missing unsubscribes are detected
4374 (TestProjFile.tearDown): Destroy the proj_file properly
4375
4376 2003-10-14 Bernhard Herzog <[email protected]>
4377
4378 * Thuban/Model/messages.py (PROJECTION_ADDED)
4379 (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
4380 the ProjFile objects
4381
4382 * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
4383 easily send messages when the projections change
4384 (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
4385 when the change was successful
4386
4387 * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
4388 proj file messages
4389 (TestProjFile.test_add_remove)
4390 (TestProjFile.test_remove_non_existing)
4391 (TestProjFile.test_replace)
4392 (TestProjFile.test_replace_non_existing): Test whether the right
4393 messages are sent
4394
4395 2003-10-14 Bernhard Herzog <[email protected]>
4396
4397 * test/test_proj.py (TestProjFile.test): Refactor into several
4398 tests
4399 (TestProjFile.test_add_remove)
4400 (TestProjFile.test_remove_non_existing)
4401 (TestProjFile.test_replace)
4402 (TestProjFile.test_replace_non_existing): Some of the new
4403 individual test cases
4404 (TestProjFileSimple): New class for the rest of the test cases
4405 that came out of the refactoring
4406 (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
4407 derived classes don't have to
4408
4409 2003-10-13 Bernhard Herzog <[email protected]>
4410
4411 Add an optional EPSG code to the projection objects and extend the
4412 .proj file format accordingly.
4413
4414 * Resources/XML/projfile.dtd (element projection): Add epsg
4415 attribute
4416
4417 * Thuban/Model/proj.py (Projection.__init__): New parameter and
4418 instance variable epsg. Update doc-string
4419 (Projection.EPSGCode, Projection.Label): New methods to provide
4420 access to EPSG code and a label for use in dialogs
4421
4422 * Thuban/Model/resource.py (ProjFileReader.start_projection)
4423 (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
4424 Handle the epsg code attribute when reading or writing proj files
4425
4426 * Thuban/UI/projdialog.py (ProjFrame._OnSave)
4427 (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
4428 (ProjFrame.__FillAvailList): Use the projection's Label method to
4429 get the string for the list box
4430
4431 * test/test_proj.py (TestProjection.test_label)
4432 (TestProjection.test_label_epsg)
4433 (TestProjection.test_epsgcode_for_non_epsg_projection)
4434 (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
4435 for the label and EPSGCode methods
4436 (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
4437 (WriteProjFileTests.test_write_empty_file): Create the ProjFile
4438 objects in the test cases and put the expected contents into the
4439 test case methods too. Update doTestWrite accordingly
4440 (TestLoadingProjFile)
4441 (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
4442 read tests from TestProjFile.
4443 (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
4444 tests are now in the new classes.
4445 (sample_projfile, sample_projfile_data)
4446 (sample_projfile2, sample_projfile_data2): Removed. Not used
4447 anymore.
4448 (TestProjFile.test_read_unreadable_file): No need to reset the
4449 permissions at the end anymore since we use a unique filename
4450
4451 2003-10-13 Bernhard Herzog <[email protected]>
4452
4453 * test/test_proj.py: Some more refactoring of the test cases
4454 (ProjFileTest): New base class for the proj file tests.
4455 (TestProjFile): Derive from ProjFileTest
4456 (TestProjFile.test_read_unreadable_file)
4457 (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
4458 the new filename method to get a unique filename
4459 (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
4460 (WriteProjFileTests): New class for proj file write tests.
4461 Contains the write test that were in TestProjFile originally.
4462
4463 2003-10-13 Bernhard Herzog <[email protected]>
4464
4465 * test/test_proj.py (TestProjFile.testRead)
4466 (TestProjFile.test_read_non_existing_file)
4467 (TestProjFile.test_read_unreadable_file)
4468 (TestProjFile.test_read_empty_file): Split into several methods.
4469
4470 2003-10-10 Bernhard Herzog <[email protected]>
4471
4472 * Thuban/UI/sizers.py: New file with custom sizers.
4473
4474 * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
4475 all projection type specific panels and put them into a
4476 NotebookLikeSizer. This way the dialog doesn't change its size
4477 when a different projection is selected
4478 (ProjFrame.__init__): Rename projection_panels
4479 projection_panel_defs and reuse projection_panels for a list of
4480 the instantiated panels.
4481 (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
4482 (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
4483 the panels
4484 (UnknownProjPanel._DoLayout): Place the newlines in the message
4485 differently to make the panel narrower.
4486 (TMPanel._DoLayout): Layout the parameters in one column.
4487
4488 2003-10-10 Bernhard Herzog <[email protected]>
4489
4490 * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
4491 that contains all the setup for the dialog's widgets, layout and
4492 event handling.
4493 (__): Call build_dialog to build the dialog.
4494 (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
4495 Their functionality is now in build_dialog
4496 (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
4497 (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
4498 (ProjFrame.__DoOnProjChoice): Small updates due to slightly
4499 different widget names and hierarchy introduced with build_dialog.
4500
4501 2003-10-10 Bernhard Herzog <[email protected]>
4502
4503 * README: Fix typo.
4504
4505 2003-10-09 Bernhard Herzog <[email protected]>
4506
4507 * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
4508 projection is already in the list. This is *a lot* faster when
4509 loading files with hundreds of projections since it saves a linear
4510 search. OTOH this will allow adding the same projection to the
4511 user.proj file multiple times in the projection dialog but we'll
4512 deal with that later
4513
4514 2003-10-09 Jan-Oliver Wagner <[email protected]>
4515
4516 * devtools: New. Directory for developer tools that are not intended
4517 for the regular user.
4518
4519 * devtools/create_epsg.py: New. Convert the epsg file of proj into
4520 a python .proj file.
4521
4522 2003-10-09 Bernhard Herzog <[email protected]>
4523
4524 * test/test_proj.py
4525 (TestProjection.test_get_parameter_without_equals_sign): New. Test
4526 whether GetParameter handles parameters without "=" sign correctly
4527
4528 * Thuban/Model/proj.py (Projection.GetParameter): Handle
4529 parameters that do not contain a "=". Update the doc-string
4530
4531 2003-10-08 Bernhard Herzog <[email protected]>
4532
4533 * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
4534 length limit on the projname text control
4535
4536 2003-10-08 Bernhard Herzog <[email protected]>
4537
4538 * test/test_proj.py (TestProjection.test_get_projection_units_geo)
4539 (TestProjection.test_get_projection_units_normal): New. Tests for
4540 the Projection.GetProjectedUnits method
4541
4542 2003-10-08 Jan-Oliver Wagner <[email protected]>
4543
4544 * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
4545 Added missing 'val' parameter.
4546
4547 2003-10-08 Bernhard Herzog <[email protected]>
4548
4549 * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
4550 projection type of the currently selected projection is not known,
4551 i.e. there's no panel for it, use the UnknownProjPanel
4552 (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
4553 the actual replacing of the proj panel into the new method
4554 _show_proj_panel.
4555 (UnknownProjPanel): Add doc-string.
4556 (UnknownProjPanel._DoLayout): Insert a newline into the text so
4557 that the panel is not so wide.
4558
4559 2003-10-08 Bernhard Herzog <[email protected]>
4560
4561 * Thuban/Model/resource.py (read_proj_file): Return the warnings
4562 too. Update the doc-string
4563 (get_proj_files): Removed. It wasn't used anywhere
4564 (get_system_proj_files, get_system_proj_file): Rename to
4565 get_system_proj_file and return the ProjFile object and not a list
4566 of ProjFile objects. Update the callers.
4567 (get_user_proj_files, get_user_proj_file): Rename to
4568 get_user_proj_file return the ProjFile object and not a list of
4569 ProjFile objects. Update the callers.
4570 (ProjFileReader.__init__): New instance variable for the warnings.
4571 Rename the __pf ivar to projfile. Update the methods referring to
4572 __pf
4573 (ProjFileReader.end_projection): Catch any errors raised when
4574 instantiating the projection and record that as an error. The
4575 projection will not be in the final ProjFile object.
4576 (ProjFileReader.GetWarnings): New method to return the warnings.
4577
4578 * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
4579 show the warnings from the projfile reader
4580 (ProjFrame._OnImport): Deal with any warnings returned by
4581 read_proj_file
4582 (ProjFrame.__FillAvailList): Deal with any warnings returned by
4583 get_system_proj_file or get_user_proj_file.
4584
4585 * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
4586 (TestProjFileWithInvalidParameters.file_contents): New test cases
4587 to test whether read_proj_file handles invalid projection
4588 parameters correctly
4589 (TestProjFile.test_get_system_proj_file): New. Simple test for
4590 resource.get_system_proj_file
4591
4592 2003-10-07 Bernhard Herzog <[email protected]>
4593
4594 * test/test_derivedshapestore.py
4595 (TestDerivedShapeStoreExceptions.tearDown): Clear the session
4596 properly so that the temporary directories get deleted correctly
4597
4598 2003-10-06 Bernhard Herzog <[email protected]>
4599
4600 Handle the title changes in a proper MVC way.
4601
4602 * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
4603 canvas' TITLE_CHANGED messages
4604 (MainWindow.update_title): New. Update the main window's title
4605 (MainWindow.__SetTitle): Removed. Use update_title instead.
4606 (MainWindow.SetMap): Use update_title instead of __SetTitle
4607 (MainWindow.RenameMap): Do change the window title explicitly
4608 here. That's handled in a proper MVC way now.
4609 (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
4610 messages
4611
4612 * Thuban/Lib/connector.py (Conduit): New class to help classes
4613 that forward messages
4614
4615 * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
4616 (ViewPort): Derive from Conduit instead of Publisher
4617 (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
4618 when calling the inherited versions
4619 (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
4620 methods to subscribe and unsubscribe map messages
4621 (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
4622 handle the map subscriptions
4623 (ViewPort.Map, ViewPort.map_projection_changed)
4624 (ViewPort.layer_projection_changed): Add or update doc-strings
4625
4626 * test/test_connector.py (TestPublisher.test_issue_simple): Fix
4627 typo
4628 (MyConduit): Helper class for the Conduit test.
4629 (TestConduit): Test cases for Conduit
4630
4631 * test/test_connector.py: Use support.run_tests as main.
4632
4633 * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
4634 the TITLE_CHANGED messages
4635 (ViewPortTest.test_forwarding_title_changed): New test to check
4636 whether the viewport forwards the map's TITLE_CHANGED messages
4637 (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
4638 after the port's because the latter may require a still functional
4639 map.
4640
4641 2003-10-06 Bernhard Herzog <[email protected]>
4642
4643 * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
4644 doc-string
4645
4646 2003-10-06 Bernhard Herzog <[email protected]>
4647
4648 * test/test_viewport.py (ViewPortTest.setUp)
4649 (SimpleViewPortTest.test_init_with_size): Move the test for the
4650 initial size as a constructor parameter from ViewPortTest.setUp
4651 method to a new separate test in SimpleViewPortTest.
4652
4653 2003-10-06 Bernhard Herzog <[email protected]>
4654
4655 * test/test_viewport.py (MockView): New class derived from
4656 ViewPort with a mock implementation of GetTextExtent to be used in
4657 the test cases
4658 (ViewPortTest.setUp): Use MockView instead of ViewPort
4659
4660 * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
4661 into what would be a "pure virtual function" in C++: always raise
4662 NotImplementedError. Mock implementations for test cases don't
4663 belong into the real code
4664
4665 2003-10-02 Bernhard Herzog <[email protected]>
4666
4667 * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
4668 close the dbf file we create so that it's contents have been
4669 written properly.
4670
4671 * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
4672 libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
4673 Update to shapelib 1.2.10
4674
4675 2003-10-01 Jan-Oliver Wagner <[email protected]>
4676
4677 * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
4678 it annoys lintian which warns about these files not being
4679 executable. The #! isn't necessary here since if you absolutely
4680 must execute them you can always say "python <filename>".
4681
4682 2003-09-26 Bernhard Herzog <[email protected]>
4683
4684 * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
4685 only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
4686 is ported to a newer the import will fail, so it should be noticed
4687 immediately that this function is gone.
4688 Fixes RT#1919
4689
4690 2003-09-26 Bernhard Herzog <[email protected]>
4691
4692 Add a DTD for the projection files and make thuban write valid
4693 projection files
4694
4695 * Resources/XML/projfile.dtd: New. DTD for thuban's projection
4696 files
4697
4698 * Thuban/Model/resource.py (ProjFileSaver.write): Use
4699 'projectionlist' as the name in the document type declaration so
4700 that it matches the element type of the root element.
4701
4702 * test/test_proj.py (sample_projfile, sample_projfile2): Use
4703 'projectionlist' as the name in the document type declaration just
4704 as it is done now in the files thuban would write
4705 (sample_projfile, sample_projfile_data): Fix spelling of
4706 "Mercator"
4707 (TestProjFile.doTestWrite): Validate the written and the expected
4708 XML data
4709 (TestProjFile): Derive from ValidationTest so that we can run xml
4710 validation tests
4711
4712 2003-09-24 Bernhard Herzog <[email protected]>
4713
4714 * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
4715 modify the list returned by map.Layers() in place since it is the
4716 actual list of layers used by the map.
4717
4718 2003-09-23 Jan-Oliver Wagner <[email protected]>
4719
4720 * Doc/manual/thuban-manual.xml: Added subsection to chapter
4721 Extensions to describe the extensions coming with the Thuban
4722 standard package (gns2shp and importAPR).
4723
4724 2003-09-23 Bernhard Herzog <[email protected]>
4725
4726 * libraries/thuban/wxproj.cpp (project_point): if there's an
4727 inverse but no forward projection, convert to degrees after
4728 applying the inverse projection. Fixes RT#2096
4729
4730 * test/test_wxproj.py: New. Test cases for wxproj.so. One test
4731 implicitly tests for the fix to RT#2096
4732
4733 * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
4734 Check that the sequences have the same lengths
4735
4736 * Resources/Projections/defaults.proj (Geographic projection): Use
4737 a much more precise value for the to_meter attribute.
4738
4739 2003-09-22 Bernhard Herzog <[email protected]>
4740
4741 * test/support.py (initthuban): Make sure to unset the LANG env.
4742 var. so that tests that compare translated strings work. Solves RT
4743 #2094
4744
4745 2003-09-22 Jan-Oliver Wagner <[email protected]>
4746
4747 Small improvement of APR import.
4748
4749 * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
4750 Added tests for text-ranges.
4751
4752 * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
4753 returns a string object if the range is based on text.
4754
4755 * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
4756 range retrieval.
4757
4758 2003-09-22 Jan-Oliver Wagner <[email protected]>
4759
4760 Initial version of the importAPR extension which is in
4761 experimental state.
4762
4763 * /Extensions/importAPR/, /Extensions/importAPR/samples/,
4764 /Extensions/importAPR/test/: New directories.
4765
4766 * /Extensions/importAPR/samples/README: New: Howto load the samples.
4767
4768 * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
4769 file which refers to the Thuban Iceland demo data.
4770
4771 * /Extensions/importAPR/test/README: New: Howto execute the tests.
4772
4773 * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
4774
4775 * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
4776 as in '.apr'-files.
4777
4778 * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
4779 ODB Objects as in '.apr', '.avl' and other files.
4780
4781 * /Extensions/importAPR/__init__.py: New: Init to make this
4782 directory a package.
4783
4784 * /Extensions/importAPR/importAPR.py: New: Import a ArcView
4785 project file (.apr) and convert it to Thuban.
4786
4787 2003-09-22 Jan-Oliver Wagner <[email protected]>
4788
4789 * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
4790
4791 2003-09-19 Jan-Oliver Wagner <[email protected]>
4792
4793 * Doc/manual/thuban-manual.xml: Extended section 'Installation'
4794 with description on RPM installation and RPM binary package
4795 creation.
4796
4797 2003-09-18 Bernhard Herzog <[email protected]>
4798
4799 * setup.py (data_files): Only add the mo files if the Locales
4800 directory actually exists, so that setup.py works with a fresh CVS
4801 checkout
4802
4803 2003-09-12 Jan-Oliver Wagner <[email protected]>
4804
4805 * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
4806 in viewport, not anymore in view
4807
4808 2003-09-04 Jan-Oliver Wagner <[email protected]>
4809
4810 Introducing first Extension (gns2shp).
4811
4812 * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
4813
4814 * Extensions/__init__.py: New. init to make this dir a package.
4815
4816 * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
4817
4818 * Extensions/gns2shp/test/README: New. some info on this test directory.
4819
4820 * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
4821
4822 * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
4823 of Shapefile from GNS text file format
4824
4825 2003-09-03 Jan-Oliver Wagner <[email protected]>
4826
4827 Fix/workaround for bug #2019:
4828 https://intevation.de/rt/webrt?serial_num=2019
4829
4830 * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
4831 (IdentifyView.__init__): Added another button that allows to
4832 stop the identify mode.
4833 (IdentifyView.OnStop): New. Stops the identify mode.
4834
4835 2003-09-03 Jan-Oliver Wagner <[email protected]>
4836
4837 Introducing a new exception dialog that allows to exit the
4838 application immediately.
4839 This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
4840
4841 * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
4842
4843 * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4844 Made strings available to translations. Exchanged the simple
4845 ScrolledMessageDialog by the new ExceptionDialog.
4846
4847 2003-09-01 Bernhard Herzog <[email protected]>
4848
4849 * NEWS: New. Summary of changes and release notes.
4850
4851 * MANIFEST.in: Add NEWS
4852
4853 2003-09-01 Bernhard Herzog <[email protected]>
4854
4855 * MANIFEST.in: Correct the include statement for the mo-files and
4856 include the documentation too.
4857
4858 * setup.py (data_files): Add the .mo files
4859 (setup call): Up to version 0.9.0
4860
4861 2003-09-01 Bernhard Herzog <[email protected]>
4862
4863 * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
4864 parameter list to just parent and session
4865 (ChooseDBTableDialog.__set_properties): Removed. Setting the
4866 selection of empty list boxes is not allowed (and produces C++
4867 assertion errors) and the rest of the setup is better done in
4868 __init__ anyway.
4869 (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
4870 (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
4871 builtins True/False for booleans to avoid warnings from wxPython
4872
4873 * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
4874 ChooseDBTableDialog constructor parameters.
4875
4876 2003-09-01 Bernhard Herzog <[email protected]>
4877
4878 * Thuban/Model/postgisdb.py
4879 (PostGISTable): Extend doc-string
4880 (PostGISTable._fetch_table_information): Set the column index
4881 correctly, pretending ignored columns don't exist.
4882
4883 * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
4884 for postgis tables with data types not yet supported by thuban.
4885
4886 2003-08-29 Bernhard Herzog <[email protected]>
4887
4888 * HOWTO-Release: Tweak item about running the tests.
4889
4890 2003-08-29 Jan-Oliver Wagner <[email protected]>
4891
4892 * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
4893
4894 2003-08-29 Bernhard Herzog <[email protected]>
4895
4896 Add some missing parameters to projections. Proj complains about
4897 them on windows but for some reason not on Linux.
4898
4899 * test/test_save.py (SaveSessionTest.testLayerProjection): Add
4900 missing required projection parameters
4901
4902 * test/test_proj.py (TestProjFile.test): Add missing required
4903 projection parameters
4904
4905 * test/test_load_0_8.py (TestLayerProjection.file_contents)
4906 (TestLayerProjection.test): Add missing required projection
4907 parameters and tests for them
4908
4909 * test/test_load.py (TestLayerProjection.file_contents)
4910 (TestLayerProjection.test): Add missing required projection
4911 parameters and tests for them
4912
4913 * test/test_layer.py (TestLayer.test_base_layer): Add missing
4914 required projection parameters
4915
4916 2003-08-29 Bernhard Herzog <[email protected]>
4917
4918 * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
4919 access the pj_errno because directly accessing pj_errno doesn't
4920 work on windows if the proj library is in a DLL
4921
4922 * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
4923
4924 2003-08-28 Bernhard Herzog <[email protected]>
4925
4926 * test/test_proj.py: Import things from Thuban after calling
4927 initthuban
4928
4929 * test/test_load.py (LoadSessionTest.filenames): New class
4930 variable with the filename attributes to normalize
4931 (LoadSessionTest.check_format): Pass self.filenames to
4932 sax_eventlist to normalize the filename attributes
4933
4934 * test/xmlsupport.py: Add cvs keywords
4935 (SaxEventLister.__init__): New parameter filenames which indicates
4936 attributes that contain filenames
4937 (SaxEventLister.startElementNS): Normalize the filename attributes
4938 with os.path.normpath
4939 (sax_eventlist): New parameter filenames to pass through to
4940 SaxEventLister
4941
4942 * test/test_derivedshapestore.py: Make this file callable as a
4943 program to execute the tests
4944 (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
4945 the session to self.session so that it gets destroyed properly
4946
4947 * test/test_layer.py (TestLayer.tearDown): Call the session's
4948 Destroy method
4949
4950 * test/test_map.py (TestMapBase.tearDown): Destroy self.session
4951 too if it exists
4952 (TestMapAddLayer.test_add_layer): Bind the session to self.session
4953 so that it gets destroyed properly
4954
4955 * test/postgissupport.py (reason_for_not_running_tests): Add a
4956 test for the existence of popen2.Popen4.
4957
4958 * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
4959 reliable way to destroy the sessions created in the test cases
4960 (SaveSessionTest.test_dbf_table): Bind the session to self.session
4961 so that it gets destroyed properly
4962 (SaveSessionTest.testLayerProjection): Bind the session to
4963 self.session so that it gets destroyed properly
4964
4965 * test/test_session.py (UnreferencedTablesTests.tearDown): Make
4966 sure that the session is destroyed properly
4967
4968 * test/test_shapefilestore.py: Make this callable as a program to
4969 execute the tests
4970
4971 * test/test_scalebar.py: Remove unnecessary import of _ from
4972 Thuban
4973
4974 * test/support.py (print_garbage_information): Call initthuban
4975 here because it may be called indirectly from test cases that test
4976 test support modules which do not use anything from thuban itself
4977 (ThubanTestProgram.runTests): Remove unnecessary debug print
4978
4979 2003-08-28 Bernhard Herzog <[email protected]>
4980
4981 * Thuban/version.py (longversion): Update to 0.9
4982
4983 * Thuban/UI/mainwindow.py: Remove some unused imports
4984
4985 * README: Add section about required additional software. Add date
4986 and revision CVS keywords
4987
4988 * HOWTO-Release: Add item about the translations. Add date and
4989 revision CVs keywords and change formatting to match README a bit
4990 better
4991
4992 * po/de.po: Update for 0.9
4993
4994 * test/README: Tweak the wording a little because many tests are
4995 not really unittest.
4996
4997 2003-08-27 Bernhard Herzog <[email protected]>
4998
4999 As preparation for the 0.9 release, switch thuban files to a
5000 non-dev namespace
5001
5002 * Thuban/Model/save.py (SessionSaver.write_session): Write files
5003 with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
5004 namespace
5005
5006 * Thuban/Model/load.py (SessionLoader.__init__): Accept the
5007 http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
5008
5009 * test/test_save.py (SaveSessionTest.dtd)
5010 (SaveSessionTest.testEmptySession)
5011 (SaveSessionTest.testSingleLayer)
5012 (SaveSessionTest.testLayerProjection)
5013 (SaveSessionTest.testRasterLayer)
5014 (SaveSessionTest.testClassifiedLayer)
5015 (SaveSessionTest.test_dbf_table)
5016 (SaveSessionTest.test_joined_table)
5017 (SaveSessionTest.test_save_postgis): Update for new namespace
5018
5019 * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
5020 (TestLayerVisibility.file_contents, TestLabels.file_contents)
5021 (TestLayerProjection.file_contents)
5022 (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
5023 (TestPostGISLayer.file_contents)
5024 (TestPostGISLayerPassword.file_contents)
5025 (TestLoadError.file_contents, TestLoadError.test): Update for new
5026 namespace
5027
5028 2003-08-27 Bernhard Herzog <[email protected]>
5029
5030 Make the table interface distinguish between row ids (an integer
5031 that uniquely identifies a row) and row ordinals (a simple row
5032 count from 0 to NumRows() - 1)
5033
5034 * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
5035 (PostGISTable.RowOrdinalToId): New methods to conver between row
5036 ids and row ordinals
5037 (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
5038 parameter row_is_ordinal to indicate whether the row parameter is
5039 the row id or the ordinal
5040
5041 * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
5042 (TransientTableBase.RowOrdinalToId)
5043 (AutoTransientTable.RowIdToOrdinal)
5044 (AutoTransientTable.RowOrdinalToId): Same new methods as in
5045 PostGISTable.
5046 (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
5047 (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
5048 Same new parameter as in PostGISTable.
5049
5050 * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
5051 (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
5052 (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
5053 (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
5054 (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
5055 parameter as in PostGISTable.
5056
5057 * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
5058 (DataTable.RowOrdinalToId): New methods to convert between row ids
5059 and row ordinals.
5060 (TableGrid.SelectRowById): New method to select a row based on its
5061 ID as opposed to its ordinal
5062 (DataTable.GetValue, TableGrid.OnRangeSelect)
5063 (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
5064 (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
5065 (LayerTableFrame.__init__): Convert between row ids and row
5066 ordinals as appropriate
5067
5068 * test/postgissupport.py (PostGISDatabase.__init__): Add
5069 doc-string.
5070 (PostGISDatabase.initdb): The optional third item in a tuple in
5071 tables is now a (key, value) list with additional arguments to
5072 pass to upload_shapefile
5073 (upload_shapefile): New parameter gid_offset to allow gids that
5074 are not the same as the shapeids in the shapefile
5075 (PostgreSQLServer.get_default_static_data_db): Use the new
5076 gid_offset to make the gids in landmarks 1000 higher than the
5077 shapeids in the shapefile
5078
5079 * test/test_viewport.py
5080 (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
5081 new shapeids in the landmarks table
5082
5083 * test/test_transientdb.py
5084 (TestTransientTable.run_iceland_political_tests)
5085 (TestTransientTable.test_transient_joined_table): Add tests for
5086 the new table methods and new keywords arguments.
5087
5088 * test/test_postgis_db.py
5089 (TestPostGISTable.test_read_row_as_dict_row_count_mode)
5090 (TestPostGISTable.test_read_value_row_count_mode)
5091 (TestPostGISTable.test_row_id_to_ordinal)
5092 (TestPostGISTable.test_row_oridnal_to_id): New test for the new
5093 table methods and the new arguments
5094 (TestPostGISShapestorePoint.test_shapes_in_region)
5095 (TestPostGISShapestorePoint.test_shape_raw_data)
5096 (TestPostGISShapestorePoint.test_shape_points)
5097 (TestPostGISShapestorePoint.test_shape_shapeid)
5098 (TestPostGISShapestorePoint.test_all_shapes)
5099 (TestPostGISTable.test_simple_query)
5100 (TestPostGISTable.test_simple_query)
5101 (TestPostGISTable.test_simple_query)
5102 (TestPostGISTable.test_read_value)
5103 (TestPostGISTable.test_read_row_as_dict): Adapt to the new
5104 shapeids in the landmarks table
5105
5106 * test/test_memory_table.py
5107 (TestMemoryTable.test_read_row_as_dict_row_count_mode)
5108 (TestMemoryTable.test_read_value_row_count_mode)
5109 (TestMemoryTable.test_row_id_to_ordinal)
5110 (TestMemoryTable.test_row_oridnal_to_id): New test for the new
5111 table methods and the new arguments
5112
5113 * test/test_dbf_table.py
5114 (TestDBFTable.test_read_row_as_dict_row_count_mode)
5115 (TestDBFTable.test_read_value_row_count_mode)
5116 (TestDBFTable.test_row_id_to_ordinal)
5117 (TestDBFTable.test_row_oridnal_to_id): New test for the new table
5118 methods and the new arguments
5119
5120 2003-08-26 Bernhard Herzog <[email protected]>
5121
5122 * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
5123 more postgis specific but much faster method to get the bounding
5124 box
5125
5126 2003-08-26 Bernhard Herzog <[email protected]>
5127
5128 * Thuban/Model/postgisdb.py (PostGISTable.Title)
5129 (PostGISShapeStore.AllShapes): Add these missing methods.
5130 (PostGISShapeStore.ShapesInRegion): No need to raise
5131 StopIteration. We can simply return
5132
5133 * test/test_postgis_db.py (TestPostGISTable.test_title)
5134 (TestPostGISShapestorePoint.test_all_shapes): New tests for the
5135 new methods
5136
5137 2003-08-25 Bernhard Herzog <[email protected]>
5138
5139 * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
5140
5141 * test/test_postgis_db.py (PolygonTests): New class containing
5142 those tests from TestPostGISShapestorePolygon that can also be
5143 used to test MUTLIPOLYGON tables
5144 (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
5145 so derive from that
5146 (TestPostGISShapestoreMultiPolygon): New class with tests for
5147 MUTLIPOLYGON tables
5148
5149 * test/postgissupport.py (PostGISDatabase.initdb): Allow the
5150 tables argument to have tuples with three items to override the
5151 WKT type used.
5152 (PostgreSQLServer.get_default_static_data_db): Use the above to
5153 create a polygon table with MUTLIPOLYGONs
5154 (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
5155 (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
5156 coords_to*
5157 (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
5158 (wkt_converter): New. Map WKT types to converters
5159 (upload_shapefile): New parameter force_wkt_type to use a
5160 different WKT type than the default
5161
5162 2003-08-25 Bernhard Herzog <[email protected]>
5163
5164 * Thuban/UI/application.py
5165 (ThubanApplication.run_db_param_dialog): New. Suitable as a
5166 db_connection_callback. Main difference is that the dialog run
5167 from this method doesn't have a parent so it can be used even when
5168 there is no main window
5169 (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
5170 no db_connection_callback was given. This way the dialog pops up
5171 even when the .thuban file was given as a command line parameter.
5172
5173 2003-08-25 Bernhard Herzog <[email protected]>
5174
5175 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
5176 before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
5177 which leads to an effectively frozen X session because the user
5178 can only interact with the dialog but the mouse is still grabbed
5179 by the canvas.
5180 Also, call the tool's Hide method before MouseLeftUp because
5181 MouseLeftUp may change the tool's coordinates.
5182
5183 2003-08-25 Bernhard Herzog <[email protected]>
5184
5185 * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
5186 LoadCancelled exceptions and handle them by returning immediately.
5187
5188 2003-08-25 Bernhard Herzog <[email protected]>
5189
5190 GUI part of loading sessions with postgis connections which may
5191 require user interaction to get passwords or updated parameters
5192
5193 * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
5194 bit nucer and be more generic.
5195 (DBFrame.OnAdd): Adapt to new DBDialog interface
5196
5197 * Thuban/UI/application.py (ThubanApplication.OpenSession): New
5198 optional parameter db_connection_callback which is passed to
5199 load_session.
5200
5201 * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
5202 Suitable as a db_connection_callback
5203 (MainWindow.OpenSession): Use self.run_db_param_dialog as the
5204 db_connection_callback of the application's OpenSession method
5205
5206
5207 2003-08-25 Bernhard Herzog <[email protected]>
5208
5209 Basic loading of sessions containing postgis connections:
5210
5211 * Thuban/Model/load.py (LoadError): Add doc-string
5212 (LoadCancelled): New exception class to indicate a cancelled load
5213 (SessionLoader.__init__): Add the db_connection_callback parameter
5214 which will be used by the loader to get updated parameters and a
5215 password for a database connection
5216 (SessionLoader.__init__): Add the new XML elements to the
5217 dispatchers dictionary
5218 (SessionLoader.check_attrs): Two new conversions, ascii to convert
5219 to a byte-string object and idref as a generic id reference
5220 (SessionLoader.start_dbconnection)
5221 (SessionLoader.start_dbshapesource): New. Handlers for the new XML
5222 elements
5223 (load_session): Add the db_connection_callback to pass through the
5224 SessionLoader
5225
5226 * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
5227 New classes to test loading of sessions with postgis database
5228 connections.
5229
5230 2003-08-25 Bernhard Herzog <[email protected]>
5231
5232 * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
5233 replace it and the comment with __BuildDate__ by the Source: and
5234 Id: cvs keywords as used in the other files.
5235
5236 2003-08-25 Bernhard Herzog <[email protected]>
5237
5238 * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
5239 LoadError when a required attribute is missing. The code used to
5240 be commented out for some reason, but probably should have been
5241 active.
5242
5243 * test/test_load.py (TestLoadError.test): Test the message in the
5244 LoadError too to make sure it really is about the missing
5245 attribute
5246
5247 2003-08-22 Bernhard Herzog <[email protected]>
5248
5249 * test/test_save.py (SaveSessionTest.test_dbf_table)
5250 (SaveSessionTest.test_joined_table): Add XML validation tests.
5251
5252 2003-08-22 Bernhard Herzog <[email protected]>
5253
5254 Implement saving a session with a postgis connection
5255
5256 * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
5257 elements for database connections and shapestores using db
5258 connections
5259 (session): Add the dbconnections to the content model
5260
5261 * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
5262 Write the db connections
5263 (SessionSaver.write_session): Call write_db_connections to write
5264 the connection before the data sources
5265 (SessionSaver.write_data_containers): Handle postgis shapestores
5266
5267 * test/test_save.py (SaveSessionTest.thubanids)
5268 (SaveSessionTest.thubanidrefs): Update for new DTD
5269 (SaveSessionTest.test_save_postgis): New. Test saving a session
5270 with postgis connections
5271
5272 * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
5273 (PostGISTable.TableName): New accessor methods for the connection
5274 and table name
5275
5276 * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
5277 (TestPostGISTable.test_dbname): New methods to test the new
5278 PostGISConnection methods
5279
5280 2003-08-22 Bernhard Herzog <[email protected]>
5281
5282 * Thuban/Model/postgisdb.py (ConnectionError): New exception class
5283 for exceptions occurring when establishing a Database connection
5284 (PostGISConnection.connect): Catch psycopg.OperationalError during
5285 connects and raise ConnectionError.
5286
5287 * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
5288 tests for database exceptions
5289
5290 2003-08-22 Bernhard Herzog <[email protected]>
5291
5292 Prepare the test suite for tests with required authentication
5293
5294 * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
5295 variables with two predefined users/passwords, one for the admin
5296 and one for a non-privileged user.
5297 (PostgreSQLServer.createdb): Pass the admin name to initdb and add
5298 the non-privileged user to the database and set the admin password
5299 (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
5300 Better error reporting
5301 (PostgreSQLServer.connection_params)
5302 (PostgreSQLServer.connection_string): New methods to return
5303 information about how to connect to the server
5304 (PostgreSQLServer.execute_sql): New. Convenience method to execute
5305 SQL statements
5306 (PostgreSQLServer.require_authentication): Toggle whether the
5307 server requires authentication
5308 (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
5309 Add or alter users
5310 (PostGISDatabase.initdb): Pass the admin name one the
5311 subprocesses' command lines. Grant select rights on
5312 geometry_columns to everybody.
5313 (upload_shapefile): Use the admin name and password when
5314 connecting. Grant select rights on the new table to everybody.
5315
5316 * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
5317 server's new methods to get the connection parameters.
5318
5319 * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
5320 (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
5321 server's new methods to get the connection parameters.
5322
5323 * test/test_postgis_db.py
5324 (TestPostGISConnection.test_gis_tables_empty)
5325 (TestPostGISConnection.test_gis_tables_non_empty)
5326 (PostGISStaticTests.setUp): Use the server's new methods to get
5327 the connection parameters.
5328
5329 2003-08-22 Bernhard Herzog <[email protected]>
5330
5331 * Thuban/UI/about.py (About.__init__): Add the psycopg version.
5332
5333 * Thuban/version.py: Add psycopg version
5334
5335 * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
5336 version of the psycopg module
5337
5338 2003-08-22 Bernhard Herzog <[email protected]>
5339
5340 * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
5341 (DBFrame.OnEdit): Removed because it's not used and wouldn't work
5342 at the moment. The functionality should probably be implemented
5343 some time, though.
5344 (DBFrame.OnRemove): Display a message if the connection can't be
5345 removed because it's still in use.
5346
5347 2003-08-22 Jan-Oliver Wagner <[email protected]>
5348
5349 * Thuban/UI/about.py (About.__init__): split up the huge about
5350 text into elements/lists for easier translation. This fixes bug
5351 https://intevation.de/rt/webrt?serial_num=2058
5352 Also, made some forgotten string available for the i18n.
5353
5354 2003-08-21 Bernhard Herzog <[email protected]>
5355
5356 Make postgis support really optional including insensitive menu
5357 items.
5358
5359 * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
5360 whether the postgis is supported.
5361
5362 * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
5363 to make postgis support optional
5364
5365 * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
5366 version of Thuban.Model.postgisdb.has_postgis_support
5367 (database_management command): Make it only sensitive if postgis
5368 is supported.
5369
5370 2003-08-21 Jan-Oliver Wagner <[email protected]>
5371
5372 * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
5373 (section Adding and Removing Layers): Added text and described
5374 multi-selection.
5375 (chapter Extensions): New.
5376
5377 2003-08-21 Jan-Oliver Wagner <[email protected]>
5378
5379 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
5380 settings to allow multiple files to load into the map.
5381 Also reduced selection to *.shp as a default.
5382
5383 2003-08-20 Bernhard Herzog <[email protected]>
5384
5385 Add dialogs and commands to open database connections and add
5386 database layers.
5387
5388 * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
5389 method to open the database connection management dialog
5390 (MainWindow.AddDBLayer): New method to add a layer from a database
5391 (_has_dbconnections): New helper function to use for sensitivity
5392 (database_management command, layer_add_db command): New commands
5393 that call the above new methods.
5394 (main_menu): Add the new commands to the menu.
5395
5396 * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
5397 (PostGISConnection.connect): Establish the actual connection in a
5398 separate method and call it in __init__. This makes it easier to
5399 override the behavior in test cases
5400 (PostGISConnection.BriefDescription): New method to return a brief
5401 description for use in dialogs.
5402
5403 * test/test_postgis_db.py (NonConnection): DB connection that
5404 doesn't actually connect
5405 (TestBriefDescription): New class with tests for the new
5406 BriefDescription method
5407
5408 2003-08-19 Jan-Oliver Wagner <[email protected]>
5409
5410 Moved anything from extensions to libraries.
5411
5412 * libraries: New.
5413
5414 * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
5415
5416 * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
5417 Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
5418 been moved here from thuban/extensions/pyprojection/
5419 See there in the Attic for the older history.
5420
5421 * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
5422 dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
5423 shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
5424 have been moved here from thuban/extensions/pyshapelib/
5425 See there in the Attic for the older history.
5426
5427 * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
5428 files have been moved here from thuban/extensions/shapelib/
5429 See there in the Attic for the older history.
5430
5431 * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
5432 gdalwarp.cpp, wxproj.cpp: These files have been moved here from
5433 thuban/extensions/thuban/
5434 See there in the Attic for the older history.
5435
5436 * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
5437
5438 * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
5439 gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
5440
5441 * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
5442 Moved to libraries/shapelib.
5443
5444 * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
5445 shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
5446 ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
5447 Moved to libraries/pyshapelib.
5448
5449 * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
5450 LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
5451 Moved to libraries/pyprojection.
5452
5453 * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
5454
5455 * extensions: Removed.
5456
5457 2003-08-19 Bernhard Herzog <[email protected]>
5458
5459 * test/test_viewport.py (ViewPortTest): We don't use the
5460 facilities of FileTestMixin so don't derive from it.
5461 (TestViewportWithPostGIS): New class with tests for using a
5462 viewport on a map with postgis layers.
5463
5464 2003-08-19 Bernhard Herzog <[email protected]>
5465
5466 Add the db connection management to the session.
5467
5468 * Thuban/Model/session.py (Session.__init__): New instance
5469 variable db_connections
5470 (Session.AddDBConnection, Session.DBConnections)
5471 (Session.HasDBConnections, Session.CanRemoveDBConnection)
5472 (Session.RemoveDBConnection): New methods to manage and query the
5473 db connections managed by the session
5474 (Session.OpenDBShapeStore): New method to open a shapestore from a
5475 db connection
5476
5477 * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
5478 messages for the db connection handling in the session
5479
5480 * test/test_postgis_session.py: New. test cases for the session's
5481 db connection handling with postgis connections
5482
5483 2003-08-19 Bernhard Herzog <[email protected]>
5484
5485 Add very basic postgis database support and the corresponding test
5486 cases. The test cases require a PostgreSQL + postgis installation
5487 but no existing database. The database will be created
5488 automatically by the test cases
5489
5490 * test/README: Add note about skipped tests and the requirements
5491 of the postgis tests.
5492
5493 * Thuban/Model/postgisdb.py: New. Basic postgis database support.
5494
5495 * test/test_postgis_db.py: New. Test cases for the postgis
5496 support.
5497
5498 * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
5499 format
5500
5501 * test/test_wellknowntext.py: New. Test cases for the
5502 wellknowntext parser
5503
5504 * test/postgissupport.py: New. Support module for tests involving
5505 a postgis database.
5506
5507 * test/support.py (execute_as_testsuite): Shut down the postmaster
5508 if it's still running after the tests
5509
5510 * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
5511 well known text format
5512
5513 2003-08-19 Jan-Oliver Wagner <[email protected]>
5514
5515 * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
5516 message dialog.
5517
5518 2003-08-18 Bernhard Herzog <[email protected]>
5519
5520 * test/support.py (ThubanTestResult.printErrors): Indent the
5521 reason for the skips in the output to make it a bit more readable.
5522 (execute_as_testsuite): New helper function to run a test suite
5523 and print some more information.
5524 (run_tests): Use execute_as_testsuite to run the tests
5525
5526 * test/runtests.py (main): Use execute_as_testsuite to run the
5527 tests
5528
5529 2003-08-18 Bernhard Herzog <[email protected]>
5530
5531 Fix some bugs in Thuban and the test suite that were uncovered by
5532 changes introduced in Python 2.3:
5533
5534 * Thuban/Model/table.py (DBFTable.__init__): Make sure the
5535 filename is an absolute name
5536
5537 * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
5538 filename is an absolute name
5539
5540 * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
5541 unique filename to save to and use the correct relative filename
5542 in the expected output.
5543 (SaveSessionTest.test_dbf_table): Use the correct relative
5544 filename in the expected output.
5545
5546 * test/test_layer.py (TestLayer.test_raster_layer): Update the
5547 test to check whether the filename is absolute.
5548
5549 2003-08-18 Jan-Oliver Wagner <[email protected]>
5550
5551 * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
5552
5553 2003-08-15 Bernhard Herzog <[email protected]>
5554
5555 Change the way shapes are returned by a shape store. The
5556 ShapesInRegion method returns an iterator over actual shape
5557 objects instead of a list of shape ids.
5558
5559 * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
5560 id.
5561 (ShapefileStore.ShapesInRegion): Return an iterator over the
5562 shapes which yields shape objects instead of returning a list of
5563 shape ids
5564 (ShapefileStore.AllShapes): New. Return an iterator over all
5565 shapes in the shape store
5566 (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
5567
5568 * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
5569 doc-string.
5570
5571 * Thuban/UI/baserenderer.py
5572 (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
5573 layer_shapes and make it return an iterator containg shapes
5574 instead of a list of ids.
5575 (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
5576 layer_shapes() change
5577
5578 * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
5579 (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
5580
5581 * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
5582 changes in the ShapesInRegion return value.
5583 (ViewPort._get_hit_tester): Remove commented out code
5584
5585 * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
5586 new return value.
5587 (SimpleShapeStore.AllShapes): New. Implement this method too.
5588
5589 * test/test_layer.py (TestLayer.test_arc_layer)
5590 (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
5591 (TestLayer.test_point_layer_with_projection)
5592 (TestLayer.test_derived_store): Adapt to changes in the
5593 ShapesInRegion return value.
5594
5595 * test/test_shapefilestore.py
5596 (TestShapefileStoreArc.test_shapes_in_region)
5597 (TestShapefileStorePolygon.test_shapes_in_region)
5598 (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
5599 in the ShapesInRegion return value.
5600 (TestShapefileStorePoint.test_all_shapes)
5601 (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
5602 methods
5603
5604 * test/test_derivedshapestore.py
5605 (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
5606 the ShapesInRegion return value.
5607 (TestDerivedShapeStore.test_all_shapes)
5608 (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
5609 methods
5610
5611 2003-08-15 Bernhard Herzog <[email protected]>
5612
5613 Make the renderers deal correctly with raw vs. python level
5614 representation of shape geometries
5615
5616 * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
5617 Return a flag useraw in addition to the callable and the parameter
5618 to indicate whether the callable can deal with the raw shape data
5619 or uses the higher level python lists of coordinates. The callable
5620 now should accept either the raw data or the return value of the
5621 shape's Points() method.
5622 (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
5623 change
5624 (BaseRenderer.projected_points): Instead of the shape id use the
5625 points list as parameter.
5626 (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
5627 (BaseRenderer.draw_point_shape): Adapt to projected_points()
5628 change and accept the points list as parameter instead of the
5629 shape id.
5630
5631 * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
5632 the useraw flag as required by the BaseRenderer
5633 (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
5634 changes.
5635
5636 * test/test_baserenderer.py
5637 (TestBaseRenderer.test_point_with_classification): New test for
5638 rendering a map with classifications.
5639
5640 2003-08-15 Bernhard Herzog <[email protected]>
5641
5642 * Thuban/UI/viewport.py (ViewPort.find_shape_at)
5643 (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
5644 (ViewPort._get_hit_tester, ViewPort.projected_points)
5645 (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
5646 (ViewPort._find_label_at): Split the find_shape_at method into
5647 several new methods and use the functions in the hit-test module.
5648
5649 * Thuban/UI/hittest.py: New module with Python-level hit-testing
5650 functions
5651
5652 * test/test_hittest.py: New. Test for the new hittest module
5653
5654 2003-08-15 Bernhard Herzog <[email protected]>
5655
5656 * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
5657 projection to all corners of the bounding box to get a better
5658 approximation of the projected bounding box
5659
5660 * test/test_layer.py (TestLayer.test_point_layer_with_projection):
5661 New. Test coordinate handling of a layer with a projection.
5662 Catches the bug fixed in Layer.ShapesInRegion
5663
5664 2003-08-15 Bernhard Herzog <[email protected]>
5665
5666 Move some of the mock objects in test_baserenderer into their own
5667 module so they can easily be used from other tests
5668
5669 * test/mockgeo.py: New test helper module with some mock objects
5670 for geometry related things like shapes, shapestores and
5671 projections.
5672
5673 * test/test_mockgeo.py: New. Tests for the new helper module
5674
5675 * test/test_baserenderer.py: Some of the mock-objects are in
5676 mockgeo now.
5677
5678 2003-08-12 Jan-Oliver Wagner <[email protected]>
5679
5680 * Thuban/UI/about.py (About.__init__): Added Björn Broscheit.
5681
5682 2003-08-12 Bernhard Herzog <[email protected]>
5683
5684 * po/de.po: New. German translations by Bjoern Broscheit
5685
5686 2003-08-12 Bernhard Herzog <[email protected]>
5687
5688 * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
5689 strings have to be one string literal.
5690
5691 2003-08-11 Bernhard Herzog <[email protected]>
5692
5693 * test/support.py (FloatComparisonMixin.assertPointListEquals):
5694 New. This method was used in various derived classes, but it's
5695 better to have it here.
5696
5697 * test/test_shapefilestore.py
5698 (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
5699 FloatComparisonMixin
5700
5701 * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
5702 It's now in FloatComparisonMixin
5703
5704 * test/test_derivedshapestore.py
5705 (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
5706 in FloatComparisonMixin
5707
5708 2003-08-11 Bernhard Herzog <[email protected]>
5709
5710 * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
5711 error message
5712
5713 2003-08-08 Jan-Oliver Wagner <[email protected]>
5714
5715 * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
5716 with version number.
5717 Changed title to reflect version number of Thuban.
5718
5719 2003-08-08 Jan-Oliver Wagner <[email protected]>
5720
5721 * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
5722 the list corresponds to the "About" web page.
5723
5724 2003-08-08 Bernhard Herzog <[email protected]>
5725
5726 * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
5727 Make sure translated strings are recognized as one string literal.
5728
5729 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
5730 Make sure translated strings are recognized as one string literal.
5731
5732 * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
5733 translated strings are recognized as one string literal.
5734
5735 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
5736 sure translated strings are recognized as one string literal.
5737
5738 2003-08-07 Bernhard Herzog <[email protected]>
5739
5740 * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
5741 Simply delegates to the original shapestore.
5742
5743 * test/test_derivedshapestore.py
5744 (TestDerivedShapeStore.test_raw_format): New. Test case for
5745 DerivedShapeStore.RawShapeFormat
5746
5747 2003-08-07 Bernhard Herzog <[email protected]>
5748
5749 Add raw data interface to shape objects.
5750
5751 * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
5752 class to ShapefileShape which now holds shapefile specific
5753 information.
5754 (ShapefileShape.compute_bbox): Simplified to not cache any
5755 information. The way this method is used that shouldn't matter
5756 performance wise.
5757 (ShapefileShape.RawData): New. Return the shapeid which is the raw
5758 data format for shapes from shapefiles.
5759 (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
5760 in the shape objects returned by a shapestore. For a
5761 ShapefileStore this is always RAW_SHAPEFILE.
5762 (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
5763 method.
5764
5765 * test/test_shapefilestore.py
5766 (TestShapefileStore.test_raw_format): New test to test the raw
5767 format feature of shapes.
5768
5769 * Thuban/Model/layer.py: Remove the unused import of Shape from
5770 data. It was only there for interface compatibility but it's not
5771 used inside of Thuban and the generic Shape class has gone away.
5772
5773 * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
5774 the raw data format and only use an optimized version of its a
5775 shapefile.
5776
5777 2003-08-07 Bernhard Herzog <[email protected]>
5778
5779 * test/test_baserenderer.py (SimpleShape): Shape class for the
5780 tests.
5781 (SimpleShapeStore.Shape): Use SimpleShape instead of
5782 Thuban.Model.data.Shape to make the tests independed of the coming
5783 changes.
5784
5785 2003-08-07 Bernhard Herzog <[email protected]>
5786
5787 * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
5788 (ThubanTestProgram): New classes that extend the respective
5789 classes from unittest. These new version support skipping tests
5790 under certain expected conditions. In the Thuban test suite we
5791 uses this for tests that require the optional gdal support.
5792 (run_tests): Use ThubanTestProgram instead of the unittest.main()
5793
5794 * test/runtests.py (main): Use the new ThubanTestRunner instead of
5795 the normal one from unittest
5796
5797 * test/test_layer.py (TestLayer.test_raster_layer): If this test
5798 is not run because gdal support isn't available report this to the
5799 runner.
5800
5801 * test/test_baserenderer.py
5802 (TestBaseRenderer.test_raster_no_projection): Do not run this test
5803 if gdal support isn't available and report this to the runner.
5804
5805 2003-08-06 Bernhard Herzog <[email protected]>
5806
5807 Rearrange the renderers a bit, partly in preparation for changes
5808 required for the postgis merge, partly to make it more testable.
5809 Also make the representation of coordinates in Shapes more
5810 consistent.
5811
5812 * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
5813 this class is now in BaseRenderer. This class is now practically
5814 only a specialization of BaseRenderer for rendering to an actual
5815 wx DC.
5816 (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
5817 to get the shapetype specific rendering functions.
5818
5819 * Thuban/UI/baserenderer.py: New file with the basic rendering
5820 logic. The code in this file is completely independend of wx.
5821 (BaseRenderer): Class with the basic rendering logic
5822
5823 * test/test_baserenderer.py: New. Test cases for BaseRenderer
5824
5825 * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
5826 error_on_redraw to guard agains endless loops and stack overflows
5827 when there's a bug in the rendering code that raises exceptions.
5828 (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
5829 rendering into a separate method _do_redraw so that error handling
5830 is a bit easier. When an exception occurs, set error_on_redraw to
5831 true. When it's true on entry to OnIdle do nothing and return
5832 immediately.
5833
5834 * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
5835 Shape object will always have the coordinates as a list of list of
5836 coordinate pairs (tuples).
5837 (Shape.compute_bbox): Adapt to new representation.
5838
5839 * Thuban/UI/viewport.py (ViewPort.find_shape_at)
5840 (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
5841 Shape objects.
5842
5843 * test/test_shapefilestore.py
5844 (ShapefileStoreTests.assertFloatTuplesEqual)
5845 (ShapefileStoreTests.assertPointListEquals): Rename to
5846 assertPointListEquals and change purpose to checking equality of
5847 the lists returned by Shape.Points().
5848 (TestShapefileStoreArc.test_shape)
5849 (TestShapefileStorePolygon.test_shape)
5850 (TestShapefileStorePoint.test_shape): Use the new
5851 assertPointListEquals instead of assertFloatTuplesEqual
5852
5853 * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
5854 (TestLayer.assertPointListEquals): Rename to assertPointListEquals
5855 and change purpose to checking equality of the lists returned by
5856 Shape.Points().
5857 (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
5858 (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
5859 (TestLayer.test_derived_store): Use the new assertPointListEquals
5860 instead of assertFloatTuplesEqual
5861
5862 * test/test_derivedshapestore.py
5863 (TestDerivedShapeStore.assertFloatTuplesEqual)
5864 (TestDerivedShapeStore.assertPointListEquals): Rename to
5865 assertPointListEquals and change purpose to checking equality of
5866 the lists returned by Shape.Points().
5867 (TestDerivedShapeStore.test_shape): Use the new
5868 assertPointListEquals instead of assertFloatTuplesEqual
5869
5870 2003-08-06 Jan-Oliver Wagner <[email protected]>
5871
5872 * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
5873 a bounding box. A dialog is raised in case, no bounding box
5874 is found. This fixes bug #2043:
5875 https://intevation.de/rt/webrt?serial_num=2043
5876
5877 2003-08-05 Bernhard Herzog <[email protected]>
5878
5879 * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
5880 object look like a Color instantiation. Formerly it looked like a
5881 tuple.
5882
5883 * test/test_color.py (TestColor.test_repr)
5884 (TestColor.test_equality, TestColor.test_inequality): New. test
5885 some more apects of the Color class
5886 (TestTransparent.test_repr, TestTransparent.test_hex)
5887 (TestTransparent.test_equality): New. Test cases for the
5888 Transparent object.
5889
5890 2003-08-04 Jan-Oliver Wagner <[email protected]>
5891
5892 * Doc/manual/thuban-manual.xml: a number of small improvements.
5893 The resulting file is the version submitted for GREAT-ER II.
5894
5895 2003-08-01 Bernhard Herzog <[email protected]>
5896
5897 * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
5898 Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
5899 Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
5900
5901 * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
5902 (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
5903 (ThubanEndBusyCursor): Add doc-strings
5904
5905 2003-08-01 Bernhard Herzog <[email protected]>
5906
5907 First step towards PostGIS integration. More abstraction by movin
5908 more code from the layer to the shapestore. More methods of the
5909 layer are now simply delegated to the equivalent method of the
5910 shapestore. The SHAPETYPE_* constants are now in data not in
5911 layer.
5912
5913 * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
5914 (SHAPETYPE_POINT, Shape): Move these constants and classes from
5915 layer.py to data.py
5916 (ShapefileStore.__init__): More Initialization for the new methods
5917 and functionality.
5918 (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
5919 (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
5920 (ShapefileStore.Shape): New methods that were formerly implemented
5921 in the layer.
5922 (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
5923 (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
5924 (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
5925 equivalents of the new shape methods. These versions are simply
5926 delegated to the original shapstore.
5927
5928 * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
5929 (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
5930 (Layer.SetShapeStore): Removed the initializatin of instance
5931 variables that were needed for the stuff that's now in
5932 ShapefileStore
5933 (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
5934 (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
5935 shapestore.
5936
5937 * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
5938 Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
5939 instead of layer.
5940
5941 * test/test_shapefilestore.py: New. Tests for ShapefileStore.
5942
5943 * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
5944
5945 * test/test_layer.py: Import the SHAPETYPE_* constants from data
5946 instead of layer.
5947 (TestLayer.test_derived_store): Remove the test for the exception
5948 when instantiating the DerivedShapeStore with an incompatible
5949 table which is now in test_derivedshapestore.py. Add some more
5950 tests of the layer methods to determine whether they work for a
5951 DerivedShapeStore as well.
5952
5953 2003-07-31 Jonathan Coles <[email protected]>
5954
5955 * Doc/manual/thuban-manual.xml: Fix the list of required packages
5956 by just listing the name and where they can be found.
5957
5958 2003-07-31 Frank Koormann <[email protected]>
5959
5960 * Doc/manual/thuban-manual.xml:
5961 Changed the screenshot elements to figure.
5962 Changed some variablelist elements to itemizedlist.
5963 Added section on GDAL formats.
5964
5965 2003-07-31 Jonathan Coles <[email protected]>
5966
5967 * Doc/manual/thuban-manual.xml: Added a few sentences about
5968 the Fix Border Color option when generating classes.
5969
5970 2003-07-30 Jonathan Coles <[email protected]>
5971
5972 * Thuban/Model/classgen.py: Add docstrings. Rename specific
5973 Ramp instances to use lower_case_style.
5974
5975 * Thuban/UI/classgen.py: Use renamed Ramp instances.
5976
5977 * Thuban/UI/classifier.py: Add docstrings.
5978
5979 * Thuban/UI/dock.py: Add docstrings.
5980
5981 * test/test_classgen.py: Use renamed Ramp instances.
5982
5983 2003-07-30 Bernhard Herzog <[email protected]>
5984
5985 * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
5986 was never used in Thuban.
5987
5988 2003-07-30 Bernhard Herzog <[email protected]>
5989
5990 * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
5991 method directly instead of going through the transient_table
5992 method. This faster because transient_table may force the copy of
5993 a DBF file into the transient database and setting a table's title
5994 doesnm't affect the title of the associated transient table, so
5995 this fixes RT #2042
5996
5997 * Thuban/UI/main.py (__version__): Don't import the already
5998 removed show_exception_dialog.
5999
6000 2003-07-29 Jonathan Coles <[email protected]>
6001
6002 * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
6003 Put back this method and remove the equivalent function since we
6004 are setting the exception hook from within this class (OnInit).
6005
6006 2003-07-29 Jonathan Coles <[email protected]>
6007
6008 * Doc/manual/images/5_2_custom_ramp.png,
6009 Doc/manual/images/5_2_quantiles.png,
6010 Doc/manual/images/5_2_uniform_dist.png,
6011 Doc/manual/images/5_2_unique_values.png,
6012 Doc/manual/images/8_int_error.png: New screen shots.
6013
6014 * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
6015 some points, and added more screen shots.
6016
6017 2003-07-29 Bernhard Herzog <[email protected]>
6018
6019 * Thuban/Model/data.py: Remove the now unused import of warnings
6020
6021 2003-07-29 Bernhard Herzog <[email protected]>
6022
6023 * Thuban/Model/data.py (SimpleStore): Removed. This class has been
6024 deprecated since before the 0.8 release and isn't used in Thuban
6025 itself anymore.
6026
6027 * Thuban/Model/transientdb.py: Remove some unnecessary imports
6028
6029 2003-07-29 Jonathan Coles <[email protected]>
6030
6031 * Thuban/UI/application.py (ThubanApplication.OnInit): set the
6032 python exception hook here so that we are sure to catch any
6033 Thuban exception that happen during initialization.
6034
6035 * Thuban/UI/main.py (main): Don't set the exception hook here,
6036 it will get set in ThubanApplication.OnInit.
6037
6038 2003-07-29 Jonathan Coles <[email protected]>
6039
6040 * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
6041 Removed and called it show_exception_dialog() so that the exception
6042 handler can be set before the class is created.
6043
6044 * Thuban/UI/main.py (main): Install the exception handler before
6045 a ThubanApplication is created.
6046
6047 2003-07-29 Bernhard Herzog <[email protected]>
6048
6049 * po/it.po: New. Italian translation by Maurizio Napolitano
6050
6051 * po/ru.po: New. Russian translation by Alex Shevlakov
6052
6053 2003-07-29 Frank Koormann <[email protected]>
6054
6055 * Doc/manual/thuban-manual.xml: Extended section on supported
6056 projections.
6057
6058 2003-07-29 Frank Koormann <[email protected]>
6059
6060 * Doc/manual/thuban-manual.xml: gaspell-checked.
6061
6062 2003-07-29 Jonathan Coles <[email protected]>
6063
6064 * Doc/manual/images/3_5_legend.png: Added border to improve look
6065 on white background.
6066
6067 2003-07-29 Jonathan Coles <[email protected]>
6068
6069 * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
6070 descriptions for the legend toolbar.
6071
6072 * Doc/manual/images/4_2_raster_layer_properties.png: Removed
6073 cursor from dialog box.
6074
6075 2003-07-28 Jonathan Coles <[email protected]>
6076
6077 * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
6078
6079 * Doc/manual/images/2_4_session_tree.png,
6080 Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
6081 Doc/manual/images/4_2_layer_properties.png,
6082 Doc/manual/images/4_2_raster_layer_properties.png,
6083 Doc/manual/images/5_3_genclass.png,
6084 Doc/manual/images/5_classification.png,
6085 Doc/manual/images/6_projection.png,
6086 Doc/manual/images/7_1_table_view.png,
6087 Doc/manual/images/7_2_5_join.png: New screenshots.
6088
6089 2003-07-24 Jonathan Coles <[email protected]>
6090
6091 * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
6092
6093 2003-07-24 Jonathan Coles <[email protected]>
6094
6095 * Doc/manual/thuban-manual.xml: Added EPS images and wrote
6096 chapter on Layer Management.
6097
6098 * Doc/manual/Makefile: New. Makefile to generate all formats for the
6099 manual and images.
6100
6101 2003-07-24 Bernhard Herzog <[email protected]>
6102
6103 * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
6104 it annoys lintian which warns about these files not being
6105 executable. The #! isn't necessary here since if you absolutely
6106 must execute them you can always say "python <filename>".
6107
6108 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
6109 superfluous code to set brush and pen for point shapes
6110
6111 * Thuban/UI/viewport.py: Remove commented out code that wouldn't
6112 belong in viewport anyway
6113
6114 2003-07-24 Frank Koormann <[email protected]>
6115
6116 * Doc/manual/thuban-manual.xml: Added section on table management.
6117
6118 2003-07-24 Bernhard Herzog <[email protected]>
6119
6120 * test/runtests.py (main): Recognize the long "verbose" option
6121 correctly.
6122
6123 2003-07-22 Jonathan Coles <[email protected]>
6124
6125 * Doc/manual/thuban-manual.xml: Continue to write first revision
6126 of the manual.
6127
6128 * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
6129 with Begin/EndDrawing() calls to ensure we aren't doing to
6130 many updates to the dc during rendering.
6131 (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
6132 a pen and brush argument so they need to be passed to the function.
6133
6134 * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
6135 Calculates the minimum and maximum scale values. Factored out
6136 of set_view_transform so that it could be used to zoom all the
6137 way into a single point.
6138 (ViewPort.set_view_transform): Call calc_min_max_scales().
6139 (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
6140 if only a single point is selected.
6141
6142 * Doc/manual/images/1_2_legend_close.png,
6143 Doc/manual/images/1_2_legend_dock.png,
6144 Doc/manual/images/1_2_mainwindow.png,
6145 Doc/manual/images/1_2_mainwindow.ps,
6146 Doc/manual/images/1_2_mainwindow.sk,
6147 Doc/manual/images/3_2_fullextent.png,
6148 Doc/manual/images/3_2_fulllayerextent.png,
6149 Doc/manual/images/3_2_fullshapeextent.png,
6150 Doc/manual/images/3_2_pan.png,
6151 Doc/manual/images/3_2_zoomin.png,
6152 Doc/manual/images/3_2_zoomout.png,
6153 Doc/manual/images/3_3_identify.png,
6154 Doc/manual/images/3_3_label.png,
6155 Doc/manual/images/3_5_invisible.png,
6156 Doc/manual/images/3_5_movedown.png,
6157 Doc/manual/images/3_5_moveup.png,
6158 Doc/manual/images/3_5_props.png,
6159 Doc/manual/images/3_5_tobottom.png,
6160 Doc/manual/images/3_5_totop.png,
6161 Doc/manual/images/3_5_visible.png: New. Images for the documentation.
6162
6163 2003-07-18 Bernhard Herzog <[email protected]>
6164
6165 * Thuban/UI/messages.py (MAP_REPLACED): New message.
6166
6167 * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
6168 after the new map has been assigned
6169
6170 * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
6171 Delegate MAP_REPLACED to the canvas too
6172 (MainWindow.prepare_new_session): Removed. Thanks to the new
6173 MAP_REPLACED message it's no longer needed
6174 (MainWindow.OpenSession, MainWindow.NewSession):
6175 prepare_new_session has been removed.
6176
6177 * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
6178 MAP_REPLACED so that we can close the dialog if a new map is set.
6179 (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
6180 (Classifier.map_replaced): Handle MAP_REPLACED by closing the
6181 dialog
6182
6183 * test/test_viewport.py (SimpleViewPortTest)
6184 (SimpleViewPortTest.test_default_size): Add doc-strings
6185 (ViewPortTest.setUp): Bind map to self.map so we can use it in
6186 tests. Subscribe to MAP_REPLACED messages too.
6187 (ViewPortTest.tearDown): No need to explicitly unsubscribe
6188 (ViewPortTest.test_set_map): New test for the SetMap method.
6189
6190 2003-07-18 Bernhard Herzog <[email protected]>
6191
6192 * test/test_viewport.py (SimpleViewPortTest.test_default_size):
6193 Move this test from ViewPortTest.setUp to this new separate test
6194 case. setUp is not the place for the actual tests.
6195 (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
6196 more of the test from setUp to the new test test_inital_settings.
6197 (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
6198 (ViewPortTest.test_proj_conv): Split test_proj_conv into
6199 test_win_to_proj and test_proj_to_win and make the tests easier to
6200 understand
6201 (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
6202 (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
6203 (ViewPortTest.test_unprojected_rect_around_point)
6204 (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
6205 Reformat to increase readability.
6206
6207 2003-07-18 Bernhard Herzog <[email protected]>
6208
6209 * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
6210
6211 2003-07-18 Bernhard Herzog <[email protected]>
6212
6213 * test/runtests.py: The test suite can now be run without an X
6214 connection. To make sure this remains true, remove the DISPLAY
6215 environment variable so that an error occurs if the wxGTK is
6216 imported accidentally
6217
6218 2003-07-18 Bernhard Herzog <[email protected]>
6219
6220 * Thuban/UI/viewport.py: Remove unused imports
6221
6222 * Thuban/UI/view.py: Remove unused imports
6223
6224 2003-07-18 Bernhard Herzog <[email protected]>
6225
6226 * test/test_export.py Remove unused imports. The OutputTransform
6227 function is now in viewport.py and is called output_transform
6228 (TestScalebar.test_output_transform)
6229 (TestScalebar.test_OutputTransform): Renamed to
6230 test_output_transform and updated to use output_transform instead
6231 of OutputTransform
6232
6233 * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
6234 renamed.
6235 (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
6236 renamed to output_transform
6237
6238 * Thuban/UI/viewport.py (OutputTransform, output_transform):
6239 Rename to output_transform
6240
6241 2003-07-18 Bernhard Herzog <[email protected]>
6242
6243 * Thuban/Model/layer.py (Layer.__init__): Rename
6244 classificationField to classificatin_column and init it here so
6245 that it can be used in SetClassificationColumn
6246 (Layer.GetClassificationColumn, Layer.GetClassificationField):
6247 Rename to GetClassificationColumn.
6248 (Layer.SetClassificationColumn, Layer.SetClassificationField):
6249 Rename to SetClassificationColumn and issue a LAYER_CHANGED
6250 message if the column changes.
6251 (Layer._classification_changed, Layer.ClassChanged): Rename to
6252 _classification_changed. Update the callers.
6253 (Layer.SetShapeStore): Further field->column renames.
6254
6255 * Thuban/Model/load.py (SessionLoader.start_classification)
6256 (SessionLoader.start_clpoint): Updates because of
6257 field->column method name changes in the Layer class
6258
6259 * Thuban/Model/save.py (SessionSaver.write_classification): Updates
6260 because of field->column method name changes in the Layer class
6261
6262 * Thuban/UI/classifier.py (Classifier.__init__)
6263 (Classifier._OnTry, Classifier._OnRevert): Updates because of
6264 field->column method name changes in the Layer class
6265
6266 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
6267 because of field->column method name changes in the Layer class
6268
6269 * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
6270 of field->column method name changes in the Layer class
6271
6272 * test/test_save.py (SaveSessionTest.testClassifiedLayer)
6273 (SaveSessionTest.testClassifiedLayer): Update because of
6274 field->column method name changes in the Layer class
6275
6276 * test/test_layer.py (SetShapeStoreTests.setUp)
6277 (SetShapeStoreTests.test_sanity): Update because of field->column
6278 method name changes in the Layer class
6279 (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
6280 (TestLayerModification.test_sanity)
6281 (TestLayerModification.test_initial_settings): remove unsued code
6282 and rename to test_sanity.
6283 (TestLayerModification.test_set_classification): New test for
6284 SetClassification and SetClassificationField.
6285
6286 2003-07-18 Bernhard Herzog <[email protected]>
6287
6288 * test/test_classgen.py (TestFixedRamp.test): Extend test to check
6289 the non-fixed values as well. The old test would have accepted a
6290 fixed ramp that only returnes the fixed properties
6291
6292 2003-07-17 Jonathan Coles <[email protected]>
6293
6294 * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
6295 shots for the manual. The XCF file is the source image and
6296 has additional layers to support changes.
6297
6298 * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
6299
6300 * Thuban/UI/classifier.py (Classifier.__BuildClassification):
6301 Return both the new class and the field name.
6302
6303 * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
6304 fit the map to the window as this changes any zoom level that
6305 the user may have set.
6306
6307 2003-07-16 Jonathan Coles <[email protected]>
6308
6309 * Thuban/Model/classgen.py (generate_singletons,
6310 generate_uniform_distribution, generate_quantiles): Remove
6311 fixes parameter, but maintain the same functionality by having
6312 the calling function pass a FixedRamp object for the ramp.
6313 (FixedRamp): New. Adapts a ramp to have fixed property values.
6314
6315 * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
6316 (Classification): Inherit from Publisher.
6317 (Classification.__init__): Remove the layer parameter.
6318 Classifications no longer need to have a parent layer.
6319 (Classification.GetField, Classification.GetFieldType,
6320 Classification.SetFieldInfo): Removed. The field name is stored
6321 in the layer, and the type can be retreived by calling
6322 Layer.GetFieldType().
6323 (Classification._set_layer, Classification.GetLayer): Removed.
6324 Classifications no longer have a parent layer.
6325
6326 * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
6327 classification.
6328 (Layer.SetShapeStore): Reset the classification first while
6329 we still have the old shape store to work with.
6330 (Layer.GetClassificationField, Layer.SetClassificationField):
6331 New. Method for getting/setting the field to classify on.
6332 (Layer.SetClassification): Simplified now that the layer
6333 simply has to hold a reference to the classification and not
6334 tell the classification who owns it.
6335 Fixes RTbug #2023.
6336
6337 * Thuban/Model/load.py (SessionLoader.start_classification):
6338 Set the field name on the layer, not the classification.
6339
6340 * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
6341 classification is modified.
6342
6343 * Thuban/Model/save.py (SessionSaver.write_classification):
6344 Get the field name and type from the layer.
6345
6346 * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
6347 parameter records to rows and add docstring. Fixes RTbug #1997.
6348
6349 * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
6350 ramp when we need to fix certain values of a ramp rather than
6351 using the old fixes parameter. Fixes RTbug #2024.
6352
6353 * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
6354 parameter.
6355 (ClassTable.Reset): Add fieldType parameter and use it, rather
6356 than asking the classification.
6357 (Classifier.__init__): Remember the original class's field
6358 and ask the layer for the field type, rather than the classification.
6359 (Classifier.__SetGridTable): Retrieve the field and field type
6360 for the table because they are not in the classification.
6361 (Classifier._OnTry, Classifier._OnRevert): Set the classification
6362 field on the layer in addition to the classification itself.
6363
6364 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
6365 classification field from layer.
6366
6367 * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
6368 classification field from layer. Split up tests and remove
6369 *-imports. Fixes RTbug #1992.
6370
6371 * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
6372
6373 * test/test_classification.py
6374 (TestClassification.test_classification): Remove tests for methods
6375 that no longer exist.
6376
6377 * test/test_layer.py (SetShapeStoreTests.setUp): Classification
6378 __init__ no longer has a field parameter, use SetClassificationField.
6379 (SetShapeStoreTests.test_sanity): Use layer object to get class
6380 field info.
6381
6382 * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
6383 SetClassificationField on layer to set class field info.
6384
6385 * test/test_viewport.py: Renamed from test/test_view.py.
6386
6387 2003-07-16 Jan-Oliver Wagner <[email protected]>
6388
6389 * Doc/manual/thuban-manual.xml: Added authors and an initial
6390 coarse structure.
6391
6392 2003-07-15 Bernhard Herzog <[email protected]>
6393
6394 * test/support.py (FloatComparisonMixin): This is a mix-in class
6395 and therefore should not be derived from any other class.
6396
6397 * test/test_range.py (RangeTest): FloatComparisonMixin is a
6398 mix-in, so derive from TestCase as well.
6399
6400 2003-07-15 Bernhard Herzog <[email protected]>
6401
6402 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
6403 draw_func handling a bit to remove one layer of indirection. This
6404 makes the renderer about 10% faster in the non-classifying case
6405 and the code a bit cleaner
6406 (MapRenderer.draw_point_shape): Add the pen and brush parameters
6407 and set them in the dc. Now the draw_point_shape method and
6408 wxproj's draw_polygon_shape function have basically the same
6409 signature so that both can be directly used as draw_func
6410
6411 2003-07-15 Bernhard Herzog <[email protected]>
6412
6413 * Thuban/Model/save.py (SessionSaver.write_classification): Encode
6414 string values (in addition to the labels) as UTF 8
6415
6416 * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
6417 values if the field type is string
6418
6419 * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
6420 saving a session with non-ascii string classification values.
6421
6422 * test/test_load.py (TestClassification.file_contents)
6423 (TestClassification.test): Check for non-ascii values in string
6424 classifications
6425
6426 2003-07-14 Jonathan Coles <[email protected]>
6427
6428 * test/test_view.py: New. Tests for ViewPort.
6429
6430 2003-07-14 Frank Koormann <[email protected]>
6431
6432 * Thuban/Model/load.py (SessionLoader.start_map): Encode map
6433 title to latin1. Fixes https://intevation.de/rt/webrt?serial_num=2013
6434
6435 * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
6436 unicode strings from session file: session title, map title and
6437 projection name.
6438
6439 2003-07-10 Jonathan Coles <[email protected]>
6440
6441 * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
6442 drag_stop, not drag_move when the mouse is released.
6443
6444 2003-07-10 Jonathan Coles <[email protected]>
6445
6446 The most important part of this is the seperation of view.py into
6447 two pieces. viewport.py now has a class called ViewPort which
6448 contains all the non-wx parts of view.py and can therefore be
6449 tested. view.py contains only the wx-specific parts and is fairly
6450 simple.
6451
6452 * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
6453 RTTbug #1992.
6454 * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
6455 RTTbug #1992.
6456
6457 * Thuban/Model/classgen.py (generate_singletons,
6458 generate_uniform_distribution, generate_quantiles):
6459 Added 'fixes' parameter so that property attributes can
6460 be held constant over the generated classification groups.
6461 (CustomRamp.GetProperties): Remove unused variables.
6462
6463 * Thuban/Model/map.py (Map.SetProjection): Send the old
6464 projection as an argument to listeners of the MAP_PROJECTION_CHANGED
6465 event.
6466
6467 * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
6468 parameter which is a list of records that restricts which
6469 records are saved. Fixes RTbug #1997.
6470
6471 * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
6472 Port exception dialog from GREAT-ER. Fixes RTbug #1993.
6473
6474 * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
6475 to allow the user to fix line color/width on generated groups.
6476 (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
6477 functions to optionally fix group properties.
6478
6479 * Thuban/UI/main.py (main): Set exception hook to the
6480 ShowExceptionDialog. Fixes RTbug #1993.
6481
6482 * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
6483 the table window when it is selectd to be shown.
6484
6485 * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
6486 Export Selection button and move the export buttons underneath
6487 the table.
6488 (QueryTableFrame.UpdateStatusText): Added event argument so
6489 that it can respond to grid selection events. The status text
6490 is now updated even when the table is not associated with a
6491 layer as was previously assumed.
6492 (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
6493 UpdateStatusText responds to these events.
6494 (QueryTableFrame.OnSaveAs): Renamed to doExport.
6495 (QueryTableFrame.doExport): Helper function that saves the
6496 entire table, or selected rows, to a file.
6497 (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
6498 Respond to export button events and call doExport.
6499
6500 * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
6501 the function doesn't return NULL without first setting a Python
6502 Error.
6503
6504 * test/runtests.py (main): Only print "Unknown option" for
6505 unsupported options.
6506
6507 * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
6508 optional epsilon argument to specify floating point accuracy.
6509 (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
6510 for each item test.
6511
6512 * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
6513 tests for saving selected records.
6514
6515 * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
6516 tests for saving selected records.
6517
6518 * test/test_map.py (TestMapWithContents.test_set_projection):
6519 MAP_PROJECTION_CHANGED events send the old projection.
6520
6521 * test/test_session.py
6522 (TestSessionWithContent.test_forward_map_projection):
6523 MAP_PROJECTION_CHANGED events send the old projection.
6524
6525 * test/test_table.py (TableTest): Update tests to use non-deprecated
6526 functions.
6527
6528 2003-07-08 Bernhard Herzog <[email protected]>
6529
6530 * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
6531 constants in the column objects are the standard ones defined in
6532 the table module.
6533
6534 * test/test_transientdb.py
6535 (TestTransientTable.test_transienttable_to_dbf): New. Test whether
6536 exporting transient tables as DBF works. This should catch the bug
6537 just fixed in TransientTableBase.Width.
6538
6539 2003-07-08 Bernhard Herzog <[email protected]>
6540
6541 * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
6542 interpolated colors correctly.
6543
6544 * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
6545 New. Test case for the fix in classgen.py
6546
6547 2003-07-08 Bernhard Herzog <[email protected]>
6548
6549 * test/runtests.py (main): Make the default output less verbose
6550 and add a verbosity option (-v) to get the old output
6551
6552 2003-07-08 Bernhard Herzog <[email protected]>
6553
6554 * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
6555 0.9.
6556
6557 * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
6558 New. Return the join type
6559
6560 * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
6561 DTD
6562 (SessionSaver.write_data_containers): Save the join type for
6563 joined tables
6564
6565 * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
6566 namespace
6567 (SessionLoader.start_jointable): Handle the jointype attribute
6568
6569 * test/test_load_0_8.py: New. Effectively a copy of test_load.py
6570 as of Thuban 0.8. These are now tests to determine whether Thuban
6571 can still read files generated by Thuban 0.8
6572
6573 * test/test_load.py (LoadSessionTest.dtd)
6574 (TestSingleLayer.file_contents)
6575 (TestLayerVisibility.file_contents, TestLabels.file_contents)
6576 (TestLayerProjection.file_contents)
6577 (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
6578 (TestJoinedTable.file_contents)
6579 (TestLoadError.file_contents): Update for new DTD
6580 (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
6581 for new join type attribute
6582
6583 * test/test_save.py (SaveSessionTest.dtd)
6584 (SaveSessionTest.testEmptySession)
6585 (SaveSessionTest.testSingleLayer)
6586 (SaveSessionTest.testLayerProjection)
6587 (SaveSessionTest.testRasterLayer)
6588 (SaveSessionTest.testClassifiedLayer)
6589 (SaveSessionTest.test_dbf_table)
6590 (SaveSessionTest.test_joined_table): Update for new DTD
6591 (SaveSessionTest.test_joined_table): Add test for new join type
6592 attribute
6593
6594 2003-07-04 Bernhard Herzog <[email protected]>
6595
6596 * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
6597 function for table_to_dbf
6598 (table_to_dbf): Deal with names longer than the 10 character limit
6599
6600 * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
6601 doc-string
6602 (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
6603 long column names
6604
6605 2003-07-03 Bernhard Herzog <[email protected]>
6606
6607 * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
6608
6609 2003-07-03 Bernhard Herzog <[email protected]>
6610
6611 * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
6612 for the Thuban manual and README with some basic information about
6613 the manual
6614
6615 2003-07-03 Bernhard Herzog <[email protected]>
6616
6617 * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
6618 Update doc-string
6619 (TransientJoinedTable.create): Do not modify the column objects of
6620 the input tables in place and copy all columns of the input tables
6621 into the joined table after all.
6622
6623 * test/test_transientdb.py
6624 (TestTransientTable.test_transient_joined_table_same_column_name):
6625 Update to reflect the new behavior
6626 (TestTransientTable.test_transient_joined_table_with_equal_column_names):
6627 Update to reflect the new behavior
6628 (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
6629 New test case for a bug which modified the column objects in place
6630
6631 2003-07-02 Jonathan Coles <[email protected]>
6632
6633 * Thuban/Model/classgen.py (generate_singletons,
6634 generate_uniform_distribution, generate_quantiles,
6635 GenQuantiles0): Make sure maxValue isn't less than
6636 one, otherwise we could divide by zero.
6637
6638 * test/test_classgen.py (ClassGenTest.doClassRangeTest,
6639 ClassGenTest.doClassSingleTest): Call doBoundsTest to
6640 check the end classification groups against the
6641 proper property values.
6642 (ClassGenTest.doBoundsTest): New. Checks the first and
6643 last classification groups to make sure their properties
6644 are the correct upper and lower bounds for a color ramp.
6645
6646 2003-07-02 Jonathan Coles <[email protected]>
6647
6648 * Thuban/Model/classgen.py (generate_singletons,
6649 generate_uniform_distribution, generate_quantiles,
6650 GenQuantiles0): The denominator was one to high when
6651 calculating the index for the ramp causing the index
6652 to never to reach one.
6653
6654 2003-07-02 Jonathan Coles <[email protected]>
6655
6656 Changed the singature of ClassGroupRange.__init__ and
6657 ClassGroupRange.SetRange() so that the min/max values are
6658 passed as a tuple. This makes a better calling scheme for
6659 when a Range object is passed instead.
6660
6661 * Thuban/Model/classgen.py: Fixed parameters to
6662 ClassGroupRange constructor.
6663
6664 * Thuban/Model/classification.py (ClassGroupRange.__init__):
6665 Consolidate the min/max parameters into a single _range which
6666 can either be a tuple or a Range object.
6667 (ClassGroupRange.SetRange): Consolidate the min/max parameters
6668 into a single _range which can either be a tuple or a Range object.
6669
6670 * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
6671 call to ClassGroupRange constructor to use a tuple.
6672
6673 * Thuban/Model/layer.py (Layer.SetClassification): Switch
6674 the classification instance variable to the new class
6675 before calling _set_layer otherwise subscribers to a
6676 LAYER_CHANGED event will not see any difference.
6677
6678 * test/test_classification.py: Fix tests of ClassGroupRange
6679 so that they use the new signature.
6680
6681 * test/test_load.py: Fix use of ClassGroupRange so that it
6682 uses the new signature.
6683
6684 * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
6685 uses the new signature.
6686
6687 * test/test_save.py: Fix use of ClassGroupRange so that it
6688 uses the new signature.
6689
6690
6691 2003-07-01 Jonathan Coles <[email protected]>
6692
6693 * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
6694 Import used objects/class from color.
6695 (generate_singletons): We don't
6696 need the numGroups parameter anymore because we are using
6697 the new ramps with GetProperties().
6698 (generate_uniform_distribution): Use new ramp method
6699 GetProperties().
6700 (generate_quantiles, GenQuantiles0): Use new ramp method
6701 GetProperties().
6702 (CustomRamp.SetNumGroups): Removed. The ramps now map
6703 a value from 0 to 1 to class properties so the number
6704 of groups is not needed ahead of time.
6705 (CustomRamp.next): Removed. CustomRamp does not support
6706 interation anymore.
6707 (CustomRamp.GetProperties): Returns a ClassGroupProperties
6708 object based on the index value from 0 to 1 that is
6709 passed to it.
6710 (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
6711 Made into instances of Monochromatic class instread of
6712 deriving from it.
6713 (HotToCold.SetNumGroups): Removed. See CustomRamp.
6714 (HotToCold.next): Removed. See CustomRamp.
6715
6716 * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
6717 (Classification.SetField, Classification.SetFieldType):
6718 Replaced with SetFieldInfo.
6719 (Classification.SetFieldInfo): New. Does a better job of
6720 what SetField and SetFieldType used to do by combining
6721 their function since they should really always be done
6722 at the same time.
6723 (Classification.SetLayer): Renamed to _set_layer.
6724 (Classification._set_layer): Should only be called from
6725 Layer's SetClassification. This does not cause a recursive
6726 call as SetLayer did because we know that Layer knows about
6727 the classification.
6728
6729 * Thuban/Model/color.py: Fixes RTbug #1971.
6730 (_Transparent): Renamed from Transparent so it doesn't
6731 conflict with the module variable.
6732 (Transparent, Black): Renamed from Color.Transparent,
6733 Color.Black so they are not class variables.
6734
6735 * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
6736 (Layer.Destroy): We don't need to call SetClassification
6737 anymore to clear out the back reference in the classifcation
6738 to the layer. It's better to set it to None using _set_layer,
6739 and we won't be creating another clas object too.
6740 (Layer.SetClassification): Classification._set_layer is not
6741 recursive so remove all the locking variables. Also clean
6742 up the code so that it remains unchanged if something fails.
6743
6744 * Thuban/Model/load.py: Fixes RTbug #1971.
6745 (SessionLoader.start_classification): Call
6746 Classification.SetFieldInfo().
6747
6748 * Thuban/Model/save.py: Removed import of Color which wasn't
6749 being used.
6750
6751 * Thuban/UI/classgen.py: Fixes RTbug #1972.
6752 (ClassGenDialog.__init__): Color ramps are now instances
6753 already so we don't need to create any new objects.
6754 (ClassGenDialog.OnOK): Check for numGroups is no longer
6755 necessary because we never use it.
6756
6757 * Thuban/UI/classifier.py: Fixes RTbug #1971.
6758 (Classifier.__BuildClassification, Classifier.__SetGridTable):
6759 Call Classification.SetFieldInfo() instead of SetFieldType.
6760
6761 * Thuban/UI/renderer.py: Fixes RTbug #1971.
6762
6763 * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
6764 (MapCanvas.__init__): Subscribe to the idle time event. Set
6765 background color to white.
6766 (MapCanvas.OnPaint): Set a flag indicating that we should
6767 render the map during idle time. If we already have a bitmap
6768 just draw it now.
6769 (MapCanvas.OnIdle): New. Render the map only during idle time.
6770 This also fixes a problem with the busy cursor under gtk.
6771
6772 * test/test_classgen.py (ClassGenTest.test_generate_singletons):
6773 Fix calls to generate_singletons because the signature changed.
6774
6775 * test/test_classification.py: Fix color references and
6776 change calls to Classification.[SetField|SetFieldType] to
6777 SetFieldInfo.
6778
6779 * test/test_load.py: Fix color references.
6780
6781 * test/test_load_0_2.py: Fix color references.
6782
6783 * test/test_save.py (SaveSessionTest.testClassifiedLayer):
6784 Change calls to Classification.[SetField|SetFieldType] to
6785 SetFieldInfo.
6786
6787 2003-07-01 Frank Koormann <[email protected]>
6788
6789 MERGE from the greater-ms3 branch.
6790
6791 * test/test_transientdb.py
6792 (TestTransientTable.test_transient_joined_table_with_equal_column_names):
6793 New. Test join of two tables with partly equal column names.
6794
6795 * Thuban/Model/transientdb.py (TransientJoinedTable.create):
6796 If duplicates in left and right tables column names are found,
6797 append '_' (underscores) to the name until it is unique.
6798 Create always new internal names for the resulting table and reference
6799 columns in the join statement with <table>.<column>
6800
6801 2003-07-01 Bernhard Herzog <[email protected]>
6802
6803 * test/test_transientdb.py
6804 (TestTransientTable.test_transient_joined_table_same_column_name):
6805 New. Test whether joining on columns with the same names in both
6806 tables works.
6807
6808 * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
6809 sure to use the right internal names even when joining on field
6810 with the same names in both tables. Also, detect duplicate names
6811 in the joined table correctly.
6812
6813 2003-07-01 Frank Koormann <[email protected]>
6814
6815 * Thuban/UI/renderer.py (ExportRenderer.render_legend):
6816 Reverse List of layers to render in same order as in desktop legend.
6817
6818 2003-06-30 Jonathan Coles <[email protected]>
6819
6820 * Thuban/version.py (make_tuple): Takes a version string
6821 and splits it into a tuple of at most three integers.
6822 Used make_tuple() to make tuple versions of the version
6823 numbers.
6824
6825 * Thuban/UI/about.py: Add Thuban email addresses.
6826
6827 2003-06-30 Jonathan Coles <[email protected]>
6828
6829 * Thuban/version.py: SQLite/PySQLite version dependencies
6830 were too high.
6831
6832 2003-06-30 Jonathan Coles <[email protected]>
6833
6834 * Thuban/version.py: Update version to 0.8.1
6835
6836 * MANIFEST.in: Added Projections so that default.proj is
6837 included.
6838
6839 2003-06-26 Jonathan Coles <[email protected]>
6840
6841 New About box with lots more information including library
6842 versions and credits. More/better version checking before
6843 Thuban starts.
6844
6845 * Thuban/UI/about.py: New. New About box that displays
6846 library version information and credits.
6847
6848 * Thuban/version.py: Added new 'versions' dictionary which
6849 contains the verions of various libraries which are checked
6850 when the module loads.
6851 (verify_versions): Check all version numbers and returns
6852 a list of errors.
6853
6854 * Thuban/UI/classifier.py (Classifier.__EnableButtons):
6855 Reset the status of the buttons as the situation warrants,
6856 but in a better more reliable way by not relying on the
6857 current status to determine what needs to change.
6858
6859 * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
6860 (verify_versions): Remove most of the code since it is
6861 now in Thuban.version.verify_versions.o
6862
6863 * Thuban/UI/mainwindow.py (MainWindow.About): Call new
6864 About box in Thuban.UI.about.
6865
6866 * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
6867 Returns the version of gdal library being used as a string.
6868
6869 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
6870 Removed.
6871 (get_proj_version): Return the version of PROJ that the file
6872 was compiled with.
6873 (get_gtk_version): Return th version of GTK that the file
6874 was compiled with.
6875
6876 2003-06-25 Jonathan Coles <[email protected]>
6877
6878 * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
6879 of the SelectPropertiesDialog should be self so the window
6880 appears on top.
6881 (ClassGroupPropertiesCtrl.DoEdit): The parent
6882 of the SelectPropertiesDialog should be self so the window
6883 appears on top.
6884
6885 * Thuban/UI/resource.py: Cleaned up how we determine file
6886 extensions.
6887 (GetImageResource): Return an wxImage from our Resources.
6888
6889 2003-06-24 Jonathan Coles <[email protected]>
6890
6891 * Thuban/UI/renderer.py (ExportRenderer.render_legend):
6892 Check that a layer has a classification before trying
6893 to get it. Raster layers don't have classifications.
6894
6895 2003-06-23 Jonathan Coles <[email protected]>
6896
6897 * setup.py: Add Resources/XML to resource list.
6898
6899 2003-06-23 Jonathan Coles <[email protected]>
6900
6901 * setup.cfg: Fix copyright dates
6902
6903 2003-06-23 Jonathan Coles <[email protected]>
6904
6905 * MANIFEST.in: Update with Resources/XML
6906
6907 * setup.py: Don't include Locale resources yet as we don't
6908 have any and it causes problems building the distribution
6909 for Windows. Update version to 0.8.0.
6910
6911 * Doc/thuban.dtd: Removed since it is now in Resources/XML.
6912
6913 * Thuban/UI/mainwindow.py: Add blank line at the end because
6914 file was not being read correctly building the Windows
6915 distribution.
6916
6917 2003-06-23 Jonathan Coles <[email protected]>
6918
6919 * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
6920
6921 * Thuban/version.py: Temporarily update longversion for
6922 the 0.8 release so that it doesn't have the cvs revision.
6923
6924 2003-06-23 Jonathan Coles <[email protected]>
6925
6926 * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
6927 to make sure that we don't create reentrant possibilities with
6928 wxYield.
6929
6930 * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
6931 directly to avoid the wxSafeYield() call which generates an
6932 OnPaint event causing infinite recursion. Don't try to catch
6933 exception anymore. This was for before there were limits on map
6934 scaling.
6935
6936 2003-06-23 Bernhard Herzog <[email protected]>
6937
6938 Bug fix for RT #1961:
6939
6940 * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
6941 Register DerivedShapestores with the session
6942
6943 * Thuban/Model/session.py (Session.Tables): Make sure each table
6944 is only listed once.
6945
6946 * test/test_load.py (TestJoinedTable.test): Add check_format call.
6947 Update file contents to match the one written out.
6948
6949 2003-06-20 Bernhard Herzog <[email protected]>
6950
6951 * test/xmlsupport.py (SaxEventLister.startElementNS)
6952 (SaxEventLister.endElementNS): Do not include the qname. Python
6953 2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
6954 is (presumably incorrectly) None, whereas it's a string with the
6955 element name in the later versions.
6956
6957 * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
6958 (TestEventList.test_even_list_namespace): Update tests to reflect
6959 the new behaviour
6960 (TestEventList.test_even_list_id_normalization): Fix doc-string
6961
6962 2003-06-20 Jonathan Coles <[email protected]>
6963
6964 * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
6965 by deriving classes to determine if that layer supports shapes.
6966 (Layer): Override HasShapes and return true.
6967
6968 * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
6969 instead of a direct call to wx[Begin|End]CusyCursor().
6970 (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
6971 table data.
6972
6973 * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
6974 New. Wrappers around the wxWindows functions that allow us to
6975 make additional calls such as wxYield which gives the native
6976 system a chance to update the cursor correctly.
6977
6978 * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
6979 instead of a direct call to wx[Begin|End]CusyCursor().
6980
6981 * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
6982 instead of a direct call to wx[Begin|End]CusyCursor().
6983 (MapCanvas.find_shape_at): Check if the current search layer
6984 support shapes, otherwise go on to the next layer.
6985
6986 * test/test_layer.py: Add tests in each type of layer for
6987 HasClassification() and HasShapes()
6988
6989 2003-06-20 Jonathan Coles <[email protected]>
6990
6991 * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
6992 turning on the busy cursor to allow the system to change the
6993 cursor before we begin painting. This fixes a problem that
6994 was occuring only under GTK. Fixes RTbug #1840.
6995
6996 2003-06-20 Bernhard Herzog <[email protected]>
6997
6998 * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
6999 version.
7000
7001 * Thuban/Model/save.py (sort_data_stores): New. Make topological
7002 sort of the data sources so they can be written with sources that
7003 data sources that depend on other data sources come after the
7004 sources they depend on.
7005 (SessionSaver.__init__): Add idmap instance variable to map from
7006 objects to the ids used in the file.
7007 (SessionSaver.get_id, SessionSaver.define_id)
7008 (SessionSaver.has_id): New. Methods to manage the idmap
7009 (SessionSaver.write): Use thuban-0.8.dtd
7010 (SessionSaver.write_session): Add a namespace on the session and
7011 write out the data sources before the maps.
7012 (SessionSaver.write_data_containers): New. Write the data
7013 containers.
7014 (SessionSaver.write_layer): Layer elements now refer to a
7015 shapestore and don't contain filenames anymore.
7016
7017 * Thuban/Model/load.py (LoadError): Exception class to raise when
7018 errors in the files are discovered
7019 (SessionLoader.__init__): Define dispatchers for elements with a
7020 thuban-0.8 namespace too.
7021 (SessionLoader.check_attrs): New helper method to check and
7022 convert attributes
7023 (AttrDesc): New. Helper class for SessionLoader.check_attrs
7024 (SessionLoader.start_fileshapesource)
7025 (SessionLoader.start_derivedshapesource)
7026 (SessionLoader.start_filetable, SessionLoader.start_jointable):
7027 Handlers for the new elements in the new fileformat
7028 (SessionLoader.start_layer): Handle the shapestore attribute in
7029 addition to filename.
7030 (SessionLoader.start_table, SessionLoader.end_table): Removed.
7031 They were never used in the old formats and aren't needed for the
7032 new.
7033
7034 * Thuban/Model/session.py (Session.DataContainers): New method to
7035 return all "data containers", i.e. shapestores and tables
7036
7037 * test/xmlsupport.py (SaxEventLister.__init__)
7038 (SaxEventLister.startElementNS, sax_eventlist): Add support to
7039 normalize IDs.
7040
7041 * test/test_xmlsupport.py
7042 (TestEventList.test_even_list_id_normalization): New test case for
7043 id normalization
7044
7045 * test/test_load.py (LoadSessionTest.check_format): Use ID
7046 normalization
7047 (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
7048 class atrributes used for ID normalization
7049 (TestSingleLayer, TestLayerVisibility, TestLabels.test)
7050 (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
7051 file format
7052 (TestJoinedTable): New test for loading sessions with joined
7053 tables.
7054 (TestLoadError): New. Test whether missing required attributes
7055 cause a LoadError.
7056
7057 * test/test_save.py (SaveSessionTest.thubanids)
7058 (SaveSessionTest.thubanidrefs): New class attributes for ID
7059 normalization in .thuban files.
7060 (SaveSessionTest.compare_xml): Use id-normalization.
7061 (SaveSessionTest.testEmptySession)
7062 (SaveSessionTest.testLayerProjection)
7063 (SaveSessionTest.testRasterLayer)
7064 (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
7065 (SaveSessionTest.testLayerProjection): The filename used was the
7066 same as for testSingleLayer. Use a different one.
7067 (SaveSessionTest.test_dbf_table)
7068 (SaveSessionTest.test_joined_table): New test cases for saving the
7069 new data sources structures.
7070 (TestStoreSort, MockDataStore): Classes to test the sorting of the
7071 data stores for writing.
7072
7073 * test/runtests.py: Add CVS keywords
7074
7075 2003-06-20 Jonathan Coles <[email protected]>
7076
7077 * test/test_session.py
7078 (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
7079 Use the cultural_landmark-point.dbf file for the store so that
7080 the table rows and shape count match.
7081
7082 2003-06-20 Jonathan Coles <[email protected]>
7083
7084 * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
7085 an exception if the number of shapes is different from the
7086 number of rows in the table. Address RTbug #1933.
7087
7088 * test/test_layer.py (TestLayer.test_derived_store): Add
7089 a test for the new exception in DerivedShapeStore.__init__.
7090
7091 * test/support.py (FloatTestCase): Removed since there is
7092 already FloatComparisonMixin. Fixes RTbug #1954.
7093 (FloatComparisonMixin.assertFloatEqual): Include test for
7094 infinity that was part of FloatTestCase.
7095
7096 * test/test_range.py (RangeTest): Inherit from
7097 support.FloatComparisonMixin now that we don't have
7098 support.FloatTestCase.
7099
7100 2003-06-20 Bernhard Herzog <[email protected]>
7101
7102 * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
7103 the implementation in xmlsupport instead.
7104 (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
7105
7106 * test/test_proj.py: Import sax_eventlist from xmlsupport instead
7107 of test_save
7108
7109 2003-06-20 Bernhard Herzog <[email protected]>
7110
7111 * test/test_load.py (LoadSessionTest.check_format): New helper
7112 method to make sure the test files we load might have been written
7113 by the current thuban version.
7114 (ClassificationTest.TestLayers, TestSingleLayer.test)
7115 (TestLayerVisibility.test, TestClassification.test)
7116 (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
7117 Add check_format() calls and fix the thuban data to match the data
7118 that would be written by saving the session loaded from it.
7119
7120 * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
7121 the same class and function in test_save.
7122
7123 * test/test_xmlsupport.py (TestEventList): New. test cases for
7124 sax_eventlist
7125
7126 2003-06-20 Bernhard Herzog <[email protected]>
7127
7128 * Resources/XML/thuban.dtd: Add comment about which versions of
7129 Thuban are covered by this DTD
7130 (map): Fix content model for layers and raster layers. There can
7131 be any number or layers and raster layers in any order.
7132
7133 2003-06-20 Jonathan Coles <[email protected]>
7134
7135 This is mainly about fixing RTbug #1949.
7136
7137 * Thuban/Model/classification.py: Remove "from __future__"
7138 import statement since python 2.2 is the earliest supported
7139 version.
7140
7141 * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
7142 Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
7143 depending on the units this projection *forwards* into.
7144
7145 * Thuban/Model/save.py (SessionSaver.write_classification):
7146 Remove unnecessary use of lambdas and nested functions.
7147
7148 * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
7149 adjustment here if the map projection uses degrees.
7150
7151 * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
7152 scale adjust code since it is now done before calling
7153 this method. Don't do anything if the map projection
7154 is None.
7155
7156 2003-06-19 Bernhard Herzog <[email protected]>
7157
7158 Move version specific load tests to their own file.
7159
7160 * test/test_load.py: Expand the doc-string to explain a bit how to
7161 handle file format changes.
7162 (TestClassification.test): Update the docstring as this test is
7163 not about Thuban 0.2 anymore.
7164
7165 * test/test_load_0_2.py: New file with the load tests for thuban
7166 files created with Thuban 0.2 and earlier.
7167
7168 2003-06-19 Bernhard Herzog <[email protected]>
7169
7170 Add XML validation to some of the tests. Validation will only be
7171 done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
7172 To make the DTD available to the test cases it's moved into
7173 Resources/XML
7174
7175 * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
7176 for versions up to and including 0.2. Two slight changes: added an
7177 encoding specification and fixed the comment which refered to
7178 GRASS, not Thuban
7179
7180 * test/xmlsupport.py: New support module for tests involving XML.
7181 Currently there's a mix-in class for XML validation.
7182
7183 * test/test_xmlsupport.py: New. Tests for the xmlsupport module
7184
7185 * test/test_save.py (SaveSessionTest): Derive from ValidationTest
7186 so that we can validate the
7187 (SaveSessionTest.testEmptySession)
7188 (SaveSessionTest.testSingleLayer)
7189 (SaveSessionTest.testSingleLayer)
7190 (SaveSessionTest.testLayerProjection)
7191 (SaveSessionTest.testRasterLayer)
7192 (SaveSessionTest.testClassifiedLayer): Validate the generated XML
7193
7194 * test/runtests.py (main): Call print_additional_summary instead
7195 of print_garbage_information
7196
7197 * test/support.py (resource_dir): New function to return the
7198 "Resource" subdirectory
7199 (print_additional_summary): New function to combine several
7200 summary functions
7201 (run_tests): Use print_additional_summary instead of calling
7202 print_garbage_information directly
7203
7204 2003-06-19 Bernhard Herzog <[email protected]>
7205
7206 * Doc/thuban.dtd (classification): Correct the content model of
7207 the classification element.
7208 (projection): Add the "name" attribute
7209
7210 2003-06-19 Frank Koormann <[email protected]>
7211
7212 MERGE from the greater-ms3 branch.
7213
7214 * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
7215 scale if projection is latlong to get better estimate.
7216
7217 Fix problem of hidden properties dialog under windows after double
7218 click on layer tree:
7219 The tree control always gets an Expanded / Collapsed event after
7220 the ItemActivated on double click, which raises the main window again.
7221 We add a second ItemActivated event to the queue, which simply
7222 raises the already displayed window.
7223
7224 * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
7225 raiseProperties initialized to prevent endless loops
7226 (LegendTree._OnItemActivated): Depending on self.raiseProperties
7227 simply raise the properties or open the dialog and issue a second
7228 event.
7229
7230 2003-06-18 Jonathan Coles <[email protected]>
7231
7232 * setup.py: Fix a few problems that occured under Windows.
7233
7234 2003-06-18 Jonathan Coles <[email protected]>
7235
7236 When Thuban loaded the map was redrawn twice because the
7237 legend was being opened after the mainwindow was created
7238 and not during its creation. This meant the map was drawn
7239 initially and then had to be redrawn when the legend
7240 caused the display to change. Now the legend is opened
7241 in the mainwindow constructor which resolves this issue.
7242
7243 Also, although we were checking for the existence of
7244 gdal and gdalwarp modules, the gdalwarp extension was
7245 still being compiled (which may fail if the system doesn't
7246 have gdal installed). the build_ext command to setup.py
7247 now accepts the flags --with-gdal and --without-gdal.
7248 If --without-gdal is specified setup.py will try to
7249 use the gdal parameters specified by gdal-config. Under
7250 windows, those parameters have to be set in setup.py
7251 as with proj4 an wxWindows.
7252
7253 * setup.py: Use a list instead of seperate variables for
7254 extension parameters so we can create a generic function
7255 that runs an appropriate *-config script.
7256 (run_cs_script): Renamed from run_wx_script and modified
7257 to accept a second argument which is a list of lists to
7258 be filled in by the values returned from running the command.
7259 (thuban_build_ext): New. Extends the build_ext command and
7260 provides the options --with-gdal/--without-gdal which then
7261 optionally includes the gdalwarp extension.
7262
7263 * Thuban/Model/resource.py: First check if we can import
7264 the gdalwarp Thuban extension before checking for gdal.
7265 Also added some comments.
7266
7267 * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
7268 the map is None which may be the case if none has been loaded
7269 yet.
7270
7271 * Thuban/UI/main.py (main): Remove call to ShowLegend.
7272
7273 * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
7274
7275 * Thuban/UI/renderer.py: Check for gdal support before importing
7276 gdalwarp.
7277 (MapRenderer.render_map): Only try to optimize if we have gdal
7278 support otherwise nothing will get drawn.
7279
7280 * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
7281 during startup before a map has been created. Check if map is None
7282 before using it and do nothing if it is.
7283
7284 2003-06-17 Jonathan Coles <[email protected]>
7285
7286 Fix the problem with raster layers under Windows that caused
7287 Thuban to crash. The view should respond to layer projection
7288 changed events to update the display. Changes to a projection
7289 should not cause the map to be set to full extent.
7290
7291 * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
7292 current_map_proj to remember the current map projection so that
7293 when the projection changes we know what the previous projection
7294 was.
7295 (MapCanvas.SetMap): Unsubscribe and subscribe to
7296 LAYER_PROJECTION_CHANGED events.
7297 (MapCanvas.projection_changed): Split into two methods that respond
7298 to map and layer projection changes.
7299 (MapCanvas.map_projection_changed): New. Takes the current view and
7300 projects it using the new projection. This does not cause the
7301 map to be redrawn at full extent.
7302 (MapCanvas.layer_projection_changed): New. Cause a redraw which
7303 will draw each layer in its new projection.
7304
7305 * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
7306 VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
7307 under Windows.
7308
7309 * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
7310 to twice sizeof(void*) because there are two digits for each
7311 hex byte.
7312
7313 2003-06-16 Bernhard Herzog <[email protected]>
7314
7315 Update to the layer interface: Direct access to the table,
7316 shapetable, shapefile and filename attributes is now actively
7317 deprecated by issuing deprecation warnings for all places where
7318 this happens.
7319
7320 * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
7321 to the instance variables table, shapetable, shapefile and
7322 filename via __getattr__ so that we can issue a deprecation
7323 warning.
7324 (Layer.SetShapeStore): Don't set the deprecated instance variables
7325 any more
7326 (Layer.SetShapeStore): Don't use deprecated layer instance
7327 variables
7328 (Layer.Destroy): No need to explicitly remove the instance
7329 variables any more
7330 (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
7331 instance variables
7332
7333 * Thuban/UI/classgen.py (ClassGenDialog.__init__)
7334 (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
7335 (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
7336 use deprecated layer instance variables
7337
7338 * Thuban/UI/classifier.py (Classifier.__init__): Don't use
7339 deprecated layer instance variables
7340
7341 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
7342 (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
7343 instance variables
7344
7345 * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
7346 deprecated layer instance variables
7347
7348 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
7349 deprecated layer instance variables
7350
7351 * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
7352 deprecated layer instance variables
7353
7354 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
7355 (MapRenderer.polygon_render_param): Don't use deprecated layer instance
7356 variables
7357
7358 * test/runtests.py (main): Turn Thuban's deprecation warnings into
7359 errors so that they're cought by the tests
7360
7361 * test/test_load.py (TestSingleLayer.test): Don't use deprecated
7362 layer instance variables
7363
7364 2003-06-16 Jonathan Coles <[email protected]>
7365
7366 Fix a problem under Windows whereby if the user double-clicks on a
7367 layer in the legend that tree item will expand or collapse as well
7368 as open the layer properties dialog. The state of the tree item
7369 should not be affected.
7370
7371 * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
7372 preventExpandCollapse and subscribe to expanding and collapsing
7373 events.
7374 (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
7375 collapsing events and will veto the event if it has been triggered
7376 by the user double clicking on a layer.
7377 (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
7378 that an expanding/collapsing event should be vetoed.
7379
7380 2003-06-13 Bernhard Herzog <[email protected]>
7381
7382 * Thuban/UI/classifier.py (Classifier.OnClose)
7383 (Classifier.map_layers_removed)
7384 (Classifier.layer_shapestore_replaced): Unsubscribe the messages
7385 in OnClose and not in map_layers_removed or
7386 layer_shapestore_replaced to make sure it always happens when the
7387 dialog is closed
7388
7389 2003-06-13 Jonathan Coles <[email protected]>
7390
7391 This puts back a fix for Windows where a panel is needed so that
7392 the background of the table view appears correctly.
7393
7394 * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
7395 object that can be used by derived classes to place any
7396 controls (including the grid) onto.
7397 (QueryTableFrame.__init__): Use the panel as the parent window
7398 for all the controls. Reparent the grid so that the panel is
7399 the parent. Call UpdateStatusText() to correctly initialize
7400 the status bar.
7401
7402 2003-06-13 Jonathan Coles <[email protected]>
7403
7404 * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
7405 from wxFrame (as opposed to wxDialog like the other classes)
7406 but otherwise behaves like the other classes. This is needed
7407 for the TableView which isn't really a dialog and needs to
7408 have a status bar and control buttons.
7409
7410 * Thuban/UI/tableview.py (TableGrid.__init__): Create an
7411 instance variable to keep track of how many rows are selected.
7412 Subscribe once to the the events we are interested in.
7413 (ThubanGrid.OnRangeSelect): Only handle event if event handling
7414 hasn't been turned off.
7415 (ThubanGrid.OnSelectCell): Only handle event if event handling
7416 hasn't been turned off.
7417 (ThubanGrid.ToggleEventListeners): Rather than subscribe None
7418 as an event listener (which changes the event handler stack)
7419 simply set an instance variable to False. This is checked in
7420 the event handlers.
7421 (ThubanGrid.GetNumberSelected): Return the number of currently
7422 selected rows.
7423 (TableFrame): Inherit from ThubanFrame so we can have a
7424 status bar and control buttons.
7425 (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
7426 Explicitly set which items are selected in the operator choice and
7427 action choice so there is always a valid selection. Fixes RTbug #1941.
7428 Subscribe to grid cell selection events so we can update the
7429 status bar.
7430 (QueryTableFrame.UpdateStatusText): Update the status bar with
7431 how many rows are in the grid, how many columns, and how many
7432 rows are selected.
7433 (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
7434 Call UpdateStatusText when cells are (de)selected.
7435 (QueryTableFrame.OnQuery): Use the string value in the value
7436 combo if either the selected item index is 0 or if the string
7437 cannot be found in the predefined list (this happens if the
7438 user changes the text). Fixes RTbug #1940.
7439 Only turn off the grid event listeners if there a query comes
7440 back with a none empty list of ids. in the case that the list
7441 is empty this causes a grid.ClearSelection() call to actually
7442 clear the grid selection which causes the selected items in
7443 the map to be deselected. Fixes RTbug #1939.
7444
7445 * test/test_save.py (XMLWriterTest.Encode): Check return values.
7446 Fixes RTbug #1851.
7447
7448 2003-06-13 Bernhard Herzog <[email protected]>
7449
7450 * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
7451 self.selected_shape with the current selection to make sure the
7452 contents of the dialog are up to date when it's shown for the
7453 first time.
7454 The dialog used to work without this by luck. The recent fix to
7455 the connector module 'broke' a 'feature' the identify view was
7456 relying on, i.e that subscribing to a message in response to
7457 receiving a message of that type would mean that the new
7458 subscriber would also be called for the same message.
7459
7460 2003-06-12 Jonathan Coles <[email protected]>
7461
7462 * extensions/thuban/gdalwarp.cpp: Removed debug printing as
7463 the image is rendered. Fixes RTbug #1937.
7464
7465 2003-06-12 Jonathan Coles <[email protected]>
7466
7467 * Thuban/Lib/fileutil.py: As is done under Windows, create the
7468 user directory if it doesn't exist on a posix system.
7469 Fixes RTbug #1815.
7470
7471 * Thuban/Model/resource.py (get_user_proj_files): Moved the
7472 called to get_application_dir here, so that the directory
7473 will only be called if this method is invoked.
7474
7475 * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
7476 the projfilepath if no projection is selected.
7477
7478 2003-06-12 Jonathan Coles <[email protected]>
7479
7480 * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
7481 the scalebar if the current map has no projection set.
7482
7483 * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
7484 projfilepath label to just the basename of the projection file
7485 rather than include the entire path.
7486
7487 * Thuban/Model/resource.py: Fix missed proj functions that
7488 needed to be renamed.
7489
7490 2003-06-12 Jonathan Coles <[email protected]>
7491
7492 * Thuban/Model/classification.py: Removed assert statements that
7493 tested if the variable was an instance of Color.
7494
7495 * Thuban/Model/color.py (Color): Remove commented code that isn't
7496 used.
7497 (Transparent): Renamed from NoColor. Doesn't inherit from Color.
7498 Fixes RTbug #1835.
7499 (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
7500 Needed now that the class doesn't inherit from Color.
7501
7502 2003-06-12 Jonathan Coles <[email protected]>
7503
7504 * test/test_save.py (XMLWriterTest.testEncode): Explicitly
7505 check unicode strings.
7506
7507 * test/test_layer.py: Check for existence of gdal.
7508
7509 2003-06-12 Jonathan Coles <[email protected]>
7510
7511 * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
7512 that was in load.py
7513
7514 * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
7515 that was in save.py
7516
7517 2003-06-12 Jonathan Coles <[email protected]>
7518
7519 This is largely a collection of bug fixes. We also handle the
7520 case where gdal is not on the system. The XMLReader and XMLWriter
7521 classes were moved into there own files to resolve some circular
7522 import references and because they shouldn't really be in the
7523 file that is dediciated to reading/writing session files since
7524 they are also used elsewhere.
7525
7526 * Thuban/Model/classgen.py: Renamed functions to follow the
7527 function_names_with_underscores style. Fixes RTbug #1903.
7528 (calculate_quantiles): Raise ValueError if 'percents' is invalid.
7529
7530 * Thuban/Model/layer.py: Import gdal only if it available.
7531 (RasterLayer): Handle the case where the gdal library is unavailable.
7532 Addresses RTbug #1877.
7533
7534 * Thuban/Model/load.py (XMLReader): Moved into seperate file
7535 xmlreader.py.
7536
7537 2003-06-12 Jonathan Coles <[email protected]>
7538
7539 This is largely a collection of bug fixes. We also handle the
7540 case where gdal is not on the system. The XMLReader and XMLWriter
7541 classes were moved into there own files to resolve some circular
7542 import references and because they shouldn't really be in the
7543 file that is dediciated to reading/writing session files since
7544 they are also used elsewhere.
7545
7546 * Thuban/Model/classgen.py: Renamed functions to follow the
7547 function_names_with_underscores style. Fixes RTbug #1903.
7548 (calculate_quantiles): Raise ValueError if 'percents' is invalid.
7549
7550 * Thuban/Model/layer.py: Import gdal only if it available.
7551 (RasterLayer): Handle the case where the gdal library is unavailable.
7552 Addresses RTbug #1877.
7553
7554 * Thuban/Model/load.py (XMLReader): Moved into seperate file
7555 xmlreader.py.
7556
7557 * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
7558 file xmlwriter.py.
7559
7560 * Thuban/Model/resource.py: Renamed functions to following the
7561 function_names_with_underscores style.
7562 (has_gdal_support): New function that returns true if the gdal
7563 library is available. Addresses RTbug #1877.
7564
7565 * Thuban/UI/application.py (ThubanApplication.OpenSession):
7566 Display a message box if the gdal library is not available, but
7567 only if there are any layers that would use it. Addresses RTbug #1877.
7568
7569 * Thuban/UI/classgen.py: Use renamed projection resource functions.
7570 (GenUniformPanel.__CalcStepping): Fix a slight discrepency
7571 when using integers versus floats.
7572
7573 * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
7574 determine if the "Add Image Layer" menu option should be
7575 greyed out or not. Addresses RTbug #1877.
7576
7577 * Thuban/UI/projdialog.py: Use renamed projection resource functions.
7578
7579 * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
7580 optimize if a raster layer is visible. Fixes RTbug #1931.
7581 Only draw the raster layer if the gdal library is available.
7582 Addresses RTbug #1877.
7583
7584 * test/test_classgen.py: Add tests for generate_singletons,
7585 generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
7586 (test_calculate_quantiles): Fix some tests to catch the new
7587 ValueError that is raised.
7588
7589 * test/test_proj.py: Use renamed projection resource functions.
7590
7591 * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
7592 test for saving classified layers. Fixes RTbug #1902.
7593 (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
7594
7595 2003-06-12 Jan-Oliver Wagner <[email protected]>
7596
7597 Fix for http://intevation.de/rt/webrt?serial_num=1900.
7598
7599 * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
7600
7601 * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
7602 multiplechoicedialog.py rather than from the wxPython library.
7603
7604 2003-06-11 Frank Koormann <[email protected]>
7605
7606 * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
7607 update.
7608
7609 2003-06-11 Frank Koormann <[email protected]>
7610
7611 * Thuban/Lib/fileutil.py (get_application_dir): New function to
7612 determine the absolute .thuban/thuban directory under
7613 "posix" (os.expanduser) and "nt" (read AppData registry key).
7614
7615 * Thuban/Model/resource.py: Use get_application_dir
7616
7617 * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7618 Use get_application_dir.
7619
7620 2003-06-10 Bernhard Herzog <[email protected]>
7621
7622 * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
7623 the messages MAP_LAYERS_REMOVED messages
7624 (LayerTableFrame.OnClose): Unsubscribe from it.
7625 (LayerTableFrame.map_layers_removed): New. Receiver for
7626 MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
7627 dialog is showing is removed.
7628
7629 2003-06-10 Bernhard Herzog <[email protected]>
7630
7631 * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
7632 of the receivers list so that unsubscribing in a receiver doesn't
7633 modify it while iterating over it.
7634
7635 * test/test_connector.py
7636 (ConnectorTest.test_disconnect_in_receiver): New. Test whether
7637 unsubscribing in a receiver works correctly. See docstring for
7638 details
7639
7640 2003-06-10 Bernhard Herzog <[email protected]>
7641
7642 * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
7643 message.
7644
7645 * Thuban/Model/layer.py (Layer.SetShapeStore): Send
7646 LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
7647 LAYER_CHANGED will still be sent if the classification changes.
7648
7649 * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
7650 parameter so we can subscribe to some of its messages
7651 (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
7652 and the layer's LAYER_SHAPESTORE_REPLACED
7653 (Classifier.unsubscribe_messages): New. Unsubscribe from message
7654 subscribed to in __init__
7655 (Classifier.map_layers_removed)
7656 (Classifier.layer_shapestore_replaced): receivers for the messages
7657 subscribed to in __init__. Unsubscribe and close the dialog
7658
7659 * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
7660 the map to the Classifier dialog
7661
7662 * test/test_layer.py (SetShapeStoreTests): Derive from
7663 SubscriberMixin as well so we can test messages
7664 (SetShapeStoreTests.setUp): Subscribe to some of the layer's
7665 messages
7666 (SetShapeStoreTests.tearDown): Clear the messages again
7667 (SetShapeStoreTests.test_sanity): Expand the doc-string and check
7668 for the modified flag too
7669 (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
7670 to check whether SetShapeStore sets the modified flag
7671 (SetShapeStoreTests.test_set_shape_store_different_field_name)
7672 (SetShapeStoreTests.test_set_shape_store_same_field)
7673 (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
7674 Add tests for the messages. This checks both the new
7675 LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
7676
7677 2003-06-06 Jan-Oliver Wagner <[email protected]>
7678
7679 * Thuban/UI/mainwindow.py: Improved and partly added help texts for
7680 the menu items.
7681
7682 2003-06-05 Frank Koormann <[email protected]>
7683
7684 * Thuban/UI/identifyview.py (IdentifyView.__init__):
7685 Layout reimplemented without panel. Make life easier to fit the list
7686 in the dialog.
7687
7688 2003-06-05 Frank Koormann <[email protected]>
7689
7690 * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
7691 once on initialisation (Former implementation resulted in multiple
7692 entries for each projection).
7693 (ProjFrame.__FillAvailList): selectProj as second optional parameter,
7694 if set, select the projection found under the specified name. This
7695 overwrites any other selection estimate.
7696 Removed projchoice filling from this method.
7697 (ProjFrame._OnSave, ProjFrame._OnAddToList):
7698 Updated call of ProjFrame.__FillAvailList
7699 (LCCPanel._DoLayout): Moved parameter controls in more common order.
7700
7701 * Resources/Projections/defaults.proj: Extended defaults representing
7702 various common European projections.
7703
7704 2003-06-05 Frank Koormann <[email protected]>
7705
7706 * Thuban/UI/identifyview.py (IdentifyView.__init__):
7707 Use ListCtrl instead of GridCtrl
7708
7709 * Thuban/Model/resource.py:
7710 Guess location of .thuban directory from tempdir parent directory.
7711
7712 * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7713 Guess location of .thuban directory from tempdir parent directory.
7714
7715 2003-06-04 Bernhard Herzog <[email protected]>
7716
7717 Do not cache the values returned by the tree widget's
7718 GetFirstChild and GetNextChild methods because it led to lots of
7719 segfaults. The new way requires more brute force but is more
7720 reliable.
7721
7722 * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
7723 variable layer2id
7724 (LegendTree.find_layer): New method to do with brute force what
7725 layer2id tried to accomplish
7726 (LegendTree._OnMsgLayerChanged)
7727 (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
7728 Use find_layer instead of layer2id
7729 (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
7730 update layer2id anymore
7731 (LegendTree._OnMsgMapLayersRemoved)
7732 (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
7733
7734 2003-06-03 Thomas Koester <[email protected]>
7735
7736 * Thuban/Model/classgen.py (GenQuantiles0): New function.
7737
7738 2003-06-02 Bernhard Herzog <[email protected]>
7739
7740 * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
7741 New commands.
7742 (main_menu): Add the new commands.
7743 (MainWindow.TableRename): New. Implementation of the table_rename
7744 command.
7745 (MainWindow.RenameLayer): New. Implementation of the layer_rename
7746 command.
7747
7748 * Thuban/Model/session.py (Session.AddTable): call self.changed to
7749 set the modified flag
7750
7751 * test/test_session.py (TestSessionSimple.test_add_table): Test
7752 whether the modified flag is set properly
7753
7754 * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
7755 instead of issue so that the modified flags get updated.
7756
7757 * test/test_base.py (SomeTitledObject): Derive from Modifiable
7758 instead of Publisher to reflect reality better and to accomodate
7759 the fact that SetTitle now calls changed instead of issue
7760
7761 2003-06-02 Bernhard Herzog <[email protected]>
7762
7763 * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
7764 acquisition has to happen before the try in a try-finally.
7765
7766 2003-06-02 Bernhard Herzog <[email protected]>
7767
7768 * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
7769 possible that a layer is removed that is not currently selected in
7770 the legend so don't check for this.
7771
7772 2003-05-30 Bernhard Herzog <[email protected]>
7773
7774 * Thuban/Model/layer.py (Layer.Destroy): Set all instance
7775 variables to None that have direct or indirect references to
7776 shapefiles or dbf files to make sure that they do go away and the
7777 files are closed.
7778
7779 2003-05-30 Bernhard Herzog <[email protected]>
7780
7781 * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
7782 availImgListIndices when a new image list is created
7783
7784 2003-05-30 Bernhard Herzog <[email protected]>
7785
7786 * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
7787 changing_selection to indicate whether the LegendTree code itself
7788 is currently changing the selection
7789 (LegendTree.normalize_selection): New method to normalize the
7790 selection by selecting the layer item even if the user clicked on
7791 the classification.
7792 (LegendTree._OnSelChanged): normalize the selection. This works
7793 around a bug in wx which doesn't keep track of the selection
7794 properly when subtrees are deleted.
7795
7796 2003-05-30 Bernhard Herzog <[email protected]>
7797
7798 * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
7799 maximum and minimum scale factors.
7800
7801 * test/test_classgen.py (ClassGenTest.test): Update to reflect the
7802 changes in classgen.py
7803
7804 2003-05-30 Jonathan Coles <[email protected]>
7805
7806 * Thuban/Model/classgen.py: Remove ClassGenerator class but make
7807 all the methods functions. Fixes RTBug #1903.
7808
7809 * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
7810 to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
7811 RTBug #1907.
7812
7813 * Thuban/UI/classgen.py: Use classgen functions that were part
7814 of the ClassGenerator class. Put try/finally blocks around
7815 code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
7816 RTBug #1904.
7817
7818 * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
7819
7820 * Thuban/UI/legend.py: The legend was cleared and repopulated any
7821 time something changed which caused some state to be lost such
7822 as which children were expanded or collapsed. Fixes RTBug #1901.
7823 (LegendTree._OnMsgMapLayersAdded): Add only new layers.
7824 (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
7825 the legend but not in the map.
7826 (LegendTree.__FillTree): Move main functionality out into smaller
7827 methods that can be used by other methods.
7828 (LegendTree.__FillTreeLayer): Reuse old slots in the image list
7829 if they are available.
7830 (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
7831 that we override the wxTreeCtrl method. Iterate over children
7832 and call __RemoveLayer.
7833 (LegendTree.__AddLayer): New. Add a new layer to the legend.
7834 (LegendTree.__RemoveLayer): Remove a layer from the legend.
7835 (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
7836 Should only be called with the id of a layer branch.
7837 (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
7838 Returns the root item or creates one if necessary.
7839
7840 * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
7841 ProjectRasterFile with tuple arguments instead of strings.
7842
7843 * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
7844 with try/finally. Fixes RTBug #1904.
7845
7846 * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
7847 with try/finally. Fixes RTBug #1904.
7848 (MapCanvas.FitSelectedToWindow): If a single point is selected
7849 simply center it on the display. Fixes RTBug #1849.
7850
7851 * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
7852 to be compiled as a standalone app. Now the code can only be
7853 called from Python which simplifies the parameter passing.
7854 (ProjectRasterFile): Handle Python arguments. Remove code that
7855 checks for a destination dataset. Add more clean up code.
7856
7857 * test/test_map.py (TestMapWithContents.test_raise_layer_top,
7858 TestMapWithContents.test_lower_layer_bottom):
7859 Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
7860 Fixes RTBug #1907.
7861
7862 * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
7863 extent to the map when the legend is toggled. Fixes RTBug #1881.
7864
7865 2003-05-29 Jan-Oliver Wagner <[email protected]>
7866
7867 * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
7868 unsubscribes all that is subcribed in __init__.
7869
7870 2003-05-28 Bernhard Herzog <[email protected]>
7871
7872 * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
7873 (MainWindow.CanDuplicateLayer): New methods to implement the
7874 Layer/Duplicate command.
7875 (layer_duplicate command): New.
7876 (main_menu): Add layer_duplicate to the Layer menu.
7877
7878 2003-05-28 Bernhard Herzog <[email protected]>
7879
7880 * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
7881 renderer so that NULL/None values get displayed differently (by a
7882 gray rectangle).
7883 (TableGrid.__init__): Override the default renderers
7884
7885 2003-05-28 Bernhard Herzog <[email protected]>
7886
7887 * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
7888 classification to "None" if the type of the field has changed.
7889
7890 * test/test_layer.py (SetShapeStoreTests): New. Class with a few
7891 test for the Layer.SetShapeStore method
7892
7893 2003-05-28 Jan-Oliver Wagner <[email protected]>
7894
7895 * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
7896 does not necessarily have a filename).
7897
7898 2003-05-28 Jan-Oliver Wagner <[email protected]>
7899
7900 * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
7901 sort the selection list for the dialog.
7902
7903 2003-05-28 Frank Koormann <[email protected]>
7904
7905 * extensions/thuban/wxproj.cpp
7906 (project_point): Removed cast to int for projected point coordinates.
7907 (shape_centroid): Return last point if all polygon vertices fall
7908 to one point.
7909
7910 2003-05-28 Bernhard Herzog <[email protected]>
7911
7912 * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
7913 with layers that don't have shapestores, i.e. raster layers.
7914
7915 2003-05-28 Bernhard Herzog <[email protected]>
7916
7917 * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
7918 when determining the title from the filename.
7919
7920 * test/test_dbf_table.py (TestDBFTable.test_title): Update to
7921 reflect changes in the way the title is derived from the filename
7922
7923 2003-05-28 Frank Koormann <[email protected]>
7924
7925 * Thuban/UI/mainwindow.py (MainWindow.TableShow):
7926 Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
7927
7928 2003-05-27 Bernhard Herzog <[email protected]>
7929
7930 * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
7931 delegate SelectedLayer.
7932 (MainWindow.LayerUnjoinTable): Implement.
7933 (_can_unjoin): New. Helper function for the sensitivity of the
7934 layer/unjoin command.
7935
7936 * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
7937 (DerivedShapeStore.OrigShapeStore): New. Return the original
7938 shapestore. Used to figure out how to unjoin.
7939 (DerivedShapeStore.Shapefile): Fix a typo.
7940
7941 2003-05-27 Bernhard Herzog <[email protected]>
7942
7943 * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
7944 well
7945 (JoinDialog.__init__): Use the layer parameter and only build the
7946 left choice when a layer is given
7947 (JoinDialog.OnJoin): Handle layer joins as well
7948 (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
7949 that the user selects the "Select..." item. The sensitivitly
7950 updating is now in update_sensitivity
7951 (JoinDialog.y): New method to refactor the sensitivity update of
7952 the join button into its own method.
7953
7954 * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
7955
7956 2003-05-27 Bernhard Herzog <[email protected]>
7957
7958 * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
7959 iff there are unreferenced tables in the session
7960
7961 2003-05-27 Bernhard Herzog <[email protected]>
7962
7963 * Thuban/Model/messages.py (TABLE_REMOVED): New message.
7964
7965 * Thuban/Model/session.py (Session.UnreferencedTables): New method
7966 to return tables that are not referenced by other tables or shape
7967 stores and can be removed.
7968 (Session.RemoveTable): Issue a TABLE_REMOVED message after
7969 removing the table
7970
7971 * Thuban/UI/mainwindow.py: Remove unused imports
7972 (MainWindow.TableClose): Implement.
7973
7974 * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
7975 messages so that the frame will be automatically closed when a new
7976 session is opened or the table is removed.
7977 (TableFrame.OnClose): Unsubscribe the Subscriptions made in
7978 __init__
7979 (TableFrame.close_on_session_replaced)
7980 (TableFrame.close_on_table_removed): New. Subscribers that close
7981 the window
7982
7983 * test/test_session.py (TestSessionMessages.test_remove_table)
7984 (TestSessionSimple.test_remove_table): Move the test to
7985 TestSessionSimple and add test for the TABLE_REMOVED message
7986 (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
7987 (TestSessionSimple.test_unreferenced_tables) New. Test for the
7988 UnreferencedTables method.
7989 (UnreferencedTablesTests): New. Class with some more sophisticated
7990 tests for UnreferencedTables.
7991
7992 2003-05-27 Frank Koormann <[email protected]>
7993
7994 * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
7995 display has some unwanted side effects. Removed again.
7996
7997 2003-05-27 Frank Koormann <[email protected]>
7998
7999 * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
8000
8001 * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
8002
8003 2003-05-27 Jan-Oliver Wagner <[email protected]>
8004
8005 * test/test_menu.py (MenuTest.test): Added test for
8006 Menu.RemoveItem().
8007
8008 * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
8009 the menu.
8010
8011 2003-05-27 Frank Koormann <[email protected]>
8012
8013 Nonmodal dialogs without parent (i.e. they can fall behind the main
8014 window)
8015
8016 * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
8017 all dialogs in the dialogs dictionary and the canvas.
8018
8019 * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
8020 parent, i.e. can fall behind other windows.
8021 (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
8022 dictionary before removing it.
8023
8024 * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
8025
8026 * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
8027 * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
8028 * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
8029
8030 2003-05-27 Bernhard Herzog <[email protected]>
8031
8032 * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
8033 tableview dialog
8034 (MainWindow.TableShow): Use ShowTableView to open the dialogs.
8035 Also, don't use the table's titles as the dialog names. The titles
8036 aren't guaranteed to be unique.
8037 (MainWindow.TableOpen): Open a table view dialog after opening the
8038 table
8039
8040 2003-05-27 Bernhard Herzog <[email protected]>
8041
8042 * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
8043 effect can be achieved by simply closing the window showing the
8044 table.
8045 (MainWindow.TableHide): Removed.
8046 (main_menu): Removed "table_hide"
8047
8048 2003-05-27 Frank Koormann <[email protected]>
8049
8050 Fix legend tree display problems under Win32
8051
8052 * Thuban/UI/legend.py: BMP_SIZE_W = 15
8053 (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
8054 (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
8055
8056 * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
8057
8058 2003-05-27 Jan-Oliver Wagner <[email protected]>
8059
8060 * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
8061 'after' now allows to insert separators almost anywhere in the menu.
8062
8063 2003-05-27 Frank Koormann <[email protected]>
8064
8065 * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
8066 "S" of selection box label to hint on hot key (Alt-S). Works under
8067 Win32 but is ignored under GTK.
8068
8069 2003-05-26 Frank Koormann <[email protected]>
8070
8071 * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
8072 Center Choices.
8073
8074 2003-05-26 Bernhard Herzog <[email protected]>
8075
8076 Remove the Precision methods again. They're too DBF specific to be
8077 part of the table interface and they're only used in table_to_dbf
8078 anyway.
8079
8080 * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
8081 fixed precision of 12 for doubles.
8082 (TransientTableBase.Precision): Removed
8083 (AutoTransientTable.Width): Delegate to self.table.
8084
8085 * Thuban/Model/table.py (DBFTable.Precision)
8086 (MemoryTable.Precision): Removed.
8087 (MemoryTable.Width): Use a fixed precision of 12 for doubles.
8088 (table_to_dbf): Use a fixed precision of 12 for floats unless the
8089 column object specifies something else.
8090
8091 * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
8092 test for table_to_dbf
8093
8094 2003-05-26 Bernhard Herzog <[email protected]>
8095
8096 * test/test_transientdb.py
8097 (TestTransientTable.run_iceland_political_tests): Fix a comment.
8098
8099 2003-05-26 Bernhard Herzog <[email protected]>
8100
8101 * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
8102 implementation. Mark parts of the file format strings for
8103 localization.
8104
8105 * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
8106 file and add the table to the tables managed by the session
8107
8108 * test/test_session.py (TestSessionSimple.test_open_table_file):
8109 New. test case for OpenTableFile
8110
8111 2003-05-26 Jan-Oliver Wagner <[email protected]>
8112
8113 * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
8114 Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
8115 Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
8116 Replace the true/false of wxWindows by True/False of Python 2.2.1.
8117
8118 2003-05-26 Jan-Oliver Wagner <[email protected]>
8119
8120 * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
8121 already a selection present, update the grid accordingly.
8122
8123 * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
8124 resizeable and increase its initial size.
8125
8126 2003-05-26 Frank Koormann <[email protected]>
8127
8128 Table export functionality
8129
8130 * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
8131 Return width (in characters) for a column.
8132 (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
8133 (table_to_dbf): Write table to dbf file.
8134 (table_to_csv): Write table to csv file.
8135
8136 * Thuban/Model/transientdb.py (TransientTableBase.Width,
8137 TransientTableBase.Precision): Return column width and precision.
8138
8139 * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
8140 or table_to_csv depending on file selection.
8141
8142 * test/test_dbf_table.py:
8143 Test table_to_dbf (extension of former part of test).
8144
8145 * test/test_csv_table.py:
8146 Test table_to_csv.
8147
8148 2003-05-23 Jan-Oliver Wagner <[email protected]>
8149
8150 * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
8151 Use QueryTableFrame instead of TableFrame.
8152
8153 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
8154 table window with 'Layer Table:' instead of 'Table:'.
8155
8156 2003-05-23 Jan-Oliver Wagner <[email protected]>
8157
8158 Give all tables a title via mix-in TitledObject.LayerShowTable
8159
8160 * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
8161 only if it exists.
8162
8163 * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
8164 and call its init-method with a default title. Remove Title() method.
8165
8166 * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
8167 AutoTransientTable): mix-in TitledObject and call its init-method with
8168 a default title. Remove Title() method.
8169
8170 2003-05-23 Bernhard Herzog <[email protected]>
8171
8172 * Thuban/Model/session.py (Session.AddShapeStore): Define
8173 AddShapeStore analogously to AddTable.
8174
8175 * test/test_session.py (TestSessionSimple.test_add_shapestore):
8176 New. Test for AddShapeStore
8177
8178 2003-05-23 Jan-Oliver Wagner <[email protected]>
8179
8180 Introducing QueryTableFrame and a very coarse ShowTable implementation.
8181
8182 * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
8183 class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
8184 The latter implements the selection GUI without dependency on a layer.
8185 LayerTableFrame now is derived from QueryTableFrame and connects
8186 to a layer.
8187
8188 * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
8189 implementation that still needs work.
8190
8191 * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
8192
8193 2003-05-22 Frank Koormann <[email protected]>
8194
8195 * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
8196 Added "outer_join = False" as optional parameter.
8197 (TransientJoinedTable.create): If outer join is true, perform a
8198 "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
8199 the left table. Records not matching are filled with 0 / None.
8200
8201 * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
8202 (JoinDialog.OnJoin): Consider outer join check box.
8203
8204 2003-05-22 Bernhard Herzog <[email protected]>
8205
8206 * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
8207 somewhat safer way. Storing the traceback in a local variable can
8208 lead to memory leaks
8209
8210 2003-05-22 Bernhard Herzog <[email protected]>
8211
8212 * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
8213 the wxMessageDialog's Destroy() method.
8214
8215 2003-05-22 Frank Koormann <[email protected]>
8216
8217 * Thuban/UI/join.py (JoinDialog.__init__): Make use of
8218 TransientTable.Title()
8219
8220 2003-05-22 Frank Koormann <[email protected]>
8221
8222 Join Dialog, initial version.
8223
8224 * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
8225
8226 * Thuban/UI/join.py (JoinDialog): Functional implementation of
8227 former framework. Renamed Table1/Table2 to LeftTable/RightTable
8228 in all occurences.
8229
8230 * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
8231 Typo fixed.
8232
8233 2003-05-22 Bernhard Herzog <[email protected]>
8234
8235 Give the tables titles so that the GUI can display more meaningful
8236 names. For now the titles are fixed but depend on e.g. filenames
8237 or the titles of the joined tables.
8238
8239 * Thuban/Model/transientdb.py (TransientTable.Title)
8240 (TransientJoinedTable.Title, AutoTransientTable.Title): New.
8241
8242 * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
8243
8244 * test/test_transientdb.py
8245 (TestTransientTable.test_auto_transient_table_title): New. Test
8246 for the Title method
8247 (TestTransientTable.test_transient_joined_table)
8248 (TestTransientTable.test_transient_table): Add test for the Title
8249 methods
8250
8251 * test/test_memory_table.py (TestMemoryTable.test_title): New.
8252 Test for the Title method
8253
8254 * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
8255 the Title method
8256
8257 2003-05-22 Bernhard Herzog <[email protected]>
8258
8259 * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
8260 Provide a better way to destroy the layers
8261 (TestLayer.test_base_layer, TestLayer.test_arc_layer)
8262 (TestLayer.test_point_layer, TestLayer.test_empty_layer)
8263 (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
8264 the new way to destroy the layers.
8265 (TestLayer.test_derived_store): New. Test for using a layer with a
8266 DerivedShapeStore
8267
8268 * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
8269 filename if the shape store actually has one.
8270
8271 2003-05-22 Bernhard Herzog <[email protected]>
8272
8273 * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
8274 for the filename
8275
8276 * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
8277 for the FileName method
8278 (TestDBFTableWriting.test_write): Fix spelling of filename
8279
8280 2003-05-22 Thomas Koester <[email protected]>
8281
8282 * Thuban/Model/range.py, test/test_range.py: Brought over new Range
8283 from SciParam that now really is immutable.
8284
8285 2003-05-22 Frank Koormann <[email protected]>
8286
8287 Layer Top/Bottom placement added to legend.
8288
8289 * Thuban/UI/legend.py
8290 (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
8291 bound to tool events.
8292 (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
8293 New, methods binding the event methods with the map methods.
8294
8295 * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
8296 layer at top/bottom of layer stack.
8297
8298 * Resources/Bitmaps/top_layer.xpm: New button icon.
8299
8300 * Resources/Bitmaps/bottom_layer.xpm: New button icon.
8301
8302 2003-05-22 Bernhard Herzog <[email protected]>
8303
8304 * Thuban/Model/session.py (Session.RemoveTable): New method to
8305 remove tables
8306
8307 * test/test_session.py (TestSessionSimple.test_remove_table): New.
8308 Test for RemoveTable
8309
8310 2003-05-22 Thomas Koester <[email protected]>
8311
8312 * Thuban/Model/classgen.py: Added short module doc string and CVS id.
8313 (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
8314
8315 2003-05-22 Bernhard Herzog <[email protected]>
8316
8317 Implement a way to discover dependencies between tables and
8318 shapestores.
8319
8320 * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
8321 (TransientJoinedTable.Dependencies)
8322 (AutoTransientTable.SimpleQuery): New. Implement the dependencies
8323 interface
8324 (TransientJoinedTable.__init__): Keep tack of the original table
8325 objects in addition to the corresponding transient tables.
8326
8327 * Thuban/Model/table.py (DBFTable.Dependencies)
8328 (MemoryTable.Dependencies): New. Implement the dependencies
8329 interface
8330
8331 * Thuban/Model/data.py (ShapeTable): New. Helper class for
8332 ShapefileStore
8333 (ShapefileStore.__init__): Use ShapeTable instead of
8334 AutoTransientTable
8335 (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
8336 (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
8337 methods for filename and type
8338 (ShapefileStore.Dependencies): New. Implement the dependencies
8339 interface
8340 (DerivedShapeStore): New class to replace SimpleStore. The main
8341 difference to SimpleStore is that it depends not on a shapefile
8342 but another shapestore which expresses the dependencies a bit
8343 better
8344 (SimpleStore.__init__): Add deprecation warning.
8345
8346 * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
8347 Test for the Dependencies method.
8348
8349 * test/test_memory_table.py (TestMemoryTable.test_dependencies):
8350 New. Test for the Dependencies method.
8351
8352 * test/test_transientdb.py
8353 (TestTransientTable.test_auto_transient_table_dependencies): New.
8354 Test for the Dependencies method.
8355 (TestTransientTable.test_transient_joined_table): Add test for the
8356 Dependencies method.
8357
8358 * test/test_session.py (TestSessionSimple.setUp)
8359 (TestSessionSimple.tearDown): New. Implement a better way to
8360 destroy the sessions.
8361 (TestSessionSimple.test_initial_state)
8362 (TestSessionSimple.test_add_table): Bind session to self.session
8363 so that it's destroyed by tearDown
8364 (TestSessionSimple.test_open_shapefile): New. Test for
8365 OpenShapefile and the object it returns
8366
8367 2003-05-22 Bernhard Herzog <[email protected]>
8368
8369 * Thuban/Model/session.py (Session.AddTable): New method to
8370 register tables with the session.
8371 (Session.Tables): Return the tables registered with AddTable too.
8372
8373 * test/test_session.py (TestSessionSimple.test_add_table): New.
8374 Test case for the AddTable method
8375
8376 2003-05-22 Frank Koormann <[email protected]>
8377
8378 UI polishing updates: Place main buttons (OK, Cancel, etc) in the
8379 lower right corner, center labels for selections, initialize controls
8380 in reasonable order for keyboard navigation.
8381
8382 * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
8383 (ProjFrame.__DoOnProjAvail): Determine position of current projection
8384 using the wxListBox.FindString() method. Still a problem (#1886)
8385
8386 * Thuban/UI/classifier.py
8387 (Classifier.__init__, SelectPropertiesDialog.__init__)
8388
8389 * Thuban/UI/classgen.py (ClassGenDialog.__init__,
8390 (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
8391 different classification types from here to __init__.
8392 (GenUniquePanel.__init__): Set the column width of the first field
8393 in the Field ListCtrl to the full width.
8394
8395 * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
8396 Button to 'Export'. Center Buttons in Selection Box, set Focus to
8397 Grid.
8398 (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
8399 changes focus to the Selection when pressing "Alt-S".
8400
8401 * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
8402 the text if not visible. The italic font sometimes exceeds the
8403 rendering area.
8404
8405 2003-05-21 Jonathan Coles <[email protected]>
8406
8407 * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
8408 to OnClose so that Thuban closes correctly.
8409
8410 * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
8411 DockFrame.OnClose, not DockFrame._OnClose.
8412
8413 2003-05-21 Jonathan Coles <[email protected]>
8414
8415 * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
8416 references to 'inf' and use new Range __init__ to pass floats
8417 directly rather than converting them to strings first.
8418 Fixes RTBug #1876.
8419
8420 * Thuban/Model/classification.py (ClassGroupRange.SetRange):
8421 Use new Range ___init__ to pass floats.
8422
8423 * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
8424 filename is a valid image file. Throw IOError otherwise.
8425
8426 * Thuban/Model/range.py: Brought over new Range from SciParam that
8427 is immutable and has an __init__ which can accept floats.
8428
8429 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
8430 into try block. AddLayer doesn't throw any exceptions anymore.
8431 (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
8432 try block.
8433
8434 * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
8435 the first item in choices. Fixes RTBug #1882.
8436
8437 * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
8438 has gone to 0 which is a serious problem. abort.
8439 (MapRenderer.draw_raster_layer): Catch IOError seperately and
8440 print the error from GDAL.
8441
8442 * Thuban/UI/tableview.py (TableGrid.__init__): Call
8443 ToggleEventListeners to turn on listening.
8444 (TableGrid.ToggleEventListeners): New. Turns event listening on
8445 and off so as to prevent excessive messages.
8446 (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
8447 to suppress excessive messages when selecting many rows.
8448 Fixes RTBug #1880.
8449
8450 * Thuban/UI/view.py: Added checks against if scale == 0. This
8451 is a serious problem that can occur when an image without
8452 geo data is loading and causes the map projection bounds to
8453 go to infinity. Right now, the solution is to simply try
8454 to recover.
8455
8456 * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
8457 to set the MFILEReceiver attributes even if the data is NULL.
8458
8459 * extensions/thuban/gdalwarp.cpp: Improved the error handling
8460 and passed GDAL messages back up to the Python layer. Also
8461 tried to fix some memory leaks that were present in the original
8462 utility but didn't matter because the program aborted.
8463
8464 * test/test_range.py: Copied over tests from SciParam. Removed
8465 tests against importing. Fixes RTBug #1867.
8466
8467 2003-05-21 Bernhard Herzog <[email protected]>
8468
8469 * test/test_load.py: Remove unused imports and restructure the
8470 test code
8471 (LoadSessionTest): Split into one class for each test and turn
8472 LoadSessionTest itself into the base class for all such session
8473 tests.
8474 (ClassificationTest): New base class for load tests that test
8475 classifications
8476 (TestSingleLayer, TestLayerVisibility, TestClassification)
8477 (TestLabels, TestLayerProjection, TestRasterLayer): New classes
8478 for the individual tests
8479
8480 * test/support.py (FileLoadTestCase.filename): New base class for
8481 file loading tests
8482
8483 2003-05-21 Jan-Oliver Wagner <[email protected]>
8484
8485 * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
8486 Mercator' to 'UTM Zone 32' as a more convenient example.
8487 Added 'Gauss Krueger Zone 6'.
8488
8489 * Data/iceland_sample_raster.thuban: political polygon now
8490 filled transparent to have the raster image visible at once.
8491
8492 2003-05-21 Frank Koormann <[email protected]>
8493
8494 * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
8495 OnClose() to keep in sync with extensions. Internally Thuban
8496 still uses "underscored" names.
8497
8498 2003-05-20 Jonathan Coles <[email protected]>
8499
8500 This puts back Raster layer support. These layers support projections
8501 through the GDAL library. Currently, the CVS version is being used.
8502 There are no Debian packages available although this may change soon.
8503 A GDAL driver was extended to support writing to memory rather to
8504 files.
8505
8506 There is still some work that needs to be done, such as some error
8507 handling when loading invalid images or when there is a problem
8508 projecting the image. This putback simply checks in the majority
8509 of the work.
8510
8511 * setup.py: Add gdalwarp library extension.
8512
8513 * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
8514 Defaults to False, but can be overridden by subclasses if they
8515 support classification.
8516 (RasterLayer): New. Defines a new layer that represents an
8517 image.
8518
8519 * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
8520 tag handler.
8521 (SessionLoader.start_layer): Encode the filename.
8522 (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
8523 New. Supports reading a rasterlayer tag.
8524
8525 * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
8526
8527 * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
8528 get a string in Latin1. If we get such as string convert it to
8529 unicode first, otherwise leave if alone before encoding.
8530 (SessionSaver.write_layer): Add support for writing both Layers
8531 and RasterLayers.
8532
8533 * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
8534 The right argument may not be a string, it could also be a Column.
8535
8536 * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
8537 Make initial window size 600x400. Fixes RTBug #1872.
8538
8539 * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
8540 the dialog is constructed so that we can support layers that
8541 do not have classifications.
8542 (Classifier._OnTry): Only build a classification if the layer
8543 supports one.
8544
8545 * Thuban/UI/legend.py: Change all checks that a layer is an
8546 instance of Layer into checks against BaseLayer.
8547 (LegendTree.__FillTreeLayer): Only add children to a branch if
8548 the layer supports classification.
8549
8550 * Thuban/UI/mainwindow.py (MainWindow.NewSession,
8551 MainWindow.OpenSession): Don't proceed with an action if the
8552 user chooses Cancel when they are asked to save changes.
8553 (MainWindow.AddRasterLayer): New. Open a dialog to allow the
8554 user to select an image file. Create a new RasterLayer and add
8555 it to the map.
8556
8557 * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
8558 for rendering RasterLayer layers.
8559 (MapRenderer.draw_raster_layer): Actually method that calls
8560 the GDALWarp python wrapper and constructs an image from the
8561 data returned.
8562
8563 * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
8564 Choices symbols to match those used in the table query method.
8565 Replace deprecated method calls on table with new method names.
8566
8567 * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
8568 how small the scale can get. This still needs more testing.
8569
8570 * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
8571 Provides a driver to output in .bmp format.
8572
8573 * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
8574 New. Provides IO routines which write to memory, rather than a file.
8575
8576 * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
8577 of the gdalwarp utility provided in GDAL. Added function calls
8578 that can be accessed from python.
8579
8580 * Data/iceland_sample_raster.thuban: New. Sample file that uses
8581 a raster layer.
8582
8583 * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
8584 layer image data.
8585
8586 * Doc/thuban.dtd: Added rasterlayer attribute definition.
8587
8588 * test/test_layer.py, test/test_load.py, test/test_save.py: Added
8589 tests associated with the raster layer code.
8590
8591 * test/test_transientdb.py
8592 (TestTransientTable.test_auto_transient_table_query): Added a test
8593 for using a Column object as the "right" parameter to a query.
8594
8595 2003-05-19 Frank Koormann <[email protected]>
8596
8597 * Thuban/version.py (get_changelog_date):
8598 Catch exceptions if ChangeLog does not exist.
8599
8600 * Thuban/UI/view.py (MapCanvas.Export): Bugfix
8601
8602 2003-05-19 Frank Koormann <[email protected]>
8603
8604 Extended version information for Thuban
8605
8606 * Thuban/version.py: New, version information for Thuban: Last
8607 modification date and last ChangeLog entry date.
8608
8609 * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
8610 information: Display Thuban, wxPython and Python version.
8611
8612 2003-05-16 Bernhard Herzog <[email protected]>
8613
8614 * Thuban/Model/save.py: Remove some unused imports including the
8615 __future__ import for nested_scopes as Thuban relies on Python 2.2
8616 now.
8617 (XMLWriter.encode): Remove the special case for a None argument.
8618 In the saver encode is always called with a string argument.
8619
8620 2003-05-16 Bernhard Herzog <[email protected]>
8621
8622 * Thuban/UI/__init__.py: Remove the work-around for the locale bug
8623 in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
8624 of the bug was that e.g. float("1.2") would fail. Thuban now
8625 requires 2.4.x.
8626
8627 2003-05-16 Frank Koormann <[email protected]>
8628
8629 Printing enhancement and WMF export (under Win32)
8630
8631 * Thuban/UI/renderer.py (ExportRenderer): New, derived from
8632 ScreenRenderer. Renders Map, Legend and Scalebar for export.
8633 (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
8634 PrintRender.
8635
8636 * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
8637 to fullfil information needed for PrinterRenderer.
8638 (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
8639 (MapCanvas.Print): Adapted to new MapPrintout.
8640 (OutputTransform): General calculations to transform from canvas
8641 coordinates to export/printing devices.
8642
8643 * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
8644 new method_command to call ExportMap, with platform dependency (only
8645 __WXMSW__)
8646
8647 * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
8648 of scalebar drawing area as new parameters.
8649
8650 * Thuban/Model/scalebar.py (roundInterval): round long instead of int
8651
8652 * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
8653 Update to extended scalebar.DrawScalebar header.
8654
8655 * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
8656
8657 * test/test_scalebar.py: Made test executable as standalone.
8658
8659 2003-05-16 Bernhard Herzog <[email protected]>
8660
8661 * Thuban/Model/table.py (Table): Remove this compatibility alias
8662 for DBFTable.
8663
8664 * test/test_table.py: Import DBFTable as Table because that alias
8665 doesn't exist anymore.
8666
8667 * Thuban/UI/classgen.py: Remove some unused imports
8668
8669 2003-05-14 Jonathan Coles <[email protected]>
8670
8671 * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
8672 Fix docstring.
8673 (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
8674 (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
8675 values of the supplied range to determine the beginning and end
8676 bounds of the generated classes.
8677
8678 * Thuban/Model/range.py (Range.number_re): Now accepts floats that
8679 do not have a leading 0 (.5 is now accepted as well as 0.5).
8680
8681 * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
8682 call to ClassGenerator.GenUniformDistribution.
8683
8684 * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
8685 layout bug with the 'Projection' label.
8686
8687 * test/support.py (FloatTestCase): New. Needed for the Range tests.
8688
8689 * test/test_range.py: New. Imported from SciParam.
8690
8691 2003-05-12 Jonathan Coles <[email protected]>
8692
8693 * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
8694 to table.UniqueValues() with calls that retrieve all the values
8695 from the table. This will need to be replaced by a method on table
8696 which can simply return the list (perhaps more efficiently).
8697
8698 2003-05-12 Jonathan Coles <[email protected]>
8699
8700 The return value of ClassGenerator.CalculateQuantiles has changed.
8701 Refer to the documentation for details.
8702
8703 * test/test_classgen.py: Modified Quantile tests to use the
8704 new return values.
8705
8706 * Thuban/Model/classgen.py
8707 (ClassGenerator.GenQuantiles): Add comments describing the parameters,
8708 use new return values from CalculateQuantiles to produce the correct
8709 range bounds in the Classification.
8710 (ClassGenerator.CalculateQuantiles): Add more comments describing
8711 the return values and parameters. Make minor adjustments to improve
8712 the legibility of the code. Fix problem with adjusted not being set
8713 in most cases.
8714
8715 2003-05-12 Frank Koormann <[email protected]>
8716
8717 * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
8718 and latin1. Fixes #1851 finally.
8719
8720 2003-05-09 Jonathan Coles <[email protected]>
8721
8722 * test/test_classgen.py: New. Tests the Quantile algorithm.
8723
8724 * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
8725 Clean up debugging statement, add comments, fix a small bug in the
8726 returned adjusted percentiles.
8727
8728 2003-05-09 Jonathan Coles <[email protected]>
8729
8730 Introduces Range class from SciParam into the ClassGroupRange class,
8731 and such ranges can now be saved and loaded from disk.
8732
8733 Quantiles are now available in the Classification Generator.
8734
8735 Initial support for building Queries on a table. Doesn't do anything
8736 but run some tests.
8737
8738 * Thuban/Model/classification.py: Explicit imports.
8739 (ClassGroupRange): Use the Range class to store the underlying
8740 range information. The interface remains the same, except for
8741 GetRange(), and you can also supply a Range object as the min
8742 parameter to SetRange or __init__.
8743
8744 * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
8745 string appropriately for use in Thuban. Fixes RTbug #1851.
8746 (SessionLoader.end_projection): Handle the context of the
8747 projection tag a bit better by looking at what objects are not
8748 None. There was an assumption that a projection tag for a map
8749 could occur before any layers.
8750 (SessionLoader.start_clrange): Provide backward compatibility for
8751 reading min/max values as well as the new range parameter.
8752
8753 * Thuban/Model/map.py: Explicit imports.
8754
8755 * Thuban/Model/resource.py: Import _.
8756 (ProjFileSaver.write): write header using projfile.dtd.
8757
8758 * Thuban/Model/save.py: Explicit imports.
8759 (XMLWriter.encode): New. Encode the given string from a format
8760 used by Thuban into UTF-8. Fixes RTbug #1851.
8761
8762 * Thuban/UI/classgen.py: Explicit imports.
8763 (ClassGenDialog.__init__): Clean up the code and add support
8764 for Quantiles.
8765 (ClassGenDialog.OnOK): Add support for Quantiles.
8766 (GenQuantilesPanel): New. Input panel for Quantiles.
8767 (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
8768 GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
8769
8770 * Thuban/Model/classgen.py: New. Contains all the classes named above.
8771
8772 * Thuban/UI/classifier.py: Explicit imports.
8773 (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
8774 ClassTable.SetValueAsCustom): Reworked to use new Range class.
8775
8776 * Thuban/UI/legend.py: Explicit imports.
8777
8778 * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
8779 a Table menu and associated method calls.
8780 (MainWindow.choose_color): Removed. No longer needed.
8781
8782 * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
8783 should be disabled if no projection is selected in the available
8784 list.
8785
8786 * Thuban/UI/renderer.py: Explicit imports.
8787
8788 * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
8789 with correctly selecting the rows and issuing the right events.
8790 Be sure to call Skip() to allow the grid to do some of its own
8791 handling which allows the rows to actually be selected.
8792 (LayerTableGrid.select_shapes): Rename from select_shape. Supports
8793 selecting multiple shapes.
8794 (LayerTableFrame): Support for building Queries.
8795 (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
8796
8797 * Thuban/UI/tree.py: Explicit imports.
8798
8799 * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
8800 table view can call it.
8801
8802 * test/test_classification.py: Explicit imports.
8803 (TestClassification.test_ClassGroupRange): Fix test for new
8804 Range class.
8805
8806 * Doc/thuban.dtd: Add range parameter for clrange.
8807
8808 * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
8809 object in ClassGroupRange, and also uesd for inputting ranges in
8810 the classifer table and elsewhere.
8811
8812 * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
8813 yet.
8814
8815 2003-05-09 Frank Koormann <[email protected]>
8816
8817 * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
8818
8819 2003-05-08 Frank Koormann <[email protected]>
8820
8821 Coding style updates
8822
8823 * test/test_scalebar.py: Replaced tab indentation by spaces.
8824
8825 * Thuban/UI/scalebar.py: Explicit imports.
8826
8827 2003-05-08 Frank Koormann <[email protected]>
8828
8829 * Thuban/UI/scalebar.py
8830 (ScaleBar.DrawScalebar): Format string bug fixed.
8831
8832 2003-05-08 Frank Koormann <[email protected]>
8833
8834 Reorganization of scalebar component (no wx in Thuban/Model)
8835
8836 * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
8837 (deriveInterval):
8838 Calculate scalebar interval and unit which fits in width for scale.
8839 (roundInterval): Round float.
8840
8841 * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
8842
8843 * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
8844
8845 * Thuban/UI/legend.py: Import Thuban.UI.scalebar
8846
8847 2003-05-08 Frank Koormann <[email protected]>
8848
8849 * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
8850 Initialize ScaleBar with canvas.map
8851
8852 * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
8853 round intervals to display smarter lengths
8854 (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
8855 layer. If the maps has no projection applied grey the scalebar.
8856
8857 2003-05-07 Frank Koormann <[email protected]>
8858
8859 Basic Scalebar features added.
8860
8861 * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
8862
8863 * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
8864 (ScaleBarBitmap): New, links the scalebar bitmap with view messages
8865 and the renderer.
8866
8867 * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
8868
8869 * Thuban/UI/messages.py: SCALE_CHANGED added.
8870
8871 2003-05-07 Bernhard Herzog <[email protected]>
8872
8873 * Thuban/Model/session.py (Session.__init__): New instance
8874 variable shapestores to hold a list of all open shapestore objects
8875 (Session.ShapeStores): New. Accessor method for the shapestores
8876 list.
8877 (Session._add_shapestore, Session._clean_weak_store_refs): New.
8878 Internal methods to maintain the shapestores list.
8879 (Session.Tables): New. Return all tables open in the session.
8880 (Session.OpenShapefile): Insert the new ShapeStore into the
8881 shapestores list.
8882
8883 * test/test_session.py (TestSessionSimple.test_initial_state): Add
8884 tests for ShapeStores and Tables
8885 (TestSessionWithContent.test_shape_stores)
8886 (TestSessionWithContent.test_tables): New. Test cases for
8887 ShapeStores and Tables
8888
8889 2003-05-07 Bernhard Herzog <[email protected]>
8890
8891 * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
8892 Add comments about the optimizations used.
8893 (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
8894 Implement the ReadValue table interface method.
8895
8896 * test/test_transientdb.py
8897 (TestTransientTable.run_iceland_political_tests)
8898 (TestTransientTable.test_transient_joined_table): Add tests for
8899 ReadValue
8900
8901 2003-05-07 Frank Koormann <[email protected]>
8902
8903 * Resources/Bitmaps/fulllayerextent.xpm,
8904 Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
8905 new icons.
8906
8907 2003-05-06 Bernhard Herzog <[email protected]>
8908
8909 * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
8910 New. Simply delegate to the transient table's version.
8911
8912 * test/test_transientdb.py
8913 (TestTransientTable.test_auto_transient_table_query): New. Test
8914 case for AutoTransientTable's SimpleQuery
8915
8916 2003-05-06 Bernhard Herzog <[email protected]>
8917
8918 * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
8919 Implement a simple query method for the query dialog
8920 (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
8921 the row index or shapeid.
8922 (TransientTable.create): Insert the right value of the row index
8923 (TransientJoinedTable.create): Copy the row index of the left
8924 table to the joined result table
8925
8926 * test/test_transientdb.py
8927 (TestTransientTable.test_transient_table_read_twice): Fix
8928 doc-string
8929 (TestTransientTable.test_transient_table_query): New. Test for the
8930 SimpleQuery method
8931
8932 2003-05-06 Bernhard Herzog <[email protected]>
8933
8934 Convert all table users to use the new table interface. This only
8935 covers Thuban itself, not GREAT-ER or other applications built on
8936 Thuban yet, so the compatibility interface stays in place for the
8937 time being but it now issues DeprecationWarnings.
8938
8939 Finally, the new Table interface has a new method, HasColumn.
8940
8941 * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
8942 issue deprecation warnings when they're. The warnings refer to the
8943 caller of the method.
8944 (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
8945 for the deprecation warnings
8946
8947 * test/test_table.py: Ignore the deprecation warnings for the old
8948 table in the tests in this module. The purpose of the tests is to
8949 test the old interface, after all.
8950
8951 * test/test_transientdb.py
8952 (TestTransientTable.run_iceland_political_tests): Use the
8953 constants for the types. Add a test for HasColumn
8954 (TestTransientTable.test_transient_joined_table): Adapt to new
8955 table interface. Add a test for HasColumn
8956 (TestTransientTable.test_transient_table_read_twice): Adapt to new
8957 table interface
8958
8959 * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
8960 Adapt to new table interface
8961
8962 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
8963 new table interface
8964
8965 * Thuban/UI/controls.py (RecordListCtrl.fill_list)
8966 (RecordTable.SetTable): Adapt to new table interface
8967
8968 * Thuban/UI/classifier.py (Classifier.__init__)
8969 (Classifier.__init__): Adapt to new table interface
8970
8971 * Thuban/UI/classgen.py (ClassGenDialog.__init__)
8972 (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
8973 to new table interface
8974
8975 * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
8976 (AutoTransientTable.HasColumn): Implement the new table interface
8977 method
8978 (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
8979 (AutoTransientTable.UniqueValues): Adapt to new table interface
8980
8981 * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
8982 Adapt to new table interface
8983
8984 * test/test_layer.py (TestLayer.open_shapefile): Helper method to
8985 simplify opening shapefiles a bit easier.
8986 (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
8987 (TestLayer.test_point_layer): Use the new helper method
8988 (TestLayer.test_get_field_type): New. Test for the GetFieldType
8989 method
8990
8991 * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
8992 the new table method
8993
8994 * test/test_memory_table.py (TestMemoryTable.test_has_column):
8995 Test for the new table method HasColumn
8996
8997 2003-05-06 Jonathan Coles <[email protected]>
8998
8999 Addresses the "Selection Extent" wish of RTbug #1787.
9000
9001 * Resources/Bitmaps/fulllayerextent.xpm,
9002 Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
9003 extent. These are just place holders for the real bitmaps.
9004
9005 * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
9006 calculate the bounding box once (the first time compute_bbox() is
9007 called).
9008 (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
9009 the bounding box for the shapes in lat/long coordinates.
9010
9011 * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
9012 option.
9013 (MainWindow.has_selected_shapes): New. Returns true if there are
9014 any selected shapes.
9015 (MainWindow.FullSelectionExtent): New. Calls
9016 MapCanvas.FitSelectedToWindow() when the user selects the menu option.
9017 (_has_selected_shapes): New. Returns true if there are any
9018 selected shapes.
9019
9020 * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
9021 true if there are any selected shapes.
9022
9023 * Thuban/UI/view.py (MapCanvas): Added delegated method
9024 HasSelectedShapes.
9025 (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
9026 shapes on the canvas using the map projection (if any).
9027
9028 * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
9029 for Layer.ShapesBoundingBox().
9030
9031 2003-05-06 Bernhard Herzog <[email protected]>
9032
9033 * Resources/Projections/defaults.proj: Fix spelling of Mercator
9034
9035 2003-05-05 Jonathan Coles <[email protected]>
9036
9037 Addresses the "Full Layer Extent" wish of RTbug #1787.
9038
9039 * Resources/Projections/defaults.proj: Added UK National Grid.
9040
9041 * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
9042 (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
9043 when the user selects the menu option.
9044
9045 * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
9046 scales the given layer on the canvas using the map projection.
9047
9048 2003-05-05 Bernhard Herzog <[email protected]>
9049
9050 Convert the table implementations to a new table interface. All
9051 tables use a common mixin class to provide backwards compatibility
9052 until all table users have been updated.
9053
9054 * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
9055 provide backwards compatibility for table classes implementing the
9056 new interface
9057 (DBFTable, MemoryTable): Implement the new table interface. Use
9058 OldTableInterfaceMixin as base for compatibility
9059 (DBFColumn, MemoryColumn): New. Column description for DBFTable
9060 and MemoryTable resp.
9061
9062 * test/test_dbf_table.py: New. Test cases for the DBFTable with
9063 the new table interface.
9064
9065 * test/test_memory_table.py: New. Test cases for the MemoryTable
9066 with the new table interface.
9067
9068 * test/test_table.py: Document the all tests in this file as only
9069 for backwards compatibility. The equivalent tests for the new
9070 interface are in test_memory_table.py and test_dbf_table.py
9071 (MemoryTableTest.test_read): field_info should be returning tuples
9072 with four items
9073 (MemoryTableTest.test_write): Make doc-string a more precise.
9074
9075 * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
9076 table interface. Derive from from OldTableInterfaceMixin for
9077 compatibility.
9078 (TransientTableBase.create): New intance variable column_map to
9079 map from names and indices to column objects
9080 (TransientTable.create): Use the new table interface of the input
9081 table
9082 (AutoTransientTable): Convert to new table interface. Derive from
9083 from OldTableInterfaceMixin for compatibility.
9084 (AutoTransientTable.write_record): Removed. It's not implemented
9085 yet and we still have to decide how to handle writing with the new
9086 table and data framework.
9087
9088 * test/test_transientdb.py
9089 (TestTransientTable.run_iceland_political_tests)
9090 (TestTransientTable.test_transient_joined_table): Use the new
9091 table interface
9092
9093 2003-05-05 Jonathan Coles <[email protected]>
9094
9095 This is namely a collection of UI updates to improve user interactivity.
9096 Tabbing between controls now exists and you can use ESC to close dialog
9097 boxes; ENTER will active the default button.
9098
9099 * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
9100 order that the controls are created so that tabbing works correctly.
9101 (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
9102 wxDialog can handle the default button correctly.
9103 (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
9104 same reasons as for OnOK.
9105 (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
9106 when we ask the table for the maximum/minimum values of a field
9107 which could take a very long time.
9108
9109 * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
9110 order that the controls are created so that tabbing works correctly.
9111 (SelectPropertiesDialog.__init__): Rearrange the order that the
9112 controls are created so that tabbing works correctly.
9113
9114 * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
9115 to derive from a wxDialog but behave like the original implementation
9116 which was derived from a wxFrame. wxDialog provides useful key
9117 handling functionality like ESC calling OnCancel and ENTER calling
9118 OnOK which is lost with wxFrame.
9119
9120 * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
9121 new dialogs.
9122
9123 * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
9124 order that the controls are created so that tabbing works correctly.
9125 (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
9126 (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
9127 (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
9128 (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
9129 can provide the "UK National Grid" as a default projection.
9130 (UTMPanel.__init__): Rearrange the order that the controls are
9131 created so that tabbing works correctly.
9132
9133 2003-05-05 Bernhard Herzog <[email protected]>
9134
9135 * extensions/thuban/wxproj.cpp: Fix some of the comments.
9136 (project_point): If a map projection but no layer projection is
9137 given, convert degrees to radians before applying the map
9138 projection.
9139
9140 * Thuban/UI/tableview.py (TableGrid.disallow_messages)
9141 (TableGrid.allow_messages): New methods to make it possible to
9142 inhibit message sending.
9143 (TableGrid.issue): Only send the message if not inhibited.
9144 (LayerTableGrid.select_shape): Use the new methods to make sure
9145 that no ROW_SELECTED message is sent while we're updating the
9146 selected rows to match the selected shapes.
9147
9148 2003-05-02 Jan-Oliver Wagner <[email protected]>
9149
9150 Implementation of MemoryTable.
9151
9152 * Thuban/Model/table.py (MemoryTable): New. Quite simple table
9153 implementation that operates on a list of tuples. All of the data
9154 are kept in the memory.
9155
9156 * test/test_table.py (MemoryTableTest): New.
9157
9158 * test/test_transientdb.py (SimpleTable): Removed.
9159 (TestTransientTable.test_transient_joined_table,
9160 (TestTransientTable.test_transient_table_read_twice): Replaced
9161 SimpleTable by MemoryTable.
9162
9163 2003-04-30 Jonathan Coles <[email protected]>
9164
9165 * Data/iceland_sample.thuban: Now contains correct projections
9166 for each of the layers.
9167
9168 * Resources/Projections/defaults.proj: Geographic projection
9169 contains unit conversion parameter.
9170
9171 2003-04-30 Jonathan Coles <[email protected]>
9172
9173 The most important part of this putback is the projection changes.
9174 It should now be possible to specify the projection that a layer
9175 is in and then specify a different projection for the map. The
9176 projection dialog has an extra parameter for a geographic projection
9177 which lets the user select if the input is in degrees or radians.
9178
9179 * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
9180 to say that the parameter is a tuple of unprojected
9181 points (which is what the callers to this method were assuming).
9182 Also, since the points are unprojected we need to projected them.
9183
9184 * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
9185 LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
9186 groups are selected, move the layer up/down. Fixes RTbug #1833.
9187
9188 * Thuban/UI/mainwindow.py: Move menu item map_rename up.
9189
9190 * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
9191 parameter in call to SetClientData.
9192 (GeoPanel): Add support for selecting the units that the
9193 source data is in (Radians or Degrees).
9194
9195 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
9196 the rendering loop by reducing the number of if's, removing the
9197 unnecessary try/except block, and checking if the old group
9198 is the same as the new one (which happens a lot if there is
9199 no classification, or lots of shapes are in the same group).
9200
9201 * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
9202 around the redraw routine to try to catch problems that the user
9203 may create by selecting invalid projections for the data set and
9204 map. Clears the display if there are any problems and prints the
9205 error.
9206 (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
9207 rectangle.
9208
9209 * extensions/thuban/wxproj.cpp (project_point): First invert the
9210 supplied point (which should be in projected coordinates) using
9211 the layer's projection and then project the point using the
9212 map's projection.
9213 (project_points): Use project_point() to project each point.
9214
9215 2003-04-30 Jan-Oliver Wagner <[email protected]>
9216
9217 * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
9218 don't set the Classification to None if the classfication field
9219 is None (ie only a DEFAULT).
9220
9221 2003-04-30 Bernhard Herzog <[email protected]>
9222
9223 * Thuban/UI/view.py: Fix some typos.
9224
9225 * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
9226 not pop up the dialog if the selection becomes empty (this could
9227 happen if e.g. a new selection is opened while the identify tool
9228 is active and dialog had been closed)
9229
9230 2003-04-30 Bernhard Herzog <[email protected]>
9231
9232 * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
9233 instance variable read_record_last_result
9234 (TransientTableBase.read_record): Make sure reading the same
9235 record twice works. The implementation uses the new instance
9236 variable read_record_last_result
9237
9238 * test/test_transientdb.py
9239 (TestTransientTable.test_transient_table_read_twice): New test
9240 case for the above bug-fix.
9241
9242 2003-04-29 Jonathan Coles <[email protected]>
9243
9244 * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
9245
9246 * Thuban/UI/classgen.py: Remove all uses of Str2Num.
9247
9248 * Thuban/UI/classifier.py: Remove all uses of Str2Num.
9249 (ClassTable.SetValueAsCustom): Rename keyword argument in
9250 ClassGroup* constructors to match argument name.
9251
9252 2003-04-29 Bernhard Herzog <[email protected]>
9253
9254 * Thuban/Model/session.py (Session.Destroy): Explicitly close the
9255 transient DB if it exists to make sure it doesn't leave a journal
9256 file in the temp directory.
9257
9258 * Thuban/Model/transientdb.py (TransientDatabase.close): Set
9259 self.conn to None after closing the connection to make sure it's
9260 not closed twice
9261
9262 2003-04-29 Jonathan Coles <[email protected]>
9263
9264 Add a visible parameter in the layer XML tag. The default value is
9265 "true". If anything other than "false" is specified we also assume
9266 "true". Addresses RTbug #1025.
9267
9268 * Doc/thuban.dtd: Add visible parameter to a layer.
9269
9270 * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
9271 of visible from 1 to True.
9272 (Layer.__init__): Change default value of visible from 1 to True.
9273
9274 * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
9275 parameter.
9276
9277 * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
9278 parameter.
9279
9280 * test/test_load.py: Add new test data contents_test_visible.
9281 (LoadSessionTest.setUp): save test data.
9282 (LoadSessionTest.testLayerVisibility): Test if the visible flag
9283 is loaded correctly.
9284
9285 * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
9286 for saving an invisible layer.
9287
9288 2003-04-29 Jonathan Coles <[email protected]>
9289
9290 * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
9291 legend dialog box and tell it to change its map to the one
9292 supplied to SetMap(). Fixes RTbug #1770.
9293
9294 2003-04-29 Bernhard Herzog <[email protected]>
9295
9296 Next step of table implementation. Introduce a transient database
9297 using SQLite that some of the data is copied to on demand. This
9298 allows us to do joins and other operations that require an index
9299 for good performance with reasonable efficiency. Thuban now needs
9300 SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
9301 haven't tested that.
9302
9303 * Thuban/Model/transientdb.py: New. Transient database
9304 implementation.
9305
9306 * test/test_transientdb.py: New. Tests for the transient DB
9307 classes.
9308
9309 * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
9310 classes to help automatically remove temporary files and
9311 directories.
9312 (Session.__init__): New instance variables temp_dir for the
9313 temporary directory and transient_db for the SQLite database
9314 (Session.temp_directory): New. Create a temporary directory if not
9315 yet done and return its name. Use AutoRemoveDir to have it
9316 automatically deleted
9317 (Session.TransientDB): Instantiate the transient database if not
9318 done yet and return it.
9319
9320 * Thuban/Model/data.py (ShapefileStore.__init__): Use an
9321 AutoTransientTable so that data is copied to the transient DB on
9322 demand.
9323 (SimpleStore): New class that simply combines a table and a
9324 shapefile
9325
9326 * Thuban/Model/table.py (Table, DBFTable): Rename Table into
9327 DBFTable and update its doc-string to reflect the fact that this
9328 is only the table interface to a DBF file. Table is now an alias
9329 for DBFTable for temporary backwards compatibility.
9330
9331 * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
9332 the last reference to the session goes away so that the temporary
9333 files are removed properly.
9334
9335 * test/test_load.py (LoadSessionTest.tearDown): Remove the
9336 reference to the session to make sure the temporary files are
9337 removed.
9338
9339 2003-04-29 Bernhard Herzog <[email protected]>
9340
9341 * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
9342 the __parser instance variable into a normal local variable in
9343 read. It's only used there and read will never be called more than
9344 once. Plus it introduces a reference cycle that keeps can keep the
9345 session object alive for a long time.
9346
9347 2003-04-29 Jonathan Coles <[email protected]>
9348
9349 * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
9350 Projection an immutable item. Fixes RTbug #1825.
9351 (Projection.__init__): Initialize instance variables here.
9352 (ProjFile.Replace): New. Replace the given projection object with
9353 the new projection object. This solves the problem of needing the
9354 mutator Projection.SetProjection() in the ProjFrame class and
9355 allows a projection to change parameters without changing its
9356 location in the file.
9357
9358 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
9359 be of type wxSAVE and should verify overwriting a file.
9360
9361 * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
9362 ProjFile.Replace() method instead of the mutator
9363 Projection.SetProjection(). Also requires that we reassign the
9364 client data to the new projection.
9365
9366 * test/test_proj.py (TestProjection.test): Test GetName() and
9367 GetAllParameters()
9368 (TestProjFile.test): Remove tests for Set*() methods. Add tests
9369 for Replace().
9370
9371 2003-04-25 Jonathan Coles <[email protected]>
9372
9373 * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
9374 to save the name of the projection.
9375
9376 * test/test_save.py (SaveSessionTest.testLayerProjection): New
9377 test to verify layer projections are saved correctly.
9378
9379 2003-04-25 Jonathan Coles <[email protected]>
9380
9381 * Thuban/Model/proj.py (Projection.SetName): Set the name
9382 to "Unknown" if name is None.
9383 (Projection.SetAllParameters): New. Set the projection's
9384 parameter list to the one supplied.
9385 (Projection.SetProjection): New. Set the projection's
9386 properties to those of the supplied Projection.
9387
9388 * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
9389 the dialog title to include the map's title.
9390 (MainWindow.LayerProjection): Set the dialog title to include
9391 the layer's title.
9392
9393 * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
9394 error dialogs into a single method call.
9395 (ProjFrame.__VerifyButtons): Add more states to check.
9396 (ProjFrame.__GetProjection): Return the current state of an
9397 edited projection or None.
9398 (ProjFrame.__FillAvailList): Remove checks for states that
9399 shouldn't exist.
9400 (ProjFrame._OnNew): Clear all selected items and supply
9401 a projection panel if necessary.
9402
9403 * test/test_proj.py (TestProjFile.test): Add tests for
9404 ProjFile.SetAllParameters, ProjFile.SetProjection,
9405 ProjFile.SetName.
9406
9407 2003-04-25 Jonathan Coles <[email protected]>
9408
9409 * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
9410 takes an optional argument to select the current projection.
9411 This does not guarantee that the item is visible due to
9412 limited wxWindows functionality. Fixes RTBug #1821.
9413
9414 2003-04-25 Jonathan Coles <[email protected]>
9415
9416 * Thuban/Model/load.py (SessionLoader.start_projection): Remember
9417 the projection name and use it when constructing the Projection
9418 object.
9419
9420 * Thuban/Model/proj.py (Projection.__init__): Change the default
9421 value for 'name' to None and then test if name is equal to None
9422 in the body of the constructor. This way the caller doesn't have to
9423 know what the default value should be. Namely, useful in load.py
9424 where we have to pick a default value if the 'name' parameter
9425 doesn't exist in the XML file.
9426
9427 * test/test_load.py (LoadSessionTest.testLayerProjection): New.
9428 Tests a file where a layer has a projection.
9429
9430 2003-04-25 Jonathan Coles <[email protected]>
9431
9432 * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
9433 tree for projection information.
9434
9435 * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
9436 XMLReader.GetFileName.
9437 (SessionLoader): Added support for loading projection tags that
9438 appear inside a layer.
9439
9440 * Thuban/Model/proj.py (ProjFile): Document the class. Move
9441 back to using a list because the order of the projections in
9442 the file is important to maintain. Fixes RTbug #1817.
9443
9444 * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
9445 to ProjFile.GetFilename.
9446
9447 * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
9448 information.
9449
9450 * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
9451 ProjFrame._OnSaveAs. Removed old dead code from previous
9452 implementation.
9453 (ProjFrame._OnExport): Add support for exporting more than one
9454 projection to a single file.
9455 (ProjFrame.__FillAvailList): use string formatting (% operator)
9456 to build strings that are (partly) translated. Fixes RTbug #1818.
9457
9458 * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
9459 class.
9460
9461 2003-04-24 Bernhard Herzog <[email protected]>
9462
9463 * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
9464
9465 * po/fr.po: New. French translation by Daniel Calvelo Aros
9466
9467 * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
9468 empty strings.
9469
9470 2003-04-24 Jonathan Coles <[email protected]>
9471
9472 * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
9473 implement the interface that the ProjFrame dialog expects.
9474
9475 * Thuban/Model/proj.py (Projection.SetName): New. Allows the
9476 name of the projection to be changed.
9477 (ProjFile): Use a dictionary instead of a list so that removing
9478 projections is easier and we are sure about uniqueness.
9479 (ProjFile.Remove): Remove the given projection object.
9480
9481 * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
9482 Return a list with only one projection file instead of searching for
9483 any projection file. This simplifies many things if the user can
9484 only have one system file and one user file.
9485
9486 * Thuban/UI/classgen.py: Change all references to
9487 genCombo to genChoice.
9488
9489 * Thuban/UI/mainwindow.py: Add a Projection option under the
9490 layer menu.
9491 (MainWindow.LayerProjection): New. Open up a projection window
9492 for a layer.
9493
9494 * Thuban/UI/projdialog.py: Large changes to how the dialog is
9495 laid out. Use three panels instead of one. One for the list of
9496 projections, one for the edit controls, and one for the buttons.
9497 Fixed resizing problems so that the dialog resizes correctly
9498 when the projection panel changes. Added import/export, save, and
9499 new buttons/functionality.
9500
9501 2003-04-24 Bernhard Herzog <[email protected]>
9502
9503 First step towards table management. Introduce a simple data
9504 abstraction so that we replace the data a layer uses more easily
9505 in the next step.
9506
9507 * Thuban/Model/data.py: New file with a simple data abstraction
9508 that bundles shapefile and dbffile into one object.
9509
9510 * Thuban/Model/session.py (Session.OpenShapefile): New method to
9511 open shapefiles and return a shape store object
9512
9513 * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
9514 object instead of a shapefile filename. This introduces a new
9515 instance variable store holding the datastore. For intermediate
9516 backwards compatibility keep the old instance variables.
9517 (open_shapefile): Removed. No longer needed with the shape store.
9518 (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
9519 get the shape store used by a layer.
9520 (Layer.Destroy): No need to explicitly destroy the shapefile or
9521 table anymore.
9522
9523 * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
9524 (MainWindow.AddLayer): Use the session's OpenShapefile method to
9525 open shapefiles
9526
9527 * Thuban/Model/load.py (ProcessSession.start_layer): Use the
9528 session's OpenShapefile method to open shapefiles
9529
9530 * test/test_classification.py
9531 (TestClassification.test_classification): Use the session's
9532 OpenShapefile method to open shapefiles and build the filename in
9533 a more platform independed way
9534
9535 * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
9536 Implement to have a session to use in the tests
9537 (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
9538 (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
9539 session's OpenShapefile method to open shapefiles
9540 (TestLayerLegend.setUp): Instantiate a session so that we can use
9541 it to open shapefiles.
9542 (TestLayerLegend.tearDown): Make sure that all references to
9543 layers and session are removed otherwise we may get a resource
9544 leak
9545
9546 * test/test_map.py (TestMapAddLayer.test_add_layer)
9547 (TestMapWithContents.setUp): Instantiate a session so that we can
9548 use it to open shapefiles.
9549 (TestMapWithContents.tearDown): Make sure that all references to
9550 layers, maps and sessions are removed otherwise we may get a
9551 resource leak
9552 ("__main__"): use support.run_tests() so that more info about
9553 uncollected garbage is printed
9554
9555 * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
9556 session's OpenShapefile method to open shapefiles
9557 ("__main__"): use support.run_tests() so that more info about
9558 uncollected garbage is printed
9559
9560 * test/test_selection.py (TestSelection.tearDown): Make sure that
9561 all references to the session and the selection are removed
9562 otherwise we may get a resource leak
9563 (TestSelection.get_layer): Instantiate a session so that we can
9564 use it to open shapefiles.
9565 ("__main__"): use support.run_tests() so that more info about
9566 uncollected garbage is printed
9567
9568 * test/test_session.py (TestSessionBase.tearDown)
9569 (TestSessionWithContent.tearDown): Make sure that all references
9570 to the session and layers are removed otherwise we may get a
9571 resource leak
9572 (TestSessionWithContent.setUp): Use the session's OpenShapefile
9573 method to open shapefiles
9574
9575 2003-04-24 Jonathan Coles <[email protected]>
9576
9577 * Thuban/Model/load.py (XMLReader.read): Should have been checking
9578 if the file_or_filename object had the 'read' attribute.
9579
9580 2003-04-23 Jonathan Coles <[email protected]>
9581
9582 * Thuban/Model/resource.py: Fixes RTbug #1813.
9583 (ReadProjFile): Add documentation about which exceptions are raised.
9584 Always pass the exceptions up to the caller.
9585 (GetProjFiles): If the directory can't be read return an empty list.
9586 If any of the proj files can't be read skip that file and go
9587 on to the next one.
9588
9589 * test/test_proj.py: Added test cases to handle nonexistent files,
9590 unreadable files, and files that don't parse correctly.
9591
9592 2003-04-23 Jonathan Coles <[email protected]>
9593
9594 Projection dialog. Allows the user to select from a list
9595 of projection templates and optionally edit them and save new ones.
9596
9597 * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
9598 (ProjPanel): Base class for projection specific panels.
9599 (TMPanel): Projection panel for Transverse Mercartor.
9600 (UTMPanel): Projection panel for Universal Transverse Mercartor.
9601 (LCCPanel): Projection panel for Lambert Conic Conformal.
9602 (GeoPanel): Projetion panel for Geographic Projection.
9603
9604 2003-04-23 Jonathan Coles <[email protected]>
9605
9606 * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
9607 promote symmetry. There now exists XMLReader and XMLWriter.
9608 (XMLReader.read): New. Call to read the given file descriptor or
9609 filename.
9610 (XMLReader.close): New. Make sure the file is closed.
9611 (XMLReader.GetFileName): New. Return just the file name that is being
9612 read from.
9613 (XMLReader.GetDirectory): New. Return just the directory of the file
9614 that is being read.
9615 (XMLReader.AddDispatchers): New. Take a dictionary which contains
9616 the names of functions to call as the XML tree is parsed.
9617 (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
9618 (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
9619 (SessionLoader): Removed class variables start_dispatcher and
9620 end_dispatcher since this functionality is now part of a class
9621 instance. Fixes RTbug #1808.
9622 (SessionLoader.__init__): Add dispatcher functions.
9623 (load_xmlfile): Code was moved into the XMLReader.read().
9624 (load_session): Use modified SessionLoader.
9625
9626 * Thuban/Model/map.py (Map.GetProjection): New. Returns the
9627 map's projection.
9628
9629 * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
9630 GetAllParameters.
9631 (Projection.GetParameter): Returns the value for the given parameter.
9632
9633 * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
9634 (GetProjFiles): Renamed from GetProjections. Now returns a list
9635 of ProjFile objects.
9636 (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
9637 a list of ProjFile objects whose files are not user defined.
9638 (GetUserProjFiles): Renamed from GetUserProjections. Returns a
9639 list of ProjFile objects whose files are user defined.
9640 (ProjFileReader): Extend new XMLReader.
9641
9642 * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
9643 promote symmetry.
9644
9645 * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
9646 control instead of a wxComboBox. wxChoice controls do not generate
9647 events as the uses highlights possible choices which fixes problems
9648 with resizing the dialog when the use selects an option.
9649
9650 * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
9651 control instead of a wxComboBox.
9652
9653 * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
9654 dialog.
9655
9656 * test/test_proj.py (TestProjection.test): New tests for GetParameter
9657 method.
9658
9659 2003-04-22 Bernhard Herzog <[email protected]>
9660
9661 * Thuban/UI/mainwindow.py: Remove some unused imports and global
9662 constants
9663
9664 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
9665 (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
9666
9667 2003-04-17 Bernhard Herzog <[email protected]>
9668
9669 * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
9670 (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
9671 anymore.
9672 (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
9673 (Layer.ShapeType, Layer.Shape): No need to call
9674 self.open_shapefile since it's always called in __init__
9675
9676 * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
9677 In wxPython 2.4 there's no need to extend MainLoop anymore since
9678 wxPython itself makes sure OnExit is called.
9679
9680 2003-04-16 Jonathan Coles <[email protected]>
9681
9682 Initial putback of projection management code. Includes new
9683 classes to read and write projection files. The current load
9684 and save classes were abstracted a bit so they could be reused.
9685 The Projection class was extended to provide new methods and
9686 have a name.
9687
9688 * Thuban/Model/load.py (XMLProcessor): New. Contains all the
9689 general XML reading methods that were part of ProcessSession.
9690
9691 * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
9692 name.
9693 (ProjFile): New. Represents a file that contains projection
9694 information.
9695
9696 * Thuban/Model/resource.py: New. Contains general utilities
9697 for read and writing projection files.
9698
9699 * Thuban/Model/save.py (XMLSaver): New. Contains all the
9700 general XML writing methods that were part of SessionSaver.
9701 (SessionSaver): Renamed from Saver.
9702
9703 * test/test_proj.py: New test cases for the projection
9704 file read and write functions.
9705
9706 2003-04-16 Jonathan Coles <[email protected]>
9707
9708 * Thuban/Model/classification.py: Use repr() around values
9709 in the ClassGroup*.__repr__() methods so it is clearer when
9710 a value is a string and when it is a number.
9711
9712 * test/test_load.py: Rework the classification test to test
9713 that we can load old files.
9714 (testLabels): Test a file where the groups have labels.
9715
9716 2003-04-16 Bernhard Herzog <[email protected]>
9717
9718 Safer implementation of the performance enhancements of the
9719 low-level renderer:
9720
9721 * extensions/thuban/wxproj.cpp (extract_projection)
9722 (extract_pointer): Rename extract_projection to extract_pointer
9723 and redefine its purpose to return the pointer stored in a CObject
9724 returned by the object's cobject method. Update all callers.
9725 (s_draw_info, free_draw_info, draw_polygon_init): Implement the
9726 handling of these low-level parameters so that each s_draw_info
9727 instance is handled as a CObject at python level that also
9728 contains real references to the actual python objects which
9729 contain the values in the struct. Add free_draw_info as the
9730 destructor.
9731 (draw_polygon_shape): Add the py_draw_info parameter which must a
9732 cobject containing an s_draw_info pointer.
9733
9734 * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
9735 method to instantiat the low-level render parameter
9736 (MapRenderer.draw_shape_layer): Use the new method. Remove some
9737 commented out code.
9738 (MapRenderer.draw_polygon_shape): Make the first parameter not the
9739 layer but the low-level render parameter
9740 (ScreenRenderer.draw_shape_layer): Use the low-level render
9741 parameter.
9742
9743 2003-04-15 Jonathan Coles <[email protected]>
9744
9745 * Thuban/Model/classification.py: Implemented __repr__ for
9746 the ClassGroup* classes to make debugging a bit easier.
9747 (ClassGroup.SetLabel): Check that the string is an instance
9748 of StringTypes not StringType. Accounts for Unicode strings.
9749
9750 * Thuban/Model/color.py: Implemented __repr__ to make
9751 debugging a bit easier.
9752
9753 * Thuban/Model/save.py (Saver.write_classification): Need to
9754 save the group label.
9755
9756 * test/test_load.py (testClassification): New. Loads the
9757 iceland_sample_test.thuban file and checks if it was loaded
9758 correctly.
9759
9760 2003-04-15 Jonathan Coles <[email protected]>
9761
9762 * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
9763 to improve rendering performance by initializing the variables
9764 that are not change each time draw_polygon_shape() is called.
9765 The values are stored in a global struct draw_info.
9766 (draw_polygon_shape): Removed initialization code that is
9767 now in draw_polygon_init().
9768
9769 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
9770 drawing initialization call to draw_polygon_init()
9771 (MapRenderer.draw_polygon_shape): Use new signature of
9772 draw_polygon_shape.
9773
9774 * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
9775 weirdness by setting the range to (1, maxint).
9776
9777 * Thuban/Model/classification.py (ClassGroupProperties): Make
9778 instance variables private and optimize comparison operator
9779 by first checking if the color references are the same.
9780 (ClassGroupSingleton): Make instance variables private.
9781 (ClassGroupRange): Make instance variables private.
9782
9783 * HOWTO-Release: Filled in missing steps for releasing packages.
9784
9785 2003-04-15 Bernhard Herzog <[email protected]>
9786
9787 First stab at internationalized messages:
9788
9789 * Thuban/__init__.py (_): Implement the translation function for
9790 real using the python gettext module.
9791
9792 * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
9793 translate empty strings.
9794
9795 * Thuban/UI/application.py (ThubanApplication.read_startup_files):
9796 Add a missing space to a warning message
9797
9798 * po/README: New. Notes about the management of the translation
9799 files.
9800
9801 * po/Makefile: New. Makefile to help manage the translation files.
9802
9803 * po/es.po: New. Spanish translation by Daniel Calvelo Aros
9804
9805 * MANIFEST.in: Include the *.mo files in Resources/Locale and the
9806 translations and support files in po/
9807
9808 * setup.py (data_files): Add the *.mo files to the data_files too
9809
9810 * README: Add note about the translations when building from CVS
9811
9812 2003-04-14 Jonathan Coles <[email protected]>
9813
9814 * Thuban/UI/dock.py: Fixes some window resizing problems most
9815 noticable under windows. Always assume the button bitmaps will
9816 be there. Code clean up.
9817 (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
9818 images for the dock/undock button to the same images.
9819 Work around for RTbug #1801.
9820
9821 * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
9822 be allowed to grow within the sizer. Fixes a bug under Windows
9823 where the toolbar wasn't being drawn.
9824
9825 2003-04-14 Frank Koormann <[email protected]>
9826
9827 * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
9828 Updated design to try to make the button functionality more
9829 transparent.
9830
9831 2003-04-14 Jonathan Coles <[email protected]>
9832
9833 * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
9834 finalize the intialization of the panel.
9835
9836 * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
9837 creation of the panel. Should be the last thing called in the
9838 initializer of a subclass.
9839
9840 * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
9841 set the current selections in the combo boxes. This is needed
9842 under Windows.
9843
9844 * Thuban/UI/classifier.py (Classifier.__init__): Add a top
9845 level panel to the dialog so that the background colors are
9846 consistent under Windows.
9847
9848 2003-04-11 Jonathan Coles <[email protected]>
9849
9850 * Thuban/UI/classgen.py: Change color ramps to start at white
9851 not black.
9852
9853 * Thuban/UI/legend.py: Enable/disable the legend buttons when
9854 the legend changes. Fixes RTbug #1793.
9855
9856 * test/test_classification.py: Added test for copying of
9857 classifications.
9858
9859 2003-04-11 Jonathan Coles <[email protected]>
9860
9861 * Thuban/UI/resource.py: New. Centralize the loading of resources
9862 such as bitmaps.
9863
9864 * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
9865 added images to the move buttons, added 'reverse' button.
9866 (CustomRampPanel.__init__): Added images to the move buttons.
9867 (GreyRamp): New. Generates a ramp from white to black.
9868 (HotToColdRamp): New. Generates a ramp from cold to hot colors.
9869
9870 * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
9871 ID_PROPERTY_*.
9872 (Classifier.__init__): Minor changes to the layout.
9873 (Classifier._OnTitleChanged): Listen for when the user edits the
9874 title and update the dialog's title and the layer's title.
9875
9876 * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
9877
9878 * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
9879 (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
9880 if the layer's title changes.
9881
9882 * Thuban/UI/mainwindow.py: Added new menu item and associated code
9883 to open a dialog to rename the map.
9884 (MainWindow): Use new resource class to import bitmaps.
9885
9886 2003-04-11 Jonathan Coles <[email protected]>
9887
9888 * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
9889 Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
9890 Resources/Bitmaps/group_use_none.xpm,
9891 Resources/Bitmaps/group_use_not.xpm,
9892 Resources/Bitmaps/hide_layer.xpm,
9893 Resources/Bitmaps/layer_properties.xpm,
9894 Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
9895 Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
9896 New.
9897
9898 2003-04-10 Jonathan Coles <[email protected]>
9899
9900 * Thuban/Model/classification.py: (ClassGroupRange.__init__):
9901 Should pass group to ClassGroup constructor.
9902
9903 2003-04-10 Jonathan Coles <[email protected]>
9904
9905 * Thuban/Model/classification.py: (ClassGroup): Move all the common
9906 methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
9907 here. Implement SetVisible(), IsVisible().
9908 (ClassGroup.__init__): Add group parameter which acts as a copy
9909 constructor.
9910
9911 * Thuban/UI/classifier.py (ClassTable): Add a new column for the
9912 "Visible" check boxes.
9913 (Classifier): Rename the buttons and refactor the code to match
9914 the new labels.
9915
9916 * Thuban/UI/legend.py: Classify button is now called "Properties".
9917 Refactored the code to change variable names.
9918 (LegendTree.__FillTreeLayer): Only list a group if it is visible.
9919
9920 * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
9921 MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
9922 renamed to MainWindow.LayerEditProperties.
9923 (MainWindow.ToggleLegend): Don't include map name in legend title.
9924 (MainWindow.SetMap): Added the map name to the window title.
9925 (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
9926 MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
9927 Functionality is found in the layer properties dialog.
9928
9929 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
9930 draw visible groups.
9931
9932 2003-04-09 Jonathan Coles <[email protected]>
9933
9934 * Thuban/UI/classgen.py: Modifications to allow simple
9935 addition and selection of new color schemes.
9936 (MonochromaticRamp): New. Generates a ramp between two colors.
9937 (RedRamp): New. Generates a ramp of all red.
9938 (GreenRamp): New. Generates a ramp of all green.
9939 (BlueRamp): New. Generates a ramp of all blue.
9940
9941 2003-04-09 Jonathan Coles <[email protected]>
9942
9943 * Thuban/Model/classification.py (Classification.__deepcopy__):
9944 Need to copy over field and fieldType attributes.
9945
9946 * Thuban/Model/table.py (Table.field_range): New. Retrive the
9947 maximum and minimum values over the entire table for a given
9948 field.
9949 (Table.GetUniqueValues): New. Retrieve all the unique values
9950 in the table for a given field.
9951
9952 * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
9953 (GenUniquePanel): New. Controls to allow the user to select
9954 which unique field values they would like in the classification.
9955 (CustomRampPanel): Code that was in ClassGenDialog that allows
9956 the user to select the properties for a custom ramp.
9957 (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
9958
9959 * Thuban/UI/classifier.py: Removed a lot of debugging code.
9960 (Classifier._SetClassification): Callback method so that the
9961 class generator can set the classification in the grid.
9962 (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
9963 editing of a group properties class into a wxWindows control.
9964
9965 * Thuban/UI/dock.py: It was decided that if the user closes
9966 a dockable window the window should simply hide itself. That
9967 way if the user wants to show the dock again it appears in the
9968 same place as it was when it was closed.
9969 (DockableWindow.Destroy): Call renamed method OnDockDestroy().
9970 (DockableWindow._OnButtonClose): Hide the window instead of
9971 destroying it.
9972 (DockableWindow._OnClose): Hide the window instead of
9973 destroying it.
9974
9975 * Thuban/UI/legend.py (LegendTree): Use a private method to
9976 consistently set the font and style of the text. Fixes RTbug #1786.
9977
9978 * Thuban/UI/mainwindow.py: Import just the Classifier class.
9979
9980 2003-04-07 Bernhard Herzog <[email protected]>
9981
9982 * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
9983 to the map module
9984
9985 2003-04-07 Bernhard Herzog <[email protected]>
9986
9987 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
9988 favor of ToggleSessionTree
9989 (MainWindow.ToggleSessionTree): New method to toggle visibility of
9990 the session tree.
9991 (MainWindow.SessionTreeShown): New method to return whether the
9992 session tree is currently shown.
9993 (MainWindow.ToggleLegend): New method to toggle visibility of the
9994 legend
9995 (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
9996 LegendShown
9997 (MainWindow.LegendShown): New method to return whether the legend
9998 is currently shown.
9999 (_method_command): Add checked parameter so we can define check
10000 menu items
10001 (_has_tree_window_shown, _has_legend_shown): Use the appropriate
10002 mainwindow methods.
10003 (show_session_tree, show_legend commands): Removed.
10004 (toggle_session_tree, toggle_legend commands): New commands to
10005 toggle the visibility of the dialogs
10006
10007 2003-04-07 Jonathan Coles <[email protected]>
10008
10009 * Thuban/UI/classgen.py: Fix Windows problem.
10010
10011 * Thuban/UI/dock.py: Fix Windows problem.
10012
10013 * Thuban/UI/mainwindow.py: Use False instead of false.
10014 (MainWindow.ShowLegend): Remove unnecessary switch parameter.
10015
10016 2003-04-07 Jonathan Coles <[email protected]>
10017
10018 Since we now say that the order of the groups in a classification
10019 matters, it makes sense to be able to manipulate that order. Most
10020 of the changes to Thuban/Model/classification.py are to that end.
10021
10022 * Thuban/Model/classification.py (Classification.AppendGroup,
10023 Classification.InsertGroup, Classification.ReplaceGroup,
10024 Classification.RemoveGroup, Classification.GetGroup): Do as the
10025 names imply.
10026 (Classification.FindGroup): This was called GetGroup, but GetGroup
10027 takes an index, while FindGroup takes a value.
10028 (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
10029 REFERENCE. Currently there is a cyclic reference between the layer
10030 and its classification. If the classification doesn't need to know
10031 its owning layer we can change this, since it may make sense to be
10032 able to use the same classification with different layers.
10033
10034 * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
10035
10036 * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
10037 not AddGroup()
10038
10039 * Thuban/UI/classifier.py: Now that we can depend on the order in
10040 a Classification and have methods to manipulate that order we don't
10041 need to use our own data structures in the grid. We can simply make
10042 the grid/table access the information they need from a copy of
10043 the classification object.
10044 (Classifier._OnCloseBtn): Event handler for when the user clicks
10045 'Close'. This is needed so if the user applies changes and then
10046 continues to change the table the user has the option of discarding
10047 the most recent changes and keeping what they applied.
10048
10049 * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
10050 into the same group.
10051
10052 * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
10053 with a really old version of proj, PJ_VERSION won't even be defined.
10054 If it isn't defined then just compile so that the function always
10055 returns Py_False.
10056
10057 * test/test_classification.py: Fix tests to use the renamed methods.
10058 Still need to write tests for the new methods.
10059
10060 2003-04-04 Jonathan Coles <[email protected]>
10061
10062 * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
10063 call to SetSelection out of the method and before the call
10064 to __SelectField in __init__. This prevents a recursion of events
10065 when _OnFieldSelect is triggered by the user.
10066
10067 2003-04-04 Jonathan Coles <[email protected]>
10068
10069 * Thuban/Model/classification.py: Rename Color.None to
10070 Color.Transparent.
10071 (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
10072 Don't bother copying the color, since Colors are immutable.
10073
10074 * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
10075 Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
10076 Thuban/UI/renderer.py, Thuban/UI/view.py:
10077 Rename Color.None to Color.Transparent.
10078
10079 * test/test_classification.py, test/test_load.py: Rename Color.None
10080 to Color.Transparent.
10081
10082 2003-04-04 Jonathan Coles <[email protected]>
10083
10084 * Thuban/Model/classification.py: Fix assert calls.
10085 (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
10086 Copy the color parameter rather than hold onto a reference.
10087
10088 * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
10089 the color object.
10090 (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
10091 are sure there exists only one refernce to Color.None in the system.
10092 This allows us to use 'is' rather than the comparision functions.
10093
10094 * Thuban/Model/save.py: Fix assert calls.
10095
10096 * Thuban/UI/classifier.py: Fix assert calls.
10097 (ClassGrid._OnCellDClick): Call up to the classifier to open the
10098 dialog to edit the groups properties.
10099 (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
10100 correctly if a cell is resized.
10101 (ClassTable.SetClassification): New. Changes the classification
10102 that is in the table.
10103 (ClassTable.__SetRow): Allow groups to be prepended.
10104 (Classifier): New code for opening the EditProperties and
10105 GenerateRanges dialogs.
10106 (SelectPropertiesDialog.__GetColor): Only set the color in the
10107 color dialog if the current color is not None.
10108
10109 * Thuban/UI/dock.py: Fix assert calls.
10110
10111 * Thuban/UI/legend.py: Fix assert calls.
10112
10113 * Thuban/UI/renderer.py: Fix assert calls.
10114
10115 * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
10116 classifications.
10117 (GenRangePanel): Panel specific to range generation.
10118 (GenSingletonPanel): Panel specific to singleton generation.
10119 (ClassGenerator): Class responsible for actually generating
10120 the classification from the data gathered in the dialog box.
10121 (PropertyRamp): Generates properties whose values range from
10122 a starting property to an ending property.
10123
10124 2003-04-03 Bernhard Herzog <[email protected]>
10125
10126 * test/support.py (print_garbage_information): New function that
10127 prints information about still connected messages and memory
10128 leaks.
10129 (run_suite): Removed.
10130 (run_tests): New function for use as a replacement of
10131 unittest.main in the test_* files. This one calls
10132 print_garbage_information at the end.
10133
10134 * test/runtests.py (main): Use support.print_garbage_information
10135
10136 * test/test_layer.py: Use support.run_tests instead of
10137 unittest.main so we get memory leak information
10138 (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
10139 (TestLayer.test_point_layer, TestLayer.test_empty_layer)
10140 (TestLayerLegend.test_visibility): Call the layer's Destroy method
10141 to fix a memory leak.
10142
10143 * test/test_classification.py: Use support.run_tests instead of
10144 unittest.main so we get memory leak information
10145 (TestClassification.test_classification): Call the layer's Destroy
10146 method to fix a memory leak.
10147
10148 2003-04-02 Bernhard Herzog <[email protected]>
10149
10150 * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
10151 Handle the reference counts of the return value and errors in
10152 PyArg_ParseTuple correctly.
10153
10154 * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
10155 sure the filename is absolute to avoid problems when saving the
10156 session again
10157
10158 * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
10159
10160 2003-04-01 Jonathan Coles <[email protected]>
10161
10162 * Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
10163 that there actually are points in the returned list of points
10164 before trying to index into the list. The list may be empty if
10165 the shape is a Null Shape.
10166
10167 2003-04-01 Bernhard Herzog <[email protected]>
10168
10169 * test/test_map.py: Don't use from <module> import *
10170
10171 2003-04-01 Jonathan Coles <[email protected]>
10172
10173 * Thuban/Model/session.py: Use LAYER_CHANGED instead of
10174 LAYER_LEGEND_CHANGED
10175
10176 * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
10177 self.Destroy() to close the window after yesterday's changes.
10178
10179 * test/test_map.py, test/test_session.py: Fix messages that
10180 are sent from maps and layers.
10181
10182 2003-03-31 Jonathan Coles <[email protected]>
10183
10184 * Thuban/UI/classifier.py: Commented out some debugging statements.
10185 (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
10186 RTbug #1769.
10187
10188 * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
10189 position (although position doesn't work yet under GTK).
10190 (DockableWindow.Destroy): New. Called when the window must be
10191 closed. Namely needed when the DockFrame closes and must close
10192 its children.
10193 (DockFrame): Listen for EVT_CLOSE and destroy all children.
10194
10195 * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
10196 when then window is told to close.
10197 (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
10198 comment in source for more info.
10199
10200 * Thuban/UI/main.py: Show the legend by default when Thuban starts.
10201
10202 * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
10203 symmetry with other such methods.
10204 (MainWindow.ShowLegend): Show the legend docked by default.
10205
10206 2003-03-28 Jonathan Coles <[email protected]>
10207
10208 * Thuban/UI/classifier.py: Support for highlighting a specific
10209 group within the grid when the classification dialog is opened.
10210 Also contains a lot of debugging printouts which will later
10211 be removed.
10212
10213 * Thuban/UI/dock.py: Complete rework on the dock code so that
10214 that it is fairly removed from the rest of the Thuban application.
10215 It is easy to add new docks which the rest of the program having
10216 to be aware of them.
10217
10218 * Thuban/UI/legend.py: Modifications to support selecting a
10219 specific group in the classification dialog. Changed how layers
10220 are drawn when the layer is visible/invisible.
10221
10222 * Thuban/UI/mainwindow.py: Removed legend specific code and
10223 replaced it with calls to the new dock code.
10224
10225 * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
10226 to check if scale > 0. Trying to track down a divide by zero.
10227
10228 2003-03-26 Jonathan Coles <[email protected]>
10229
10230 * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
10231 (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
10232 now part of DockableWindow.
10233 (LegendPanel.DoOnSelChanged): Select the current layer in the
10234 map.
10235 (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
10236 with the selected layer and/or group.
10237
10238 2003-03-26 Jonathan Coles <[email protected]>
10239
10240 This putback contains the code for dockable windows. There is
10241 no support in wxWindows as of this date for windows that can
10242 attach themselves to other windows.
10243
10244 The current model contains a DockableWindow which has a parent
10245 window for when it is detached and a dock window that it puts
10246 its contents in when it is docked. The contents of a DockableWindow
10247 must be a DockPanel. DockPanel itself derives from wxPanel.
10248
10249 * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
10250 message, not a LAYER_LEGEND_CHANGED message.
10251
10252 * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
10253
10254 * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
10255 as one of the style properties for the fieldTypeText item to
10256 be sure that its size is correct when the text changes.
10257
10258 * Thuban/UI/dock.py: New. Classes for the DockPanel and
10259 DockableWindow.
10260
10261 * Thuban/UI/legend.py: Added some more buttons and made the
10262 LegendPanel a DockPanel.
10263
10264 * Thuban/UI/mainwindow.py: Added sash windows to the main window
10265 and supporting functions for manipulating the sashes.
10266 (MainWindow.ShowLegend): Create a DockableWindow with the
10267 LegendPanel as the contents.
10268
10269 * Thuban/UI/messages.py: Added DOCKABLE_* messages
10270
10271 * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
10272 not LAYER_LEGEND_CHANGED, messages.
10273
10274 2003-03-25 Jonathan Coles <[email protected]>
10275
10276 * setup.py: Added custom script bdist_rpm_build_script so that
10277 when the rpm is built the path to wx-config is correct.
10278
10279 * setup.cfg: Added line saying to use the custom build script
10280
10281 2003-03-20 Jonathan Coles <[email protected]>
10282
10283 Initial implementation of the Legend.
10284
10285 * Thuban/UI/legend.py: New. Creates a window that shows the map's
10286 Legend information and allows the user to add/modify classifications
10287 and how the layers are drawn on the map.
10288
10289 * setup.py: New command 'build_docs' which currently uses
10290 happydoc to generate html documentation for Thuban.
10291
10292 * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
10293 Returns a string which is appropriately describes the group.
10294
10295 * Thuban/Model/layer.py (Layer.SetClassification): Generate a
10296 LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
10297
10298 * Thuban/Model/map.py (Map): Rename messages and use new, more
10299 specific, messages.
10300
10301 * Thuban/Model/messages.py: New message to indicate that a layer's
10302 data has changed (LAYER_CHANGED). New map messages to indicate
10303 when layers have been added/removed/changed or if the stacking order
10304 of the layers has changed.
10305
10306 * Thuban/Model/session.py: Rename and use new messages.
10307
10308 * Thuban/UI/classifier.py: Remember if any changes have actually
10309 been applied so that if the dialog is cancelled without an application
10310 of changes we don't have to set a new classification.
10311 (ClassDataPreviewer): Pulled out the window specific code and put it
10312 ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
10313 symbols on any DC.
10314
10315 * Thuban/UI/mainwindow.py: New code to open the legend.
10316
10317 * Thuban/UI/view.py: Use new message names.
10318
10319 2003-03-19 Jonathan Coles <[email protected]>
10320
10321 * Thuban/UI/main.py (verify_versions): New. Checks the versions
10322 of Python, wxPython, and some other libraries.
10323
10324 * extensions/thuban/wxproj.cpp (check_version): Checks the given
10325 version against what wxproj was compiled with.
10326 (check_version_gtk): If wxproj was compiled with gtk then check
10327 the given version against the version of the gtk library
10328 currently being used.
10329
10330 2003-03-14 Bernhard Herzog <[email protected]>
10331
10332 * test/test_command.py: Run the tests when the module is run as a
10333 script
10334
10335 2003-03-14 Bernhard Herzog <[email protected]>
10336
10337 Implement selection of multiple selected shapes in the same layer:
10338
10339 - Introduce a new class to hold the selection. This basically
10340 replaces the interactor which was nothing more than the
10341 selection anyway. A major difference is of course that the new
10342 selection class supports multiple selected shapes in one layer
10343
10344 - Move the object that represents the selection from the
10345 application to the canvas. The canvas is a better place than the
10346 application because the selection represents which shapes and
10347 layer of the map displayed by the canvas are selected and
10348 affects how the map is drawn.
10349
10350 - Make the selection and its messages publicly available through
10351 the mainwindow.
10352
10353 - The non-modal dialogs do not get a reference to the interactor
10354 anymore as they can simply refer to their parent, the
10355 mainwindow, for the what the interactor had to offer.
10356
10357 * Thuban/UI/selection.py: New module with a class to represent the
10358 selection.
10359
10360 * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
10361 these unused messages
10362
10363 * Thuban/UI/application.py (ThubanApplication.OnInit)
10364 (ThubanApplication.OnExit, ThubanApplication.SetSession): The
10365 interactor is gone now.
10366 (ThubanApplication.CreateMainWindow): There is no interactor
10367 anymore so we pass None as the interactor argument for now for
10368 compatibility.
10369
10370 * Thuban/UI/view.py (MapCanvas.delegated_messages)
10371 (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
10372 Unsubscribe, delegate messages according to the delegated_messages
10373 class variable.
10374 (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
10375 attributes from instance variables as described with the
10376 delegated_methods class variable.
10377 (MapCanvas.__init__): New instance variable selection holding the
10378 current selection
10379 (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
10380 pass them on to the renderer
10381 (MapCanvas.SetMap): Clear the selection when a different map is
10382 selected.
10383 (MapCanvas.shape_selected): Simple force a complete redraw. The
10384 selection class now takes care of only issueing SHAPES_SELECTED
10385 messages when the set of selected shapes actually does change.
10386 (MapCanvas.SelectShapeAt): The selection is now managed in
10387 self.selection
10388
10389 * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
10390 (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
10391 Unsubscribe, delegate messages according to the delegated_messages
10392 class variable.
10393 (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
10394 attributes from instance variables as described with the
10395 delegated_methods class variable.
10396 (MainWindow.__init__): The interactor as ivar is gone. The
10397 parameter is still there for compatibility. The selection messages
10398 now come from the canvas.
10399 (MainWindow.current_layer, MainWindow.has_selected_layer):
10400 Delegate to the the canvas.
10401 (MainWindow.LayerShowTable, MainWindow.Classify)
10402 (MainWindow.identify_view_on_demand): The dialogs don't need the
10403 interactor parameter anymore.
10404
10405 * Thuban/UI/tableview.py (TableFrame.__init__)
10406 (LayerTableFrame.__init__, LayerTableFrame.OnClose)
10407 (LayerTableFrame.row_selected): The interactor is gone. It's job
10408 from the dialog's point of view is now done by the mainwindow,
10409 i.e. the parent. Subscribe to SHAPES_SELECTED instead
10410 of SELECTED_SHAPE
10411
10412 * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
10413 is gone. It's job from the dialog's point of view is now done by
10414 the mainwindow, i.e. the parent.
10415
10416 * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
10417 gone. It's job from the dialog's point of view is now done by the
10418 mainwindow, i.e. the parent.
10419
10420 * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
10421 gone. It's job from the dialog's point of view is now done by the
10422 mainwindow, i.e. the parent.
10423 (SessionTreeCtrl.__init__): New parameter mainwindow which is
10424 stored as self.mainwindow. The mainwindow is need so that the tree
10425 can still subscribe to the selection messages.
10426 (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
10427 (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
10428 selection is now accessible through the mainwindow. Subscribe to
10429 SHAPES_SELECTED instead of SELECTED_SHAPE
10430
10431 * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
10432 SHAPES_SELECTED message now.
10433 (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
10434 so deal with multiple shapes
10435 (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
10436 gone. It's job from the dialog's point of view is now done by the
10437 mainwindow, i.e. the parent.
10438
10439 * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
10440 parameter is now a list of shape ids.
10441 (RecordTable.SetTable): The second parameter is now a list of
10442 indices.
10443
10444 * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
10445 selected_shape parameter and ivar to selected_shapes. It's now a
10446 list of shape ids.
10447 (MapRenderer.draw_label_layer): Deal with multiple selected
10448 shapes. Rearrange the code a bit so that the setup and shape type
10449 distinctions are only executed once.
10450
10451 * test/test_selection.py: Test cases for the selection class
10452
10453 2003-03-11 Jonathan Coles <[email protected]>
10454
10455 * Thuban/Model/load.py: Temporary fix so that the xml reader
10456 doesn't cause Thuban to crash.
10457
10458 * Thuban/Model/layer.py: Handle the cyclic references between
10459 a layer and its classification better, and be sure to disconnect
10460 the classification from the layer when the layer is destroyed
10461 so that we don't maintain a cyclic reference that may not be
10462 garbage collected.
10463
10464 * Thuban/Model/classification.py: See comment for layer.py.
10465
10466 2003-03-12 Jan-Oliver Wagner <[email protected]>
10467
10468 * HOWTO-Release: New. Information on the steps for releasing
10469 a new version of Thuban.
10470
10471 2003-03-11 Jonathan Coles <[email protected]>
10472
10473 * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
10474 Use True instead of true.
10475 (Classifier): Should have a single panel in which all the controls lie.
10476
10477 * Thuban/UI/proj4dialog.py: Add normal border.
10478
10479 * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
10480
10481 * Thuban/UI/mainwindow.py: Use True instead of true.
10482
10483 * setup.py: Update some definitions to use wxWindows2.4 files
10484
10485 * Data/iceland_sample_class.thuban: Fixed file so that the
10486 field_type information is present.
10487
10488 2003-03-10 Jonathan Coles <[email protected]>
10489
10490 * Thuban/UI/classifier.py (Classifier.__init__): Make the
10491 field type label grow so that when the text changes the
10492 size is updated correctly. This may be a wxWindows bug.
10493
10494 2003-03-10 Jonathan Coles <[email protected]>
10495
10496 * Thuban/UI/application.py: Changed SESSION_CHANGED to
10497 SESSION_REPLACED.
10498
10499 * Thuban/UI/classifier.py: Wrap text with _().
10500 (ClassGrid.CreateTable): Set dimensions and size hints here,
10501 instead of in Reset, so we only set the size once.
10502
10503 * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
10504
10505 * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
10506 Call Close() instead of Shutdown().
10507
10508 * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
10509
10510 * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
10511 Go back to using OnClose() instead of Shutdown().
10512
10513 2003-03-10 Jonathan Coles <[email protected]>
10514
10515 * Thuban/UI/classifier.py (Classifier): SelectField() needed
10516 to know the old field index as well as the new one.
10517
10518 2003-03-10 Jonathan Coles <[email protected]>
10519
10520 * Thuban/UI/classifier.py (Classifier): Use __SelectField()
10521 to correctly set the table information and call this from
10522 __init__ and from _OnFieldSelect so that all the information
10523 is up to date when the dialog opens and when a field is changed.
10524
10525 2003-03-10 Jonathan Coles <[email protected]>
10526
10527 * Thuban/Model/classification.py (Classification): Don't use
10528 layer's message function directly, use the ClassChanged() method
10529 when then classification changes. SetField/SetFieldType/SetLayer
10530 must keep the information about field name and field type in
10531 sync when an owning layer is set or removed.
10532
10533 * Thuban/Model/layer.py: Added ClassChanged() so that the
10534 classification can tell the layer when its data has changed.
10535 (Layer.SetClassification): Accepts None as an arguement to
10536 remove the current classification and correctly handles
10537 adding a new classification.
10538
10539 * Thuban/Model/load.py: Comment out print statement
10540
10541 * test/test_classification.py, test/test_save.py: New and
10542 improved tests.
10543
10544 2003-03-07 Jonathan Coles <[email protected]>
10545
10546 * Thuban/Model/classification.py: Implemented __copy__ and
10547 __deepcopy__ for ClassGroup* and ClassGroupProperites so
10548 they can easily be copied by the classifier dialog.
10549 (ClassGroupProperites.__init__): The default line color should
10550 have been Color.Black.
10551
10552 * Thuban/UI/classifier.py: Setting and Getting table values now
10553 uses a consistent set of functions.
10554 (Classifier): Now non-modal. Has field type label which changes
10555 as the field changes. Keep track of buttons in a list so that
10556 we can enable/disable the buttons when the None field is selected.
10557 (SelectPropertiesDialog): Add buttons to make the colors transparent.
10558
10559 * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
10560 does what OnClose did, but can be called by the application to
10561 close a window. Needed when a session changes, and we have to
10562 close the classifier windows.
10563
10564 * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
10565 Shuts down open dialogs. Used when a new session is created
10566 or a session is opened.
10567 (MainWindow.SaveSession): Should only call application.SaveSession()
10568 if we don't call SaveSessionAs first.
10569 (MainWindow.Classify): Allow different classifier dialogs for
10570 different layers.
10571
10572 * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
10573 the parent class handle it. Add Shutdown() to unsubscibe from
10574 event notification and call the parent Shutdown(). This was
10575 necessary so the application can close the tree window.
10576
10577 2003-03-06 Jonathan Coles <[email protected]>
10578
10579 * Thuban/Model/classification.py: Minor documentation changes,
10580 Addition of __eq__ and __ne__ methods.
10581 (Classification.SetLayer): prevent recursion between this method
10582 and Layer.SetClassification().
10583
10584 * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
10585
10586 * Thuban/Model/layer.py (SetClassification): prevent recursion
10587 between this method and Classification.SetLayer().
10588
10589 * test/test_classification.py, test/test_load.py,
10590 test/test_session.py: Fixed and added tests for the classification
10591 classes.
10592
10593 2003-03-06 Bernhard Herzog <[email protected]>
10594
10595 * Thuban/UI/classifier.py (ClassGrid.__init__)
10596 (ClassGrid.CreateTable): Move the SetSelectionMode call to
10597 CreateTable because otherwise it triggers an assertion in
10598 wxPython/wxGTK 2.4.
10599
10600 2003-03-05 Jonathan Coles <[email protected]>
10601
10602 * Thuban/common.py: Move FIELDTYPE constants back to table.py.
10603
10604 * Thuban/Model/load.py: import FIELDTYPE constants from table.
10605
10606 * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
10607
10608 * Thuban/Model/table.py: Put FIELDTYPE constants back.
10609
10610 2003-03-05 Jonathan Coles <[email protected]>
10611
10612 * Thuban/UI/classifier.py: Added class documentation.
10613 Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
10614 Store just the groups in the table and generate the other
10615 column information when it is requested. Add "None" field
10616 to pull-down to select no classification.
10617
10618 * Thuban/common.py: Moved FIELDTYPE constants from table.py
10619 (Str2Num): Only catch ValueError exceptions.
10620
10621 * Thuban/Model/classification.py: Class documentation. Renaming
10622 of methods with Stroke to Line. Groups are stored in a single
10623 list with the default as the first element. Groups are searched
10624 in the order they appear in the list.
10625
10626 * Thuban/Model/color.py: Documentation.
10627
10628 * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
10629 the kind of data represented by a field.
10630
10631 * Thuban/Model/load.py (ProcessSession): Use proper string
10632 conversion function; fixes RTbug #1713.
10633
10634 * Thuban/Model/save.py (Saver): Store field type information.
10635
10636 * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
10637 (Table): Add field_info_by_name() to retrieve field information
10638 by specifying the field name, not the number.
10639
10640 * Thuban/UI/mainwindow.py: Function name changes.
10641
10642 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
10643 get the layer classification once. Don't try to classify
10644 values when the field is None: just use the default properties.
10645
10646 * Thuban/UI/view.py: Function name changes.
10647
10648 * Doc/thuban.dtd: Add field_type attribute to a classification.
10649
10650 2003-03-04 Bernhard Herzog <[email protected]>
10651
10652 * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
10653 the fill and stroke layer attributes optional with suitable
10654 default values. Add the stroke_width layer attribute. Use correct
10655 syntax for empty elements. Make the attribute list for labels
10656 refer to the label element.
10657
10658 2003-03-04 Bernhard Herzog <[email protected]>
10659
10660 * setup.py (thuban_build_py.build): Add a comment about distutils in
10661 Python 2.3 containing some of the functionality we implement in
10662 setup.py ourselves.
10663
10664 * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
10665 before the selection mode. Doing it the other way round triggers
10666 an assertion in wxWindows.
10667
10668 * Thuban/Model/save.py (escape): Fix typo in doc-string
10669
10670 * Thuban/Model/classification.py: Remove unnecessary wxPython
10671 import
10672
10673 2003-03-04 Jonathan Coles <[email protected]>
10674
10675 * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
10676 Parameter 'value' should default to None.
10677
10678 * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
10679 the class attribute __classification is now private.
10680
10681 * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
10682 Classifier to ClassGrid. Added support for removing selected rows,
10683 which including code for keeping track of when cells are selected,
10684 and deselected.
10685 (ClassTable): Support for added/removing rows. Fixed a problem
10686 with __ParseInput whereby it would not allow strings (only numbers)
10687 to be entered.
10688 (Classifier): Added button and supporting code for removing
10689 selected rows.
10690
10691 2003-02-27 Jonathan Coles <[email protected]>
10692
10693 * Thuban/common.py: Moved color conversion functions into
10694 Thuban/UI/common.py.
10695 (Str2Num): Now converts the float (not the string) to a long/int
10696 so that an exception isn't thrown.
10697
10698 * Thuban/UI/common.py: Common functions used in several UI modules
10699
10700 * Thuban/Model/classification.py: Changed the class hierarchy
10701 so that a Classification consists of Groups which return
10702 Properties when a value matches a Group.
10703
10704 * Thuban/Model/layer.py: Fixed name resolution problem.
10705
10706 * Thuban/Model/load.py: Use new Classification and Group functions.
10707
10708 * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
10709 failure.
10710 (Saver.write_classification): Use new Classification and Group
10711 functions.
10712
10713 * Thuban/UI/classifier.py: Changes to use new Classification and Group
10714 functions. Fix to create a tuple with a single value instead of
10715 simply returning the value.
10716
10717 * Thuban/UI/renderer.py: Use new Classification and Group functions.
10718 Use common.py functions.
10719
10720 * Thuban/UI/tree.py: Use common.py functions.
10721
10722 * test/test_classification.py: Use new Classification and Group
10723 classes.
10724
10725 2003-02-24 Jonathan Coles <[email protected]>
10726
10727 * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
10728 functions from Thuban color objects to wxWindow colour objects.
10729
10730 * Thuban/Model/classification.py (Classification): Renamed
10731 GetProperties() to GetClassData(). Used the new iterator
10732 in TreeInfo().
10733 (ClassIterator): Iterator implementation to iterate over the
10734 ClassData objects in a classification object.
10735
10736 * Thuban/Model/save.py (Saver.write_classificaton): Uses
10737 the new iterator to save the classification information.
10738
10739 * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
10740 for changing the stroke and fill colors and previewing the
10741 changes.
10742
10743 * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
10744 MainWindow.SaveSessionAs): Text string changes so the dialogs
10745 have more meaningful titles.
10746
10747 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
10748 Classification method name from GetProperties to GetClassData.
10749
10750 * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
10751 instead of accessing now non-existent class variables.
10752
10753 2003-02-24 Bernhard Herzog <[email protected]>
10754
10755 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
10756 unneeded Shape() call. Rendering is substantially faster without
10757 it and it avoids some problems with broken shape files.
10758
10759 2003-02-20 Frank Koormann <[email protected]>
10760
10761 Force minimal size of identify and label dialogs. The autosizing
10762 looked too ugly.
10763
10764 * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
10765 * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
10766 Set size of listctrl.
10767 * Thuban/UI/identifyview.py (IdentifyView.__init__):
10768 Set size of dialog.
10769
10770 2003-02-19 Jonathan Coles <[email protected]>
10771
10772 * test/test_classification.py, test/test_layer.py,
10773 test/test_load.py, test/test_map.py, test/test_session.py:
10774 Updated the tests to use the new functions that are in the
10775 respective classes.
10776
10777 * Thuban/Model/classification.py (Classification):
10778 Uses the new ClassData* classes. Modification messages are
10779 passed up to the parent layer (if it exists).
10780 (ClassData): New class to encapsulate the common data in each
10781 classification property.
10782 (ClassDataDefault): Represents the Default class. data.
10783 (ClassDataPoint): Represents a single class. data point
10784 (ClassDataRange): Represents a class. range
10785 (ClassDataMap): Represents a class. map (unused).
10786
10787 * Thuban/Model/color.py: Added Color.None to represent something
10788 with no color. Color.Black represents the color black.
10789 (NoColor): Helper class derived from Color to represent something
10790 with no color.
10791
10792 * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
10793 stroke_width attributes. Made the 'classification' attribute private.
10794 New methods for setting/getting the classification.
10795
10796 * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
10797 to get the classifcation and use the new ClassData* classes to
10798 hold the classification data. Use Str2Num to convert numbers
10799 properly.
10800
10801 * Thuban/Model/save.py (Saver): Use new Color and Classification
10802 methods
10803
10804 * Thuban/UI/classifier.py (ClassGrid): New class to represent a
10805 custom grid.
10806 (ClassTable): Support for editing Values and Labels and for
10807 changing what type (point or range) of data is stored in each
10808 property based on how the user enters the data.
10809 (Classifier): Support for saving the new classifications and
10810 launching the dialog to edit a property.
10811 (SelectPropertiesDialog): New class for editing the visual
10812 properties of a classification (stroke color, width, and fill color)
10813 (ClassPreviewer): Took the Draw method from ClassRenderer and
10814 made most of it into this new class. Intend to use this class in
10815 the SelectPropertiesDialog for previewing changes.
10816
10817 * Thuban/UI/renderer.py: Use new Color and Classification methods.
10818
10819 * Thuban/UI/tree.py: Formatting changes.
10820
10821 * Doc/thuban.dtd: Add 'label' element
10822
10823 * Thuban/common.py: New. Contains common routines used throughout
10824 the code.
10825 (Str2Num): Takes a string and converts it to the "best" type of
10826 number.
10827
10828 2003-02-14 Bernhard Herzog <[email protected]>
10829
10830 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
10831 dragging flag is always set to 0 even when the tool implementation
10832 raises an exception
10833
10834 2003-02-11 Bernhard Herzog <[email protected]>
10835
10836 * Thuban/UI/application.py (ThubanApplication.splash_screen): New
10837 method to create a splash screen.
10838 (ThubanApplication.ShowMainWindow): New. Show the main window.
10839 Needed so the splash screen can display the mainwindow
10840 (ThubanApplication.OnInit): Call the
10841 new splash_screen method to determine whether the application
10842 should display a splash screen. If it displays a splash screen do
10843 not immediately show the main window.
10844
10845 2003-02-11 Jonathan Coles <[email protected]>
10846
10847 * Thuban/Model/classification.py: Added import line to fix
10848 feature conflicts between running on python2.2 and python2.1.
10849
10850 * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
10851 onto the clinfo parameter, so removed the deepcopy().
10852
10853 2003-02-10 Jonathan Coles <[email protected]>
10854
10855 * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
10856 Added element_open variable to track opening and closing of tags
10857 so that tags that don't span more than one line are closed with
10858 /> instead of </tag_name>. Use the GetDefault*() methods of
10859 the Classification class.
10860
10861 * Thuban/Model/classification.py (Classificaton): Added set and
10862 get methods for the default data. The class also takes a layer
10863 reference so that modification messages can be sent. Fixed the
10864 methods to use the new ClassData class.
10865 (ClassData): New class to encapsulate the classification data
10866
10867 * Thuban/Model/layer.py (Layer): Remove the
10868 Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
10869 SetDefault*() methods on the layer's classification object.
10870 (Layer.__init__): Use the new SetDefault*() methods in the
10871 Classification class.
10872
10873 * Thuban/Model/load.py (ProcessSession): Use the new ClassData
10874 object instead of a dictionary.
10875
10876 * Thuban/UI/classifier.py (ClassRenderer): New class to
10877 draw the classifications in the dialog box's table.
10878 (Classifier): Modified to use the ClassRenderer class.
10879
10880 * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
10881 methods of the Classification class.
10882
10883 * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
10884 of the ClassData class.
10885
10886 * test/test_classification.py, test/test_layer.py,
10887 test/test_map.py, test/test_session.py: Fix the tests to work
10888 with the above code changes.
10889
10890 2003-02-03 Jonathan Coles <[email protected]>
10891
10892 * Thuban/Model/classification.py (Classification): Added getNull()
10893 to return the NullData reference
10894
10895 * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
10896 Layer.SetStrokeWidth): Modified these functions to change the
10897 null data in the classification rather than keep these values
10898 directly in the Layer class. Menu options to change these values
10899 work again.
10900
10901 2003-01-28 Jonathan Coles <[email protected]>
10902
10903 * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
10904 Fixed crashing problem on some systems. Dialog box shows
10905 classification data.
10906
10907 * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
10908 Colors in the tree view.
10909
10910 * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
10911 the tree info for classifications. Commented out unnecessary lines.
10912
10913 * Thuban/Model/classification.py (Classification.TreeInfo): New
10914 function to add information about the classification into the
10915 tree view.
10916
10917 2003-01-27 Jan-Oliver Wagner <[email protected]>
10918
10919 * Thuban/__init__.py (_): New.
10920
10921 * Thuban/Model/classification.py, Thuban/Model/extension.py,
10922 Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
10923 Thuban/Model/session.py, Thuban/UI/application.py,
10924 Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
10925 Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
10926 Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
10927 Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
10928 Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
10929
10930 2003-01-27 Jonathan Coles <[email protected]>
10931
10932 * Thuban/Model/layer.py: Classification initialization calls.
10933
10934 * Thuban/Model/classification.py: Created class to encapsulate
10935 a layer classification. Supports specific data points and
10936 ranges.
10937
10938 * Thuban/Model/load.py: Added support for loading classification
10939 information.
10940
10941 * Thuban/Model/save.py: Added support for saving classification
10942 information.
10943
10944 * Thuban/UI/classifier.py: Initial class for a dialog box for
10945 specifying classification information.
10946
10947 * Thuban/UI/mainwindows.py: Support for opening the classifier
10948 dialog.
10949
10950 * Thuban/UI/renderer.py: Support for drawing a layer with the
10951 classification information.
10952
10953 * Data/iceland_sample_class.thuban: iceland_sample with
10954 classification data.
10955
10956 * test/test_classification: Tests for the Classification class.
10957
10958 2002-12-09 Bernhard Herzog <[email protected]>
10959
10960 * test/test_command.py: New. Tests for the command classes.
10961
10962 * Thuban/UI/command.py (ToolCommand): New class for tool commands.
10963 (Command.IsTool): New method to distinguish between command
10964 switching tools and other commands.
10965
10966 * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
10967 the tool to avoid direct assignments to instance variables
10968 (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
10969 (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
10970 change the tool
10971
10972 * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
10973 active tool's command turns insensitive, disable the tool.
10974 (_tool_command): Use the new ToolCommand class
10975
10976 * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
10977 SelectTool method to change the tool
10978 (iconfile): Use the ToolCommand class
10979
10980 2002-12-03 Bernhard Herzog <[email protected]>
10981
10982 * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
10983 the case of selected items that are not children of Layers or Maps
10984 properly. Previously this bug would trigger an assertion in
10985 wxWindows.
10986
10987 2002-11-06 Frank Koormann <[email protected]>
10988
10989 * Thuban/UI/mainwindow.py: Altered the order of tools in the
10990 toolbar: First now are all navigation tools (Zoom In/Out, Pan,
10991 Full Extent).
10992
10993 2002-10-23 Bernhard Herzog <[email protected]>
10994
10995 * setup.py (setup call): version now 0.1.3
10996
10997 * MANIFEST.in: Add the files in test/
10998
10999 * test/README: Add note about tests requiring the iceland data
11000
11001 * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
11002 copyright notice.
11003
11004 2002-10-18 Bernhard Herzog <[email protected]>
11005
11006 * test/test_map.py
11007 (TestMapWithContents.test_projected_bounding_box): Use an explicit
11008 epsilon.
11009
11010 * test/support.py (FloatComparisonMixin.assertFloatEqual)
11011 (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
11012 message if the assertion fails and don't return the return value
11013 of self.assert_. In assertFloatSeqEqual the return meant that not
11014 all items of the sequence were compared.
11015
11016 2002-09-20 Bernhard Herzog <[email protected]>
11017
11018 * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
11019
11020 * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
11021
11022 * test/test_map.py (TestMapWithContents.test_tree_info): Create
11023 the string with the bounding box on the fly because of platform
11024 differences in the way %g is handled.
11025
11026 * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
11027 DBFfile too because Thuban layers can't yet cope missing DBF
11028 files.
11029
11030 2002-09-20 Bernhard Herzog <[email protected]>
11031
11032 * test/test_menu.py: Use initthuban instead of
11033 add_thuban_dir_to_path to initialize Thuban.
11034
11035 * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
11036 Mixin class for float comparisons
11037 (SubscriberMixin): New. Mixin class to test messages sent through
11038 the Connector class
11039
11040 * test/README: Fix a typo and add the -v flag to the command for
11041 individual tests
11042
11043 * test/test_session.py: New. Test cases for Thuban.Model.session
11044
11045 * test/test_proj.py: New. Test cases for Thuban.Model.proj
11046
11047 * test/test_map.py: New. Test cases for Thuban.Model.map
11048
11049 * test/test_layer.py: New. Test cases for Thuban.Model.layer
11050
11051 * test/test_label.py: New. Test cases for Thuban.Model.label
11052
11053 * test/test_connector.py: New. Test cases for Thuban.Lib.connector
11054
11055 * test/test_color.py: New. Test cases for Thuban.Model.color
11056
11057 * test/test_base.py: New. Test cases for Thuban.Model.base
11058
11059 2002-09-13 Bernhard Herzog <[email protected]>
11060
11061 * Thuban/Model/session.py (Session.forwarded_channels): Forward
11062 the CHANGED channel too.
11063
11064 * Thuban/Model/map.py (Map.forwarded_channels): Forward the
11065 CHANGED channel too.
11066 (Map.__init__): Call the Modifiable constructor as well.
11067
11068 * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
11069 event if the modified flag changes.
11070 (Modifiable.changed): Tweak the doc-string.
11071
11072 * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
11073 (MainWindow.set_position_text): Put the code that puts the text
11074 with the mouse position into the status bar into the new method
11075 set_position_text so that it can overwritten in derived classes.
11076
11077 2002-09-12 Bernhard Herzog <[email protected]>
11078
11079 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
11080 message box on the main window.
11081
11082 2002-09-11 Bernhard Herzog <[email protected]>
11083
11084 * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
11085 the 'E' because it's less likely to interfere with other menu
11086 entries.
11087 (MainWindow.build_menu): remove an incorrect comment.
11088
11089 2002-09-10 Bernhard Herzog <[email protected]>
11090
11091 * Thuban/UI/mainwindow.py (MainWindow.Map): New.
11092 (_tool_command): Add sensitive parameter
11093 (_has_visible_map): Sensitivity callback to tools and other
11094 commands that require a visible map. Use it in map_zoom_in_tool,
11095 map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
11096 and map_full_extent
11097
11098 2002-09-06 Bernhard Herzog <[email protected]>
11099
11100 * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
11101 VIEW_POSITION
11102
11103 2002-09-04 Frank Koormann <[email protected]>
11104
11105 * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
11106
11107 2002-09-02 Bernhard Herzog <[email protected]>
11108
11109 * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
11110 wxWindows already and our implementation doesn't work correctly
11111 with wxGTK 2.3:
11112 (MapCanvas.__init__): Remove the instance variable
11113 (MapCanvas.OnPaint): Always call do_redraw when there's a map to
11114 be drawin
11115 (MapCanvas.OnIdle): Removed.
11116
11117 * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
11118 a parameter to determine the size of the rectangle.
11119 (MapCanvas.find_shape_at): Create the box around the point on a
11120 layer by layer basis and make the size depend on the shape type.
11121 This solves a problem with the selection of point shapes at the
11122 border of the layer's bounding box
11123
11124 2002-08-30 Bernhard Herzog <[email protected]>
11125
11126 * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
11127 for the sensitivity of remove layer.
11128 (_can_remove_layer): New. Sensitivity callback for remove layer
11129 (Command layer_remove): Use _can_remove_layer
11130
11131 * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
11132 determine whether a given layer can be deleted.
11133
11134 * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
11135 (MapCanvas.do_redraw): Get rid of the unused update_region
11136 instance variable
11137
11138 * Thuban/UI/view.py: Add/update some doc-strings.
11139
11140 * test/: new subdirectory with a bunch of unit tests.
11141
11142 * test/README, test/test_table.py, test/test_save.py,
11143 test/test_menu.py, test/test_load.py: Initial set of tests and
11144 brief instructions on how to run them
11145
11146 2002-08-29 Bernhard Herzog <[email protected]>
11147
11148 * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
11149 arcs with multiple parts.
11150
11151 * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
11152 Handle degenrate rectangles.
11153
11154 * Thuban/Model/table.py: Make writing records work correctly:
11155 (Table.__init__): Keep track of whether the DBF is open for
11156 writing
11157 (Table.write_record): Open the DBF file for writing when necessary
11158
11159 2002-08-27 Bernhard Herzog <[email protected]>
11160
11161 * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
11162 dbf files only for reading by default. Use a new writable dbf
11163 object for writing.
11164
11165 2002-08-26 Bernhard Herzog <[email protected]>
11166
11167 * Thuban/UI/mainwindow.py: Refactor the context creation:
11168 (MainWindow.Context): New method to return a context
11169 (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
11170 new method
11171
11172 * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
11173 layer table specific code from TableGrid into LayerTableGrid
11174 (TableFrame, LayerTableFrame): Split the layer table specific code
11175 from TableFrame into LayerTableFrame
11176 (LayerTableGrid.select_shape): Remove a debug print
11177
11178 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
11179 LayerTableFrame
11180
11181 2002-08-23 Bernhard Herzog <[email protected]>
11182
11183 * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
11184 absolute filename.
11185
11186 2002-08-22 Bernhard Herzog <[email protected]>
11187
11188 * Thuban/Model/table.py (Table.write_record): New method to write
11189 records.
11190 (Table.__init__): Open the DBF file for writing too.
11191
11192 * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
11193 into the underlying table.
11194
11195 * extensions/shapelib/shapefil.h (DBFCommit),
11196 extensions/shapelib/dbfopen.c (DBFCommit): New API function to
11197 commit any changes made to the DBF file.
11198
11199 * Thuban/UI/mainwindow.py (make_check_current_tool)
11200 (_tool_command): Put the code that generates the "checked"
11201 callback into a separate function so that we can reuse it
11202 elsewhere
11203
11204 * Thuban/Model/save.py (Saver): New class to handle serializing a
11205 session into an XML file. The main reason to introduce a class is
11206 that applications built on Thuban can derive from it so that they
11207 can save additional information in a session file.
11208 (save_session): Delegate almost all the work to the Saver class.
11209 Rename the filename argument to file because it may be a file like
11210 object now.
11211
11212 * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
11213 code. Remove the little test code which would be executed when the
11214 module is run as a script which didn't work anymore since it can't
11215 import the other Thuban modules.
11216 (ProcessSession, load_session): Refactor the ProcessSession to
11217 have one method for each element start and end tag so that derived
11218 classes can easily override the processing of individual tags.
11219 Also, always parse with namespaces enabled because applications
11220 built on top of Thuban will likely use namespaces if they extend
11221 the session file format.
11222
11223 2002-08-21 Bernhard Herzog <[email protected]>
11224
11225 * setup.py (ThubanInstall.run): Don't repr install_lib_orig
11226 because thubaninit_contents will do it for us.
11227
11228 2002-08-16 Jan-Oliver Wagner <[email protected]>
11229
11230 * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
11231 tree window already open
11232
11233 2002-08-15 Bernhard Herzog <[email protected]>
11234
11235 * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
11236 with self.
11237
11238 * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
11239 when we have actually captured it.
11240
11241 * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
11242 shapefile and destroy the table.
11243
11244 * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
11245
11246 2002-08-14 Bernhard Herzog <[email protected]>
11247
11248 * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
11249 instance variable columns
11250 (RecordTable.GetTypeName): row and col may be negative in some
11251 cases.
11252
11253 * setup.py (InstallLocal.initialize_options)
11254 (InstallLocal.finalize_options, InstallLocal.user_options): New
11255 option create-init-file to build a thubaninit.py when running
11256 install_local
11257 (InstallLocal.run): Create the thubaninit.py module when requested
11258 (thubaninit_contents): Split the template into several parts and
11259 create a new function thubaninit_contents that creates the
11260 contents of a thubaninit module.
11261 (ThubanInstall.run): Use the new function to create the thubaninit
11262 module.
11263
11264 2002-07-30 Bernhard Herzog <[email protected]>
11265
11266 * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
11267 cleanup.
11268 (ThubanApplication.MainLoop): Extend to automatically call OnExit.
11269
11270 * Thuban/Model/session.py (Session.Destroy): Don't bypass the
11271 direct base class' Destroy method.
11272
11273 * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
11274 layers.
11275 (Map.Destroy): Destroy the label_layer as well and call the
11276 inherited Desatroymethod first so that no more messages are
11277 issued.
11278 (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
11279 message if the stacking order actually has changed. Add
11280 doc-strings.
11281 (Map.BoundingBox): Correct the doc-string.
11282 (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
11283 (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
11284
11285 * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
11286 all labels.
11287
11288 2002-07-29 Bernhard Herzog <[email protected]>
11289
11290 * Thuban/Model/map.py (Map.subscribe_layer_channels)
11291 (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
11292 to a layer's channels into separate methods.
11293 (Map.RemoveLayer, Map.AddLayer): Call the new methods
11294 (Map.Destroy): Unsubscribe from a layer's channels before
11295 destroying it.
11296
11297 * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
11298 selected_layer parameter to searched_layer which is the layer to
11299 search in.
11300 (MapCanvas.SelectShapeAt): New parameter layer to restrict the
11301 search to that layer. Return the selected layer and shape.
11302
11303 * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
11304 typo
11305
11306 2002-07-24 Bernhard Herzog <[email protected]>
11307
11308 * Thuban/UI/application.py (ThubanApplication.create_session):
11309 Extend the doc string.
11310 (ThubanApplication.subscribe_session)
11311 (ThubanApplication.unsubscribe_session): New methods to
11312 subscribe/unsubscribe to/from session channels.
11313 (ThubanApplication.SetSession): Call the new methods here.
11314 (ThubanApplication.maps_changed, ThubanApplication.set_map):
11315 Renamed set_map to maps_changed. Its now a subscriber for
11316 MAPS_CHANGED.
11317
11318 * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
11319 x-coordinate in case of simple clicks
11320
11321 * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
11322 don't pass it as a parameter
11323
11324 * Thuban/Model/session.py (Session.RemoveMap): New
11325
11326 * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
11327 window size into a parameter.
11328
11329 2002-07-23 Bernhard Herzog <[email protected]>
11330
11331 * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
11332 just commands.
11333
11334 * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
11335 parameter list a bit to allow setting the window title and the
11336 initial message in the status bar. Update the callers.
11337
11338 * Thuban/UI/application.py (ThubanApplication.OnInit)
11339 (ThubanApplication.CreateMainWindow): Put the mainwindow
11340 instantiation into a separate method so that it can be overridden
11341 by a subclass.
11342
11343 2002-07-19 Bernhard Herzog <[email protected]>
11344
11345 * Thuban/Model/session.py: Issue a CHANGED message every time
11346 another changed message is issued to make it easier to get
11347 notified of changes.
11348 (Session): Update the doc string
11349 (Session.forward): Issue changed-events as CHANGED as well.
11350 (Session.changed): Overwrite the inherited version to issue
11351 CHANGED events as well.
11352
11353 * Thuban/UI/tree.py: We can now simply subscribe to the session's
11354 CHANGED channel to be informed of changes.
11355 (SessionTreeCtrl.session_channels): Not needed any longer.
11356 (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
11357 Only have to (un)subscribe CHANGED
11358
11359 * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
11360
11361 * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
11362 for the wxPython locale bug to __init__.py so that it's
11363 automatically executed by anybody using UI code from Thuban.
11364
11365 2002-07-18 Bernhard Herzog <[email protected]>
11366
11367 * Thuban/UI/main.py (main): app no longer needs to be global
11368
11369 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
11370 as parameter and store it in an instance variable
11371 (MainWindow.invoke_command, MainWindow.update_command_ui)
11372 (MainWindow.save_modified_session, MainWindow.NewSession)
11373 (MainWindow.OpenSession, MainWindow.SaveSession)
11374 (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
11375 application object.
11376
11377 * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
11378 the main window with self.
11379
11380 * Thuban/UI/context.py: New module with the context class
11381
11382 * Thuban/UI/command.py (Command): Update doc string.
11383
11384 * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
11385 MainWindow.update_command_ui): Pass an instance of the context
11386 class to the command's methods
11387 (check_current_tool, call_method): Handle the new context
11388 implementation
11389
11390 * Examples/simple_extensions/simple_tool.py (simple_tool,
11391 check_simple_tool): Handle the new context implementation
11392
11393 * Examples/simple_extensions/simple_command.py (simple_command):
11394 Handle the new context implementation. Update the comments about
11395 the context.
11396
11397 * Thuban/UI/application.py (ThubanApplication.SetSession): Add
11398 doc-string
11399 (ThubanApplication.Session): New method to return the session
11400 object
11401
11402 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
11403 interactor's selected_layer may not be a layer of the current
11404 session when the tree is updated while a new session is being set.
11405
11406 2002-07-17 Bernhard Herzog <[email protected]>
11407
11408 * Thuban/UI/tree.py (color_string): Removed. No longer used.
11409 (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
11410 update_tree into update_tree and add_items. The tree now uses a
11411 more generic way to display the contents of the tree.
11412 (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
11413
11414 * Thuban/Model/layer.py (Layer.TreeInfo),
11415 Thuban/Model/extension.py (Extension.TreeInfo),
11416 Thuban/Model/map.py (Map.TreeInfo),
11417 Thuban/Model/session.py (Session.TreeInfo):
11418 Add TreeInfo methods to implement the new tree view update scheme
11419
11420 2002-07-16 Bernhard Herzog <[email protected]>
11421
11422 * Thuban/UI/application.py: Don't use "import from" for the
11423 MainWindow. It can't always be resolved.
11424 (ThubanApplication.OnInit): change reference to MainWindow
11425 accordingly.
11426
11427 * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
11428 completely
11429
11430 2002-07-10 Bernhard Herzog <[email protected]>
11431
11432 * setup.py (create_init_module): New configurable variable whose
11433 default depends on the platform we're running on.
11434 (ThubanInstall.initialize_options): Initialize
11435 self.create_init_module from the global create_init_module
11436 (ThubanInstall.user_options): indictate that the options
11437 create-init-module and init-module-dir have arguments.
11438
11439 * setup.py: In the setup call change the version number to include
11440 cvs.
11441
11442 * MANIFEST.in: Add the files in Examples
11443
11444 2002-07-09 Bernhard Herzog <[email protected]>
11445
11446 * setup.py: In the setup call, use the thuban homepage as the
11447 value of the url parameter.
11448
11449 * Examples: New subdirectory for examples.
11450
11451 * Examples/simple_extensions/simple_tool.xpm,
11452 Examples/simple_extensions/simple_tool.py,
11453 Examples/simple_extensions/simple_command.py,
11454 Examples/simple_extensions/README: Simple examples showing how to
11455 add new commands and tools.
11456
11457 * setup.cfg (bdist_rpm): Add the default value for prefix and tell
11458 bdist_rpm that we also have an install script.
11459 (bdist_inno): Add 2002 to the copyright notice.
11460
11461 * setup.py: Create a file in python's site-packages directory to
11462 make installation of Thuban as a library easier.
11463 (ThubanInstall.user_options): Add two new options,
11464 create-init-module and init-module-dir
11465 (ThubanInstall.expand_with_pure_python_dirs): New method to expand
11466 filenames for installation in the default directories.
11467 (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
11468 the inherited methods to capture some filenames before they're
11469 transformed too much by distutils.
11470 (ThubanInstall.run): Create the init module if requested.
11471 (ThubanInstall.thuban_init_filename): New method to return the
11472 full name of the init module.
11473 (ThubanInstall.get_outputs): Append the filename of the init
11474 module.
11475
11476 2002-07-08 Bernhard Herzog <[email protected]>
11477
11478 * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
11479 handle the prefix properly which means that the default for the
11480 installation prefix should be /usr for RPMs and /usr/local when
11481 doing a normal source install.
11482 (bdist_rpm_install_script): Script to override the default install
11483 commands in the specfile generated by the bdist_rpm command.
11484 (thuban_bdist_rpm.user_options): Add a prefix option
11485 (thuban_bdist_rpm.initialize_options): Init the prefix option.
11486 Create the script files for the spec files as empty files here
11487 (thuban_bdist_rpm._make_spec_file): Override the inherited method
11488 to fill the script files with content.
11489
11490 * Thuban/Model/save.py (relative_filename): Wrapper around
11491 Thuban.Lib.fileutil.relative_filename that accepts an empty dir
11492 argument. save_session now automatically uses this version,
11493 solving a problem when saving to a relative filename.
11494
11495 * setup.py: In the setup call, make sure that the library
11496 directories are under $prefix/lib not directly under $prefix.
11497
11498 2002-06-20 Jan-Oliver Wagner <[email protected]>
11499
11500 * Thuban/Model/extension.py: new module to handle extension objects.
11501 * Thuban/Model/messages.py: new messages for extensions.
11502 * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
11503 Session.AddExtension): new for handling extensions.
11504 Also some other minor changes to round up extension handling.
11505 * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
11506 of Extension titles and title and names of its objects.
11507
11508 2002-05-29 Bernhard Herzog <[email protected]>
11509
11510 * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
11511 the events for a command.
11512 (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
11513 Call bind_command_events to bind the events. add_toolbar_command
11514 can now bind events too so that it's possible to have commands
11515 that are only available through the toolbar.
11516 (MainWindow.init_ids): New instance variable events_bound to keep
11517 track of for which commands events have been bound.
11518
11519 2002-05-28 Bernhard Herzog <[email protected]>
11520
11521 * Thuban/UI/menu.py: New module to build and manage menus.
11522
11523 * Thuban/UI/mainwindow.py: Remove some unused imports.
11524 (MainWindow.__init__, main_menu): move the definition of the main
11525 menu from __init__ to the Menu instance main_menu.
11526 (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
11527 build the menu bar and sub-menus from a menu description.
11528
11529 * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
11530 startup file
11531 (ThubanApplication.read_startup_files): New method to run
11532 ~/.thuban/thubanstart.py
11533
11534 * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
11535 Move the toolbar definition to the Menu instance main_toolbar.
11536 (MainWindow.build_toolbar): New method to build the toolbar
11537 similar to the build_menu methods
11538
11539 2002-05-23 Bernhard Herzog <[email protected]>
11540
11541 * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
11542 layer_outline_color. Fix it in the definition of the command too.
11543
11544 * Thuban/UI/command.py (Command): Fix typo in doc string
11545
11546 2002-05-22 Bernhard Herzog <[email protected]>
11547
11548 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
11549 in the docstring
11550
11551 2002-05-15 Bernhard Herzog <[email protected]>
11552
11553 * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
11554 when the shapefile is empty.
11555 (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
11556 now return None for empty shapefiles. Update doc-strings.
11557
11558 * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
11559 the layer's bbox being None.
11560
11561 * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
11562 layer's bbox being None.
11563
11564 * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
11565 necessary.
11566 (MapCanvas.__init__): New instance variables, last_selected_layer
11567 and last_selected_shape to determine how the selection has
11568 changed.
11569
11570 * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
11571 AutoSizeColumns because it will cause a traversal of the entire
11572 table which for large .dbf files will take a very long time.
11573
11574 2002-05-14 Bernhard Herzog <[email protected]>
11575
11576 * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
11577 maximum depth for the tree than shapelib does by default.
11578
11579 2002-05-10 Bernhard Herzog <[email protected]>
11580
11581 * setup.py (py_modules): The shptree modules doesn't have a
11582 wrapper, so don't include it in the py_modules
11583
11584 2002-05-08 Bernhard Herzog <[email protected]>
11585
11586 * extensions/shapelib/shptree.c (compare_ints): Make arguments
11587 const void * as in the qsort prototype
11588 (SHPTreeFindLikelyShapes): Remove some unused variables.
11589
11590 * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
11591 maintains to redraw the window during a drag.
11592 (MapCanvas.unprojected_rect_around_point): New method to determine
11593 a small region around a point for hit-testing.
11594 (MapCanvas.find_shape_at): Only test the shapes in a small region
11595 around the point.
11596
11597 * setup.py: Increment the version to 0.1.2
11598
11599 * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
11600 debug print and set session to None after unsubscribing
11601
11602 2002-05-07 Bernhard Herzog <[email protected]>
11603
11604 * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
11605 the file to have a .thuban extension.
11606
11607 * Thuban/UI/tree.py (session_channels): New class constant with
11608 all the session channels to subscribe to to update the tree
11609 (SessionTreeCtrl.session_changed): Remember the session so that we
11610 can unsubscribe properly. Use the new class constant to
11611 unsubscribe from the old session and subscribe to the new one.
11612 (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
11613 subscriptions of the SessionTreeCtrl.
11614 (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
11615
11616 * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
11617 Session Tree" command to the file menu.
11618
11619 * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
11620 as update_region to the renderer.
11621
11622 * Thuban/UI/renderer.py
11623 (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
11624 update box is now directly a tuple, not a wxRect anymore.
11625
11626 * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
11627 prints.
11628
11629 2002-05-07 Bernhard Herzog <[email protected]>
11630
11631 * setup.py: Add the shptree extension module. See
11632 extensions/pyshapelib/ChangeLog for more details.
11633
11634 * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
11635 extensions/shapelib/dbfopen.c: Really update to the versions of
11636 shapelib 1.2.9. For some reason it wasn't really done on
11637 2002-04-11.
11638
11639 * extensions/shapelib/shptree.c: Modified version of shptree.c of
11640 shapelib 1.2.9. The only real difference is the use of qsort
11641 instead of a bubble sort implementation
11642
11643 * Thuban/Model/layer.py (Layer.__init__): New instance variable
11644 shapetree to hold the shapelib quadtree for the shapefile
11645 (Layer.open_shapefile): Create the quad tree.
11646 (Layer.ShapesInRegion): New method to return the ids of shapes in
11647 a given region using the quad tree.
11648
11649 * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
11650 comment
11651 (draw_polygon_shape): Accept both arcs and polygons.
11652 (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
11653 the api.
11654
11655 * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
11656 return the shape ids to be rendered in a given layer.
11657 (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
11658 ids. Use draw_polygon_shape to draw arc shapes as well.
11659 (ScreenRenderer.RenderMap): New parameter for the rectangle that
11660 has to be updated
11661 (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
11662 calling it's ShapesInRegion method.
11663
11664 * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
11665 update_region for the update region.
11666 (MapCanvas.OnPaint): Maintain the update region
11667 (MapCanvas.do_redraw): Pass the bounding box of the update_region
11668 to the renderer when drawing the bitmap. Reset the update_region.
11669
11670 2002-05-03 Bernhard Herzog <[email protected]>
11671
11672 * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
11673 MainWindow.OpenSession): Change the file extension of the session
11674 files to .thuban
11675
11676 * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
11677 Move the map channels to be forwarded by the session into the
11678 class constant with forwarded_channels. Also add
11679 LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
11680 forwarded_channels
11681
11682 * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
11683 typo and some rewording).
11684
11685 2002-05-02 Bernhard Herzog <[email protected]>
11686
11687 * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
11688 around to speed up most redraws:
11689 (MapCanvas.__init__): New instance variable bitmap which holds the
11690 bitmap
11691 (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
11692 self.bitmap to draw.
11693 (MapCanvas.full_redraw): New method to force a full redraw
11694 including the bitmap
11695 (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
11696 make sure the bitmap is redrawn.
11697 (MapCanvas.projection_changed, MapCanvas.set_view_transform,
11698 MapCanvas.shape_selected): Call full_redraw instead of readraw to
11699 make sure the bitmap is redrawn.
11700 (MapCanvas.OnSize): New method to handle size events so that the
11701 bitmap can be redrawn.
11702
11703 2002-04-29 Bernhard Herzog <[email protected]>
11704
11705 * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
11706 canvas' VIEW_POSITION event
11707 (MainWindow.view_position_changed): Handler for VIEW_POSITION.
11708 Update the text in the status-bar accordingly.
11709
11710 * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
11711 (MapCanvas.__del__): Implement because Publisher.__del__ has to be
11712 called.
11713 (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
11714 current_position
11715 (MapCanvas.set_current_position): New method to set
11716 current_position. Issue a VIEW_POSITION event
11717 (MapCanvas.CurrentPosition): New public method to return the value
11718 of current_position. Should be called when the VIEW_POSITION event
11719 is processed.
11720 (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
11721 Update the position.
11722 (MapCanvas.OnLeaveWindow): Set the position to None.
11723
11724 * Thuban/UI/messages.py (VIEW_POSITION): New message for the
11725 position in the statusbar
11726
11727 2002-04-26 Frank Koormann <[email protected]>
11728
11729 * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
11730
11731 2002-04-24 Frank Koormann <[email protected]>
11732
11733 * Resources/Bitmaps/identify.xpm: shadow added
11734
11735 * Resources/Bitmaps/fullextent.xpm: new
11736
11737 2002-04-22 Jan-Oliver Wagner <[email protected]>
11738
11739 * Thuban/UI/tree.py (update_tree): added test for None on map bounding
11740 box
11741
11742 2002-04-21 Jan-Oliver Wagner <[email protected]>
11743
11744 * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
11745
11746 * Thuban/UI/tree.py (update_tree): added added map extent
11747
11748 * Thuban/UI/mainwindow.py (_method_command): extended by parameter
11749 icon; added map_full_extend as tool
11750
11751 2002-04-19 Jan-Oliver Wagner <[email protected]>
11752
11753 * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
11754 saving _new_ sessions
11755
11756 * Thuban/Model/session.py (create_empty_session): new session
11757 don't have a filename (set to None)
11758
11759 * Thuban/UI/tree.py (update_tree): added filename and modified flag
11760
11761 * Thuban/Model/load.py (ProcessSession): convert projection
11762 parameters from unicode to regular string
11763
11764 * Data/iceland_sample.session: Added UTM Zone 26 projection.
11765
11766 2002-04-11 Bernhard Herzog <[email protected]>
11767
11768 * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
11769 extensions/shapelib/dbfopen.c: Update to the versions of shapelib
11770 1.2.9
11771
11772 * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
11773 the pyshapelib directoy into the list of include dirs, so that
11774 pyshapelib_api.h can be found.
11775
11776 * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
11777 holds the pyshapelib C-API
11778 (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
11779 pyshapelib_api to access the shapelib functions.
11780 (initwxproj): Import the c_api from the shapelib module and
11781 initialize pyshapelib_api.
11782
11783 2002-04-04 Bernhard Herzog <[email protected]>
11784
11785 * setup.py (thuban_bdist_rpm.initialize_options): Use
11786 initialize_options to create the scripts for the rpm.
11787
11788 * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
11789
11790 2002-04-03 Bernhard Herzog <[email protected]>
11791
11792 * setup.py: Increment version to 0.1.1
11793
11794 * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
11795 Layer" and "Remove Layer" commands from the layer menu to the map
11796 menu
11797
11798 2002-02-15 Bernhard Herzog <[email protected]>
11799
11800 * Thuban/Model/layer.py (Layer.Shape): list append only takes one
11801 argument (python <= 1.5.2 erroneously accepted multiuple
11802 arguments)
11803
11804 2002-02-04 Bernhard Herzog <[email protected]>
11805
11806 * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
11807 RecordGrid in the identifyview.
11808 (IdentifyView.__init__): Use IdentifyGridCtrl instead of
11809 IdentifyListCtrl. The grid allows editing of the values.
11810
11811 * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
11812 implementing a grid for a single row of a thuban table.
11813
11814 * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
11815 layers by default. Easier to use than the previous default of only
11816 searching through the select layer which meant that if no layer
11817 was selected, you couldn't select a shape.
11818
11819 * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
11820
11821 * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
11822 stroke_width attribute
11823
11824 * Thuban/Model/save.py (save_session): Write the new stroke_width
11825 attribute
11826
11827 * Thuban/Model/load.py (ProcessSession.startElement): Read the
11828 stroke_width attribute
11829
11830 * Thuban/Model/layer.py (Layer.__init__): New parameter and
11831 instance variable stroke_width
11832 (Layer.SetStrokeWidth): Set the stroke_width.
11833
11834 2002-02-01 Bernhard Herzog <[email protected]>
11835
11836 * extensions/thuban/wxproj.cpp (project_points): Fix two
11837 off-by-one errors in the last loop that joins the various parts
11838 together.
11839
11840 2002-01-14 Bernhard Herzog <[email protected]>
11841
11842 * setup.py (data_dist.make_distribution): Fix some typos
11843
11844 2001-09-18 Bernhard Herzog <[email protected]>
11845
11846 * README: Slight tweaking in preparation for the 0.1 release
11847
11848 * setup.cfg: Add section for sdist to create both tgz and zip
11849 archives
11850
11851 * setup.py: increase version number to 0.1
11852 (data_dist): New command class for data distribution
11853
11854 2001-09-14 Bernhard Herzog <[email protected]>
11855
11856 * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
11857 Handle the case of no layer (i.e. layer is None) properly.
11858
11859 * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
11860 Set the initial selection of the combo boxes to reflect the
11861 projection we're starting with in a way that works on windows,
11862 too.
11863
11864 * Thuban/Lib/connector.py (Connector.print_connections): Print the
11865 puiblisher's ids in hex to make it easier to compare them to the
11866 standard repr of python methods
11867
11868 * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
11869 messages
11870
11871 2001-09-13 Bernhard Herzog <[email protected]>
11872
11873 * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
11874 deselect the layer if no layer is selected
11875
11876 * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
11877 idle time when there actually is something to draw. If there's
11878 nothing to draw simply clear the window
11879 (MapCanvas.do_redraw): Call dc.EndDrawing and add some comments.
11880 (MapCanvas.SetMap): force a redraw in all cases because
11881 FitMapToWindow doesn't always do it.
11882 (MapCanvas.ZoomFactor): Add an optional parameter, center, to
11883 specify the point to move into the center of the window
11884 (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
11885 dragged, zoon in/out by a factor of 2
11886 (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
11887 index, i.e. reversed drawing order) so that objects appearing to
11888 be in from of others are selected first. This is probably mostly
11889 relevant for point shapes where the symbols used may overlap
11890
11891 * Thuban/Model/session.py (create_empty_session): Unset the
11892 modified bit before returning it
11893
11894 * Thuban/UI/mainwindow.py (MainWindow.NewSession): Use
11895 create_empty_session session to create the new, empty session.
11896
11897 * Thuban/UI/mainwindow.py (MainWindow.__init__): Set the size of
11898 the tool bitmaps.
11899 (MainWindow.OnClose, MainWindow.save_modified_session): Separate
11900 the code that asks whether the session should be saved into the
11901 new method save_modified_session.
11902 (MainWindow.OpenSession, MainWindow.NewSession): Use the new
11903 method to save modified session here too.
11904
11905 2001-09-11 Bernhard Herzog <[email protected]>
11906
11907 * setup.py (InnoIconItem): fix typo
11908
11909 (thuban_bdist_inno.run):
11910 (bdist_inno.run): Move the decision not to create symlinks on
11911 non-nt platforms to thuban_bdist_inno and do it unconditinally
11912 since we never want to create the symlinks here
11913
11914 2001-09-10 Bernhard Herzog <[email protected]>
11915
11916 * Thuban/UI/mainwindow.py (MainWindow.IdentifyTool): Popup the
11917 identify view immediately
11918
11919 * Thuban/UI/controls.py: New file with two classes RecordListCtrl
11920 and SelectableRecordListCtrl that implement the code shared by the
11921 identify view and the label dialog
11922
11923 * Thuban/UI/identifyview.py (IdentifyListCtrl): Derive from the
11924 new class RecordListCtrl
11925
11926 * Thuban/UI/labeldialog.py (LabelDialog.OnOK): Check whether the
11927 return value of GetValue is None instead of using it as a boolean
11928 directly so that Zero numbers are handled properly.
11929 (LabelListCtrl): Derive from the new class
11930 SelectableRecordListCtrl
11931
11932 * Thuban/UI/proj4dialog.py (Proj4Dialog.__init__):
11933 (Proj4Dialog.dialogLayout): Make the window resizable and set the
11934 size of the text control explicitly to make the sizers work on
11935 both Windows and X.
11936
11937 2001-09-07 Bernhard Herzog <[email protected]>
11938
11939 * Thuban/UI/view.py (MapCanvas.find_shape_at):Add a new parameter
11940 that can limit the search to the currently selected layer.
11941 (MapCanvas.SelectShapeAt): Make sure that the currently selected
11942 layer stays selected even when no shape is found
11943 (MapCanvas.FitRectToWindow): If the rect has zero with or zero
11944 height do nothing (avoids zero division errors)
11945
11946 2001-09-06 Bernhard Herzog <[email protected]>
11947
11948 * Thuban/UI/tree.py (SessionTreeCtrl, SessionTreeView.__init__):
11949 Correct the spelling of SessionTreeCtrl. dabbrev is too damn
11950 convenient :-)
11951 (SessionTreeCtrl.__init__, SessionTreeCtrl.update_tree): Introduce
11952 a new instvar layer_to_item to map layers to tree items
11953 (SessionTreeCtrl.layer_selected): Select the appropriate tree item
11954 to match the current selection in the interactor
11955
11956 * Thuban/UI/interactor.py (Interactor.SelectedLayer):
11957 (Interactor.HasSelectedLayer): New methods to query the current
11958 selection
11959
11960 * Thuban/UI/mainwindow.py (MainWindow.current_layer):
11961 (MainWindow.has_selected_layer): Simply call the appropriate
11962 interactor method
11963
11964 * Thuban/UI/mainwindow.py (MainWindow.__init__):
11965 (MainWindow.LayerShowTable):
11966 (MainWindow.identify_view_on_demand): Store the interactor in an
11967 instvar and use that reference instead of going through main.app
11968
11969 * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
11970 * Thuban/UI/application.py (ThubanApplication.OnInit):
11971 * Thuban/UI/main.py (main): Create the session tree view in main
11972 with the new mainwindow method ShowSessionTree and not directly
11973 the application's OnInit method
11974
11975 * Thuban/UI/tree.py (myTreeCtrlPanel):
11976 (SessioinTreeCtrl): Rename to SessioinTreeCtrl and turn it into a
11977 TreeCtrl isntead of a panel. This affects most method since we now
11978 refer to self instead of self.tree
11979 (SessionTreeView): New class implementing a non-modal dialog
11980 showing the session tree.
11981
11982 * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Pass the
11983 layer to the tableview dialog.
11984
11985 * Thuban/UI/tableview.py: Add some doc-strings
11986 (TableGrid):
11987 (TableGrid.OnRangeSelect):
11988 (TableGrid.OnSelectCell):
11989 (TableFrame.__init__):
11990 (TableFrame.row_selected):
11991 Selecting rows in the grid view now updates the selected shapes
11992 through the TableFrame. To achieve this we derive TableGrid from
11993 Publisher and introduce the message type ROW_SELECTED which the
11994 TableFrame subscribes to and which is issued by OnRangeSelect and
11995 OnSelectCell
11996
11997 (DataTable.SelectRow): Removed because it's no longer needed in
11998 the row/shape selection scheme
11999
12000 * Thuban/UI/dialogs.py: New file implementing common classes for
12001 dialogs
12002
12003 * Thuban/UI/tableview.py (TableGrid.__init__): Don't subscribe to
12004 the SELECTED_SHAPE message anymore. This is now handled by the
12005 parent.
12006 (TableGrid.select_shape): Only update the selection if the shape
12007 is not None.
12008 (TableFrame): Inherit from the new NonModalDialog class.
12009 (TableFrame.__init__, TableFrame.select_shape): Handle the
12010 SELECT_SHAPE message.
12011 (TableFrame.OnClose): Extend the inherited method to unsubscribe
12012 SELECT_SHAPE
12013
12014 * Thuban/UI/mainwindow.py (MainWindow.init_dialogs):
12015 (MainWindow.add_dialog):
12016 (MainWindow.dialog_open):
12017 (MainWindow.remove_dialog):
12018 (MainWindow.get_open_dialog): New methods to maintain a dictionary
12019 of opened non-modal dialogs.
12020
12021 (MainWindow.__init__): Initialize the new non-modal dictionary
12022 management code
12023 (MainWindow.LayerShowTable): maintain separate dialogs for each
12024 table using the non-modal dialog management code to only open a
12025 view once for each table.
12026
12027 (MainWindow.IdentifyTool):
12028 (MainWindow.__init__):
12029 (MainWindow.identify_view_on_demand): Don't open the identify view
12030 in IdentifyTool anymore. This will be done automatically by the
12031 new method identify_view_on_demand which handles the
12032 SELECTED_SHAPE message so that the identify view will be opened on
12033 demand
12034
12035 * Thuban/UI/identifyview.py (IdentifyListCtrl.__init__): Remove
12036 the interactor argument. The SELECTED_SHAPE message is now handled
12037 by the parent.
12038 (IdentifyView.__init__): Add the interactor argument so that we
12039 can handle the SELECTED_SHAPE message here
12040 (IdentifyView.selected_shape): New method to handle the
12041 SELECTED_SHAPE messages
12042
12043 * Thuban/UI/identifyview.py (IdentifyView): Derive from the new
12044 NonModalDialog class
12045 (IdentifyView.OnClose): Extend the inherited version to
12046 unsubscribe SELECT_SHAPE
12047
12048 * Thuban/Model/session.py (Session.UnsetModified): Remove debug prints
12049
12050 2001-09-05 Bernhard Herzog <[email protected]>
12051
12052 * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
12053
12054 * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
12055 interactor to pass through to the MapCanvas
12056
12057 * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
12058 argument to the MainWindow constructor to get rid of the ugly hack
12059 that made main.app available early just so that the mapcanvas
12060 could access the interactor object.
12061
12062 2001-09-04 Bernhard Herzog <[email protected]>
12063
12064 * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): New method
12065 that runs a modal message box
12066 (MainWindow.OnClose): Use the new method
12067 (MainWindow.RemoveLayer): Just do nothing in case no layer is
12068 selected. The command should be grayed out anyway, so there's no
12069 need to pop up a message box.
12070 (MainWindow.AddLayer): Pop up a message box with an error message
12071 if the shape file can't be opened
12072
12073 * Thuban/Model/layer.py (Layer.__init__): Open the shapefile
12074 immediately. This will cause an exception in case the file can't
12075 be opened and we can display an appropriate message.
12076
12077 * MANIFEST.in: Add extensions/pyprojection/LICENSE
12078
12079 * setup.py (thuban_bdist_rpm): New class implementing a Thuban
12080 specific bdist_rpm command.
12081
12082 * Thuban/UI/main.py: Catch ImportError exceptions when importing
12083 the locale module because it may not be available on some
12084 installations.
12085
12086 * extensions/pyprojection/LICENSE: Copy of the license text in
12087 Projection.i. Having it in a separate file makes it easier to
12088 refer to license text in e.g. RPMs
12089
12090 2001-09-03 Bernhard Herzog <[email protected]>
12091
12092 * setup.py: use wx-config instead of wxgtk-config because it's
12093 more generic
12094
12095 * setup.py (ThubanInstall.get_outputs): Add the symlink in
12096 <prefix>/bin to the outputs
12097 (ThubanInstall.link_file): New method to link files. We need this
12098 because the standard copy_files refuses to link non-existing
12099 files.
12100 (ThubanInstall.run): Remove the leading install root from the
12101 script filename if an install root was specified and use the new
12102 link_file method
12103
12104 * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
12105 the window when the first layer is added to the map.
12106
12107 * setup.py (ThubanInstall.run): Honor the build root (self.root)
12108 when linking thuban.py to <prefix>/bin
12109
12110 2001-08-31 Bernhard Herzog <[email protected]>
12111
12112 * setup.py: In the setup call, the install parameters shouldn't
12113 have trailing slashes because distutils on non-posix platforms
12114 doesn't like that. The same applies to other directories like
12115 "Resources/Bitmaps"
12116
12117 In the configuration section for nt, move the wxWindows directory
12118 optins into the part clearly marked as editable.
12119
12120 (InstallLocal.initialize_options):
12121 (InstallLocal.user_options): remove the currently unused debug
12122 flag
12123 (thuban_build_py.find_all_modules): Add this method so that it
12124 works for our case of having packages and modules in one
12125 distribution as well.
12126 (ThubanInstall.initialize_options):
12127 (ThubanInstall.finalize_options):
12128 (ThubanInstall.user_options):
12129 (ThubanInstall.boolean_options): Add new options, do-symlink and
12130 extra files. Since these are the first ThubanInstall specific
12131 options, override user_options and boolean_options
12132 (ThubanInstall.run): Honor the new do-symlink and extra-files
12133 options.
12134 (ThubanInstall.get_outputs): Add to override the base-class's
12135 version and add the extra-files to the outputs
12136 (bdist_inno): New class for windows distributions with Inno Setup
12137 (InnoIconItem): Helper class for bdist_inno
12138 (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
12139 this together with the appropriate parameters, to the setup call.
12140
12141 * setup.cfg (bdist_inno): added new section for the inno setup
12142 installer
12143
12144 * Thuban/UI/tree.py (myTreeCtrlPanel.__init__): New inst var
12145 changing_selection to avoid recursive selection events when
12146 modifying the selection in response to a selection event.
12147 (myTreeCtrlPanel.normalize_selection): Set the new inst var when
12148 changing the tree's selection.
12149 (myTreeCtrlPanel.OnSelChanged): Only normalize the selection when
12150 we're not being called indirectly from normalize_selection.
12151
12152 * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): Call
12153 event.Check only if the command is actuall checkable.
12154 (MainWindow.__init__): Call the toolbar's Realize method to make
12155 sure that the items are actually shown
12156
12157 2001-08-28 Bernhard Herzog <[email protected]>
12158
12159 * setup.py: Fix some doc strings
12160
12161 * ChangeLog: started
12162

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26