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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 184 by bh, Thu May 23 14:59:28 2002 UTC revision 2650 by bh, Tue Jul 5 20:23:59 2005 UTC
# Line 1  Line 1 
1    2005-07-05  Bernhard Herzog  <[email protected]>
2    
3            * README: gdal 1.1.8 is too old.  1.2.5 works.
4    
5    2005-07-05  Bernhard Herzog  <[email protected]>
6    
7            * Resources/XML/thuban-1.1.dtd (rasterlayer): Add the opacity and
8            masktype attributes.
9    
10    2005-07-05  Bernhard Herzog  <[email protected]>
11    
12            * Thuban/Model/layer.py (Layer.__mangle_bounding_box)
13            (Layer.ClipBoundingBox): Rename ClipBoundingBox to
14            __mangle_bounding_box.  See the comments in the code and RT #2845
15    
16            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
17            Remove the explicit test of ClipBoundingBox.  The method isn't
18            public anymore and the direct call in the test wasn't necessary in
19            the first place.  If ClipBoundingBox (now __mangle_bounding_box)
20            isn't called, the return value of ShapesInRegion will be
21            different.
22    
23    2005-07-05  Bernhard Herzog  <[email protected]>
24    
25            * Thuban/UI/viewport.py (ViewPort.set_view_transform): Handle
26            ZeroDivisionError exceptions.  I don't know when they happen
27            exactly.  It probably happens when the projections aren't set
28            properly.
29    
30    2005-07-01  Bernhard Herzog  <[email protected]>
31    
32            First step towards unicode.  With this roughly we're at step 1
33            string_representation.txt
34    
35            * Doc/technotes/string_representation.txt: New.  Document how
36            strings are represented in Thuban and how to get to a Unicode
37            Thuban.
38    
39            * Thuban/__init__.py (set_internal_encoding)
40            (unicode_from_internal, internal_from_unicode): New. The first few
41            functions for the internal string representation
42    
43            * Thuban/UI/about.py (unicodeToLocale): Removed.  Use
44            internal_from_unicode instead.
45    
46            * Thuban/UI/__init__.py (install_wx_translation): Determine the
47            encoding to use for the internal string representation.  Also,
48            change the translation function to return strings in internal
49            representation even on unicode builds of wxPython
50    
51            * Thuban/Model/load.py (SessionLoader.check_attrs): Decode
52            filenames too.
53            (SessionLoader.start_clrange): Use check_attrs to decode and check
54            the attributes.
55    
56            * Thuban/Model/xmlreader.py (XMLReader.encode): Use
57            internal_from_unicode to convert unicode strings.
58    
59            * Thuban/Model/xmlwriter.py (XMLWriter.encode): Use
60            unicode_from_internal when applicable
61    
62            * test/runtests.py (main): New command line option:
63            internal-encoding to specify the internal string encoding to use
64            in the tests.
65    
66            * test/support.py (initthuban): Set the internal encoding to
67            latin-1
68    
69            * test/test_load.py (TestSingleLayer.test, TestClassification.test)
70            (TestLabelLayer.test): Use the internal string representation when
71            dealing with non-ascii characters
72    
73            * test/test_load_1_0.py (TestSingleLayer.test)
74            (TestClassification.test, TestLabelLayer.test): Use the internal
75            string representation when dealing with non-ascii characters
76    
77            * test/test_load_0_9.py (TestSingleLayer.test)
78            (TestClassification.test): Use the internal string representation
79            when dealing with non-ascii characters
80    
81            * test/test_load_0_8.py (TestUnicodeStrings.test): Use the
82            internal string representation when dealing with non-ascii
83            characters
84    
85            * test/test_save.py (XMLWriterTest.testEncode)
86            (SaveSessionTest.testClassifiedLayer): Use the internal string
87            representation when dealing with non-ascii characters where
88            applicable
89    
90    2005-06-30  Bernhard Herzog  <[email protected]>
91    
92            * test/runtests.py: Untabify.
93    
94    2005-06-30  Bernhard Herzog  <[email protected]>
95    
96            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
97            untabify.
98    
99    2005-06-30  Bernhard Herzog  <[email protected]>
100    
101            * Extensions/ogr/test/__init__.py: Add missing coding directive
102    
103    2005-06-28  Jan-Oliver Wagner <[email protected]>
104    
105            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
106            Use the default size for rendering selected items of default type.
107            Fixes part 2 of https://intevation.de/rt/webrt?serial_num=3149
108    
109    2005-06-28  Jan-Oliver Wagner <[email protected]>
110    
111            * Extensions/importAPR/apr.py (APR_BShSym): Extend by 'Stripple'.
112            (APR_TClr.GetThubanColor): Fix bug in color interpretation.
113            Thanks to Frank Koormann who identified this problem.
114    
115            * Extensions/importAPR/importAPR.py (APR_VShSym): New. Just
116            another symbol identified.
117    
118    2005-06-27  Jan-Oliver Wagner <[email protected]>
119    
120            * Doc/manual/thuban-manual-de.xml: More translations.
121    
122    2005-05-12  Jonathan Coles <[email protected]>
123            
124            * Thuban/UI/projdialog.py: Add missing import, which led to an
125            exception when opening a layer's projection.
126    
127    2005-05-09  Bernhard Herzog  <[email protected]>
128    
129            * test/support.py (FileLoadTestCase.filename): Fix doc-string.
130    
131    2005-05-09  Bernhard Herzog  <[email protected]>
132    
133            * Thuban/Model/postgisdb.py (PostGISConnection.connect): Set the
134            connection to autoconnect.  Fixes RT#3148.
135    
136            * test/test_postgis_db.py
137            (TestPostGISSpecialCases.test_simple_error_handling): New test
138            that attempts to reproduce RT#3148.
139    
140    2005-05-06  Jonathan Coles <[email protected]>
141    
142            Add support for saving and loading the opacity and mask type
143            properties of RasterLayers. Also add support for proper use
144            of alpha information while drawing images not in 'RAW' format.
145            If transparency in an image format (e.g, PNG) is supported by
146            wxWidgets then the image would previously have been draw with
147            transparent regions, but the opaque regions would have been
148            unaffected by a change in the layer's opacity. This patch
149            corrects the problem.
150    
151            * Thuban/Model/layer.py (RasterLayer): Added opacity and
152            masktype parameters to the constructor, and set the
153            appropriate variables to those values.
154    
155            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Added
156            code to read the opacity and mask type of the layer and construct
157            a new layer with the additional parameters.
158    
159            * Thuban/Model/save.py (SessionSaver.write_layer): Added code
160            to save the opacity and mask type of a layer.
161    
162            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
163            the opacity of the layer to draw_raster_data rather than the layer.
164            (BaseRenderer.draw_raster_data): Remove the layer parameter because
165            the function doesn't need to know about the layer. Add the optional
166            opacity parameter whose default is 1.0. Add 'PNG' as a supported
167            graphics format.
168    
169            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Fixed
170            signature to match that in BaseRenderer. Use the new opacity argument
171            in place of calling layer.Opacity(). In the case where the
172            format is not 'RAW', alpha_data is None and the loaded image has
173            alpha information, use the file's alpha information. This is
174            still subject to the layer's opacity setting.
175    
176            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
177            Fixed signature to match that in BaseRenderer.
178    
179            * test/test_load.py (TestRasterLayer): Change file_contents to
180            include opacity and masktype variables.
181            (TestRasterLayer.test): Include tests for opacity and masktype
182            changes.
183    
184            * test/test_save.py (SaveSessionTest.testRasterLayer): Restructure
185            test to cover a variety of combinations of masktype and opacity
186            settings.
187    
188    2005-05-02  Jan-Oliver Wagner <[email protected]>
189    
190            * debian/rules: add --use-wx-python-swig-hack
191            to the build command.
192            Thanks to Moritz Lennert for pointing this out.
193    
194    2005-04-28  Jan-Oliver Wagner <[email protected]>
195    
196            Introduce OGRFileShapeStore in ogr extension.
197            This allows at least that loaded shapefile shape stores
198            can be saved correctly in the thuban session file
199            and reloaded again (reload is via core shapefile
200            routine, not OGR). For other types, .thuban files
201            can not be reloaded for the time being.
202    
203            * Extensions/ogr/ogrshapes.py (OGRFileShapeStore): New. This
204            class ist to be used for any file-based shape stores
205            accessed through OGR.
206    
207            * Extensions/ogr/ogrstart.py (open_with_ogr): Added
208            forgotten _ for i18n. Adapted call OpenFileShapestore
209            regarding new parameter.
210            (OpenFileShapestore): Use OGRFileShapeStore instead of
211            OGRShapeStore. Fix return value (None instead of null).
212            Add new parameter "mainwindow" to avoid accessing global
213            context.
214    
215    2005-04-27  Jan-Oliver Wagner <[email protected]>
216    
217            Introduce FileShapeStore as generalization for
218            file-based shape stores. In a first instance
219            this allows additional modules to handle shapefile
220            format as well, namely the OGR extension.
221    
222            * Thuban/Model/data.py: Various small fixes in doc-strings.
223            (FileShapeStore): New class.
224            (ShapefileStore): Derive from FileShapeStore.
225            (ShapefileStore.__init__): Call __init__ of FileShapeStore,
226            rename self.table to self._table, initialize self._bbox
227            (ShapefileStore._open_shapefile): Use self._bbox instead of self.bbox
228            and self.FileName() instead of self.filename.
229            (ShapefileStore.Table): Use self._table instead of self.table.
230            (ShapefileStore.FileName): Removed (moved to FileShapeStore).
231            (ShapefileStore.BoundingBox):  Use self._bbox instead of self.bbox.
232    
233            * Thuban/Model/save.py: Replace ShapefileStore by FileShapeStore.
234            (SessionSaver.write_data_containers): Only use methods of the
235            base class FileShapeStore.
236    
237    2005-04-26  Martin Schulze  <[email protected]>
238    
239            * Extensions/wms/wms.py (render_wms_layer): Adjusted the render
240            function to the modified render engine
241    
242    2005-04-25  Martin Schulze  <[email protected]>
243    
244            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
245            Added a description according to the CVS log message
246    
247    2005-04-23  Martin Schulze  <[email protected]>
248    
249            * Thuban/UI/renderer.py: Added a missing import
250    
251    2005-04-23  Russell Nelson  <[email protected]>
252    
253            * Thuban/UI/view.py (MapCanvas.OnMiddle{Up,Down}): Changed the
254            way the previous tool is remembered, so that middle-button
255            panning works even if you haven't selected a tool.
256    
257    2005-04-11  Bernhard Herzog  <[email protected]>
258    
259            * libraries/thuban/wxproj.cpp: Move the compatibility code that
260            deals with the wxPython 2.4 version of wxPython.h into the #ifdef
261            branch that includes wxPython.h because it's only needed when
262            wxPython.h is used.  Also, it won't compile when
263            USE_WX_PYTHON_SWIG_HACK is set otherwise.
264    
265    2005-04-07  Bernhard Herzog  <[email protected]>
266    
267            * Thuban/UI/classifier.py (ClassGrid.__init__): Use -1 as the ID.
268            (ID_CLASS_TABLE): Removed. It wasn't used anywhere except in
269            ClassGrid.__init__ and it's value is outside of the valid
270            range (must be < 32768).  wxPython 2.5 complains about it with an
271            exception.
272    
273    2005-04-05  Jan-Oliver Wagner <[email protected]>
274    
275            * Doc/manual/thuban-manual-de.xml: More translations.
276    
277    2005-04-05  Bernhard Herzog  <[email protected]>
278    
279            * libraries/thuban/wxproj.cpp: Make it work with a wxPython.h from
280            wxPython 2.4 as well.  Also, remove a now obsolete comment.
281    
282    2005-04-05  Bernhard Herzog  <[email protected]>
283    
284            Use wxPython.h by default but provide a workaround when it isn't
285            available.
286    
287            * setup.py (wxproj_extension): New variable.  Assign the Extension
288            instance for Lib.wxproj to this variable instead of putting it
289            directly into the listso that it can be accessed by other code
290            later.
291            (thuban_build_ext.user_options): Added boolean option
292            --use-wx-python-swig-hack.
293            (thuban_build_ext.initialize_options): Initialize the new option
294            to False.
295            (thuban_build_ext.finalize_options): If the new option was given,
296            define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
297            (thuban_build_ext): Update the doc-string
298    
299            * libraries/thuban/wxproj.cpp: Normally we use
300            wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
301            defined, use swigPtrConvertHack.h instead.
302    
303            * libraries/thuban/swigPtrConvertHack.h: Remove the code that was
304            copied over from wxPython.h.
305            (decode_pointer_new): New.  Equivalent of decode_pointer for
306            wxPython 2.5.
307            (wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.
308    
309            * README: Add section on potential build problems which explains
310            how the work-around for a missing wxPython.h is activated.
311    
312    2005-03-29  Bernhard Herzog  <[email protected]>
313    
314            * test/postgissupport.py (find_postgis_sql): Added yet another
315            potential location for (lw)postgis.sql because the file has moved
316            again in postgis 1.0.0 rc4.
317    
318    2005-03-29  Bernhard Herzog  <[email protected]>
319    
320            * Thuban/UI/legend.py (BMP_SIZE_W, BMP_SIZE_H): Set both to 16 to
321            match the site of the legend_icon_layer icon.  Otherwise wxpython
322            2.5 complains when the legend is created with the error:
323    
324            PyAssertionError: C++ assertion "(bitmap.GetWidth() == m_width &&
325            bitmap.GetHeight() == m_height) || (m_width == 0 && m_height ==
326            0)" failed in ./src/generic/imaglist.cpp(81): invalid bitmap size
327            in wxImageList: this might work on this platform but definitely
328            won't under Windows.
329    
330    2005-03-23  Jonathan Coles <[email protected]>
331    
332            These changes add support for adjusting the opacity of a raster layer.
333    
334            * Thuban/Model/layer.py (RasterLayer.Opacity): Replaces AlphaOpacity.
335            (RasterLayer.SetOpacity): Replaces SetAlphaOpacity. Also triggers
336            a LAYER_CHANGED event if the opacity actually changes.
337    
338            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_data): Added
339            layer parameter needed in the implementation of this method in
340            renderer.py.
341    
342            * Thuban/UI/layerproperties.py (LayerProperties.dialog_layout): Fixed
343            typo 00 -> 0.
344    
345            * Thuban/UI/rasterlayerproperties.py (RasterLayerProperties): Added
346            control to adjust opacity.
347    
348            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Scale the
349            alpha data based on the opacity level of the layer.
350    
351            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Now
352            accepts a layer parameter.
353    
354            * test/test_layer.py (TestLayerModification.test_raster_layer):
355            Rename opacity method calls and add test for LAYER_CHANGED.
356    
357    2005-03-16  Bernhard Herzog  <[email protected]>
358    
359            * test/test_connector.py (DeletionTestMixin.check_deletions)
360            (DeletionTestMixin.check_deletetions): renamed to check_deletions.
361            update the callers.
362    
363    2005-03-14  Jan-Oliver Wagner <[email protected]>
364    
365            * Doc/manual/thuban-manual-de.xml: More translations.
366    
367    2005-03-10  Jan-Oliver Wagner <[email protected]>
368    
369            Introducing initialization callbacks for extensions.
370    
371            * Thuban/UI/extensionregistry.py (ExtensionDesc.__init__): Added
372            optional parameter init_callback.
373            (ExtensionDesc.init_ext): New. Executes the callback and sets
374            a status.
375    
376            * Thuban/UI/application.py (ThubanApplication.OnInit): Add the
377            initialization of the extensions.
378            (ThubanApplication.init_extensions): Init all extensions.
379    
380            * Thuban/UI/about.py (About.__init__): Added status of the extensions
381            to the about text.
382    
383            * Extensions/gns2shp/__init__.py: Added init method for Extension
384            description.
385            (init): New. Contains the initialization of the module.
386    
387    2005-03-04  Nina H�ffmeyer <[email protected]>
388    
389            * Extensions/ogr/ogrdialog.py: Added a dialog, which asks for
390            OGRConnection to open a datasource. Removed dialog to display all
391            available drivers. Added some doc strings.
392    
393            * Extensions/ogr/ogrstart.py: Added menu entry for opening an
394            OGRDatasource with a string. Added two opening methods which return an
395            OGRDatasource (either data from file or from DB).
396    
397            * Extensions/ogr/ogrshapes.py: Added class OGRGeometry, which
398            represents a geometry reference of an OGRFeature. OGRShape now has a
399            list of referenced geometry objects (important for geometry
400            collections).
401            For OGRShapeStores loaded from a DB an ID column can be specified now.
402    
403    2005-02-22  Jan-Oliver Wagner <[email protected]>
404    
405            * test/test_map.py (TestMapWithContents.test_tree_info):
406            Added label layer for comparison.
407    
408    2005-02-18  Jonathan Coles <[email protected]>
409    
410            * libraries/thuban/gdalwarp.cpp (GetImageData): Optimize the loop
411            which builds a mask. Handle the majority of an image in a loop,
412            creating 8 bits at a time. Later, handle the edge case where less
413            than 8 bits are packed.
414    
415    2005-02-18  Bernhard Herzog  <[email protected]>
416    
417            * test/test_baserenderer.py (TestBaseRenderer.setUp): Fix
418            doc-string
419    
420    2005-02-18  Jonathan Coles <[email protected]>
421    
422            * setup.py: Remove wx_cs_params from gdal compile options.
423    
424    2005-02-18  Jonathan Coles <[email protected]>
425    
426            Refactored baserenderer.py and renderer.py to remove baserenderer.py's
427            dependencies on wxPython. Added a new method projected_raster_layer()
428            that returns a raster layer image in projected space. This must be
429            implemented in classes derived from BaseRenderer. This also eliminates
430            the dependency on gdal in baserenderer.py.
431    
432            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Call
433            new projected_raster_layer() to get projected raster image instead
434            of directly calling ProjectRasterFile().
435            (BaseRenderer.projected_raster_layer): New. This must be implemented
436            by derived classes. It takes almost the same arguments as ProjectRasterFile
437            did and returns a projected image with mask and alpha data (if requested).
438            (BaseRenderer.render_map_incrementally): Remove the check for gdal since
439            that check will be done in MapRenderer.projected_raster_layer(). This
440            also allows other implementations to use different projection code.
441    
442            * Thuban/UI/renderer.py (MapRenderer.projected_raster_layer):
443            Implementation of BaseRenderer.projected_raster_layer. Checks for
444            gdal support and wxPython version. Also handles exceptions from
445            ProjectRasterFile.
446    
447            * libraries/thuban/gdalwarp.cpp: Removed checks for wxPython versions
448            and added a variable which can be set through the options argument
449            of ProjectRasterFile.
450    
451            * test/test_baserenderer.py (SimpleRenderer.projected_raster_layer): New.
452            Calls ProjectRasterFile and returns the result.
453            (TestBaseRenderer.test_projected_raster_layer): New. Tests the results
454            of calling projected_raster_layer() with different options.
455            (TestBaseRenderer.test_raster_no_projection): Removed tests based on
456            wxPython version and all tests of masks and alpha channels. These are
457            now in test_projected_raster_layer().
458    
459    2005-02-17  Jan-Oliver Wagner <[email protected]>
460    
461            * Thuban/Model/map.py, Thuban/Model/label.py: Fixed
462            doc-strings to comply with coding_guidelines.
463    
464    2005-02-17  Jan-Oliver Wagner <[email protected]>
465    
466            Docstring improvements and minor fixes for labellayer.
467    
468            * Thuban/Model/map.py:
469            (Map, Map.Destroy, Map.RemoveLayer, Map.ClearLayers,
470            Map.Layers, Map.HasLayers, Map.MoveLayerToTop,
471            Map.RaiseLayer, Map.LowerLayer, Map.MoveLayerToBottom,
472            Map.ProjectedBoundingBox, Map.GetProjection): Improved/added
473            doc string.
474            (Map.BoundingBox): Removed superfluous test for label_layer
475            and improved doc string.
476            (Map.TreeInfo): Added label_layer and improved sdo string.
477    
478            * Thuban/Model/label.py: Added import of _.
479            (Label, Label.__init__): Improved/added doc string.
480            (LabelLayer, LabelLayer.__init__, LabelLayer.Labels,
481            LabelLayer.RemoveLabel, LabelLayer.ClearLabels):
482            Improved/added doc string.
483            (LabelLayer.AddLabel): Use already defined names for
484            align strings and improved doc string.
485            (LabelLayer.TreeInfo): New. Return the object data for
486            the tree view.
487    
488    2005-02-16  Jonathan Coles <[email protected]>
489    
490            Further wxPython 2.5 changes using patches from Daniel Calvelo Aros
491            so that that wxproj doesn't crash. Added GUI support for selecting
492            alpha channel (opacity can't be selected yet).
493    
494            NOTE: If wxPython.h is including in future distribution packages
495            then it will not be necessary to have the files swigPtrConvertHack.h
496            and wxPython_int.h included with Thuban. This is hopefully
497            a temporary workaround.
498    
499            * setup.py (thuban_build_ext.finalize_options): gdalwarp needs
500            access to the macro wxCHECK_VERSION so that it will properly
501            generate a bit mask. There was a problem between wx2.4 and wx2.5
502            that this works around.
503    
504            * Thuban/Model/layer.py (RasterLayer.UseMask): Removed in favor
505            of RasterLayer.MaskType.
506            (RasterLayer.SetUseMask): Removed in favor of RasterLayer.SetMaskType
507            (RasterLayer.MaskType): New. Returns the type of mask to use. Can
508            specify none, a bitmap, or an alpha channel.
509            (RasterLayer.SetMaskType): New. Set what kind of mask to use.
510    
511            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
512            Set the raster warping options for the mask based on the value
513            of RasterLayer.MaskType.
514    
515            * Thuban/UI/legend.py (LegendTree.__FillTreeLayer): Remove
516            deprecated calls to SetItemSelectedImage in favor of SetItemImage
517            with wxTreeItemIcon_Selected.
518    
519            * Thuban/UI/rasterlayerproperties.py: Support selecting to use
520            an alpha channel for the mask.
521    
522            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Use alpha
523            data if it is available and an alpha channel is supported under
524            the current version of wxPython.
525    
526            * libraries/thuban/gdalwarp.cpp (GetImageData): Added compiler define
527            to select whether 1's or 0's select the desired portion of an image
528            in the bit mask. wx2.4 has a bug where the documentation is the opposite
529            from behavior.
530            (ProjectRasterFile): Only generate an alpha channel if the version
531            of wxPython is >= 2.5.3.
532    
533            * libraries/thuban/wxproj.cpp: Applied patches from Daniel Calvelo Aros.
534            When wxPython >= 2.5.3 use the special swig functions to decode an
535            object's address.
536    
537            * libraries/thuban/swigPtrConvertHack.h: Includes conditional code
538            based on the version of wxPython. If >= 2.5.3 use the special swig
539            functions from wxPython to decode wxPython objects, otherwise use
540            the old method of retrieving the address from the object __repr__ string.
541    
542            * libraries/thuban/wxPython_int.h: Copied from wxPython source.
543            Unnecessary code was removed to make it smaller.
544    
545            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
546            Add tests for returning an alpha channel.
547    
548            * test/test_layer.py (TestLayerModification.test_raster_layer): Fix
549            tests that used removed functions UseMask and SetUseMask
550    
551    
552    2005-02-08  Bernhard Herzog  <[email protected]>
553    
554            More wxPython 2.5 changes.  This time taken from a patch from
555            Daniel Calvelo Aros.
556    
557            * Thuban/UI/tableview.py (QueryTableFrame.__init__)
558            (QueryTableFrame.__init__): Pass the size of a spacer as a single
559            item.
560    
561            * Thuban/UI/projdialog.py (ProjFrame.build_dialog)
562            (ProjFrame.build_dialog): Pass the size of a spacer as a single
563            item.
564    
565            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Pass the
566            size of a spacer as a single item.
567    
568            * Thuban/UI/classifier.py (Classifier.dialog_layout): Pass the
569            size of a spacer as a single item.
570    
571    2005-02-08  Bernhard Herzog  <[email protected]>
572    
573            Compatibility with wxPython 2.5.  The changes should make it work
574            better with 2.5 while still keeping compatibility with 2.4.  There
575            are still problems with 2.5, though.
576    
577            * Thuban/UI/dock.py (DockableWindow.__CreateBorder): Pass the size
578            of a spacer as a single item.
579    
580            * Thuban/UI/classifier.py (ClassGroupPropertiesCtrl): Derive only
581            from wxControl
582    
583            * Thuban/UI/legend.py (LegendTree): When running with wxPython <
584            2.5, add an implementation of the GetFirstChild method that does
585            not require the second parameter.
586            (LegendTree.find_layer, LegendTree._OnMsgMapLayersAdded)
587            (LegendTree._OnMsgMapLayersRemoved, LegendTree.DeleteAllItems)
588            (LegendTree.DeleteChildren, LegendTree.__ShowHideLayer): Do not
589            pass the second parameter to GetFirstChild
590    
591    2005-02-08  Nina H�ffmeyer <[email protected]>
592    
593            * Extensions/ogr/ogrshapes.py: Removed some print commands.
594    
595            * Extensions/ogr/ogrstart.py: Changed the GUI. OGR is no longer an
596            additional menu but appears as a possibility in the menu Map.
597    
598    2005-02-07  Jonathan Coles <[email protected]>
599            * libraries/thuban/gdalwarp.cpp: Removed the macros PYTHON_ERR
600            and PYTHON_ERRF since they were no longer necessary.
601    
602    2005-02-07  Bernhard Reiter <[email protected]>
603            * Thuban/UI/classifier.py (ClassGrid.DeleteSelectedRows):
604            Enable translation for message string.
605    
606    2005-02-06  Martin Schulze  <[email protected]>
607    
608            * Extensions/wms/infodialog.py (wmsInfoDialog.__init__): Adjusted
609            the arguments of the contstructor to fit the global scheme
610    
611    2005-01-31  Nina H�ffmeyer <[email protected]>
612    
613            * Extensions/ogr/ogrdialog.py: Added class ogrdialog.py, which provides
614            some dialogs needed to start ogr.
615            
616            * Extensions/ogr/__init__.py: Changed comments to avoid encoding
617            warnings.
618    
619            * Extensions/ogr/test/test_OGRShapestore.py: Changed comments to avoid
620            encoding warnings.
621    
622    2005-01-28  Jonathan Coles <[email protected]>
623    
624            * libraries/thuban/gdalwarp.cpp (GetImageData): Recode how the
625            mask is packed into a bit array. It's now slightly faster.
626    
627    2005-01-28  Jonathan Coles <[email protected]>
628    
629            * Thuban/Model/layer.py (RasterLayer.__init__): Make use_mask
630            default to true.
631    
632            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Remove
633            code that loads the state of the layer's use_mask flag. Its
634            usefulness is still being debated.
635    
636            * Thuban/Model/save.py (SessionSaver.write_layer): Remove
637            code that saves the state of the layer's use_mask flag. Its
638            usefulness is still being debated.
639    
640            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer): Pass
641            options to ProjectRasterFile based on the state of layer.UseMask().
642            Catch more exceptions from ProjectRasterFile so that Thuban doesn't
643            quit is there is a problem projecting.
644            (BaseRenderer.draw_raster_data): Change the documentation to
645            describe the new format (XBM) that the mask data will be in.
646    
647            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): The mask
648            data is in XBM format when format='RAW' which means it doesn't
649            need to be converted to a wxImage before being used as a mask
650            for a wxBitmap. Assume that if format != 'RAW' that the image
651            data and mask data are in the same format.
652    
653            * libraries/thuban/gdalwarp.cpp (GetImageData): If alpha is enabled
654            and a mask is requested, convert the alpha band to a bit array in
655            XBM format. if an alpha channel is requested, simply return the
656            data in the alpha band. Provide better error handling by returning
657            python error messages (also fixes RT #2947).
658            (ProjectRasterFile): Support multiple mask options, rather than simply
659            a flag indicating that a mask should or should not be used. Provide
660            better error handling by returning python error messages.
661    
662            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
663            Add mask data to test.
664    
665            * test/test_layer.py (TestLayer.test_raster_layer): Test that a layer
666            should use the mask by default.
667            (TestLayerModificaton.test_raster_layer): Test that a layer should use
668            the mask by default.
669    
670            * test/test_load.py (TestRasterLayer.test): Remove testing for
671            use_mask flag in file.
672    
673            * test/test_save.py (SaveSessionTest.testRasterLayer): Remove testing
674            for use_mask in file.
675    
676            * test/test_load_1_0_1.py: Removed. Shouldn't have been checked in.
677            
678    2005-01-26  Jonathan Coles <[email protected]>
679    
680            Add a new dialog box for raster layers. The dialog box allows
681            the user to toggle a mask that is generated by ProjectRasterFile
682            and is used to only draw the real parts of the projected image.
683    
684            * Thuban/UI/baserenderer.py (BaseRenderer.draw_raster_layer):
685            Instruct the warping code to generate a mask if the raster layer
686            requests one.
687            (BaseRenderer.draw_raster_data): Removed obsolete optional mask argument.
688    
689            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Removed
690            obsolete optional mask argument.
691    
692            * Thuban/UI/classifier.py (Classifier): Change the parent class
693            to LayerProperties and rework the code to support layout calls
694            from the parent.
695            (Classifier.dialog_layout): New. Layout the dialog box.
696            (Classifier.map_layers_removed): Removed. Moved to parent class.
697            (Classifier.map_replaced): Removed. Moved to parent class.
698            (Classifier._OnTry): Renamed to OnTry to support parent class.
699            (Classifier.OnClose): Removed. Supplied in parent class.
700            (Classifier._OnCloseBtn): Removed. Supplied in parent class as OnCloseBtn.
701            (Classifier._OnOK): Renamed to OnOK to support parent class.
702            (Classifier._OnRevert): Renamed to OnRevert to support parent class.
703    
704            * Thuban/UI/layerproperties.py: New. Base class for layer properties
705            dialog boxes.
706    
707            * Thuban/UI/rasterlayerproperties.py: New. Class for displaying
708            raster layer properties.
709    
710            * libraries/thuban/gdalwarp.cpp: Replace the old gdalwarp.cpp code
711            with the non-simple version supplied with gdal. This allows added
712            features such as creating an alpha band.
713            (GetImageData): Generate a mask array from the alpha band that is
714            generated by gdal if the user has selected it. Try to support images
715            that have more than three bands, such as images with RGB plus an
716            alpha band.
717            (ProjectRasterFile): Convert python argument for mask and tell
718            gdal to enable or disable an alpha band.
719    
720            * Thuban/Model/layer.py (BaseLayer.Type): New. Returns a string
721            describing what kind of layer the class is. Defaults to "Unknown",
722            but should be overridden by subclasses.
723            (Layer.Type): New. Override base class method.
724            (RasterLayer.__init__): Create a flag for using a mask. Record extra
725            data from gdal for display in the properties dialog.
726            (RasterLayer.Type): New. Override base class method.
727            (RasterLayer.UseMask): New. Returns True if the mask should be used.
728            (RasterLayer.SetUseMask): New. Set if the mask should be used.
729            (RasterLayer.ImageInfo): New. Return extra information about the image.
730    
731            * Thuban/Model/load.py (SessionLoader.start_rasterlayer): Load
732            the mask information.
733    
734            * Thuban/Model/save.py (SessionSaver.write_layer): Save mask information.
735    
736            * Thuban/UI/mainwindow.py: Register the RasterLayerProperties and
737            Classifier classes as dialogs to use with the proper layer types.
738    
739            * test/test_baserenderer.py (TestBaseRenderer.test_raster_no_projection):
740            Fix test.
741    
742            * test/test_layer.py (TestLayer.test_raster_layer): Test new methods.
743            (TestLayerModification.build_path): New. Support function.
744            (TestLayerModification.test_raster_layer): New. Test new methods.
745    
746            * test/test_save.py (SaveSessionTest.testRasterLayer): Add tests for mask.
747    
748            * test/test_load.py (TestRasterLayer): Add tests for mask.
749    
750            * test/test_load_1_0_1.py: New. Copied from test_load.py.
751    
752            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Removed
753            obsolete optional mask argument.
754    
755    2005-01-26  Nina H�ffmeyer <[email protected]>
756    
757            * Extensions/ogr/ogrshapes.py: Added two dictionaries to ShapeStore
758            which maps the ids and the ordinals. Fixed RowIdToOrdinal(),
759            RowOrdinalToId() and ReadRowAsDict().
760    
761            * Extensions/ogr/ogrstart.py: Added menu item which opens database
762            layers for existing database connections.
763    
764            * Extensions/ogr/test/test_OGRShapestore.py: Fixed a message string.
765    
766    
767    2005-01-26  Jan-Oliver Wagner <[email protected]>
768    
769            * Doc/manual/thuban-manual-de.xml: More translations.
770    
771    2005-01-24  Bernhard Herzog  <[email protected]>
772    
773            Rework the status bar updates a bit to make sure the message about
774            the projections is produced at the right times.
775    
776            * Thuban/UI/mainwindow.py (MainWindow.update_status_bar_messages):
777            New class variable with messages that may require a status bar
778            update.
779            (MainWindow.view_position_changed)
780            (MainWindow.update_status_bar): Rename from view_position_changed
781            to update_status_bar.  It's meaning has changed now that it may
782            also generate messages about problems with projection settings.
783            (MainWindow.__init__): Use the new update_status_bar_messages
784            class variable to subscribe update_status_bar
785            (MainWindow.set_position_text): Update doc-string.  This method
786            has to be renamed at some point.  See doc-string and comments.
787            (MainWindow.OnClose): Unsubscribe update_status_bar from all
788            messages in update_status_bar_messages
789    
790            * Thuban/UI/viewport.py (ViewPort.forwarded_map_messages): New
791            class attribute.  map messages to be forwarded by the viewport.
792            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): (un)subscribe
793            the messages in forwarded_map_messages
794    
795    2005-01-21  Bernhard Herzog  <[email protected]>
796    
797            * test/postgissupport.py (PostGISDatabase.__init__): Tweak
798            doc-string
799            (find_postgis_sql): Update for postgis-1.0.0-rc1, which uses a
800            different name for the initialization SQL file.
801    
802    2005-01-21  Jonathan Coles <[email protected]>
803    
804            * Thuban/UI/baserenderer.py (proj_params_to_str): New. Takes
805            a projection and returns a formatted string representing the
806            parameters to feed to gdalwarp. This function eliminates
807            redundancy in draw_raster_layer().
808            (BaseRenderer.render_map_incrementally): Removed the optimization which
809            drew the top most raster layer first and then only those vector-
810            based layers that are above it. With the support for transparency
811            this optimization breaks correct behaviour.
812            (BaseRenderer.draw_raster_layer): Reorganize code to support possible
813            future enhancements to raster layer bounding box. The old behaviour has
814            not changed. Also, change calling parameters to draw_raster_data()
815            to specify new RAW data format and mask.
816            (BaseRenderer.draw_raster_data): Change signature to include an optional
817            parameter for mask information. Change documentation to mention
818            support for new parameter and added option for RAW data format.
819            The data argument is now a list of [width, height, data].
820    
821            * Thuban/UI/renderer.py (MapRenderer.draw_raster_data): Add new optional
822            mask parameter. Add new condition for RAW format, which
823            significantly reduces rendering time. Add condition for
824            mask parameter.
825    
826            * libraries/thuban/gdalwarp.cpp (GetImageData): New. Creates a
827            data array of RGB values from the projected image returned from
828            the gdal warping functions. In the case of palette based images, it
829            converts the NO_DATA index to the mask color.
830            (ProjectRasterFile): Removed all custom memory driver references
831            and replaced it with the standard in-memory dataset provided
832            by gdal. The return data is no longer a BMP file, but an array
833            of RGB values, one set triple per pixel.
834    
835            * libraries/thuban/bmpdataset.cpp: Removed. Unnecessary.
836            * libraries/thuban/cpl_mfile.h: Removed. Unnecessary.
837            * libraries/thuban/cpl_mfile.cpp: Removed. Unnecessary.
838    
839            * setup.py (thuban_build_ext.finalize_options): Removed mention
840            of cpl_mfile.cpp and bmpdataset.cpp files in the list of source
841            files. These are obsolete with the new version of gdalwarp.cpp
842    
843            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data):
844            Updated signature.
845            (TestBaseRenderer.test_raster_no_projection): Changed the test
846            data to be data in the uncompressed RAW format returned from
847            ProjectRasterFile.
848    
849    2005-01-21  Jan-Oliver Wagner <[email protected]>
850    
851            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Made
852            string available for i18n.
853    
854    2005-01-20  Russell Nelson  <[email protected]>
855    
856            * Resources/Projections/defaults.proj: Ruin the speling of the
857            Lambert-93 projection so it doesn't run into the wx UTF-8 bug.
858            It's the wrong thing to do in the long run, but it's necessary for
859            those users until that bug is fixed.  Otherwise the projection
860            dialog segfaults.  Better to annoy some Lambert-93 users with a
861            spelling mistake than every Fedora Core 3 user of Thuban-CVS.
862    
863    2005-01-20  Bernhard Reiter <[email protected]>
864    
865            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Added
866            docstring and comment that the warning code here is a hack.
867    
868    2005-01-20  Russell Nelson  <[email protected]>
869    
870            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed): Warn
871            user about misprojected layers when their lat/lon bounding
872            box exceeds rational lat/lon values.
873    
874    2005-01-20  Bernhard Reiter <[email protected]>
875    
876            * Thuban/UI/about.py (unicodeToLocale): Improved:
877            Use 'ascii' and then 'replace' for other characters
878            when getdefaultlocale returns None. Thanks to Bernhard H. .
879    
880    2005-01-20  Bernhard Reiter <[email protected]>
881    
882            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Added a comment
883            that OnRangeText might be called twice and using None as argument.
884    
885    2005-01-20  Bernhard Reiter <[email protected]>
886    
887            * Thuban/UI/classgen.py (GenQuantilesPanel.OnRetrieve): Add a
888            OnRangeText(0) to work around a different in wx Behaviour noticed
889            on MacOSX, thanks to Lorenzo Moretti and Daniel Calvelo for the fix.
890    
891    2005-01-20  Bernhard Reiter <[email protected]>
892    
893            * Thuban/UI/about.py: take iso-8859-15 when getdefaultlocale returns
894            None. (Fixes rt#2910.)
895            
896    2005-01-18  Frank Koormann <[email protected]>
897    
898            New Extension: mouseposition
899            Tool to collect mouse click positions (map coordinates) in a dialog.
900    
901            * Extensions/mouseposition/__init__.py: New, extension registration
902    
903            * Extensions/mouseposition/mouseposition.py: New, implements the
904            dialog and adds a tool to Thuban mainwindow.
905    
906            * Extensions/mouseposition/position.xpm: New, icon for tool.
907    
908    2005-01-14  Jan-Oliver Wagner <[email protected]>
909    
910            * Doc/manual/thuban-manual-de.xml: More translations.
911    
912    2005-01-11  Frank Koormann <[email protected]>
913    
914            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
915            Fix indention bug.
916    
917    2005-01-09  Frank Koormann <[email protected]>
918    
919            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer):
920            BugFix 2901: Explicitly copy layers ClassificationColumn since it
921            is not part of the layers Classification.
922    
923    2005-01-03  Frank Koormann <[email protected]>
924    
925            * Thuban/UI/renderer.py (ScreenRendererdraw_selection_incrementally):
926            BugFix 2883: Former implementation only worked on classified point
927            layers: KeyError was raised, now use the default size if field is None.
928    
929    2004-12-27  Bernhard Reiter <[email protected]>
930    
931            svgexport 1.0.0cvs: Fixed label export.
932    
933            * Extensions/svgexport/test/test_svgmapwriter.py:
934            class TestSVGRenderer(): New class; new test test_label_font().
935    
936            * Extensions/svgexport/svgmapwriter.py
937            (SVGRenderer.label_font()): initialised Font size with self.factor now,
938            makes test_label_font happy.
939    
940            * Extensions/svgexport/TODO: crossed out fixed label export item.
941            Added item for options.
942    
943            * Extensions/svgexport/__init__.py: Bumped version to 1.0.0cvs.
944    
945    2004-12-27  Russell Nelson  <[email protected]>
946    
947            Middle mouse button pans.
948    
949            * Thuban/UI/view.py (MapCanvas.__init__): Subscribe also
950            OnMiddleDown and OnMiddleUp events.
951            (MapCanvas.OnMiddleDown): New. Activate the pan tool and remember the
952            previously used tool.
953            (MapCanvas.OnMiddleUp): New. Reactivate the remebered tool used before
954            pressing the middle mouse button.
955    
956    2004-12-27  Jan-Oliver Wagner <[email protected]>
957    
958            * Doc/manual/thuban-manual-de.xml: More translations.
959    
960    2004-12-23  Jan-Oliver Wagner <[email protected]>
961    
962            * Thuban/UI/projdialog.py (ProjFrame.load_user_proj): Added a
963            \n to stderr after the warnings. Thanks to Russell Nelson.
964    
965    2004-12-20  Nina Hueffmeyer <[email protected]>
966    
967            * Extensions/ogr/ogrshapes.py: Fixed some issues from
968            Bernhard (coding guidelines etc.). Additionally it is now possible to
969            display shapefiles containing feature collections (e.g.polygons
970            with holes). Works with gdal 1.2.1 now.
971    
972            * Extensions/ogr/test/test_OGRShapestore.py: Fixed some issues
973            from Bernhard (coding guidelines etc.). If ogr can't be imported,
974            tests are skipped now.
975    
976            * Extensions/ogr/ogrstart.py: Fixed some typings.
977    
978    2004-12-20  Bernhard Reiter <[email protected]>
979    
980            * Extensions/svgexport/TODO: updated to add support for
981            raster layers and labels for 1.0.1.
982    
983            * Extensions/svgexport/svgmapwriter.py (draw_raster_layer):
984            Issue a warning now.
985    
986    2004-12-19  Bernhard Reiter <[email protected]>
987    
988            * Extensions/svgexport/TODO: Added idea to support triggering
989            the application down the pipe.
990    
991    2004-12-19  Bernhard Reiter <[email protected]>
992    
993            svgexport: Improved code quality, mainly by better naming.
994    
995            * Extensions/svgexport/svgmapwriter.py:
996            DrawPath() renamed to DrawPolygonPath(),
997            added documentation, improved comments and variable names.
998            
999            * Extensions/svgexport/svgmapwriter.py,
1000              Extensions/svgexport/test/test_svgmapwriter.py:
1001            All using DrawPolygonPath() now, the default parameter closed=True
1002            omitted.
1003    
1004            * Extensions/svgexport/test/test_svgmapwriter.py:
1005            renamed test_polygon_opened() to test_polyline()
1006            renamed test_transparent_polygon() to test_transparent_polyline()
1007    
1008    2004-12-18  Jan-Oliver Wagner <[email protected]>
1009    
1010            Some fixes of gns2shp extension.
1011    
1012            * Extensions/gns2shp/test/__init__.py: New. Make this directory a
1013            package.
1014    
1015            * Extensions/gns2shp/test/test_gns2shp.py: Add some import paths
1016            dynamically.
1017    
1018            * Extensions/gns2shp/test/README: Simplified description how to test.
1019    
1020            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed doc-string,
1021            fixed some dimensions of fields according to the GNS documentation
1022            which seems to change undocumented.
1023            Now killing trailing \n and/or \r from MODIFY_DATE.
1024            This fixes RT#2453.
1025    
1026    2004-12-18  Bernhard Reiter <[email protected]>
1027    
1028            svgexport 1.0.0: Treats holes and islands nicely. Documentation added.
1029    
1030            * Extensions/svgexport/test/test_svgmapwriter.py:
1031            Added new tests: test_export_polygon_with_hole()
1032            and test_polygon_with_hole().
1033    
1034            * Extensions/svgexport/svgmapwriter.py
1035            (draw_polygon_shape()): Uses DrawPath correctly now.
1036    
1037            * Doc/manual/thuban-manual.xml: Added documentation for stable
1038            extention svgexport.    
1039            * Doc/manual/thuban-manual-de.xml: Copied English section about
1040            svexport over.
1041    
1042            * Extensions/svgexport/__init__.py: Bumped version number to 1.0.0.
1043    
1044            * Extensions/svgexport/svgsaver.py,maplegend.py:
1045            Moved from experimental to stable extension menu.
1046    
1047            * Extensions/svgexport/TODO: updated.
1048    
1049    
1050    2004-12-18  Bernhard Reiter <[email protected]>
1051    
1052            Added Extensions/svgexport/TODO
1053    
1054    2004-12-18  Bernhard Reiter <[email protected]>
1055    
1056            Refactored in svgexport:
1057            DrawPath replaces DrawPolygon; added newline in front of "M" in paths.
1058    
1059            * Extensions/svgexport/svgmapwriter.py
1060            Added verbosity level 3 to print out polygon points.
1061            (class Point): added __repr__
1062            (class Brush, __str__()): Added space after ,.
1063            (DrawPolygon): Renamed to DrawPath()
1064            (DrawPath): Takes list of polygons as input now, adds \n before "M"s.
1065            (DrawLines): Using DrawPath now.
1066    
1067            * Extensions/svgexport/test/test_svgmapwriter.py:
1068            Replaced DrawPolygon() calls with DrawPath() and put the first argument
1069            inside another list. Adapted test data with a newline before "M".
1070    
1071    2004-12-18  Bernhard Reiter <[email protected]>
1072            
1073            Refactored svgexport tests: 9 double tests runs eliminated;
1074            code size reduced by 8 lines.
1075    
1076            * Extensions/svgexport/test/test_svgmapwriter.py:
1077            (class TestWithDC): Renamed to BaseTestWithDC, moved to top.
1078            (class BaseWithDCtools): New, subclass from BaseTestWithDC.
1079            (class TestDrawSplines): now subclass from BaseTestWithDCtools,
1080            this fixed the double running of the nine tests of TestVirtualDC.
1081            (class TestVirtualDC): Using self.dc and self.file from setUp().
1082    
1083    2004-12-17  Bernhard Herzog  <[email protected]>
1084    
1085            Two windows specific fixes ported from thuban-1�0-branch:
1086    
1087            * Thuban/UI/about.py (unicodeToLocale): Use getdefaultlocale
1088            instead of getlocale because getlocale doesn't return a usable
1089            encoding name on a german windows 2000
1090    
1091            * setup.py: windows build: Removed the absolute path names and
1092            made all prfixes relative to the directory containing setup.py.
1093            Makes it a little easier to adapt to a different system.
1094    
1095    2004-12-16  Bernhard Herzog  <[email protected]>
1096    
1097            Add support for PostGIS tables with LINESTRING geometries.
1098            Fixes RT#2299
1099    
1100            * Thuban/Model/postgisdb.py (shapetype_map): Add LINESTRING
1101    
1102            * test/postgissupport.py
1103            (PostgreSQLServer.get_default_static_data_db): Rename the "roads"
1104            table to "roads-multi" because it now uses MULTILINESTRING
1105            geometries and introduce a new "roads" table that uses LINESTRING
1106            (coords_to_multilinestring): Make the doc string more precise
1107            (coords_to_linestring): New.  Create a LINESTRING WKT
1108            representatin
1109            (wkt_converter): Add coords_to_linestring
1110            (upload_shapefile): Rephrase the doc-string a bit.
1111    
1112            * test/test_postgis_db.py (TestPostGISShapestoreArc)
1113            (LineStringTests)
1114            (TestPostGISShapestoreLineString)
1115            (TestPostGISShapestoreMultiLineString): Split
1116            TestPostGISShapestoreArc into a base class LineStringTests and two
1117            derived classes TestPostGISShapestoreLineString for LINESTRING
1118            geometries and TestPostGISShapestoreMultiLineString for
1119            MULTILINESTRING geometries.  Most test methods are in the base
1120            class with the exception of tests that explicitly check the raw
1121            format.
1122    
1123    2004-12-16  Bernhard Herzog  <[email protected]>
1124    
1125            Make the test suite work with PostGIS 0.8.2 and PostgreSQL 7.4
1126    
1127            * test/postgissupport.py (find_postgis_sql): Different postgis
1128            versions put the postgis.sql file into slightly different places
1129            so we have to look in both.  The updated doc string describes this
1130            is more detail.
1131    
1132            * test/test_postgis_db.py
1133            (TestPostGISSpecialCases.test_column_name_quoting): The return
1134            value of UniqueValues is unsorted, so it has to be sorted for
1135            comparison.
1136    
1137    2004-12-16  Bernhard Herzog  <[email protected]>
1138    
1139            Fix for RT#2237
1140    
1141            * Thuban/UI/projdialog.py (ProjFrame._show_proj_panel): If the
1142            panel to be shown is the UnknownProjPanel disable the OK and Try
1143            buttons.  Otherwise enable them.
1144            (ProjFrame.__GetProjection): The UnknownProjPanel returns None for
1145            the parameters.  In that case __GetProjection also returns None
1146            now.
1147    
1148    2004-12-15  Bernhard Herzog  <[email protected]>
1149    
1150            * Thuban/UI/classgen.py (GenQuantilesPanel.__init__): Set the
1151            minimum number of classes to 2.  The calculate_quantiles needs at
1152            least two and raises an exception otherwise.  
1153            Fixes RT#2549
1154    
1155    2004-12-15  Bernhard Herzog  <[email protected]>
1156    
1157            * test/postgissupport.py (PostgreSQLServer.execute_sql): Extend to
1158            so that it returns a result for select statements.
1159            (PostgreSQLServer.server_version): New.  Return the version of the
1160            server software.
1161            (PostgreSQLServer.require_authentication): The format of
1162            pg_hba.conf has changed between PostgrSQL 7.2 and 7.3.  Check the
1163            server version and generate the file in the correct format
1164    
1165    2004-12-15  Bernhard Herzog  <[email protected]>
1166    
1167            * test/postgissupport.py (PostgreSQLServer.is_running): Fix typo
1168            in the doc string and rephrase it a little.
1169    
1170    2004-12-15  Frank Koormann <[email protected]>
1171    
1172            * test/test_load.py (TestAltPath.checkSession): New, extended checks if
1173            session has been loaded successfully. The check is called by the relevant
1174            tests after executing load_session().
1175    
1176    2004-12-13  Bernhard Herzog  <[email protected]>
1177    
1178            Make sure the region used to determine which shapes are visible
1179            actually matches the region on the printed page.  If this isn't
1180            done properly some shapes might not be printed.  
1181            Fixes RT #2692
1182    
1183            * Thuban/UI/view.py (MapPrintout.draw_on_dc): The region for the
1184            renderer has to be at the same position as the mapregion
1185    
1186            * Thuban/UI/renderer.py (ExportRenderer.RenderMap): self.region
1187            has to be moved by (self.shiftx, self.shifty) too.
1188    
1189    2004-12-13  Bernhard Herzog  <[email protected]>
1190    
1191            * libraries/pyprojection/Projection.i: Work around a bug in the
1192            generated python code which leads to exception in the __del__
1193            method when the constructor fails.  See the comments in the code
1194            for more details.
1195    
1196            * libraries/pyprojection/Projection.py: Updated from Projection.i
1197            with SWIG.
1198    
1199    2004-12-13  Bernhard Herzog  <[email protected]>
1200    
1201            * test/test_load.py (TestAltPath.test_01_single_path_error_fix)
1202            (TestAltPath.test_02_path_error_fix_from_list)
1203            (TestAltPath.test_05_path_error_fix_from_list_changed)
1204            (TestAltPath.test_06_path_error_fix_from_list_fails): self.session
1205            is destroyed in tearDown, so there's no need to do it in a test
1206            case.
1207    
1208            * Thuban/Model/load.py (SessionLoader.open_shapefile): Remove a
1209            debug print
1210    
1211    2004-12-13  Bernhard Herzog  <[email protected]>
1212    
1213            * Extensions/svgexport/test/test_svgmapwriter.py
1214            (TestDrawSplines.setUp): Do not use super with the unittest
1215            classes because in Python 2.2 they're still old-style classes.
1216    
1217    2004-12-13  Frank Koormann <[email protected]>
1218    
1219        Alternative Path feature: When loading a (moved) session where
1220            shapefiles cannot be found, ask the user. Use the specified path
1221            if further shapefiles are missing. However, ask the usr for confirmation
1222            in such cases.
1223    
1224            * test/test_load.py (TestAltPath): New, tests for alternative path feature
1225            in load_session()
1226            (Shapefile_CallBack): Helper, implements controllable callback.
1227    
1228            * Thuban/UI/application.py (ThubanApplication.OnInit):
1229            Added "alt_path" to self.path
1230            (ThubanApplication.OpenSession): Added shapefile_callback as second
1231            callback similar to db_connection_callback.
1232            (ThubanApplication.run_alt_path_dialog): New, implementaion of
1233            shapefile_callback. In addition to raising the dialog the control of
1234            self.path('alt_path') is implemented here.
1235    
1236            * Thuban/Model/load.py (SessionLoader.__init__): Added shapefile_callback.
1237            (SessionLoader.open_shapefile): Open shapefile, eventually with
1238            alternative path. This wrapps the "theSession.OpenShapefile(filename)"
1239            formerly used in start_fileshapesource()/start_layer().
1240            (SessionLoader.start_fileshapesource): Call open_shapefile().
1241            (SessionLoader.start_layer): Call open_shapefile().
1242            (load_session): Added shapefile_callback.
1243    
1244            * Thuban/UI/altpathdialog.py: New, implements dialogs for alternative path
1245            feature (search / check).
1246            
1247            * Doc/manual/thuban-manual.xml: Added documentation of new feature.
1248    
1249    2004-12-11  Bernhard Reiter <[email protected]>
1250    
1251             svgexport 0.9.2: Point size supports for maps.
1252    
1253            * Extensions/svgexport/svgmapwriter.py: Added import of SHAPETYPE_POINT
1254            (def draw_point_shape): new parameter size defaults to 2 as before.
1255            (draw_shape_layer_incrementally): Moved draw_func log line higher.
1256            Added draw_func call with size when dealing with a point layer.
1257    
1258            * Extensions/svgexport/__init__.py: bumped version to 0.9.2.
1259            
1260    2004-12-11  Bernhard Reiter <[email protected]>
1261    
1262            Made sure that newlines are inserted in the svg path d attributes
1263            to raise the chance that the line length will be below 255 characters,
1264            as recommended by REC SVG 1.1 in section 8.3.1.
1265    
1266            * Extensions/svgexport/svgmapwriter.py(DrawPolygon):
1267            Adding \n before L's and changed whitespace handling.
1268    
1269            * Extensions/svgexport/test/test_svgmapwriter.py:
1270            Adapted tests to new whitespace handling of DrawPolygon.
1271    
1272    2004-12-11  Bernhard Reiter <[email protected]>
1273    
1274            * Doc/technotes/coding_guidelines.txt: easy typo fixed.
1275    
1276            * Extensions/svgexport/test/test_svgmapwriter.py:
1277            Removed test_drawbezier in favour of new test_drawspline3 and
1278            test_drawspline4 within new class TestDrawSplines(TestVirtualDC).
1279            All only to test DrawSpline.
1280    
1281            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1282            New implementation now really using the strange algorithm of
1283            xfig 3.1's approximated splines and its conversion to postscript
1284            with one twist: SVG can do quadratic beziers, so skipped translation
1285            to cubic beziers.
1286            (TestWithDC): Typo in comment fixed.
1287    
1288    2004-12-09  Martin Schulze  <[email protected]>
1289    
1290            * Thuban/Model/classgen.py: Added missing character encoding
1291    
1292            * Extensions/wms/properties.py (OpenWMSProperties): removed
1293    
1294            * Extensions/wms/parser.py (WMSCapabilitiesParser.error): Dropped
1295            support for get_srs_discrepancies() since there are no
1296            discrepancies anymore (was a thinko)
1297    
1298            * Extensions/wms/layer.py (WMSLayer.GetMapImg): Improved graphic
1299            format priority now that more formats are supported globally by
1300            the render engine.
1301    
1302    2004-12-08  Silke Reimer <[email protected]>
1303            * Extensions/ogr/ogrshapes.py: Substituted ogr-method CloseRings
1304            because it is not available in all versions of ogr
1305    
1306    2004-12-08  Bernhard Reiter <[email protected]>
1307            * Extensions/ogr/__init__.py: Added empty __init__.py to heal
1308            global tests until a real one is commited.
1309    
1310    2004-12-07 Nina H�ffmeyer <[email protected]>
1311    
1312            * /Extensions/ogr/: Adding a new extension to read shapefiles with
1313            ogr. It is planned to add other vector formats.
1314    
1315            * /test/runtests.py: Adding tests from /Extensions/ogr/test/.
1316    
1317    2004-12-07  Jan-Oliver Wagner <[email protected]>
1318    
1319            * /Extensions/svgexport/test/test_svgmapwriter.py: Reverting
1320            part of a (non-)fix to renable that the tests are always
1321            executed.
1322    
1323    2004-12-07  Bernhard Reiter <[email protected]>
1324    
1325            * Extensions/svgexport/test/test_svgmapwriter.py:
1326            Added test_drawbezier() to test DrawSpline().
1327    
1328            * Extensions/svgexport/svgmapwriter.py(DrawSpline):
1329            Really implemented bezier drawing.
1330    
1331            * Extensions/svgexport/__init__.py: Bumped version of svgexport
1332            to 0.9.1 because now the legend examples lines styles
1333            will be drawing with beziers.
1334    
1335    2004-12-05  Martin Schulze  <[email protected]>
1336    
1337            * Thuban/UI/renderer.py (raster_format_map): Added PNG, TIFF and
1338            GIF as supported bitmap image formats (helpful for the WMS extension)
1339    
1340    2004-11-30  Martin Schulze  <[email protected]>
1341    
1342            * Extensions/wms/test/test_ogclib.py (TestOGCLib.test_compareURLs):
1343            Improved the test for the internal compare method
1344    
1345    2004-11-27  Jan-Oliver Wagner <[email protected]>
1346    
1347            * Thuban/UI/about.py (About.__init__): Added
1348            Norbert Solymosi for hungarian translation and Ole Rahn
1349            as contrbutor. Moved Bernhard Reiter from Contributor
1350            to Developer.
1351    
1352    2004-11-27  Bernhard Reiter <[email protected]>
1353    
1354            * Extensions/svgexport/test/test_svgmapwriter.py:
1355            Removed Jan from author list as he did not change enough significant
1356            lines yet.
1357    
1358            * Extensions/svgexport/__init__.py: Added Bernhard as author
1359            of the Extension.
1360    
1361    2004-11-27  Jan-Oliver Wagner <[email protected]>
1362    
1363            * po/hu.po: New. Hungarian translation. Contributed
1364            by Norbert Solymosi.
1365    
1366    2004-11-26  Bernhard Herzog  <[email protected]>
1367    
1368            * Extensions/svgexport/test/test_svgmapwriter.py
1369            (Testobjectexport.test_transparent_polygon): Commented out some
1370            debug prints
1371    
1372    2004-11-24  Jan-Oliver Wagner <[email protected]>
1373    
1374            Fix broken tests for svg extension and added svg legend
1375            to Experimental menu.
1376    
1377            * Extensions/svgexport/test/test_svgmapwriter.py: Fix to have
1378            the test run correctly even if the extension is a package.
1379            Also removed the "import Thuban" which makes no sense.
1380    
1381            * Extensions/svgexport/__init__.py: Fix to have the extensions'
1382            test module also be executed from the global test routine.
1383            This is done by looking for the absense of the DISPLAY variable.
1384    
1385            * Extensions/svgexport/maplegend.py: Moved the menu entry from Extensions
1386            to Experimental menu since this module has yet not reached a stable
1387            status (ie. 1.0).
1388    
1389    2004-11-22  Bernhard Reiter <[email protected]>
1390    
1391            * Extensions/svgexport/svgmapwriter.py:
1392            Added verbose variable and some logging depending on it.
1393            (class VirtualDC(XMLWriter)): Minor improvement in the polygon loop,
1394            because counting i is not necessary.
1395            (class Pen, class Brush): Added simple __str__ methods.
1396            (SVGRenderer.draw_polygone_shape): Fix #2698 (transparent polygons are
1397            not exported to svg file) Note: holes still unhandled.
1398    
1399            * Extensions/svgexport/test/test_svgmapwriter.py:
1400                    Made a baseclass TestWithDC for test needed a DC.
1401                    Added tests for bug #2698 (transparent polygons are not
1402                    exported to svg file):
1403                    Testobjectexport.test_transparent_polygon()
1404    
1405            * Thuban/Model/base.py (UnsetModified):
1406            Fixed some typos in docstring.
1407    
1408            * Thuban/UI/baserenderer.py (BaseRenderer.draw_polygon_shape()):
1409            Added hints on the used algorithm for handling holes.
1410    
1411    2004-11-20  Jan-Oliver Wagner <[email protected]>
1412    
1413            Some face lifting for the examples.
1414    
1415            * Examples/__init__.py: Make this directory a package.
1416    
1417            * Examples/simple_extensions/__init__.py: Make this directory a package.
1418    
1419            * Examples/simple_extensions/hello_world.py: Moved entry from Extensions
1420            menu to Examples menu.
1421    
1422            * Examples/simple_extensions/simple_command.py: Some more comments,
1423            minor changes.
1424    
1425            * Examples/simple_extensions/simple_tool.py: Minor changes.
1426    
1427    2004-11-20  Jan-Oliver Wagner <[email protected]>
1428    
1429            Changed way of extension registry for wms and added extension
1430            registry for umn_mapserver extension.
1431    
1432            * Extensions/wms/__init__.py: Added registry entry and the importing
1433            of the actual wms module. Included a test for the required PyOGCLib.
1434    
1435            * Extensions/wms/wms.py: Removed registry entry (moved to __init__.py).
1436    
1437            * Extensions/umn_mapserver/__init__.py: Added registry entry and the
1438            importing of the actual umn mapserver management modules.
1439            Included a test for the required Python MapScript.
1440    
1441    2004-11-20  Jan-Oliver Wagner <[email protected]>
1442    
1443            Changed way of extension registry for importAPR, bboxdump
1444            and added extension registry for svgexport.extension registry for
1445            svgexport.
1446    
1447            * Extensions/importAPR/__init__.py: Added registry entry and the importing
1448            of the actual importAPR module.
1449    
1450            * Extensions/importAPR/importAPR.py: Removed registry entry (moved to
1451            __init__.py).
1452    
1453            * Extensions/bboxdump/__init__.py: Added registry entry and the importing
1454            ï¿½ï¿½ï¿½ï¿½of the actual bboxdump module.
1455    
1456            * Extensions/bboxdump/bboxdump.py: Removed registry entry (moved to
1457            ï¿½ï¿½ï¿½ï¿½__init__.py).
1458    
1459            * Extensions/svgexport/__init__.py: Added registry entry and the importing
1460            of the svgsaver module.
1461    
1462            * Extensions/svgexport/svgsaver.py: Moved the menu entry from Extensions
1463            to Experimental menu since this module has yet not reached a stable
1464            status (ie. 1.0).
1465    
1466    2004-11-18  Jan-Oliver Wagner <[email protected]>
1467    
1468            Now the hit test considers the size of point symbols.
1469    
1470            * Thuban/UI/viewport.py (ViewPort._hit_point): Added optional parameter
1471            'size' defaulting to the previously fixed value 5.
1472            Extended doc-string.
1473            (Viewport._find_shape_in_layer): Resolved FIXME regarding flexibility
1474            for symbols.
1475            Now the size of the largest point symbol is determined to find out
1476            about whether the point has been hit.
1477            This fixes the problem that only clicks inside a fixed distance of
1478            5 where found.
1479    
1480    2004-11-17  Jan-Oliver Wagner <[email protected]>
1481    
1482            Another open issue fixed regarding sizeable symbols: correct rendering of
1483            selected symbols.
1484    
1485            * Thuban/UI/renderer.py (ScreenRenderer.draw_selection_incrementally):
1486            Added consideration of the specific size of point symbols.
1487            The property for each point symbol is retrieved and the size applied
1488            for the rendering method.
1489            Added doc-string.
1490    
1491    2004-11-16  Jan-Oliver Wagner <[email protected]>
1492    
1493            Changed way of Extension Registry for gns2shp and profiling.
1494    
1495            * Extensions/gns2shp/gns2shp.py: Removed registry entry (moved to
1496            __init__.py).
1497    
1498            * Extensions/gns2shp/__init__.py: Added registry entry and the importing
1499            of the actual gns2shp module.
1500    
1501            * Extensions/profiling/profiling.py: Removed registry entry (moved to
1502            __init__.py).
1503    
1504            * Extensions/profiling/__init__.py: Added registry entry and the importing
1505            of the actual profiling module.
1506    
1507    2004-10-28  Bernhard Reiter <[email protected]>
1508    
1509            * Extensions/svgexport/: Minor improvements to doc strings.
1510    
1511    2004-10-07  Jan-Oliver Wagner <[email protected]>
1512    
1513            Further elements for sizable point objects now
1514            making this feature usable though not yet complete.
1515    
1516            * Thuban/Model/save.py (SessionSaver.write_classification): Write
1517            attribute 'size' for cldata when the shape layer is of point type.
1518            This also now make the test_load.py tests happy.
1519    
1520            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Added size
1521            gradient.
1522    
1523            * Thuban/UI/classifier.py (ID_SELPROP_SPINCTRL): Renamed to
1524            ID_SELPROP_SPINCTRL_LINEWIDTH.
1525            (ID_SELPROP_SPINCTRL_LINEWIDTH): New Id replaces ID_SELPROP_SPINCTRL.
1526            (ID_SELPROP_SPINCTRL_SIZE): New Id.
1527            (SelectPropertiesDialog.__init__): Added a second spin control
1528            for the size in case the corresponding layer is of point type.
1529            (SelectPropertiesDialog._OnSpin): Renamed to _OnSpinLineWidth.
1530            (SelectPropertiesDialog._OnSpinLineWidth): New. Former _OnSpin.
1531            (SelectPropertiesDialog._OnSpinSize): New. Set size of property
1532            and refresh preview.
1533    
1534    
1535    
1536    2004-10-04  Martin Schulze  <[email protected]>
1537    
1538            * Extensions/wms/test/test_parser.py
1539            (TestWMSCapabilitiesParser.test_compareLists): Added missing
1540            self-test for compareLists()
1541            (TestWMSCapabilitiesParser.test_compareDicts): Added missing
1542            self-test for compareDicts()
1543            (TestWMSCapabilitiesParser.test_compareLists): Adding more tests
1544            to verify the test routine fails with non-equal arguments
1545            (TestWMSCapabilitiesParser.test_compareDicts): Adding more tests
1546            to verify the test routine fails with non-equal arguments
1547    
1548    2004-10-03  Jan-Oliver Wagner <[email protected]>
1549    
1550            First elements for sizeable point objects.
1551    
1552            * Resources/XML/thuban-1.1.dtd: Added size attribute to cldata.
1553    
1554            * Data/iceland_sample_size.thuban: New. Sample for sized point objects.
1555    
1556            * test/test_load.py (ClassificationTest.TestLayers): Added SetSize in case
1557            of a corresponding argument is given.
1558            (TestSymbolSize): New. Test the size attribute of cldata.
1559    
1560            * Thuban/Model/classification.py: Removed some trailing whitespaces.
1561            (ClassGroupProperties.__init__): Set default size.
1562            (ClassGroupProperties.SetProperties): Set the size.
1563            (ClassGroupProperties.GetSize): New. Return the size.
1564            (ClassGroupProperties.SetSize): New. Set the size.
1565            (ClassGroupProperties__eq__): Compare also size.
1566            (ClassGroupProperties__repr__): Print also size.
1567    
1568            * Thuban/Model/load.py (SessionLoader.start_cldata): Also parse
1569            the size attribute.
1570    
1571            * Thuban/UI/classifier.py (ClassDataPreviewer.Draw): Added doc-string.
1572            Also, now there is a return value that indicates whether the drawing
1573            size exceeded the given rect extent and if so the new extent.
1574            Finally, point objects are drawn depending on the size. If either
1575            the width or height is exceeded, the new extent is returned.
1576            (ClassRenderer.Draw): Now when calling the previewer drawing function,
1577            evaluate the return value and, if not None, adapt the grid widget size
1578            accordingly and redraw again.
1579    
1580            * Thuban/UI/baserenderer.py (BaseRenderer.draw_shape_layer_incrementally):
1581            If the draw function is for points, call it with the size as additional
1582            parameter.
1583            (BaseRenderer.draw_point_shape): Added additional, optional parameter for
1584            the size. Compute the radius using the size.
1585    
1586            * Extensions/importAPR/apr.py (APR_BMkSym.GetThubanProp): Now
1587            that Thuban supports size, apply this correctly.
1588    
1589            * Extensions/importAPR/importAPR.py: Bumped version to 0.1.1.
1590    
1591    2004-10-03  Jan-Oliver Wagner <[email protected]>
1592    
1593            * Doc/manual/thuban-manual-de.xml: Started translation of
1594            Map chapter.
1595    
1596    2004-10-01  Martin Schulze  <[email protected]>
1597    
1598            * Extensions/wms/properties.py (wmsProperties.__init__): Extended
1599            argument for general use through properties-dialog selector
1600            
1601            * Thuban/UI/classifier.py: Register properties dialog classes for
1602            both provided layer classes/types.
1603    
1604            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): The
1605            map can be retrieved through the parent which is passed to the
1606            constructor anyway and doesn't require an argument of its own,
1607            required for the unification of arguments for general use through
1608            properties-dialog selector.
1609            (MainWindow.OpenOrRaiseDialog): Move the logic for checking
1610            whether a dialog is already opened (and raising it to the users
1611            attention) and creating a new dialog into a function of its own
1612            (MainWindow.OpenLayerProperties): Use the new OpenOrRaiseDialog()
1613            method
1614            (MainWindow.OpenLayerProperties): Utilise the new ClassMapper for
1615            global registration of properties dialog classes (which are indeed
1616            layer-specific).
1617    
1618            * Thuban/UI/classifier.py (Classifier.__init__): Unify arguments
1619            for general use through properties-dialog selector, the map can be
1620            retrieved through the parent and doesn't require an argument of
1621            its own.
1622    
1623            * Extensions/wms/wms.py: Register the properties dialog class for
1624            the provided WMS layer
1625    
1626    2004-09-28  Jan-Oliver Wagner <[email protected]>
1627    
1628            New feature: Registry for Extensions.
1629    
1630            * Thuban/UI/extensionregistry.py: This module defines a registry for
1631            Extensions.
1632    
1633            * Thuban/UI/about.py (About.__init__): Added description
1634            of the registered extensions with all of the information.
1635    
1636            * Thuban/Model/extension.py (Extension): Improved doc-string.
1637    
1638            * Extensions/gns2shp/gns2shp.py, Extensions/importAPR/importAPR.py,
1639            Extensions/bboxdump/bboxdump.py, Extensions/profiling/profiling.py,
1640            Extensions/wms/wms.py: Added registration of the extension.
1641    
1642    2004-09-27  Bernhard Reiter <[email protected]>
1643    
1644            More fixes to svgexport to make used ids unique and
1645            conforming to XML's Name production.
1646    
1647            * Extensions/svgexport/test/test_svgmapwriter.py: Added new tests
1648            test_xml_id_constraints(), test_make_ide_nosetbaseid() and
1649            test_make_id_nonintegersetid().  Switched SetID and SetBaseID.
1650            Added Bernhard R. as author.
1651            * Extensions/svgexport/svgmapwriter.py (make_id): Using "_" as
1652            concatenation char now (makes test_make_ide_nosetbaseid() valid).
1653            Also transform second id part with "%d" and catch the TypeError
1654            to raise SVGMapWriterError (making test_make_id_nonintegersetid() ok).
1655            Corrected typo inBernhard's author line.
1656            (SetBaseID): Return the transformed base id. Transform characters
1657            which are not alnum() or in ".-_" to binascii.b2a_hex(). Added
1658            import binascii. If to be set string starts with "xml" or so, add "t".
1659            (draw_shape_layer_incrementally): use the returned value of SetBaseID
1660            for used_baseids checks.
1661    
1662    2004-09-25  Bernhard Herzog  <[email protected]>
1663    
1664            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1665            Remove a debug print and some tab characters.
1666    
1667    2004-09-25  Bernhard Reiter <[email protected]>
1668    
1669            * Extensions/svgexport/svgmapwriter.py: Added Bernhard R. as Author.
1670            (SetBaseID, SetID, make_id): Improved docstring comments to explain
1671            the interaction of the three functions and the XML id contrains.
1672    
1673    
1674    2004-09-23  Jan-Oliver Wagner <[email protected]>
1675    
1676            * Doc/ThubanModel.xmi: New. UML file for Thuban Model
1677            Module.
1678    
1679            * Doc/README: Added info on ThubanModel.xmi.
1680    
1681    2004-09-23  Jan-Oliver Wagner <[email protected]>
1682    
1683            * Doc/README: New. Some info about how to generate technical
1684            documentation from the source code.
1685            This text was send to the Thuban developer mailing list on
1686            September 21st 2004 by Bernhard Reiter.
1687    
1688    2004-09-21  Bernhard Reiter <[email protected]>
1689    
1690            Improved the svgexport to only use unique ids. Will issues
1691            an error message dialoge when two layer names are the same.
1692            ShapeIDs are now added with a dash within the svg ids.
1693    
1694            * Extensions/svgexport/svgmapwriter.py (SVGMapWriterError): New.
1695            * Extensions/svgexport/test/test_svgmapwriter.py: Added imports
1696            (TestSVGRenderer): New test class with test_make_in() and
1697            test_check_for_layer_name_clash()
1698            * Extensions/svgexport/svgmapwriter.py (SVGRenderer): Fixed __init__()
1699            and draw_shape_layer_incrementally() to not use a baseid twice,
1700            satisfying test_check_for_layer_name_clash()
1701            (VirtualDC.make_id): Use a dash between baseit and id, satisfies
1702            test_make_in().
1703            * Extensions/svexport/svgsaver.py: Import SVGMapWriterError, wxOK
1704            and wxICON_HAND.
1705            (write_to_svg): Put dc and rendering in a try statement and on
1706            catching SVGmapWriterError notify the user and delete the target file.
1707    
1708    2004-09-20  Bernhard Reiter <[email protected]>
1709    
1710            * Model/base.by, Model/layer.py: Fixed typos in docstrings.
1711    
1712    2004-09-03  Jan Sch�ngel  <[email protected]>
1713    
1714            * Extensions/umn_mapserver/mapfile(MF_Class.add_thubanstyle): Fix a
1715            small bug with the line color. Now the line color will now only set
1716            if it is set in Thuban an not Transparent.
1717            
1718            * Extensions/umn_mapserver/mf_export(tblayer_to_map): Fixed a bug with
1719            deleting the layers from mapfile. Now all layers will delete backwards
1720            from the last.
1721    
1722    2004-08-20  Silke Reimer <[email protected]>
1723    
1724            * Thuban/Model/layer.py:
1725            Fixes bug in projection handling: Otherwise very large region might not
1726            have valid values in the layer's projection.
1727    
1728    2004-08-20  Silke Reimer <[email protected]>
1729    
1730            * Thuban/UI/about.py:
1731            small changes to be consistent with coding style.
1732              
1733    2004-08-13  Martin Schulze  <[email protected]>
1734    
1735            * Extensions/wms/test/test_ogclib.py (TestOGCLib.compare_URLs):
1736            Adjusted a comment
1737    
1738    2004-08-11  Silke Reimer <[email protected]>
1739    
1740            * Thuban/UI/about.py: Small changes to encoding related stuff to avoid
1741                    too many and too enhanced imports of locale
1742    
1743    2004-08-10  Silke Reimer <[email protected]>
1744    
1745            * Thuban/UI/about.py: Fixed encoding problem of about dialog: Added
1746                    function unicodeToLocale() to convert special characters to users
1747                    locale encoding
1748    
1749    2004-08-10  Jan-Oliver Wagner <[email protected]>
1750    
1751            * Doc/technotes/coding_guidelines.txt: Added rule 'Method names start with
1752            lower case letter'
1753    
1754    2004-08-09  Jan Sch�ngel  <[email protected]>
1755    
1756            * ChangeLog: Rewrite the last ChangeLog entry to follow
1757            the standard way.
1758    
1759            * Extensions/umn_mapserver/mapfile: Moved the import AnnotationLayer to
1760            the function where it is needed, because it don't works if it stands
1761            at the beginning.
1762            (MF_Layer.__init__): Removed the extra numclassed variable. Now
1763            numclasses from the mapscript will be used.
1764            (MF_Layer.get_index): New. Return the index of the layer in mapfile.
1765            (MF_Layer.set_classes): New. A Classlist will be set to the layer.
1766            (MF_Layer.set_metadata): New. A Metadata mapscript object will set.
1767            (MF_Layer.remove_allclasses): New. All class of the layer will remove.
1768            (MF_Map.create_new_layer): New. A new Layer is created and associated
1769            with the mapscript object.
1770            (MF_Map.set_layerorder): New. The Layer order like in thuban is set in
1771            the mapscript.
1772            (MF_Map.add_thubanlayer): Now a new layerobj is created if no one is
1773            linked to the layer in thuban, else the layerobject linked to the
1774            thubanlayer will be used.
1775            AnnotationLayer will now store the filename of the shapefile.
1776            (MF_Map.remove_layer): If a layer is removed the associated object
1777            must be set new.
1778            
1779            * Extensions/umn_mapserver/mf_export.py(tb_layer_to_map): Add all
1780            layers which are exists in thuban to the mapobj. All removed Layers
1781            will be removed from the mapobj.
1782            Added comments to all functions.
1783            (thuban_to_map): No layer will be removed here.
1784            
1785            * Extensions/umn_mapserver/mf_handle.py
1786            (_has_umn_mapobj_and_selectedlayer): Activating the layer menu. Now
1787            Layersettings for the mapserver kann be edited.
1788    
1789            * Extensions/umn_mapserver/mf_import.py: Now all layers which are
1790            imported, will be linked with the associated MF_Layer.
1791            (import_mapfile): All layers, which are not selected, will be removed.
1792            Disable the "import layer from mapfile" menu option.
1793    
1794            * Extensions/umn_mapserver/sample/iceland.map: Set the status of the
1795            Annotation Layer from DEFAULT to OFF. The DEFAULT setting turns the
1796            layer on permanently.
1797    
1798    2004-08-03  Jan Sch�ngel  <[email protected]>
1799    
1800            * Extensions/umn_mapserver/mapfile.py(MF_Metadata.remove_allmetadata):
1801            New. This function removes all metadata
1802            (MF_Layer.set_group): New. Set the group setting.
1803            (MF_Layer.get_group): New. Get the group setting.
1804            (MF_Map): Removed the extra numlayers variable, used the mapscript
1805            parameter instead.
1806            (MF_Map.get_numlayers): New. This get numlayers.
1807            (MF_Map.remove_all_layers): New. Removes all layers from the mapobj.
1808            (MF_Map.add_thubanlayer): Replaced the exception handling by a check
1809            if the object is an instance. Also added the annotation layer here to
1810            export, but only the layer is created in the mapfile.
1811    
1812            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Removed
1813            the check if a mapobj exist, because its not needed anymore. The
1814            export function is only available if a mapobj exist.
1815            Use the new function to remove all layers.
1816            
1817            * Extensions/umn_mapserver/mf_handle.py(Layer_Dialog): Added a group
1818            option and the metadata button. The layer dialog is temporary disabled.
1819            (Metadata_CustomDataTable): Added some functions to show the grid
1820            correct.
1821    
1822            * Extensions/umn_mapserver/mf_import.py: Moved the code for showing
1823            the number of layer from import_mapfile to this function.
1824            (AnnotationLayer): New. This Class shows the Annotation layer in
1825            thuban. The layer don't do anything. It's only to show the layer
1826            and to save the layer order.
1827            (add_annotationlayer): New. Import an annotation layer to thuban.
1828            (select_layer2import): New. Import only layers to thuban and not
1829            the other settings like projection or scalebar.
1830            (create_new_mapfile): Moved the _has_umn_mapobj function and the
1831            create_new_mapfile functions from mf_handle.py to mf_import.py.
1832            
1833            * Extensions/umn_mapserver/sample/iceland.map: Added the group
1834            parameter to the roads and cultural layers. Also added a new
1835            Annotation Layer for the cultural points.
1836    
1837            * Extensions/umn_mapserver/sample/iceland.html: Added the select
1838            option for the annotation layer.
1839    
1840            * Extensions/umn_mapserver/sample/index.html: Added the start
1841            parameter for the annotation layer.
1842    
1843    2004-08-01  Jan-Oliver Wagner <[email protected]>
1844    
1845            * Doc/manual/thuban-manual-de.xml (Chapter Session Management):
1846            translation completed.
1847    
1848            * Doc/manual/thuban-manual.xml (Chapter Session Management):
1849            Fixed unprecise description for Save Session.
1850    
1851    2004-07-31  Jan-Oliver Wagner <[email protected]>
1852    
1853            Started translation of Users Manual into german.
1854    
1855            * Doc/manual/thuban-manual-de.xml: New. German Users Manual.
1856    
1857            * Doc/manual/Makefile: Added build instructions for german
1858            users manual.
1859    
1860            * Doc/manual/thuban-manual.xml: Minor corrections in Introduction.
1861    
1862    2004-07-28  Jan Sch�ngel  <[email protected]>
1863    
1864            * Extensions/umn_mapserver/mapfile.py(MF_Metadata): Changed all class
1865            functions. Now all metadata will handle by the function and its not
1866            needed to initialize it from outside. Therefor the associated mapobj
1867            will be stored in the Metadata Object. So we can use the special
1868            functions from the associated mapobj to get the Metadata.
1869            Therefor all initialization code for the metadata is removed from the
1870            other classes.
1871            (MF_Layer): Added a function to get the metadata object.
1872            (MF_Map): Added a function to set the mappath, the path where
1873            the mapfile ist stored.
1874    
1875            * Extensions/umn_mapserver/mf_export.py(thuban_to_map): Changed the code
1876            to set the extent in the mapfile. Now the code is set by the displayed
1877            data in the Thuban-view.
1878            (export_mapfile): The shapepath is now set empty, until relative
1879            pathnames are supported.
1880    
1881            * Extension/umn_mapserver/mf_handle.py: Added a dialog to handle
1882            metadata. Yet only mapfile metadata are supported. Layer and class
1883            supported are not implemented.
1884            Added a dialog to handle layer informations. The dialog only shows the
1885            selected layer at the moment.
1886    
1887            * Extensions/umn_mapserver/mf_import.py(import_mapfile): Changed the
1888            code for setting the extent in thuban. Now the extent is set to the
1889            given extent from the mapfile.
1890            Fixed a logical mistake. Now the extent is set when realy a layer is
1891            loaded, and not if one is selected to load.
1892    
1893            * Extensions/umn_mapserver/sample/iceland.html: Added code to zoom and
1894            move the shown map in the browser.
1895    
1896            * Extensions/umn_mapserver/sample/iceland.map: Added a new metadata
1897            line to the mapobj and added metadata to the political layer.
1898    
1899            * Extensions/umn_mapserver/test/test_mapserver.py: Changed the test
1900            for Metadata.
1901    
1902    2004-07-26  Martin Schulze  <[email protected]>
1903    
1904            * Thuban/Lib/classmapper.py (ClassMapper.has): Added the new
1905            ClassMapper
1906    
1907            * test/test_classmapper.py (TestMapping.test_mapper): Added a Test
1908            case for the new ClassMapper
1909    
1910    
1911    2004-07-22  Bernhard Herzog  <[email protected]>
1912    
1913            * Thuban/UI/viewport.py (ViewPort.VisibleExtent): New.  Return the
1914            visible extent of the map in projected coordinates
1915    
1916            * test/test_viewport.py (SimpleViewPortTest.test_default_size)
1917            (SimpleViewPortTest.test_init_with_size): Add some VisibleExtent()
1918            tests.
1919            (SimpleViewPortTest.test_visible_extent): New. The real test for
1920            VisibleExtent()
1921    
1922    2004-07-22  Bernhard Herzog  <[email protected]>
1923    
1924            * test/test_viewport.py: Use support.run_tests as the main
1925            function when running asa script.
1926    
1927    2004-07-22  Jan Sch�ngel <[email protected]>
1928    
1929            * Extensions/umn_mapserver/mf_export.py: Added "import os"
1930            Removed the old "import Thuban.UI.mainwindow" code.
1931            (tbextent_to_map): Removed the extra function and at the code direct
1932            to "thuban_to_map" function.
1933            (write_creatorcomment): Added. Now a short comment is added to the
1934            beginning of an generated mapfile.
1935            (export_mapfile): Now the Path and filename are saved in to variables,
1936            and not together in one variable. This is needed for the new
1937            write_creatorcomment function.
1938                    
1939            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Added the
1940            import module "re". Also added Range and the ClassGroupRange import
1941            from Thuban. Both are needed for the new range expression import.
1942            (create_rangeexpression): Added. Creates a Range Expression in Thuban
1943            style from a given mapfile expression.
1944            (added_rasterlayer): Make some small code changes. The shapepath is
1945            now stored in an extra variable and the clazz_name is set empty if no
1946            class name set in the mapfile.
1947            Changed the Error message for Range Expressions, becaus the new
1948            function create a error string which will be shown in the dialog.
1949    
1950            * Extensions/umn_mapserver/test/test_mapserver.py: Added a test for the
1951            range expression import.
1952    
1953    2004-07-21  Jan-Oliver Wagner <[email protected]>
1954    
1955            * Extensions/umn_mapserver/README: Added hint that
1956            installation as root can be avoided. Removed all tabs.
1957    
1958    2004-07-16  Bernhard Herzog  <[email protected]>
1959    
1960            * test/test_viewport.py
1961            (ViewPortTest.test_changing_map_projection): Check that changing
1962            the projection of an empty map shown in a viewport doesn't lead to
1963            exceptions in the viewport's handler for the
1964            MAP_PROJECTION_CHANGED messages
1965    
1966            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Only
1967            try to keep the same region visible when the map actually contains
1968            something
1969    
1970    2004-07-15  Jan Sch�ngel <[email protected]>
1971    
1972            * Extensions/umn_mapserver/mapfile.py: Added a function to get the
1973            mappath directly from the mapobj. Is needed because of the changes
1974            in mf_import.py.
1975            (MF_Layer.add_thubanclass): Added a new comment.
1976            (MF_Map.set_extent): Fixed a bug with exporting empty mapobj. If the
1977            mapobj is empty there is no extent get from thuban an so no one can
1978            set to th mapobj.
1979            
1980            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Updated
1981            the discription.
1982            Split the funktion in to three smaller ones. The new functions are
1983            add_rasterlayer, add_polygonlayer and select_layer2import.
1984            Removed the mapfilepath and filepath initialisation, because its know
1985            include in the new functions.
1986            Now nothing will be imported if cancel is pressed in the
1987            layer choice dialog.
1988    
1989    2004-07-14  Jan Sch�ngel <[email protected]>
1990    
1991            * Extensions/umn_mapserver/mapfile.py: Added ClassGroupDefault to
1992            import.
1993            (MF_Symbolset): Removed the extra variable for numsymbols.
1994            (MF_Class.__init__): Added a comment to the exception clause.
1995            Removed the extent init, because it was not needed anymore.
1996            (MF_Layer.add_thubanclass): Added the code to set the class name to
1997            the expression value from thuban if no label is defined.
1998            Added the code to export Range expressions from thuban to the mapfile.
1999            (MF_Map.set_extent): Removed the exception and replace it by some if
2000            code. If the size of a map is not defined the size will be set to 1,1.
2001            This is necessary because if the extent is set, mapscript checks if
2002            the size is greater than zero.
2003            (MF_Web): Added the get and set function for the template.
2004    
2005            * Extensions/umn_mapserver/mf_export.py: Added the function to check
2006            if a mapobject exists and used it to set the status of the menu items.
2007            If no mapfile exists the settings could not be edditied.
2008            Define after which menuitem the exportitem will include.
2009            
2010            * Extensions/umn_mapserver/mf_handle.py: Removed the import
2011            Thuban.UI.mainwindow clause, because it is not needed.
2012            Added the command Refresh() to all "OnChangeColor()" functions,
2013            because the color preview window was not updated on a color change.
2014            Added the function to check if a mapobject exists and used it to set the
2015            status of the menu items. If no mapobject exists the settings could not
2016            be edditied.
2017            (Map_Dialog): Moved the imagetype selector from the
2018            Outputformat_Dialog to Map_Dialog and removed Outputformat_Dialog.
2019            (Web_Dialog): Removed the name label and added the template textbox.
2020    
2021            * Extensions/umn_mapserver/mf_import.py (import_mapfile): Replace
2022            the exception handling on loading the layers by an if statement. It
2023            is not necessary to us the exception there.
2024            The Filepath creation now use os.path.join to build the path.
2025    
2026            * Extensions/umn_mapserver/test/test_mapserver.py: Moved the testMap
2027            definition from global to the setUp function. Now the testMap will
2028            initialize new on each test.
2029    
2030            * Extensions/umn_mapserver/sample/iceland.map: Include three new
2031            classes in the Line Layer, to test logical Expressions.
2032            Set the status of the class "Point9" in the Point Layer to off
2033            
2034    2004-07-13  Bernhard Herzog  <[email protected]>
2035    
2036            * Thuban/UI/baserenderer.py
2037            (BaseRenderer.render_map_incrementally): Fix a logic bug in the
2038            optimization that tries not to draw layers under a raster layer.
2039            The bug was harmless.  All it effectively did was to produce The a
2040            strange messages about not being able to draw Layer instances for
2041            all vector layers below a raster layer which would be invisible
2042            anyway because the raster layer currently always covers the entire
2043            window
2044    
2045    2004-07-08  Jan Sch�ngel <[email protected]>
2046    
2047            * Extensions/umn_mapserver/mapfile.py: Added code to generade and get
2048            a list of supported outputformats. This formats are not alle supported
2049            because there is no possibility to get the outputformat without the
2050            name known. Make some formal changes to the code.
2051            (MF_Map.set_name()): Fixed a bug if the name is None.
2052    
2053            * Extensions/umn_mapserver/mf_handle.py: Removed the image_type import
2054            statement, because its not needed anymore. The Outputformat is now
2055            given as string from the object. Make some formal changes to the code.
2056    
2057            * Extensions/umn_mapserver/test/test_mapserver.py: Added new test for
2058            most of the new setting which were added during the last changes.
2059            Removed the MF_Size Test.
2060            
2061            * Extensions/umn_mapserver/test/test.map: Added a new class to the
2062            cultural Layer to test expressions and the the status of that layer
2063            from on to default.
2064            Changed the data path the the correct Thuban Data
2065            Added the Outputformat Object and Symbol Object
2066            
2067    2004-07-07  Jan Sch�ngel <[email protected]>
2068    
2069            * Extensions/umn_mapserver/mapfile.py: Added some new
2070            settings to edit (outputformat, label, imagetype)
2071    
2072            * Extensions/umn_mapserver/mf_handle.py: Added some setting to
2073            the Label Dialog and add the OutputDialog.
2074            Make some changes to the code order.
2075    
2076    2004-07-06  Jan Sch�ngel <[email protected]>
2077    
2078            * Extensions/umn_mapserver/mapfile.py: Added the symbolObj, pointObj
2079            and line Obj and add the scalebar_status_type, scalebar_style_type and
2080            scalebar_position_type.
2081            Added the symbol- and symbolsetObject (MF_Symbol,MF_Symbolset). The
2082            are only used to create a Symbol like the circle in Thuban.
2083            Added the scalebarObject (MF_Scalebar)
2084            (MF_Class): Added set_status and get_status.
2085            (MF_Layer.add_thubanclass): Added code to set the class status
2086            (MF_Map): Added code to handle the symbols and scalebar
2087            (MF_Label): Added the set_partials and get_partials functions
2088            
2089            * Extensions/umn_mapserver/mf_export.py: Added MF_Symbol to import
2090            from mapfile. Added a function to create a circle object like the one
2091            from thuban if no one exists.
2092            
2093            * Extensions/umn_mapserver/mf_handle.py: All colors are now set when
2094            press ok in the assosiated dialog and not at the end of the
2095            colordialog.
2096            Added the Dialog for the Scalebar.
2097            (Label_Dialog): Added the offset option
2098    
2099            * Extensions/umn_mapserver/mf_import.py: Added code to import the
2100            status of the Classes.
2101            Fixed a bug with the projection. Now the to_meter parameter will be
2102            added to the Projection only if it doesn't exists.
2103    
2104    2004-07-01  Jan Sch�ngel <[email protected]>
2105    
2106            Added the functionality to handle the content thuban is not
2107            able to handle directly.
2108    
2109            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
2110            Thuban with the possibility to edit the mapfile content.        
2111            
2112            * Extensions/umn_mapserver/mf_import.py: Added the possibility
2113            to import mapfiles without any layer selected. So it is possible
2114            to edit the other settings in a mapfile.
2115            (import_mapfile): Added code to use the editing functions.
2116            Added the possibility to import the projection to a layer if one
2117            is defined.
2118            Status settings (On,Off) will now set in thuban (visible, invisible).
2119            fixed a bug with with classnames. If no classname is set in mapfile
2120            the value in Thuban will set to the expression.
2121            
2122            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
2123            possibility to save a new mapfile or use the old one which is
2124            imported or new created.
2125            Added code to use the editing functions.
2126            Remove some not needed import statements
2127    
2128            * Extensions/umn_mapserver/mapfile.py: Added new types which are
2129            need for the editing functions.
2130            Added needed set-functions for the editing functions.
2131            Added the possibility to export rasterimages.
2132            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
2133            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
2134            moment.
2135            (MF_Class.set_thubanstyle): Now point layers will set to a default
2136            symbol to show a circle in mapserver and not only a 1px dot.
2137            (MF_Style.__init__): Fixed a bug with the color. Color was not set
2138            correct before.
2139            (MF_Size): Removed, because it is not needed.
2140            
2141            * Extensions/umn_mapserver/README: Added the hints to use the
2142            export and editing functions, too.
2143    
2144            * Extensions/umn_mapserver/sample/iceland.map: Added the
2145            new parameter "UNITS METERS".
2146            Change the political layer to status OFF.
2147    
2148            * Extensions/umn_mapserver/sample/README: Added some
2149            more details to setup the sample in the MapServer.
2150            
2151    2004-06-26  Bernhard Reiter <[email protected]>
2152    
2153            * Extensions/svgexport/test/test_svgmapwriter.py:
2154            Removed class VFile and used standard StringIO instead.
2155    
2156    2004-06-23  Jan Sch�ngel  <[email protected]>
2157    
2158            Add the export function to the umn_mapserver extension.
2159    
2160            * Extension/umn_mapserver/mf_export.py: New. This module extents
2161            Thuban with the possibility to export the Thuban content.
2162    
2163            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
2164            with the export module. Especially added the possibility to
2165            add thuban objects directly to the map objects.
2166    
2167            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
2168            because of the hint from Bernhard Herzog.
2169            Corrected the handling of absolute pathnames.
2170            Changed the Text of the Menu-Item, now the beginning is upper case.
2171    
2172            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
2173    
2174    2004-06-16  Jan Sch�ngel  <[email protected]>
2175    
2176            Add a sample and make some changes.
2177    
2178            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
2179            import from * to explicit used statements. Changed the
2180            Thuban.UI.mainwindow import phrase, too.
2181            (import_mapfile):Corrected a clerical mistake.
2182            Added wxCHANGE_DIR in OpenFile Dialog.
2183            Added a MultipleChoiceDialog, to select the layers to load from
2184            mapfile into thuban. Thereby the projection is only set if one layer
2185            is selected.
2186            Added the possibility to handle relative pathnames which uses
2187            up-level references.
2188            Removed some doubled code.
2189            Corrected an error with integer values used as label in thuban
2190            ClassGroup.
2191            
2192            * Extensions/umn_mapserver/sample: New.
2193    
2194            * Extensions/umn_mapserver/sample/README: New. Describes the
2195            usage of the sample files.
2196    
2197            * Extensions/umn_mapserver/sample/iceland.map: New. This is
2198            a suitable .map-file for the iceland data.
2199    
2200            * Extensions/umn_mapserver/sample/index.html: New. The template
2201            for the mapfile.  
2202    
2203            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
2204            file for the Iceland Application on web.
2205    
2206            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
2207            some details.
2208    
2209            * Extensions/umn_mapserver/test/test_mapserver
2210            (mapserver_import_Test_generalClasses.test_MF_Color):
2211            Corrected the thubancolor test.
2212    
2213    2004-06-15  Jan Sch�ngel  <[email protected]>
2214    
2215            * Extensions/umn_mapserver/README: New. Install instruction.
2216    
2217    2004-06-14  Bernhard Reiter <[email protected]>
2218    
2219            * libraries/thuban/cpl_mfile.h: Added copyright header.
2220    
2221            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
2222            Free Software License so that it is most useful with gdalwarp
2223            and bmpdataset.
2224    
2225    2004-06-14  Bernhard Herzog  <[email protected]>
2226    
2227            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
2228            import of wxPython.wx itself (as opposed to the contents of
2229            wxPython.wx).  For some reason wxPython.wx is available as
2230            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
2231            wrt. wxPython 2.4.
2232    
2233    2004-06-10  Jan Sch�ngel  <[email protected]>
2234    
2235            Initial version of new extension "umn_mapserver".  This extension aims
2236            to manage configuration for the UMN MapServer application.  This
2237            inital version just imports the .map-files and displays all, Thuban is
2238            capable of.
2239    
2240            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
2241    
2242            * Extensions/umn_mapserver/test/README: New. Describes how to run the
2243            tests.
2244    
2245            * Extensions/umn_mapserver/test/test.map: New. This is a test
2246            .map-file for automated tests of the umn_mapserver extension of
2247            Thuban.
2248    
2249            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
2250            UMN Mapserver classes.
2251    
2252            * Extensions/umn_mapserver/__init__.py: New. Init to make this
2253            directory a package.
2254    
2255            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
2256            '.map'-file objects.
2257    
2258            * Extensions/umn_mapserver/mf_import.py: New. This module extends
2259            Thuban with the possibility to handle UMN MapServer mapfiles.
2260    
2261    2004-06-03  Bernhard Herzog  <[email protected]>
2262    
2263            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
2264            to a tuple before using it as arguments to the % operator.  This
2265            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
2266            reported today on thuban-list by Jan Sch�ngel
2267    
2268            * test/test_layer.py (TestLayerModification.setUp): Save the
2269            filename as an instance variable so we can refer to it in tests
2270            (TestLayerModification.test_tree_info): Uncomment this method
2271            again and make it work.  This tests for the formatting issue
2272            filed in RT#2239 on 2004-01-13
2273    
2274    2004-05-28  Bernhard Herzog  <[email protected]>
2275    
2276            * Thuban/UI/baserenderer.py: Fix some typos.
2277    
2278    2004-05-18  Jan-Oliver Wagner <[email protected]>
2279    
2280            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
2281            by increasing a field size.
2282    
2283    2004-05-17  Bernhard Herzog  <[email protected]>
2284    
2285            Update to newest shapelib and get rid of Thuban specific
2286            extensions, i.e. use the new DBFUpdateHeader instead of our
2287            DBFCommit kludge
2288    
2289            * libraries/shapelib/shpopen.c: Update to version from current
2290            shapelib CVS.
2291    
2292            * libraries/shapelib/shapefil.h: Update to version from current
2293            shapelib CVS.
2294    
2295            * libraries/shapelib/dbfopen.c: Update to version from current
2296            shapelib CVS.
2297            (DBFCommit): Effectively removed since shapelib itself has
2298            DBFUpdateHeader now which is better for what DBFCommit wanted to
2299            achieve.  
2300            We're now using an unmodified version of dbfopen.
2301    
2302            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
2303            value '1' to the Lib.dbflibc extension.  This simply reflects the
2304            shapelib and pyshapelib updates
2305    
2306    2004-05-16  Jan-Oliver Wagner <[email protected]>
2307    
2308            Finished introduction of Menu.FindOrInsertMenu.
2309    
2310            * Extensions/drawshape/drawshape.py: Add the command
2311            to the experimental menu additionally to the toolbar.
2312    
2313            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
2314            finding menu on its own.
2315    
2316            * Doc/manual/thuban-manual.xml: updated sample file
2317            to use FindOrInsertMenu().
2318    
2319            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
2320            instead of finding menu on its own.
2321    
2322    2004-05-11  Jan-Oliver Wagner <[email protected]>
2323    
2324            * test/test_menu.py (MenuTest.test): Added testing
2325            of method Menu.FindOrInsertMenu.
2326    
2327    2004-05-10  Jan-Oliver Wagner <[email protected]>
2328    
2329            Introduce and use Menu.FindOrInsertMenu.
2330    
2331            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
2332              given menu or, if not found, insert it.
2333    
2334            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
2335            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
2336            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
2337            menu on its own.
2338    
2339    2004-05-06  Jan-Oliver Wagner <[email protected]>
2340    
2341            Introduce a abstract ColorDialog class and remove
2342            and outdated file.
2343    
2344            * Thuban/UI/proj4dialog.py: Removed. It is has been
2345            replaced by projdialog for quite a while and is not used
2346            anymore.
2347    
2348            * Thuban/UI/colordialog.py: New. Abstraction for color selection
2349            dialog(s).
2350    
2351            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
2352            Now calls the abstract ColorDialog instead of wxColourDialog.
2353            This also removed the dependency to Color class conversion
2354            from this function.
2355    
2356    2004-05-04  Frank Koormann  <[email protected]>
2357    
2358            * Extensions/bboxdump/__init__.py: Fixed string left over from
2359            copying.
2360    
2361            * Extensions/bboxdump/bboxdump.py (bboxdump):
2362            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
2363            xrange(layer.NumShapes()). Compile the bboxmessage from a list
2364            of formatted outputs (string.join) instead of appending to the
2365            message. Two progress bar dialogs to report progress on the sometimes
2366            lenghty processing.
2367    
2368    2004-04-22  Frank Koormann  <[email protected]>
2369    
2370            New Extension to dump bounding boxes of all shapes of the selected
2371            layer. An optional column can be specified to group the objects,
2372            in this case the bounding box is a union of the separate boxes.
2373            Dump can be displayed in a ScrolledMessageDialog or written to file.
2374            The Extension is simply a combination of available and well tested
2375            Thuban functionality.
2376    
2377            * Extensions/bboxdump/__init__.py: New: Init to make this
2378            directory a package.
2379    
2380            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
2381            all shapes of the selected layer.
2382    
2383    2004-04-22  Jan-Oliver Wagner <[email protected]>
2384    
2385            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
2386            strings to be i18n now.
2387    
2388    2004-04-18  Jan-Oliver Wagner <[email protected]>
2389    
2390            Changing popup menu of legend from direct building
2391            to using the Menu construction as used for the mainwindow.
2392    
2393            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
2394            layer_to_bottom, layer_visibility
2395            (MainWindow.LayerToTop): New. Put current layer to the top.
2396            (MainWindow.LayerToBottom): New. Put current layer to bottom.
2397            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
2398            Replace 1,0 by True, False.
2399            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
2400            current layer.
2401            (MainWindow.LayerShowTable): Removed raising of dialog.
2402            (_has_selected_layer_visible): New. Support function.
2403    
2404            * Thuban/UI/legend.py: ID_POP_xxx: removed.
2405            (LegendPanel.__init__): Removed EVT_MENU bindings.
2406            (LegendTree._OnRightClick): Replace direct creation of
2407            menu via wx Classes by applying the menu definition
2408            as of Menu class of menu.py.
2409            
2410    2004-04-16  Jan-Oliver Wagner <[email protected]>
2411    
2412            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
2413        button string to stronger clearify that Thuban will be closed when hitting
2414            the button.
2415    
2416            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
2417            Now for layers without a ShapeStore a corresponding message is given
2418            to the user, that this layer has no table to show.
2419    
2420    2004-04-15  Martin Schulze  <[email protected]>
2421    
2422            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
2423            recalculate the format for the internal render engine as well.
2424    
2425            * Extensions/wms/properties.py (wmsProperties): First start for a
2426            properties dialog.  It's functional for a first selection of
2427            layers, but still has some weired wxWidgets/GTK problems but
2428            beautification can be done later.
2429    
2430            * Extensions/wms/layer.py: Added more documentation
2431            (WMSLayer.getFormats): New: Return list of supported image formats
2432            by the WMS server
2433            (WMSLayer.getLayers): New: Return the list of layer names
2434            supported by the WMS server
2435            (WMSLayer.getLayerTitle): New: Return the title of the named layer
2436            (WMSLayer.getWMSFormat): New: Return the image format that is used
2437            for WMS GetMap requests
2438            (WMSLayer.setWMSFormat): New: Set the image format that is used
2439            for WMS GetMap requests
2440            (WMSLayer.__init__): Move away from using only one layer to using
2441            a list of layers (unsorted at the moment, though).
2442            (WMSLayer.getVisibleLayers): New: Return the list of names for all
2443            visible layers
2444            (WMSLayer.setVisibleLayers): New: Set the list of names for all
2445            visible layers
2446    
2447            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
2448            order to establish a clean structure.
2449    
2450            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
2451            own in order to establish a clean structure.
2452    
2453    2004-04-13  Martin Schulze  <[email protected]>
2454    
2455            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
2456            support for oldstyle (WMS 1.0 apparently) image format
2457            specification.
2458    
2459            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
2460            supported graphic formats back to JPEG and BMP, PNG and others are
2461            too *cough* experimental...  Sorry, I meant to filter this out
2462            before I committed this part.  This should make the WMS extension
2463            run from CVS again.
2464            (wms_dialog): Reset an empty URL to None so that the subsequent
2465            program can depend on this, since the dialog will indeed return an
2466            empty URL, causing another declaration of love by Python.
2467    
2468            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
2469            Whenever a native BoundingBox request cannot be fulfilled, check
2470            whether the requested SRS is EPSG:3426, in which case return the
2471            LatLonBoundingBox values.
2472    
2473            * Extensions/wms/test/test_parser.py
2474            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
2475            ignoring AUTO:* SRS.
2476            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
2477            Added another test method to test whether the LatLonBoundingBox
2478            values will be returned if BoundingBox values are requested with
2479            SRS set to EPSG:3426.
2480    
2481            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
2482            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
2483            the moment by placing them into a variable which is currently
2484            unused.  Also test whether the EPSG SRS is numerical as it should
2485            be and add an error message if it is not.
2486    
2487            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
2488            appear in the real world as well.  Since we cannot handle them yet
2489            (OGCLib can't either), we will ignore them for the moment.
2490    
2491            * Extensions/wms/parser.py: Use a variable for denoting the sample
2492            filename
2493            (WMSCapabilitiesParser.peekLayers): Added support for error
2494            messages during grok().  They will be aggregated in an array and
2495            may be displayed later.  We may have to add a classification
2496            "Warning" and "Error" to this.  That requires more experience,
2497            though, since not every error may be lethal.
2498    
2499            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
2500            ShowTable() dialog/frame when the user attempts to display it
2501            while it has been opened before already and not closed again.
2502    
2503    2004-04-11  Martin Schulze  <[email protected]>
2504    
2505            * Extensions/wms/infodialog.py: Adjusted the class documentation
2506    
2507            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
2508            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
2509            wxWidgets variants.
2510            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
2511    
2512            * Extensions/wms/infodialog.py: Added an information dialog that
2513            will display various information about the WMS current resource,
2514            so that additional information such as the title, the abstract,
2515            fees and access constraints can be displayed for the user if they
2516            are documented in the WMS XML.
2517    
2518    2004-04-10  Martin Schulze  <[email protected]>
2519    
2520            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
2521            string handling.  It's "foo".lower() and not lower(foo) without
2522            lower imported from strings or something.
2523    
2524            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
2525            from capabilities.py and parser.py.  Implement priority list for
2526            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
2527            and GIF are supported here, but not yet by main Thuban.  Hence,
2528            support for them may be removed later.  Special contribution to
2529            usability: get wxWidgets to change the cursor when we're waiting
2530            for data from the network so the user won't start to worry.  This
2531            causes a redrawing error/warning, though.
2532    
2533            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
2534            the DOM object.
2535    
2536    2004-04-01  Martin Schulze  <[email protected]>
2537    
2538            * Extensions/wms/capabilities.py: Adjusted documentation
2539            (WMSCapabilities.__init__): Improved documentation, fixed syntax
2540            (WMSCapabilities.saveCapabilities): Only catch IOError when
2541            handling files
2542            (WMSCapabilities.loadCapabilities): Only catch IOError when
2543            handling files
2544            __main__: corrected variable naming
2545            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
2546            class a specialisation of WMSCapabilitiesParser as well.  Also
2547            execute grok() after loading or fetching capabilities, if that
2548            went well, so that subsequent calls can already access the data.
2549            (WMSCapabilities.getVersion): Export the used version of the
2550            GetCapabilities request, so we can use it for subsequent calls,
2551            i.e. for GetMap requests.
2552            (WMSCapabilities.fetchCapabilities): Added proper error handling
2553            when the GetCapabilities request failed, so that the surrounding
2554            program can act accordingly.
2555    
2556    2004-03-30  Martin Schulze  <[email protected]>
2557    
2558            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
2559            Adjusted the getLayerSRS method to return the list of SRSes
2560            extracted from <SRS> elements instead of <BoundingBox> elements.
2561            Added a bit of documentation as well.
2562            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
2563            since it was only implemented due to a misunderstanding.
2564    
2565            * Extensions/wms/test/test_parser.py
2566            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
2567            reflect the corrected interpretation of the standard: i.e. a layer
2568            does not have to define a BoundingBox for all SRSes it supports.
2569            Hence the <SRS></SRS> specification is authoritative, not the list
2570            of BoundingBoxes.
2571            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
2572            to ensure None is returned for a non-existing SRS.
2573            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
2574            since it is not applicable anymore.  Listing more SRSes in <SRS>
2575            elements is valid according to the specs.
2576    
2577    2004-03-26  Bernhard Reiter <[email protected]>
2578    
2579            * README: Nicer formatting of text. Improved descriptions.
2580            Reflected wxWidgets name change.
2581            
2582            * Thuban/UI/about.py: Extended copyright to 2004 and added
2583            information about the thuban-devel mailinglist.
2584    
2585    2004-03-24  Martin Schulze  <[email protected]>
2586    
2587            * Extensions/wms/capabilities.py: Renamed the class to contain
2588            'WMS', also added a linebreak where required
2589    
2590            * Extensions/wms/parser.py: Finally added the XML parser for the
2591            GetCapabilities response.
2592    
2593            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
2594            <SRS> elements match the <BoundingBox> elements, except for the
2595            layer 'beschriftung'.
2596    
2597            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
2598            since Python uses unicode strings internally, otherwise
2599            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
2600            the SRS will be calculated anyway and this method is obsoleted by
2601            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
2602            Move loading the sample file into the setUp method.  Added a test
2603            for finding the integrity problem in the sample response.
2604            Improved formatting.
2605    
2606            * Extensions/wms/domutils.py: Added convenience routines for
2607            handling of Document Object Model (DOM) nodes.
2608    
2609            * Extensions/wms/test/test_domutils.py: Added a test for the
2610            domutils module
2611    
2612    2004-03-19  Martin Schulze  <[email protected]>
2613    
2614            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
2615            Moved path detection and adding into a module of its own,
2616            adjustpath, which exports thubandir as main Thuban directory.
2617    
2618            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
2619            detection and adding into a module of its own, adjustpath, which
2620            exports thubandir as main Thuban directory.  Reorganised the
2621            module in order to support the SkipTest feature for Thuban test
2622            cases.
2623    
2624            * Extensions/wms/test/adjustpath.py: Moved path detection and
2625            adding into a module of its own.
2626    
2627    2004-03-18  Martin Schulze  <[email protected]>
2628    
2629            * Extensions/wms/test/test_parser.py: Added another test for
2630            checking whether the WMS XML parser (to be implemented) returns
2631            the information we expect.  This requires a sample WMS WML file
2632            (sample.xml) which has been extracted from the frida server and
2633            "improved" manually.
2634    
2635            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
2636            main Thuban directory to the path in order to be able to import
2637            random modules.  Adjusted the PyOGCLib detection to reuse the
2638            information gathered.  Also added a note about the PYTHONPATH
2639            environment variable.
2640    
2641            * Extensions/wms/test/test_ogclib.py: The format specification is
2642            a mime-type, not a graphic format, hence image/jpeg wou ld be the
2643            proper format and not JPEG.  We'll also have to take care of the
2644            encoding of / as %2F.
2645    
2646    2004-03-16  Martin Schulze  <[email protected]>
2647    
2648            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
2649            comprehensive test for the getMapURL method, built compare URLs
2650            according to the documentation in OGC 01-068r3
2651    
2652            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
2653            class WMSCapabilities to manage capabilites, will incorporate
2654            parsing the capabilities response and provide details for other
2655            classes.
2656    
2657    2004-03-12  Bernhard Herzog  <[email protected]>
2658    
2659            Support views in addition to normal tables in the postgis
2660            shapestore
2661    
2662            * Thuban/Model/postgisdb.py
2663            (PostGISShapeStore._fetch_table_information): Add a fallback for
2664            the case where the table name is not in the geometry_columns
2665            table.  This is usually the case for views.  Also, set
2666            self.shapestore here.
2667            (PostGISShapeStore.ShapeType): No need to query the database all
2668            the time.  The shape type is now determined in
2669            _fetch_table_information
2670    
2671            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
2672            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
2673            New parameter to specify views.
2674            (PostGISDatabase.has_data): Also compare the views.  New views
2675            parameter
2676            (PostGISDatabase.initdb): Create the views.
2677            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
2678            view
2679    
2680            * test/test_postgis_db.py
2681            (TestPostGISShapestorePointFromViews): New.  Test a
2682            PostGISShapeStore with a view
2683            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
2684            the geometry_column explicitly to test whether that works
2685    
2686    2004-03-12  Bernhard Herzog  <[email protected]>
2687    
2688            Final step for explicit id/geometry columns: Loading and saving
2689    
2690            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
2691            with the following changes:
2692            (dbshapesource): Two new attributes id_column and geometry_column
2693    
2694            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
2695            (SessionSaver.write_session): Use the new namespace
2696            (SessionSaver.write_data_containers): Write the new dbshapesource
2697            parameters
2698    
2699            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
2700            the new file format version
2701            (SessionLoader.start_dbshapesource): Handle the new db parameters
2702    
2703            * test/test_save.py: Update to the new dtd and namespace
2704            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
2705            mock object to provide a working IDColumn method.
2706    
2707            * test/test_load_1_0.py: New.  Copy of the test_load.py before
2708            today's changes but with the round-trip tests removed.
2709    
2710            * test/test_load_0_9.py: Update doc-string.
2711    
2712            * test/test_load.py: Update all .thuban files to the new dtd and
2713            namespace.
2714            (TestPostGISLayer.file_contents): Add the new dbshapesource
2715            paramters
2716    
2717    2004-03-11  Bernhard Herzog  <[email protected]>
2718    
2719            Next step for explicit id/geometry columns: User interaction
2720    
2721            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
2722            the dialog is constructed. Add combo boxes to select id and
2723            geometry column.  Rename some instance variables.
2724            (ChooseDBTableDialog.GetTable): Return id and geometry column
2725            names
2726            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
2727            selections in the table list
2728    
2729            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
2730            and geometry_column
2731    
2732            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
2733            parameters for id_column and geometry column of PostGISShapeStore
2734            here as well.
2735    
2736            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
2737            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
2738            (PostGISConnection.GeometryTables): Use a better query to
2739            determine which relations in the database might be usable for
2740            shapestores.  Now supports views as well but is more PostgreSQL
2741            specific
2742            (PostGISConnection.table_columns): New. Somewhat experimental
2743            method to let the db dialogs provide lists of columns to users so
2744            that they can select id and geometry columns.
2745            (PostGISTable.__init__): The default value of the id_column
2746            parameter is now None it still means "gid" effectively, though.
2747            (PostGISTable.IDColumn): New introspection method to return a
2748            column object for the id column
2749            (PostGISShapeStore.GeometryColumn): New introspection method to
2750            return a column object for the geometry column
2751    
2752            * test/test_postgis_db.py
2753            (TestPostGISConnection.test_gis_tables_non_empty):
2754            Removed. Subsumed by the new:
2755            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
2756            New. Tes the GeometryTables and table_columns methods with actual
2757            tables and views.
2758            (PointTests.test_id_column, PointTests.test_geometry_column):
2759            New. tests for the new methods.
2760            (TestPostGISShapestorePoint.setUp)
2761            (TestPostGISShapestorePointSRID.setUp)
2762            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
2763            instance variables needed by the new tests
2764    
2765    2004-03-11  Bernhard Herzog  <[email protected]>
2766    
2767            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
2768            numbers given to ReadValue are ordinals.
2769    
2770    2004-03-11  Bernhard Herzog  <[email protected]>
2771    
2772            Elimiate the requirement for PostGIS tables to have a column
2773            called "gid".
2774    
2775            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
2776            id_column to specify which column to use to identify rows.  Also
2777            new instance variables id_column and quoted_id_column
2778            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
2779            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
2780            (PostGISTable.SimpleQuery): Use the id column name provided to the
2781            constructor instead of "gid"
2782            (PostGISShapeStore.__init__): New parameter id_column analogously
2783            to PostGISTable.__init__.  This parameter is simply passed through
2784            to the base class constructor
2785            (PostGISShapeStore._create_col_from_description): Fix typo in
2786            doc-string
2787            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
2788            (PostGISShapeStore.ShapesInRegion): Use the id column name
2789            provided to the constructor instead of "gid"
2790    
2791            * test/postgissupport.py
2792            (PostgreSQLServer.get_default_static_data_db): New static table
2793            landmarks_point_id with an id column != "gid.  Update the comments
2794            a bit.
2795            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
2796            doc-
2797            (upload_shapefile): New parameter gid_column to use a name other
2798            than "gid" for the column to store the shape ids
2799    
2800            * test/test_postgis_db.py (TableTests): New.  Mixin-class
2801            containing all tests previously in TestPostGISTable.  The actual
2802            tests are the same but the code is a bit more configurable to
2803            allow for different id columns etc.
2804            (TestPostGISTable): Derive from TableTests now for the actual
2805            tests.
2806            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
2807            except that it the landmarks_point_id table to test the id_column
2808            parameter
2809            (PointTests): Extend the doc-string
2810            (TestPostGISShapestorePointExplicitGIDColumn)
2811            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
2812            from PointTests to test the explicit id_column parameter.  One
2813            tests with the name of the column holding the shape ids, the other
2814            uses PostgreSQL's OID column.  For the latter a number of methods
2815            have to be overwritten to make them independent of the actual id
2816            values.
2817    
2818    2004-03-08  Silke Reimer  <[email protected]>
2819    
2820            Update debian directory:
2821    
2822            * debian/changelog: Added new version.
2823            * deiban/rules: Updated management of patches (with cbds)
2824            * debian/control: Added cbds to dependencies
2825            * debian/patches/*: New. Adds better support for patches of thuban in
2826                            debian
2827            * debian/menu: Syntax of menu changed slightly
2828            * debian/setup.py.patch: removed because it has been moved to
2829                            debian/patechs/setup.py.patch
2830            
2831    
2832    2004-02-26  Bernhard Herzog  <[email protected]>
2833    
2834            Create the Doc/technotes directory for text files with information
2835            for developers
2836    
2837            * Doc/technotes/README: New. README for the technotes
2838    
2839            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
2840            Thuban
2841    
2842            * Doc/technotes/release_process.txt: New. Used to be
2843            HOWTO-Release.  Now slightly adapted to technote formatting style.
2844    
2845            * HOWTO-Release: Removed.  It's contents are now in
2846            Doc/technotes/release_process.txt
2847    
2848    2004-02-25  Bernhard Herzog  <[email protected]>
2849    
2850            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
2851            version of wxWindows the module was compiled with so we can check
2852            that against the wxPython version.
2853    
2854            * Thuban/version.py (thuban_branch, thuban_release): New variables
2855            controlling which and how Thuban versions are shown.  See the
2856            comments for details.
2857            (verify_versions): Also check that the wx version that wxproj is
2858            compiled against matches that of the wxPython we use at runtime
2859    
2860    2004-02-20  Bernhard Herzog  <[email protected]>
2861    
2862            * Extensions/wms/wms.py (epsg_code_to_projection): Use
2863            get_system_proj_file to read the epsg projections.  The old way
2864            depended on the current directory being the top Thuban directory.
2865    
2866    2004-02-20  Bernhard Herzog  <[email protected]>
2867    
2868            * Extensions/svgexport/test/test_svgmapwriter.py
2869            (TestVirtualDC.test_clippath): Remove a debug print
2870    
2871    2004-02-20  Bernhard Herzog  <[email protected]>
2872    
2873            * Extensions/svgexport/__init__.py: New.  Turn
2874            Extensions/svgexport into a package.
2875    
2876            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
2877            doc-string a bit.  The doc-string must come first, otherwise it's
2878            not a doc-string.  The __future__ import must be the first thing
2879            after the doc-string.  Use only double quotes in doc-strings.
2880            Single quotes trip up emacs syntax highlighting if the text
2881            contains apostrophes.
2882    
2883    2004-02-20  Bernhard Herzog  <[email protected]>
2884    
2885            * Extensions/svgexport/test/__init__.py,
2886            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
2887            suite for svgexport
2888    
2889            * test/runtests.py (find_test_modules): New. Function with the
2890            module finding code from main.
2891            (main): Use find_test_modules to figure out the default test
2892            modules and take modules from Extensions.svgexport.test too.
2893    
2894    2004-02-19  Bernhard Herzog  <[email protected]>
2895    
2896            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
2897            the mainwindow has a reference to the map of the initial session.
2898            This fixes a bug introduced with the fix for RT#2245
2899    
2900    2004-02-19  Bernhard Herzog  <[email protected]>
2901    
2902            * Extensions/svgexport/svgsaver.py,
2903            Extensions/svgexport/svgmapwriter.py,
2904            Extensions/svgexport/maplegend.py: Added again.  This time in the
2905            correct place.
2906    
2907    2004-02-17  Bernhard Herzog  <[email protected]>
2908    
2909            Fix for RT#2245
2910    
2911            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
2912            instance variables before trying to create any windows.  Creating
2913            windows can start an event loop if e.g. message boxes are popped
2914            up for some reason, and event handlers, especially EVT_UPDATE_UI
2915            may want to access things from the application.
2916            (ThubanApplication.maps_changed): The mainwindow may not have been
2917            created yet, so check whether it has been created before calling
2918            its methods
2919    
2920            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
2921            have a map
2922    
2923    2004-02-17  Bernhard Herzog  <[email protected]>
2924    
2925            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
2926            Extensions/svgmapwriter.py, Extensions/maplegend.py,
2927            extensions/svgexport/svgsaver.py,
2928            extensions/svgexport/svgmapwriter.py,
2929            extensions/svgexport/maplegend.py: Removed.  These files were in
2930            the wrong places or didn't work at all.
2931    
2932    2004-02-16  Bernhard Herzog  <[email protected]>
2933    
2934            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
2935            line
2936    
2937    2004-02-16  Bernhard Herzog  <[email protected]>
2938    
2939            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
2940    
2941    2004-02-15  Markus Rechtien  <[email protected]>
2942            
2943            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
2944            to write a session to a file in SVG format.
2945            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
2946            to write a SVG map of a session.
2947            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
2948            in SVG format for the current session.
2949    
2950    2004-02-13  Bernhard Herzog  <[email protected]>
2951    
2952            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
2953            can't be created, return immediately after displaying the error
2954            message.
2955    
2956    2004-02-11  Bernhard Herzog  <[email protected]>
2957    
2958            Handle postgis tables with more than one geometry column.
2959    
2960            * Thuban/Model/postgisdb.py
2961            (PostGISTable._fetch_table_information): Delegate the creation of
2962            column objects to a different method so that we can extend that in
2963            derived classes
2964            (PostGISTable._create_col_from_description): New. Column object
2965            creation part of _fetch_table_information
2966            (PostGISShapeStore._create_col_from_description): New. Extend
2967            inherited method to handle geometry columns
2968            (PostGISShapeStore.__init__): New parameter geometry_column to
2969            specify which geometry column to use.  Optional but mandatory for
2970            tables with more than one geometry column
2971            (PostGISShapeStore._fetch_table_information): Also use the name of
2972            the geometry column when looking for the srid
2973            (PostGISShapeStore.ShapeType): Also use the name of the geometry
2974            column when looking for the shape type
2975    
2976            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
2977            NonConnectionStore to changes in the PostGISShapeStore
2978    
2979            * test/test_postgis_db.py
2980            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
2981            PostGISShapeStore with tables having two geometry columns.
2982    
2983    2004-02-10  Bernhard Herzog  <[email protected]>
2984    
2985            Fix some postgis problems.  What remains to be done is real
2986            handling of SRIDs as they affect how reprojection is done
2987    
2988            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
2989            doc-string
2990            (PostGISShapeStore._fetch_table_information): New. Extend
2991            inherited method to retrieve srid
2992            (PostGISShapeStore.BoundingBox): Handle tables without data.
2993            extent yields NULL for those
2994            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
2995    
2996            * test/test_postgis_db.py
2997            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
2998            for the special case of a table without any data
2999            (TestPostGISShapestorePointSRID): New class with tests for a table
3000            that uses srids
3001            (PolygonTests): Fix a doc-string typo
3002    
3003            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
3004            reference_systems with a specification of spacial reference
3005            systems to create in the new db.
3006            (PostgreSQLServer.new_postgis_db)
3007            (PostgreSQLServer.get_static_data_db): New parameter
3008            reference_systems to be passed through ultimately to
3009            PostGISDatabase.  In new_postgis_db also check whether an existing
3010            db already has the right srids
3011            (PostgreSQLServer.get_default_static_data_db): Add srids and a
3012            table that uses srids
3013            (PostGISDatabase.initdb): Create the entries for the reference
3014            systems
3015            (PostGISDatabase.has_data): Add reference_systems parameter to
3016            check for those too
3017            (upload_shapefile): New parameter srid to create tables with a
3018            specific srid
3019    
3020    2004-02-06  Frank Koormann  <[email protected]>
3021    
3022            * po/pt_BR.po: Fixed charset
3023    
3024    2004-02-05  Frank Koormann  <[email protected]>
3025    
3026            * po/pt_BR.po: Fixed format string for error message, missing %s
3027            added (Thuban/UI/application.py:273)
3028    
3029    2004-02-03  Frank Koormann  <[email protected]>
3030            
3031            First version of Portuguese (Brazilian) translation
3032    
3033            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
3034            Brazilian Portuguese by Eduardo Patto Kanegae.
3035    
3036            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
3037            translators.
3038    
3039    
3040    2004-01-22  Frank Koormann  <[email protected]>
3041    
3042            * Doc/manual/thuban-manual.xml: Added section on installation of
3043            Thuban under Win32 systems. Fixed image path references in the postgis
3044            section. Some minor source formattings.
3045    
3046    2004-01-21  Frank Koormann  <[email protected]>
3047    
3048            Make Thuban remember path selections (at least for one application run).
3049    
3050            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
3051            attribute of application object. Path is a dictionary of
3052            strings, currently with the items "data" and "projection".  
3053            (Application.SetPath): New, stores path for the specified item.
3054            (Application.Path): New, return path for the specified item.
3055    
3056            * Thuban/UI/mainwindow.py
3057            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
3058            MainWindow.AddLayer, MainWindow.AddRasterLayer,
3059            MainWindow.TableOpen): Access "data" path information of the
3060            application.
3061            
3062            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
3063            Access "projection" path information of the application.
3064    
3065    2004-01-05  Bernhard Herzog  <[email protected]>
3066    
3067            * po/ru.po: Updated translations from Alex Shevlakov
3068    
3069    2004-01-05  Bernhard Herzog  <[email protected]>
3070    
3071            * po/Makefile, po/README: Move the description of how to generate
3072            the translation statistics to the README.
3073    
3074    2003-12-23  Bernhard Herzog  <[email protected]>
3075    
3076            * NEWS: Update for 1.0.0
3077    
3078            * po/it.po: Another update from Maurizio Napolitano
3079    
3080    2003-12-23  Bernhard Herzog  <[email protected]>
3081    
3082            * po/it.po: Updated translation from Maurizio Napolitano
3083    
3084    2003-12-23  Bernhard Herzog  <[email protected]>
3085    
3086            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
3087            for translation
3088    
3089            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
3090            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
3091            strings for translation
3092    
3093            * po/de.po: Update with the newly marked strings.
3094    
3095    2003-12-22  Bernhard Herzog  <[email protected]>
3096    
3097            * HOWTO-Release: Fix the places where version numbers have to be
3098            updated
3099    
3100    2003-12-22  Bernhard Herzog  <[email protected]>
3101    
3102            * setup.py (setup call): 1.0.0, yeah!
3103    
3104            * Thuban/version.py (longversion): 1.0.0, yeah!
3105    
3106            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
3107            1.0.0 namespace too
3108    
3109            * Thuban/Model/save.py (SessionSaver.write_session): Save with
3110            1.0.0 namespace
3111    
3112            * test/test_load.py (LoadSessionTest.dtd)
3113            (TestSingleLayer.file_contents)
3114            (TestNonAsciiColumnName.file_contents)
3115            (TestLayerVisibility.file_contents)
3116            (TestClassification.file_contents, TestLabels.file_contents)
3117            (TestLayerProjection.file_contents)
3118            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3119            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
3120            (TestPostGISLayerPassword.file_contents)
3121            (TestLoadError.file_contents, TestLoadError.test): Update for
3122            1.0.0 namespace
3123    
3124            * test/test_save.py (SaveSessionTest.dtd)
3125            (SaveSessionTest.testEmptySession)
3126            (SaveSessionTest.testSingleLayer)
3127            (SaveSessionTest.testLayerProjection)
3128            (SaveSessionTest.testRasterLayer)
3129            (SaveSessionTest.testClassifiedLayer)
3130            (SaveSessionTest.test_dbf_table)
3131            (SaveSessionTest.test_joined_table)
3132            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
3133    
3134    2003-12-22  Bernhard Herzog  <[email protected]>
3135    
3136            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
3137            alignment flags are byte strings not unicode and that they have
3138            valid values
3139    
3140            * test/test_load.py (TestLabelLayer): New. Test loading (and
3141            indirectly saving) of maps with labels.
3142    
3143    2003-12-22  Bernhard Herzog  <[email protected]>
3144    
3145            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
3146            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
3147            unsubscribe all subscribers.
3148            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
3149            self.grid since it may already have been destroyed.
3150            Fixes RT #2256
3151    
3152    2003-12-19  Bernhard Herzog  <[email protected]>
3153    
3154            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
3155    
3156    2003-12-16  Bernhard Herzog  <[email protected]>
3157            
3158            * debian/bitmappath.patch, debian/setup.py.patch:
3159                    added to ensure compliance with FHS for debian
3160            * debian/rules, debian/changelog:
3161                added patches in rules to ensure compliance with FHS for debian
3162    
3163    2003-12-16  Bernhard Herzog  <[email protected]>
3164    
3165            * po/Makefile (mo): Make the output a bit nicer so that it prints
3166            statistics about the translations. Add a comment how produce even
3167            nicer statistics with sed.
3168    
3169    2003-12-09  Frank Koormann   <[email protected]>
3170    
3171            * Resources/Projections/defaults.proj:
3172            French projection sample with correct accents (UNICODE).
3173    
3174    2003-12-05  Bernhard Herzog  <[email protected]>
3175    
3176            * MANIFEST.in: Add the devtools directory
3177    
3178            * setup.py (setup call): Use license instead of licence. This
3179            silences a deprecation warning on Python 2.3
3180    
3181    2003-12-05  Frank Koormann   <[email protected]>
3182    
3183            Documentation synced with 1.0rc1
3184    
3185            * Doc/manual/thuban-manual.xml:
3186            Minor formatting changes and references to database layers .
3187            Introduction.Internationalization: New section on i18n.
3188            MapManagement.AddingandRemovingLayers: Added item on database layers.  
3189            MapManagement.TheLegend: Added section and screenshot on popup menu.
3190            ProjectionManagement: Updated screenshot and sentence on EPSG.
3191            Appendix.SupportedDataSources: Added PostGIS.
3192            Appendix.WorkingwithPostGIS: New section.
3193    
3194            * Doc/manual/images/6_projection.png: Updated screenshot including
3195            EPSG checkboxes.
3196    
3197            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
3198    
3199            * Doc/manual/images/app_postgis_add_layer.png,
3200            Doc/manual/images/app_postgis_db_add.png,
3201            Doc/manual/images/app_postgis_db_management.png:
3202            New screenshots focussing on database layers
3203    
3204    2003-12-05  Frank Koormann   <[email protected]>
3205    
3206            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
3207            write warning to stderr instead of rising a warning dialog
3208    
3209    2003-12-03  Bernhard Herzog  <[email protected]>
3210    
3211            Fix for RT #2243
3212    
3213            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
3214            New. Like has_selected_layer but for shape layers only
3215            (_has_selected_shape_layer): New. Like _has_selected_layer but for
3216            shape layers only
3217            (layer_show_table command, layer_jointable command): Use these
3218            commands should only be available for shape layers
3219    
3220    2003-12-03  Bernhard Herzog  <[email protected]>
3221    
3222            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
3223            publishers that are wx objects and may have been destroyed by wx
3224            already. Fixes RT #2242.
3225    
3226    2003-12-03  Bernhard Herzog  <[email protected]>
3227    
3228            * po/ru.po: Updates from Alex Shevlakov
3229    
3230    2003-12-03  Silke Reimer <silkeintevation.de>
3231    
3232            * debian/control, debian/changelog: Added gdal-support to
3233                    debian package, updated to new thuban version
3234    
3235    
3236    2003-12-03  Bernhard Herzog  <[email protected]>
3237    
3238            * Thuban/Lib/version.py: New. Module for version number
3239            manipulations. The version of make_tuple here also deals better
3240            with more unusual version number strings, such as e.g.
3241            "1.2+cvs20031111"
3242    
3243            * Thuban/version.py (make_tuple): Removed. It's now in
3244            Thuban.Lib.version. Use that implementation instead.
3245    
3246            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
3247    
3248    2003-12-02  Bernhard Herzog  <[email protected]>
3249    
3250            * MANIFEST.in: Add debian files
3251    
3252            * setup.py (setup call): Add packages for the Extensions so that
3253            they're installed too
3254            (data_files): Add READMEs and sample data from some Extensions
3255    
3256            * NEWS: Add note about the extensions in binary packages
3257    
3258    2003-12-02  Bernhard Herzog  <[email protected]>
3259    
3260            * Thuban/Model/save.py (SessionSaver.write_session): Save files
3261            with the thuban-1.0rc1
3262    
3263            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
3264            thuban-1.0rc1 namespace too
3265    
3266            * test/test_save.py (SaveSessionTest.dtd)
3267            (SaveSessionTest.testEmptySession)
3268            (SaveSessionTest.testSingleLayer)
3269            (SaveSessionTest.testLayerProjection)
3270            (SaveSessionTest.testRasterLayer)
3271            (SaveSessionTest.testClassifiedLayer)
3272            (SaveSessionTest.test_dbf_table)
3273            (SaveSessionTest.test_joined_table)
3274            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
3275            namespace
3276    
3277            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
3278            namespace
3279            (TestSingleLayer.file_contents)
3280            (TestNonAsciiColumnName.file_contents)
3281            (TestLayerVisibility.file_contents)
3282            (TestClassification.file_contents, TestLabels.file_contents)
3283            (TestLayerProjection.file_contents)
3284            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
3285            (TestPostGISLayer.file_contents)
3286            (TestPostGISLayerPassword.file_contents)
3287            (TestLoadError.file_contents, TestLoadError.test): Update to
3288            thuban-1.0rc1 namespace
3289    
3290    2003-12-01  Bernhard Herzog  <[email protected]>
3291    
3292            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
3293            nt to better match Intevation's current w32 setup
3294    
3295            * HOWTO-Release: Add note about updating MANIFEST.in
3296    
3297            * MANIFEST.in: Add the Extensions
3298    
3299            * NEWS: Update for 1.0rc1
3300    
3301    2003-12-01  Bernhard Herzog  <[email protected]>
3302    
3303            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
3304            cards for the dialog so that shapefiles ending in all uppercase
3305            SHP are listed too
3306    
3307    2003-11-28  Bernhard Herzog  <[email protected]>
3308    
3309            * Thuban/version.py (longversion): Update to 1.0rc1
3310    
3311            * setup.py (setup call): Update version to 1.0rc1. Use the
3312            [email protected] email address as author email instead of my
3313            personal one.
3314    
3315    2003-11-28  Bernhard Herzog  <[email protected]>
3316    
3317            * po/de.po: Update german translation.
3318    
3319    2003-11-28  Bernhard Herzog  <[email protected]>
3320    
3321            Unify the filenames stored in .thuban files so that the .thuban
3322            files are more platform independend
3323    
3324            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
3325            that they can be used on both windows and unix
3326            (SessionSaver.prepare_filename): New. Handle all filename
3327            transformations for filenames stored in the thuban file
3328            (SessionSaver.write_data_containers, SessionSaver.write_layer):
3329            Use prepare_filename
3330    
3331            * test/test_save.py (SaveSessionTest.testSingleLayer)
3332            (SaveSessionTest.testLayerProjection)
3333            (SaveSessionTest.testRasterLayer)
3334            (SaveSessionTest.testClassifiedLayer)
3335            (SaveSessionTest.test_dbf_table)
3336            (SaveSessionTest.test_joined_table): Filenames are always stored
3337            with slashes on all currently supported platforms so adapt all
3338            tests to this
3339    
3340            * test/test_load.py (LoadSessionTest.filenames): With the new
3341            filename scheme the filenames in the tests should be
3342            understandable on all currently supported platforms so we turn
3343            this into an empty list because we don't have to normalize them
3344            anymore
3345    
3346    2003-11-28  Bernhard Herzog  <[email protected]>
3347    
3348            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
3349            Add the ellipsoid to the projection since some Proj versions
3350            complain if it's missing.
3351    
3352    2003-11-27  Bernhard Herzog  <[email protected]>
3353    
3354            Corect some bounding box projection problems
3355    
3356            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
3357            version of ForwardBBox
3358            (Projection._transform_bbox): New. common implementation of
3359            ForwardBBox and InverseBBox
3360            (Projection.ForwardBBox): Use _transform_bbox.
3361    
3362            * test/test_proj.py (TestProjection.test): Add test for
3363            InverseBBox
3364    
3365            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
3366            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
3367            new InverseBBox method to determine the unprojected bounding box
3368            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
3369            bbox.
3370    
3371            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
3372            Removed.
3373            (TestLayer.test_arc_layer_with_projection): New. This test is
3374            better able to test whether bounding boxes are projected correctly
3375            than test_point_layer_with_projection
3376    
3377            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
3378            InverseBBox to unproject bboxes
3379    
3380    2003-11-25  Bernhard Herzog  <[email protected]>
3381    
3382            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
3383            source code.
3384    
3385    2003-11-25  Bernhard Herzog  <[email protected]>
3386    
3387            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
3388            there for backwards compatibility and all code relying on that
3389            should have been updated by now.
3390    
3391    2003-11-25  Bernhard Herzog  <[email protected]>
3392    
3393            * test/test_load.py (TestClassification.test): Add the missing
3394            round trip test.
3395            (TestClassification.file_contents): Update to the newest file
3396            format
3397    
3398    2003-11-25  Bernhard Herzog  <[email protected]>
3399    
3400            Add very experimental (and possibly dangerous) extension to draw
3401            polygons:
3402    
3403            * Extensions/drawshape/README: New. Brief installation
3404            instructions
3405    
3406            * Extensions/drawshape/drawshape.py: New. Implementation of the
3407            drawshape extensions
3408    
3409            * Extensions/drawshape/patch.diff: Patch to apply before the
3410            extension can be used.
3411    
3412    2003-11-24  Bernhard Herzog  <[email protected]>
3413    
3414            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
3415            (ShapefileStore.__init__): Factor opening the shapefile into a
3416            separate method (the new _open_shapefile). This makes the code a
3417            bit more readable but the real reason is that it makes some evil
3418            hacks easier. :-)
3419    
3420    2003-11-24  Bernhard Herzog  <[email protected]>
3421    
3422            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
3423            converter is specified for an attribute assume it's a string
3424            containing only Latin1 characters. Update doc-string accordingly.
3425            This change should fix many places where unicode objects might
3426            accidentally enter Thuban.
3427    
3428            * test/test_load.py (TestNonAsciiColumnName): New test to check
3429            what happens with column names in DBF files that contain non-ascii
3430            characters
3431    
3432    2003-11-21  Bernhard Herzog  <[email protected]>
3433    
3434            Enable the experimental attribute editing again and introduce a
3435            command line switch to actually activate it
3436    
3437            * Thuban/UI/main.py (options): New. Container for options set on
3438            the commmand line
3439            (main): Add the --enable-attribute-editing flag.
3440    
3441            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
3442            editing is enabled use the grid ctrl which allows editing of the
3443            values
3444    
3445            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
3446            New. Just delegate this to the underlying table.
3447    
3448    2003-11-20  Bernhard Herzog  <[email protected]>
3449    
3450            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
3451            Skip this test if run under non-posix systems since it only works
3452            there
3453    
3454    2003-11-19  Bernhard Herzog  <[email protected]>
3455    
3456            * Thuban/Model/resource.py: Rework the way gdal support is
3457            determined so that we can give a reason in the about why gdal is
3458            not supported.
3459            (gdal_support_status): New. Variable holding a string with the
3460            reason for no gdal support
3461    
3462            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
3463            not supported to the message
3464    
3465    2003-11-19  Bernhard Herzog  <[email protected]>
3466    
3467            Remove the old table interface and its test cases
3468    
3469            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
3470            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
3471            anymore
3472    
3473            * Thuban/Model/transientdb.py (TransientTableBase)
3474            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
3475            anymore
3476    
3477            * test/test_table.py: Removed since the old interface it tests is
3478            gone.
3479    
3480            * test/runtests.py (main): The old table interface is gone and
3481            with it the deprecation warnings so remove the code that turns
3482            these warnings into errors
3483    
3484    2003-11-19  Bernhard Herzog  <[email protected]>
3485    
3486            * test/test_table.py: Revert to revision 1.5 again. Changing the
3487            tests to use the new table interface is completely wrong since the
3488            whole purpose of the tests in this module is to test the old
3489            interface.
3490    
3491    2003-11-18  Bernhard Herzog  <[email protected]>
3492    
3493            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
3494            New. Test whether the connection matches a set of connection
3495            parameters
3496    
3497            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
3498            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
3499            for existing connections with the same parameters and break out of
3500            the loop correctly.
3501    
3502            * test/test_postgis_db.py (TestBriefDescription)
3503            (TestPostGISSimple.test_brief_description): Rename
3504            TestBriefDescription to TestPostGISSimple and the test method to
3505            test_brief_description so that we can add more test methods.
3506            (TestPostGISSimple.test_matches_parameters): New. Test the new
3507            MatchesParameters method
3508    
3509    2003-11-18  Bernhard Herzog  <[email protected]>
3510    
3511            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
3512            _was_destroyed, to indicate whether an publisher instance has
3513            already been destroyed.
3514            (Publisher.Unsubscribe): Only disconnect if the publisher has not
3515            been destroyed yet.
3516            (Publisher.Destroy): Set the _was_destroyed flag to true.
3517    
3518            * test/test_connector.py
3519            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
3520            calling Unsubscribe after Destroy doesn't raise an exception
3521    
3522    2003-11-14  Bernhard Herzog  <[email protected]>
3523    
3524            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
3525            typo in doc-string
3526    
3527    2003-11-13  Bernhard Herzog  <[email protected]>
3528    
3529            Quote table and column names properly for postgis.
3530    
3531            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
3532            quote an identifier for use in an sql statement
3533            (PostGISColumn.__init__): Add the quoted_name attribute
3534            (PostGISTable.__init__): New instance variable quoted_tablename
3535            (PostGISTable._fetch_table_information): Use the quoted table
3536            name. New isntance variable quoted_geo_col with a quoted version
3537            of geometry_column
3538            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
3539            (PostGISTable.RowOrdinalToId): Use the quoted table name
3540            (PostGISTable.ReadValue, PostGISTable.ValueRange)
3541            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
3542            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
3543            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
3544            Use quoted table and column names
3545    
3546            * test/test_postgis_db.py (TestPostGISSpecialCases)
3547            (TestPostGISIgnoredColumns): Rename the class to
3548            TestPostGISSpecialCases because that better describes the new
3549            cases
3550            (TestPostGISSpecialCases.test_unsupported_types)
3551            (TestPostGISSpecialCases.test): Rename the method to
3552            test_unsupported_types because we need a more descriptive name now
3553            that there are more methods
3554            (TestPostGISSpecialCases.test_table_name_quoting)
3555            (TestPostGISSpecialCases.test_column_name_quoting)
3556            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
3557            cases to test quoting of table and column names in PostGISTable
3558            and PostGISShapeStore
3559    
3560            * test/postgissupport.py
3561            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
3562            AddGeometryColumn desn't support table or column names with sapces
3563            or double quotes
3564    
3565    2003-11-12  Jan-Oliver Wagner <[email protected]>
3566    
3567            * Extensions/wms/__init__.py: New: Init to make this
3568            directory a package.
3569    
3570            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
3571    
3572    2003-11-11  Bernhard Herzog  <[email protected]>
3573    
3574            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
3575            Constant for the file woth deprecated epsg projections
3576            (get_system_proj_file): Update doc-string
3577    
3578            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
3579            above the EPS widgets, introduce a check box for the deprecated
3580            eps projections and a label for the epsg widgets
3581            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
3582            too
3583    
3584    2003-11-11  Bernhard Herzog  <[email protected]>
3585    
3586            Avoid warnings when run under Python 2.3
3587    
3588            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
3589            (BaseRenderer.draw_label_layer): Coordinates must be ints.
3590    
3591            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
3592            real method so that we can convert to int.
3593            (MapRenderer.label_font): The font size mist be an int.
3594    
3595            * Thuban/UI/common.py (Color2wxColour): The color values must be
3596            ints. Also, remove the unnecessary asserts.
3597    
3598            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
3599            (TestUnicodeStrings.test): Python source code should not contain
3600            non-ascii characters unless an encoding is specified in the file.
3601            Therefore use \x escapes in the string literals for non-ascii
3602            characters.
3603    
3604    2003-11-11  Bernhard Herzog  <[email protected]>
3605    
3606            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
3607            parameter so that this function can be used for all proj files in
3608            Resource/Projections
3609            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
3610            get_system_proj_file
3611    
3612            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
3613            ProjFile self.__sysProjFile use a dictionary of system ProjFile
3614            objects self._sys_proj_files
3615            (ProjFrame.build_dialog): Adapt to the new changes in the
3616            ProjectionList constructor. Add a check button to toggle whether
3617            EPSG projections are shown
3618            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
3619            events.
3620            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
3621            the busy cursor if the files have not yet been loaded by the
3622            dialog.
3623            (ProjFrame.load_system_proj): Add a parameter for the name of the
3624            proj file. Maintain the dictionary of system projections
3625            self._sys_proj_files
3626    
3627            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
3628            user_projs parameters into one parameter proj_files which is a
3629            list of proj files.
3630            (ProjectionList._subscribe_proj_files)
3631            (ProjectionList._unsubscribe_proj_files): New. Move
3632            subscription/unsubscription of projfile messages to separate
3633            methods
3634            (ProjectionList.Destroy): The unsubscribe is now done in
3635            _unsubscribe_proj_files
3636            (ProjectionList.update_projections): We now have a list of proj
3637            file objects
3638            (ProjectionList.SetProjFiles): New method to set a new list of
3639            proj file objects
3640    
3641            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
3642            Specify explicitly which system proj file to load.
3643    
3644    2003-11-11  Bernhard Herzog  <[email protected]>
3645    
3646            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
3647            instance variables to cut cyclic references. The GC would have
3648            collected the loader eventually but it can happen that it doesn't
3649            run at all until thuban is closed (2.3 but not 2.2 tries a bit
3650            harder and forces a collection when the interpreter terminates)
3651            (load_session): Call the handler's Destroy method to make sure
3652            that it gets garbage collected early. Otherwise it will be
3653            collected very late if at all and it holds some references to e.g.
3654            shapestores and the session which can lead to leaks (of e.g. the
3655            temporary files)
3656    
3657            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
3658            resource leak in load_session
3659    
3660    2003-11-10  Bernhard Herzog  <[email protected]>
3661    
3662            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
3663            extensions are to be rendered.
3664            (_renderer_extensions): New. List with renderer for layers in
3665            extensions
3666            (add_renderer_extension): New. Add a renderer extension
3667            (init_renderer_extensions): New. Init the renderer extensions
3668            (BaseRenderer.render_map_incrementally): Search
3669            _renderer_extensions for how to draw unknown layer types
3670            (BaseRenderer.draw_raster_data): Add format parameter so that
3671            formats other than BMP can be drawn
3672            (BaseRenderer.draw_raster_layer): Pass an explicit format to
3673            draw_raster_data
3674    
3675            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
3676            strings of the format parameter of draw_raster_data method to wx
3677            constants
3678            (MapRenderer.draw_raster_data): Add the format parameter and use
3679            raster_format_map to map it to the right wxwindows constant for
3680            wxImageFromStream
3681    
3682            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
3683            the format parameter and record it
3684            (TestBaseRenderer.test_raster_no_projection): check the format
3685            paramter of the draw_raster_data method
3686            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
3687            extension facility
3688    
3689    2003-11-07  Bernhard Herzog  <[email protected]>
3690    
3691            Tweak the usage of the sqlite database to make common use cases
3692            more responsive. In most cases copying the data to the sqlite
3693            database takes so long that using sqlite doesn't have enough
3694            advantages.
3695    
3696            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
3697            comments about performance and query the min and max in separate
3698            statements because only that way will indexes be used.
3699            (TransientTableBase.UniqueValues): Add some comments about
3700            performance.
3701            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
3702            Do not copy the data to the transient DB but use the transient
3703            copy if it exists. See the new comments for the performance trade
3704            offs
3705    
3706            * test/test_transientdb.py
3707            (TestTransientTable.test_auto_transient_table): Make sure that the
3708            data is copied to the transient database at some point.
3709    
3710    2003-11-03  Bernhard Herzog  <[email protected]>
3711    
3712            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
3713            globals to locals so that it's a bit faster
3714    
3715    2003-11-03  Bernhard Herzog  <[email protected]>
3716    
3717            * Thuban/UI/baserenderer.py
3718            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
3719            method. ReadValue is faster than ReadRowAsDict since it only reads
3720            one cell especially now that the dbf file objects actually
3721            implement it.
3722    
3723            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
3724            read_attribute method of the dbf objects
3725    
3726    2003-11-03  Bernhard Herzog  <[email protected]>
3727    
3728            * Extensions/profiling/profiling.py (popup_dialog_box): New config
3729            variable to indicate whether the result should be shown in a
3730            dialog box
3731            (profile_screen_renderer, time_screen_renderer): Only show a
3732            dialog box if popup_dialog_box is true.
3733            (profile_screen_renderer): Flush stdout after the printing the
3734            first part of the "profiling..." message
3735    
3736            * Thuban/UI/baserenderer.py
3737            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
3738            brushes for the groups so that they're not created over and over
3739            again
3740    
3741            * Thuban/Model/classification.py (Classification.__getattr__)
3742            (Classification._compile_classification)
3743            (Classification._clear_compiled_classification): New. Methods to
3744            manage a 'compiled' representation of the classification groups
3745            which is created on demand
3746            (Classification.InsertGroup, Classification.RemoveGroup)
3747            (Classification.ReplaceGroup): reset the compiled representation
3748            (Classification.FindGroup): Use the compiled representation to
3749            find the matching group
3750            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
3751    
3752    2003-10-31  Bernhard Herzog  <[email protected]>
3753    
3754            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
3755            Send a CLASS_CHANGED message
3756            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
3757            not return the removed group since it wasn't used.
3758    
3759            * test/test_classification.py
3760            (TestClassification.test_set_default_group): New. Test the
3761            SetDefaultGroup method
3762            (TestClassification.test_insert_group): New. Test the InsertGroup
3763            method
3764            (TestClassification.test_remove_group): New. Test the RemoveGroup
3765            method
3766            (TestClassification.test_replace_group): New. Test the
3767            ReplaceGroup method
3768    
3769    2003-10-31  Bernhard Herzog  <[email protected]>
3770    
3771            * test/test_classification.py (TestClassification.setUp):
3772            Subscribe to the CLASS_CHANGED messages
3773            (TestClassification.tearDown): New. Destroy the classification
3774            properly
3775            (TestClassification.test_defaults): Add tests for the default line
3776            width and whether no messages were sent yet
3777            (TestClassification.test_set_default_properties): Add tests for
3778            messages and setting the default line width
3779            (TestClassification.test_add_singleton)
3780            (TestClassification.test_add_range)
3781            (TestClassification.test_multiple_groups): Add tests for messages
3782    
3783    2003-10-31  Bernhard Herzog  <[email protected]>
3784    
3785            Some more refactoring in preparation for new tests:
3786    
3787            * test/test_classification.py (TestClassification.setUp): New.
3788            Instantiate the classification here. Update the test methods
3789            accordingly.
3790            (TestClassification.test_multiple_groups): Make sure that the two
3791            singletons matching 1 are considered different.
3792    
3793    2003-10-31  Bernhard Herzog  <[email protected]>
3794    
3795            * test/test_classification.py (red, green, blue): New. These
3796            constants were used in several cases. Update the relevant methods.
3797            (TestClassification.test_defaults)
3798            (TestClassification.test_set_default_properties)
3799            (TestClassification.test_add_singleton)
3800            (TestClassification.test_add_range)
3801            (TestClassification.test_multiple_groups)
3802            (TestClassification.test_deepcopy): New. These were formerly all
3803            part of the single method test.
3804            (TestClassification.test_deepcopy): Removed.
3805            (TestClassIterator): Removed. The test case is now a method of
3806            TestClassification since it tests part of the public interface of
3807            Classification
3808            (TestClassification.test_iterator): New. Used to be
3809            TestClassIterator effectively
3810    
3811    2003-10-31  Jan-Oliver Wagner <[email protected]>
3812    
3813            GUIfied the functions of the profiling extension.
3814    
3815            * /Extensions/profiling/__init__.py: New: Init to make this
3816            directory a package.
3817    
3818            * Extensions/profiling/profiling.py: Moved menu entries to
3819            the Extensions menu. Applied _() for strings.
3820            (profile_screen_renderer): Catch the detailed printout and present
3821            it in a dialog.
3822            (time_screen_renderer): Raise a dialog to present the result instead
3823            of printing it to stdout.
3824    
3825    2003-10-31  Bernhard Herzog  <[email protected]>
3826    
3827            * test/test_classification.py (TestClassGroupProperties)
3828            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
3829            (TestClassGroupSingleton, TestClassIterator, TestClassification):
3830            Split TestClassification into several classes, one for each class
3831            being tested. TestClassification itself now only tests
3832            Classification. This split makes changes to the tests a bit easier
3833    
3834    2003-10-31  Bernhard Herzog  <[email protected]>
3835    
3836            * Extensions/profiling/profiling.py: New. Extension to measure
3837            Thuban performance
3838    
3839    2003-10-31  Frank Koormann <[email protected]>
3840    
3841            Added two items to legend popup menu: Remove Layer and Show Layer Table
3842    
3843            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
3844            LegendPanel._OnShowTable): New event handlers, call the corresponding
3845            mainwindow methods.
3846            (LegendTree._OnRightClick): Added items to popup menu.
3847    
3848    2003-10-30  Bernhard Herzog  <[email protected]>
3849    
3850            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
3851            EVT_WINDOW_DESTROY
3852            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
3853            nothing but is convenient for the derived classes.
3854    
3855            * Thuban/UI/tableview.py
3856            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
3857            Unsubscribe the messages here not in OnClose because that might
3858            get called multiple times. Fixes RT #2196
3859            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
3860            anymore.
3861    
3862            * README: Update the minimum requirement for wxPython. Since we
3863            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
3864            the version in which that was introduced for all platforms
3865    
3866    2003-10-30  Frank Koormann <[email protected]>
3867    
3868            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
3869            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
3870            frame.
3871    
3872    2003-10-30  Jan-Oliver Wagner <[email protected]>
3873    
3874            Improved APR import extension, added further EPSG definitions
3875            and some cleanup regarding string class.
3876    
3877            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
3878            Added test for alias 'longlat'.
3879    
3880            * Resources/Projections/epsg-deprecated.proj: New. Contains
3881            deprecated EPSG definitions.
3882    
3883            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
3884            the variable names for objects.
3885    
3886            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
3887            Copied from importAPR and provided with documentation.
3888    
3889            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
3890            Moved to apr.py.
3891            (APR_View): Added object ref 'ITheme'.
3892    
3893            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
3894            split function by corresponding use of the string class method.
3895    
3896            * Thuban/Model/xmlwriter.py: Replaced string replace function by
3897            corresponding string method.
3898    
3899    2003-10-29  Bernhard Herzog  <[email protected]>
3900    
3901            * Thuban/UI/baserenderer.py
3902            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
3903            special case of a classification that only has the default group
3904    
3905    2003-10-27  Bernhard Herzog  <[email protected]>
3906    
3907            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
3908    
3909            * po/de.po: Update.
3910    
3911            * Thuban/UI/application.py
3912            (ThubanApplication.ShowExceptionDialog): Handle translation of the
3913            dialog message properly
3914    
3915    2003-10-27  Bernhard Herzog  <[email protected]>
3916    
3917            Rework how localization works so that we use wx's translation
3918            functions when running Thuban as a normal application but not when
3919            we don't need any UI, such as in the test suite. See the comment
3920            in Thuban/__init__.py for details
3921    
3922            * Thuban/__init__.py (_): Add one level of indirection to make the
3923            translation handling more flexible and to make it possible to use
3924            either wx's translation services or not.
3925            (gettext_identity, translation_function_installed)
3926            (install_translation_function): New function to help with this
3927    
3928            * Thuban/UI/__init__.py: Install the wx specific translation
3929            function if it's OK to do that
3930    
3931            * test/support.py (initthuban): Install a dummy translation
3932            function so that importing Thuban.UI doesn't install a wx specific
3933            one for which would need to import wxPython
3934    
3935    2003-10-27  Bernhard Herzog  <[email protected]>
3936    
3937            * HOWTO-Release: Source archives should be created first and the
3938            binary packages should be created from the source archives.
3939            There's an official debian package now so there's no need to test
3940            the rpm on debian anymore
3941    
3942    2003-10-27  Bernhard Herzog  <[email protected]>
3943    
3944            Several rendering changes:
3945    
3946             - Render the selection into a separate bitmap so that only that
3947               bitmap needs to be redrawn when the selection changes
3948    
3949             - Render incrementally showing previews and allowing interaction
3950               before rendering is complete
3951    
3952             - Update the renderer interface a bit. Most parameters of
3953               RenderMap are now parameters of the constructor
3954    
3955            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
3956            and the update region as parameters. Update the doc-string
3957            (BaseRenderer.render_map_incrementally): New. Generator function
3958            to renders the map incrementally
3959            (BaseRenderer.render_map): Remove the map argument (it's now in
3960            the constructor) and simply iterate over the
3961            render_map_incrementally generator to draw the map.
3962            (BaseRenderer.draw_shape_layer_incrementally)
3963            (BaseRenderer.draw_shape_layer): Renamed to
3964            draw_shape_layer_incrementally and changed into a generator that
3965            yields True every 500 shapes. Used by render_map_incrementally to
3966            render shape layers incrementally
3967    
3968            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
3969            map and region parameters which are now in the constructor
3970            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
3971            the inherited render_map_incrementally.
3972            (BaseRenderer.draw_shape_layer): Removed.
3973            (ScreenRenderer.draw_selection_incrementally): New. The selection
3974            drawing part of the removed draw_shape_layer as a generator
3975            (ScreenRenderer.layer_shapes): Update because of the region
3976            parameter change
3977            (ExportRenderer.__init__): New. Extend the inherited constructor
3978            with the destination region for the drawing
3979            (ExportRenderer.RenderMap): Removed the map and region parameters
3980            which are now in the constructor
3981    
3982            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
3983            bitmap suitable for a preview in a tool
3984            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
3985            bitmap
3986            (MapPrintout.draw_on_dc): Adapt to new renderer interface
3987            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
3988            exists
3989            (MapCanvas.OnIdle): Update the logic to deal with incremental
3990            rendering and the selection bitmap
3991            (MapCanvas._do_redraw): Handle the instantiation of the render
3992            iterator and the redraws during rendering
3993            (MapCanvas._render_iterator): New. Generator to incrementally
3994            redraw both bitmaps
3995            (MapCanvas.Export): Adapt to new renderer interface.
3996            (MapCanvas.full_redraw): Reset the selection bitmap and the
3997            renderer iterator too
3998            (MapCanvas.redraw_selection): New. Force a redraw of the selection
3999            bitmap
4000            (MapCanvas.shape_selected): Only redraw the selection bitmap
4001    
4002            * test/test_baserenderer.py
4003            (TestBaseRenderer.test_polygon_no_projection)
4004            (TestBaseRenderer.test_raster_no_projection)
4005            (TestBaseRenderer.test_point_map_projection)
4006            (TestBaseRenderer.test_point_layer_and_map_projection)
4007            (TestBaseRenderer.test_point_layer_projection)
4008            (TestBaseRenderer.test_point_with_classification): Adapt to new
4009            renderer interface
4010    
4011    2003-10-24  Bernhard Herzog  <[email protected]>
4012    
4013            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
4014            (point_in_polygon_shape, shape_centroid): Raise an exception if
4015            the shape can't be read. Previously invalid shape ids would lead
4016            to a segfault.
4017    
4018            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
4019            New. test whether an exception is raised for invalid shape ids
4020    
4021    2003-10-24  Jan-Oliver Wagner <[email protected]>
4022    
4023            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
4024            as alias for 'latlong'.
4025    
4026            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
4027            as alias for 'latlong'.
4028    
4029    2003-10-24  Jan-Oliver Wagner <[email protected]>
4030    
4031            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
4032            the projection even for the UnknownPanel.
4033            (UnknownProjPanel.__init__): Define the text and create the textctrl
4034            widget.
4035            (UnknownProjPanel._DoLayout): Replaced static text widget by the
4036            textctrl created in __init__.
4037            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
4038            including the parameters of the projection.
4039            
4040    2003-10-24  Jan-Oliver Wagner <[email protected]>
4041    
4042            * Resources/Projections/epsg.proj: New. This is a list of
4043            EPSG codes with parameters for proj. The list has been
4044            generated using devtools/create_epsg.py based on the
4045            file nad/epsg of the proj 4.4.7 package. Four projection
4046            definitions have been deleted as they are not accepted by proj:
4047            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
4048            and "HD72 / EOV".
4049    
4050    2003-10-22  Bernhard Herzog  <[email protected]>
4051    
4052            Some more tweaks to the projection dialog which should fix RT
4053            #1886.
4054    
4055            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
4056            the ProjFile's messages and call the base class methods correctly
4057            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
4058            flag on the newly selected item too. Otherwise some other item is
4059            focused and the first time the focus is moved with the keyboard
4060            the selection moves in unexpected ways.
4061    
4062            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
4063            focus on the OK button, only on the projection list. That way the
4064            list really has the focus initially
4065            (ProjFrame.OnClose): Call the projection list's Destroy method to
4066            make it unsubscribe all messages
4067    
4068    2003-10-21  Bernhard Herzog  <[email protected]>
4069    
4070            Rework the projection dialog to fix a few bugs, including RT 2166
4071            and most of 2168
4072    
4073            * Thuban/UI/projlist.py: New. The class ProjectionList is a
4074            special wxListCtrl to show a list of projections in a more MVC
4075            fashion
4076    
4077            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
4078            throughout the class. The main change is to use the ProjectionList
4079            class instead of a normal wxListBox. Also, add an explicit
4080            "Unknown" projection to the projection choice control.
4081            (ProjPanel.__init__): Add an "unknown" ellipsoid
4082            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
4083            instantiation of the panel's controls to make the tab-order more
4084            natural
4085    
4086    2003-10-21  Bernhard Herzog  <[email protected]>
4087    
4088            * test/test_load.py (TestSingleLayer.file_contents)
4089            (TestSingleLayer.test): Add non-ascii characters to the titles of
4090            session, map and layer. This is effectively a port of the
4091            TestUnicodeStrings test in test_load_0_8.py which for some reason
4092            was only added there.
4093    
4094            * test/test_load_0_9.py (TestSingleLayer.file_contents)
4095            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
4096            characters to the titles of session, map and layer,.
4097    
4098    2003-10-21  Bernhard Herzog  <[email protected]>
4099    
4100            Add EPSG projection handling to .thuban files
4101    
4102            * test/test_save.py (SaveSessionTest.dtd)
4103            (SaveSessionTest.testEmptySession)
4104            (SaveSessionTest.testLayerProjection)
4105            (SaveSessionTest.testRasterLayer)
4106            (SaveSessionTest.testClassifiedLayer)
4107            (SaveSessionTest.test_dbf_table)
4108            (SaveSessionTest.test_joined_table)
4109            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
4110            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
4111            use a and epsg projection to test saving them
4112    
4113            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
4114            namespace
4115            (TestLayerVisibility.file_contents, TestLabels.file_contents)
4116            (TestLayerProjection.file_contents)
4117            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4118            (TestPostGISLayer.file_contents)
4119            (TestPostGISLayerPassword.file_contents)
4120            (TestLoadError.file_contents, TestLoadError.test): Update to use
4121            1.0-dev namespace
4122            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
4123            use 1.0-dev namespace and use an EPSG projection to test whether
4124            loading it works
4125    
4126            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
4127            as of Thuban 0.9. These are now tests to determine whether Thuban
4128            can still read files generated by Thuban 0.9
4129    
4130            * Thuban/Model/save.py (SessionSaver.write)
4131            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
4132            namespace
4133            (SessionSaver.write_projection): Write the projection's epsg
4134            attribute
4135    
4136            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
4137            thuban-1.0-dev.dtd namespace
4138            (SessionLoader.check_attrs): Allow a callable object as conversion
4139            too
4140            (SessionLoader.start_projection, SessionLoader.end_projection)
4141            (SessionLoader.start_parameter): Handle the epsg attribute and
4142            rename a few instance variables to lower case
4143    
4144            * Resources/XML/thuban-1.0.dtd: New. Only difference to
4145            thuban-0.9.dtd is the epsg attribute for projections.
4146    
4147    2003-10-21  Bernhard Herzog  <[email protected]>
4148    
4149            * test/runtests.py (main): Let the user specify which tests to run
4150            on the command line
4151    
4152            * test/support.py (ThubanTestResult.getDescription): Override to
4153            give a better short description. The description can be used as a
4154            parameter to run_tests to run that particular test in isolation.
4155    
4156    2003-10-21  Frank Koormann   <[email protected]>
4157    
4158            Popup menu for legend. Scheduled for the 1.2 release this was too
4159            simple to implement: The popup menu is bound to the legend tree, while
4160            the events are hanlded by its anchestor, the legend panel. This
4161            allows reuse of all the event handlers already implemented for the
4162            legend toolbar buttons.
4163    
4164            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
4165            to add handlers for the events issued by the popup menu.
4166            (LegendPanel._OnToggleVisibility): Handler for toggling layer
4167            visibility event
4168            (LegendPanel._OnProjection): Handler for layer projection event.
4169            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
4170            (LegendTree._OnRightClick): Event handler for right click, select item
4171            and pop up menu.
4172            (LegendTree.ToggleVisibility): Toggle layer visibility
4173            (LegendTree.LayerProjection): Raise layer projection dialog for
4174            current layer.
4175    
4176    2003-10-21  Bernhard Herzog  <[email protected]>
4177    
4178            * Resources/Projections/defaults.proj: Use correct DOCTYPE
4179            declaration. The top-level element is projectionlist not projfile
4180    
4181    2003-10-20  Bernhard Herzog  <[email protected]>
4182    
4183            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
4184            method to write a projfile and display a busy cursor and error
4185            dialogs.
4186            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
4187            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
4188            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
4189            busy cursor while loading the user and system prj files.
4190    
4191    2003-10-16  Bernhard Herzog  <[email protected]>
4192    
4193            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
4194            ProjFile objects
4195            (clear_proj_file_cache): New function to clear the cache. Mainly
4196            useful for use by the test suite
4197            (read_proj_file): Use the cache.
4198    
4199            * test/test_proj.py (TestProjFile): Clarify the doc-string
4200            (ProjFileReadTests): Update doc-string
4201            (ProjFileReadTests.test_get_system_proj_file): Check whether the
4202            system proj files is cached.
4203            (ProjFileLoadTestCase): New base class for the proj file tests
4204            derived from support.FileLoadTestCase to provide some common
4205            behavior.
4206            (TestLoadingProjFile)
4207            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
4208            (TestProjFileWithInvalidParameters.file_contents): Derive from
4209            ProjFileLoadTestCase
4210            (TestLoadingProjFile.test_caching): New. Test whether the cache
4211            works
4212    
4213    2003-10-16      Silke Reimer    <[email protected]>
4214    
4215            * debian/*: New directory with configuration files for building a thuban
4216              deb-package.
4217    
4218    2003-10-14  Bernhard Herzog  <[email protected]>
4219    
4220            * test/test_proj.py: Execute support.run_tests when run as
4221            __main__ so that missing unsubscribes are detected
4222            (TestProjFile.tearDown): Destroy the proj_file properly
4223    
4224    2003-10-14  Bernhard Herzog  <[email protected]>
4225    
4226            * Thuban/Model/messages.py (PROJECTION_ADDED)
4227            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
4228            the ProjFile objects
4229    
4230            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
4231            easily send messages when the projections change
4232            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
4233            when the change was successful
4234    
4235            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
4236            proj file messages
4237            (TestProjFile.test_add_remove)
4238            (TestProjFile.test_remove_non_existing)
4239            (TestProjFile.test_replace)
4240            (TestProjFile.test_replace_non_existing): Test whether the right
4241            messages are sent
4242    
4243    2003-10-14  Bernhard Herzog  <[email protected]>
4244    
4245            * test/test_proj.py (TestProjFile.test): Refactor into several
4246            tests
4247            (TestProjFile.test_add_remove)
4248            (TestProjFile.test_remove_non_existing)
4249            (TestProjFile.test_replace)
4250            (TestProjFile.test_replace_non_existing): Some of the new
4251            individual test cases
4252            (TestProjFileSimple): New class for the rest of the test cases
4253            that came out of the refactoring
4254            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
4255            derived classes don't have to
4256    
4257    2003-10-13  Bernhard Herzog  <[email protected]>
4258    
4259            Add an optional EPSG code to the projection objects and extend the
4260            .proj file format accordingly.
4261    
4262            * Resources/XML/projfile.dtd (element projection): Add epsg
4263            attribute
4264    
4265            * Thuban/Model/proj.py (Projection.__init__): New parameter and
4266            instance variable epsg. Update doc-string
4267            (Projection.EPSGCode, Projection.Label): New methods to provide
4268            access to EPSG code and a label for use in dialogs
4269    
4270            * Thuban/Model/resource.py (ProjFileReader.start_projection)
4271            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
4272            Handle the epsg code attribute when reading or writing proj files
4273    
4274            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
4275            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
4276            (ProjFrame.__FillAvailList): Use the projection's Label method to
4277            get the string for the list box
4278    
4279            * test/test_proj.py (TestProjection.test_label)
4280            (TestProjection.test_label_epsg)
4281            (TestProjection.test_epsgcode_for_non_epsg_projection)
4282            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
4283            for the label and EPSGCode methods
4284            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
4285            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
4286            objects in the test cases and put the expected contents into the
4287            test case methods too. Update doTestWrite accordingly
4288            (TestLoadingProjFile)
4289            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
4290            read tests from TestProjFile.
4291            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
4292            tests are now in the new classes.
4293            (sample_projfile, sample_projfile_data)
4294            (sample_projfile2, sample_projfile_data2): Removed. Not used
4295            anymore.
4296            (TestProjFile.test_read_unreadable_file): No need to reset the
4297            permissions at the end anymore since we use a unique filename
4298    
4299    2003-10-13  Bernhard Herzog  <[email protected]>
4300    
4301            * test/test_proj.py: Some more refactoring of the test cases
4302            (ProjFileTest): New base class for the proj file tests.
4303            (TestProjFile): Derive from ProjFileTest
4304            (TestProjFile.test_read_unreadable_file)
4305            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
4306            the new filename method to get a unique filename
4307            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
4308            (WriteProjFileTests): New class for proj file write tests.
4309            Contains the write test that were in TestProjFile originally.
4310    
4311    2003-10-13  Bernhard Herzog  <[email protected]>
4312    
4313            * test/test_proj.py (TestProjFile.testRead)
4314            (TestProjFile.test_read_non_existing_file)
4315            (TestProjFile.test_read_unreadable_file)
4316            (TestProjFile.test_read_empty_file): Split into several methods.
4317    
4318    2003-10-10  Bernhard Herzog  <[email protected]>
4319    
4320            * Thuban/UI/sizers.py: New file with custom sizers.
4321    
4322            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
4323            all projection type specific panels and put them into a
4324            NotebookLikeSizer. This way the dialog doesn't change its size
4325            when a different projection is selected
4326            (ProjFrame.__init__): Rename projection_panels
4327            projection_panel_defs and reuse projection_panels for a list of
4328            the instantiated panels.
4329            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
4330            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
4331            the panels
4332            (UnknownProjPanel._DoLayout): Place the newlines in the message
4333            differently to make the panel narrower.
4334            (TMPanel._DoLayout): Layout the parameters in one column.
4335    
4336    2003-10-10  Bernhard Herzog  <[email protected]>
4337    
4338            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
4339            that contains all the setup for the dialog's widgets, layout and
4340            event handling.
4341            (__): Call build_dialog to build the dialog.
4342            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
4343            Their functionality is now in build_dialog
4344            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
4345            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
4346            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
4347            different widget names and hierarchy introduced with build_dialog.
4348    
4349    2003-10-10  Bernhard Herzog  <[email protected]>
4350    
4351            * README: Fix typo.
4352    
4353    2003-10-09  Bernhard Herzog  <[email protected]>
4354    
4355            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
4356            projection is already in the list. This is *a lot* faster when
4357            loading files with hundreds of projections since it saves a linear
4358            search. OTOH this will allow adding the same projection to the
4359            user.proj file multiple times in the projection dialog but we'll
4360            deal with that later
4361    
4362    2003-10-09  Jan-Oliver Wagner <[email protected]>
4363    
4364            * devtools: New. Directory for developer tools that are not intended
4365            for the regular user.
4366    
4367            * devtools/create_epsg.py: New. Convert the epsg file of proj into
4368            a python .proj file.
4369    
4370    2003-10-09  Bernhard Herzog  <[email protected]>
4371    
4372            * test/test_proj.py
4373            (TestProjection.test_get_parameter_without_equals_sign): New. Test
4374            whether GetParameter handles parameters without "=" sign correctly
4375    
4376            * Thuban/Model/proj.py (Projection.GetParameter): Handle
4377            parameters that do not contain a "=". Update the doc-string
4378    
4379    2003-10-08  Bernhard Herzog  <[email protected]>
4380    
4381            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
4382            length limit on the projname text control
4383    
4384    2003-10-08  Bernhard Herzog  <[email protected]>
4385    
4386            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
4387            (TestProjection.test_get_projection_units_normal): New. Tests for
4388            the Projection.GetProjectedUnits method
4389    
4390    2003-10-08  Jan-Oliver Wagner <[email protected]>
4391    
4392            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
4393            Added missing 'val' parameter.
4394    
4395    2003-10-08  Bernhard Herzog  <[email protected]>
4396    
4397            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
4398            projection type of the currently selected projection is not known,
4399            i.e. there's no panel for it, use the UnknownProjPanel
4400            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
4401            the actual replacing of the proj panel into the new method
4402            _show_proj_panel.
4403            (UnknownProjPanel): Add doc-string.
4404            (UnknownProjPanel._DoLayout): Insert a newline into the text so
4405            that the panel is not so wide.
4406    
4407    2003-10-08  Bernhard Herzog  <[email protected]>
4408    
4409            * Thuban/Model/resource.py (read_proj_file): Return the warnings
4410            too. Update the doc-string
4411            (get_proj_files): Removed. It wasn't used anywhere
4412            (get_system_proj_files, get_system_proj_file): Rename to
4413            get_system_proj_file and return the ProjFile object and not a list
4414            of ProjFile objects. Update the callers.
4415            (get_user_proj_files, get_user_proj_file): Rename to
4416            get_user_proj_file return the ProjFile object and not a list of
4417            ProjFile objects. Update the callers.
4418            (ProjFileReader.__init__): New instance variable for the warnings.
4419            Rename the __pf ivar to projfile. Update the methods referring to
4420            __pf
4421            (ProjFileReader.end_projection): Catch any errors raised when
4422            instantiating the projection and record that as an error. The
4423            projection will not be in the final ProjFile object.
4424            (ProjFileReader.GetWarnings): New method to return the warnings.
4425    
4426            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
4427            show the warnings from the projfile reader
4428            (ProjFrame._OnImport): Deal with any warnings returned by
4429            read_proj_file
4430            (ProjFrame.__FillAvailList): Deal with any warnings returned by
4431            get_system_proj_file or get_user_proj_file.
4432    
4433            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
4434            (TestProjFileWithInvalidParameters.file_contents): New test cases
4435            to test whether read_proj_file handles invalid projection
4436            parameters correctly
4437            (TestProjFile.test_get_system_proj_file): New. Simple test for
4438            resource.get_system_proj_file
4439    
4440    2003-10-07  Bernhard Herzog  <[email protected]>
4441    
4442            * test/test_derivedshapestore.py
4443            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
4444            properly so that the temporary directories get deleted correctly
4445    
4446    2003-10-06  Bernhard Herzog  <[email protected]>
4447    
4448            Handle the title changes in a proper MVC way.
4449    
4450            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
4451            canvas' TITLE_CHANGED messages
4452            (MainWindow.update_title): New. Update the main window's title
4453            (MainWindow.__SetTitle): Removed. Use update_title instead.
4454            (MainWindow.SetMap): Use update_title instead of __SetTitle
4455            (MainWindow.RenameMap): Do change the window title explicitly
4456            here. That's handled in a proper MVC way now.
4457            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
4458            messages
4459    
4460            * Thuban/Lib/connector.py (Conduit): New class to help classes
4461            that forward messages
4462    
4463            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
4464            (ViewPort): Derive from Conduit instead of Publisher
4465            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
4466            when calling the inherited versions
4467            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
4468            methods to subscribe and unsubscribe map messages
4469            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
4470            handle the map subscriptions
4471            (ViewPort.Map, ViewPort.map_projection_changed)
4472            (ViewPort.layer_projection_changed): Add or update doc-strings
4473    
4474            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
4475            typo
4476            (MyConduit): Helper class for the Conduit test.
4477            (TestConduit): Test cases for Conduit
4478    
4479            * test/test_connector.py: Use support.run_tests as main.
4480    
4481            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
4482            the TITLE_CHANGED messages
4483            (ViewPortTest.test_forwarding_title_changed): New test to check
4484            whether the viewport forwards the map's TITLE_CHANGED messages
4485            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
4486            after the port's because the latter may require a still functional
4487            map.
4488    
4489    2003-10-06  Bernhard Herzog  <[email protected]>
4490    
4491            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
4492            doc-string
4493    
4494    2003-10-06  Bernhard Herzog  <[email protected]>
4495    
4496            * test/test_viewport.py (ViewPortTest.setUp)
4497            (SimpleViewPortTest.test_init_with_size): Move the test for the
4498            initial size as a constructor parameter from ViewPortTest.setUp
4499            method to a new separate test in SimpleViewPortTest.
4500    
4501    2003-10-06  Bernhard Herzog  <[email protected]>
4502    
4503            * test/test_viewport.py (MockView): New class derived from
4504            ViewPort with a mock implementation of GetTextExtent to be used in
4505            the test cases
4506            (ViewPortTest.setUp): Use MockView instead of ViewPort
4507    
4508            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
4509            into what would be a "pure virtual function" in C++: always raise
4510            NotImplementedError. Mock implementations for test cases don't
4511            belong into the real code
4512    
4513    2003-10-02  Bernhard Herzog  <[email protected]>
4514    
4515            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
4516            close the dbf file we create so that it's contents have been
4517            written properly.
4518    
4519            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
4520            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
4521            Update to shapelib 1.2.10
4522    
4523    2003-10-01  Jan-Oliver Wagner <[email protected]>
4524    
4525            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
4526            it annoys lintian which warns about these files not being
4527            executable. The #! isn't necessary here since if you absolutely
4528            must execute them you can always say "python <filename>".
4529    
4530    2003-09-26  Bernhard Herzog  <[email protected]>
4531    
4532            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
4533            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
4534            is ported to a newer the import will fail, so it should be noticed
4535            immediately that this function is gone.
4536            Fixes RT#1919
4537    
4538    2003-09-26  Bernhard Herzog  <[email protected]>
4539    
4540            Add a DTD for the projection files and make thuban write valid
4541            projection files
4542    
4543            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
4544            files
4545    
4546            * Thuban/Model/resource.py (ProjFileSaver.write): Use
4547            'projectionlist' as the name in the document type declaration so
4548            that it matches the element type of the root element.
4549    
4550            * test/test_proj.py (sample_projfile, sample_projfile2): Use
4551            'projectionlist' as the name in the document type declaration just
4552            as it is done now in the files thuban would write
4553            (sample_projfile, sample_projfile_data): Fix spelling of
4554            "Mercator"
4555            (TestProjFile.doTestWrite): Validate the written and the expected
4556            XML data
4557            (TestProjFile): Derive from ValidationTest so that we can run xml
4558            validation tests
4559    
4560    2003-09-24  Bernhard Herzog  <[email protected]>
4561    
4562            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
4563            modify the list returned by map.Layers() in place since it is the
4564            actual list of layers used by the map.
4565    
4566    2003-09-23  Jan-Oliver Wagner <[email protected]>
4567    
4568            * Doc/manual/thuban-manual.xml: Added subsection to chapter
4569            Extensions to describe the extensions coming with the Thuban
4570            standard package (gns2shp and importAPR).
4571    
4572    2003-09-23  Bernhard Herzog  <[email protected]>
4573    
4574            * libraries/thuban/wxproj.cpp (project_point): if there's an
4575            inverse but no forward projection, convert to degrees after
4576            applying the inverse projection. Fixes RT#2096
4577    
4578            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
4579            implicitly tests for the fix to RT#2096
4580    
4581            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
4582            Check that the sequences have the same lengths
4583    
4584            * Resources/Projections/defaults.proj (Geographic projection): Use
4585            a much more precise value for the to_meter attribute.
4586    
4587    2003-09-22  Bernhard Herzog  <[email protected]>
4588    
4589            * test/support.py (initthuban): Make sure to unset the LANG env.
4590            var. so that tests that compare translated strings work. Solves RT
4591            #2094
4592    
4593    2003-09-22  Jan-Oliver Wagner <[email protected]>
4594    
4595            Small improvement of APR import.
4596    
4597            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
4598            Added tests for text-ranges.
4599    
4600            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
4601            returns a string object if the range is based on text.
4602    
4603            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
4604            range retrieval.
4605    
4606    2003-09-22  Jan-Oliver Wagner <[email protected]>
4607    
4608            Initial version of the importAPR extension which is in
4609            experimental state.
4610    
4611            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
4612            /Extensions/importAPR/test/: New directories.
4613    
4614            * /Extensions/importAPR/samples/README: New: Howto load the samples.
4615    
4616            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
4617            file which refers to the Thuban Iceland demo data.
4618    
4619            * /Extensions/importAPR/test/README: New: Howto execute the tests.
4620    
4621            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
4622    
4623            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
4624            as in '.apr'-files.
4625    
4626            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
4627            ODB Objects as in '.apr', '.avl' and other files.
4628    
4629            * /Extensions/importAPR/__init__.py: New: Init to make this
4630            directory a package.
4631    
4632            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
4633            project file (.apr) and convert it to Thuban.
4634    
4635    2003-09-22  Jan-Oliver Wagner <[email protected]>
4636    
4637            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
4638    
4639    2003-09-19  Jan-Oliver Wagner <[email protected]>
4640    
4641            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
4642            with description on RPM installation and RPM binary package
4643            creation.
4644    
4645    2003-09-18  Bernhard Herzog  <[email protected]>
4646    
4647            * setup.py (data_files): Only add the mo files if the Locales
4648            directory actually exists, so that setup.py works with a fresh CVS
4649            checkout
4650    
4651    2003-09-12  Jan-Oliver Wagner <[email protected]>
4652    
4653            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
4654            in viewport, not anymore in view
4655    
4656    2003-09-04  Jan-Oliver Wagner <[email protected]>
4657    
4658            Introducing first Extension (gns2shp).
4659    
4660            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
4661    
4662            * Extensions/__init__.py: New. init to make this dir a package.
4663    
4664            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
4665    
4666            * Extensions/gns2shp/test/README: New. some info on this test directory.
4667    
4668            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
4669    
4670            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
4671            of Shapefile from GNS text file format
4672    
4673    2003-09-03  Jan-Oliver Wagner <[email protected]>
4674    
4675            Fix/workaround for bug #2019:
4676            https://intevation.de/rt/webrt?serial_num=2019
4677    
4678            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
4679            (IdentifyView.__init__): Added another button that allows to
4680            stop the identify mode.
4681            (IdentifyView.OnStop): New. Stops the identify mode.
4682    
4683    2003-09-03  Jan-Oliver Wagner <[email protected]>
4684    
4685            Introducing a new exception dialog that allows to exit the
4686            application immediately.
4687            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
4688    
4689            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
4690    
4691            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4692            Made strings available to translations. Exchanged the simple
4693            ScrolledMessageDialog by the new ExceptionDialog.
4694    
4695    2003-09-01  Bernhard Herzog  <[email protected]>
4696    
4697            * NEWS: New. Summary of changes and release notes.
4698    
4699            * MANIFEST.in: Add NEWS
4700    
4701    2003-09-01  Bernhard Herzog  <[email protected]>
4702    
4703            * MANIFEST.in: Correct the include statement for the mo-files and
4704            include the documentation too.
4705    
4706            * setup.py (data_files): Add the .mo files
4707            (setup call): Up to version 0.9.0
4708    
4709    2003-09-01  Bernhard Herzog  <[email protected]>
4710    
4711            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
4712            parameter list to just parent and session
4713            (ChooseDBTableDialog.__set_properties): Removed. Setting the
4714            selection of empty list boxes is not allowed (and produces C++
4715            assertion errors) and the rest of the setup is better done in
4716            __init__ anyway.
4717            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
4718            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
4719            builtins True/False for booleans to avoid warnings from wxPython
4720    
4721            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
4722            ChooseDBTableDialog constructor parameters.
4723    
4724    2003-09-01  Bernhard Herzog  <[email protected]>
4725    
4726            * Thuban/Model/postgisdb.py
4727            (PostGISTable): Extend doc-string
4728            (PostGISTable._fetch_table_information): Set the column index
4729            correctly, pretending ignored columns don't exist.
4730    
4731            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
4732            for postgis tables with data types not yet supported by thuban.
4733    
4734    2003-08-29  Bernhard Herzog  <[email protected]>
4735    
4736            * HOWTO-Release: Tweak item about running the tests.
4737    
4738    2003-08-29  Jan-Oliver Wagner <[email protected]>
4739    
4740            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
4741    
4742    2003-08-29  Bernhard Herzog  <[email protected]>
4743    
4744            Add some missing parameters to projections. Proj complains about
4745            them on windows but for some reason not on Linux.
4746    
4747            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
4748            missing required projection parameters
4749    
4750            * test/test_proj.py (TestProjFile.test): Add missing required
4751            projection parameters
4752    
4753            * test/test_load_0_8.py (TestLayerProjection.file_contents)
4754            (TestLayerProjection.test): Add missing required projection
4755            parameters and tests for them
4756    
4757            * test/test_load.py (TestLayerProjection.file_contents)
4758            (TestLayerProjection.test): Add missing required projection
4759            parameters and tests for them
4760    
4761            * test/test_layer.py (TestLayer.test_base_layer): Add missing
4762            required projection parameters
4763    
4764    2003-08-29  Bernhard Herzog  <[email protected]>
4765    
4766            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
4767            access the pj_errno because directly accessing pj_errno doesn't
4768            work on windows if the proj library is in a DLL
4769    
4770            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
4771    
4772    2003-08-28  Bernhard Herzog  <[email protected]>
4773    
4774            * test/test_proj.py: Import things from Thuban after calling
4775            initthuban
4776    
4777            * test/test_load.py (LoadSessionTest.filenames): New class
4778            variable with the filename attributes to normalize
4779            (LoadSessionTest.check_format): Pass self.filenames to
4780            sax_eventlist to normalize the filename attributes
4781    
4782            * test/xmlsupport.py: Add cvs keywords
4783            (SaxEventLister.__init__): New parameter filenames which indicates
4784            attributes that contain filenames
4785            (SaxEventLister.startElementNS): Normalize the filename attributes
4786            with os.path.normpath
4787            (sax_eventlist): New parameter filenames to pass through to
4788            SaxEventLister
4789    
4790            * test/test_derivedshapestore.py: Make this file callable as a
4791            program to execute the tests
4792            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
4793            the session to self.session so that it gets destroyed properly
4794    
4795            * test/test_layer.py (TestLayer.tearDown): Call the session's
4796            Destroy method
4797    
4798            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
4799            too if it exists
4800            (TestMapAddLayer.test_add_layer): Bind the session to self.session
4801            so that it gets destroyed properly
4802    
4803            * test/postgissupport.py (reason_for_not_running_tests): Add a
4804            test for the existence of popen2.Popen4.
4805    
4806            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
4807            reliable way to destroy the sessions created in the test cases
4808            (SaveSessionTest.test_dbf_table): Bind the session to self.session
4809            so that it gets destroyed properly
4810            (SaveSessionTest.testLayerProjection): Bind the session to
4811            self.session so that it gets destroyed properly
4812    
4813            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
4814            sure that the session is destroyed properly
4815    
4816            * test/test_shapefilestore.py: Make this callable as a program to
4817            execute the tests
4818    
4819            * test/test_scalebar.py: Remove unnecessary import of _ from
4820            Thuban
4821    
4822            * test/support.py (print_garbage_information): Call initthuban
4823            here because it may be called indirectly from test cases that test
4824            test support modules which do not use anything from thuban itself
4825            (ThubanTestProgram.runTests): Remove unnecessary debug print
4826    
4827    2003-08-28  Bernhard Herzog  <[email protected]>
4828    
4829            * Thuban/version.py (longversion): Update to 0.9
4830    
4831            * Thuban/UI/mainwindow.py: Remove some unused imports
4832    
4833            * README: Add section about required additional software. Add date
4834            and revision CVS keywords
4835    
4836            * HOWTO-Release: Add item about the translations. Add date and
4837            revision CVs keywords and change formatting to match README a bit
4838            better
4839    
4840            * po/de.po: Update for 0.9
4841    
4842            * test/README: Tweak the wording a little because many tests are
4843            not really unittest.
4844    
4845    2003-08-27  Bernhard Herzog  <[email protected]>
4846    
4847            As preparation for the 0.9 release, switch thuban files to a
4848            non-dev namespace
4849    
4850            * Thuban/Model/save.py (SessionSaver.write_session): Write files
4851            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
4852            namespace
4853    
4854            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
4855            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
4856    
4857            * test/test_save.py (SaveSessionTest.dtd)
4858            (SaveSessionTest.testEmptySession)
4859            (SaveSessionTest.testSingleLayer)
4860            (SaveSessionTest.testLayerProjection)
4861            (SaveSessionTest.testRasterLayer)
4862            (SaveSessionTest.testClassifiedLayer)
4863            (SaveSessionTest.test_dbf_table)
4864            (SaveSessionTest.test_joined_table)
4865            (SaveSessionTest.test_save_postgis): Update for new namespace
4866    
4867            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
4868            (TestLayerVisibility.file_contents, TestLabels.file_contents)
4869            (TestLayerProjection.file_contents)
4870            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4871            (TestPostGISLayer.file_contents)
4872            (TestPostGISLayerPassword.file_contents)
4873            (TestLoadError.file_contents, TestLoadError.test): Update for new
4874            namespace
4875    
4876    2003-08-27  Bernhard Herzog  <[email protected]>
4877    
4878            Make the table interface distinguish between row ids (an integer
4879            that uniquely identifies a row) and row ordinals (a simple row
4880            count from 0 to NumRows() - 1)
4881    
4882            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
4883            (PostGISTable.RowOrdinalToId): New methods to conver between row
4884            ids and row ordinals
4885            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
4886            parameter row_is_ordinal to indicate whether the row parameter is
4887            the row id or the ordinal
4888    
4889            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
4890            (TransientTableBase.RowOrdinalToId)
4891            (AutoTransientTable.RowIdToOrdinal)
4892            (AutoTransientTable.RowOrdinalToId): Same new methods as in
4893            PostGISTable.
4894            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
4895            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
4896            Same new parameter as in PostGISTable.
4897    
4898            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
4899            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
4900            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
4901            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
4902            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
4903            parameter as in PostGISTable.
4904    
4905            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
4906            (DataTable.RowOrdinalToId): New methods to convert between row ids
4907            and row ordinals.
4908            (TableGrid.SelectRowById): New method to select a row based on its
4909            ID as opposed to its ordinal
4910            (DataTable.GetValue, TableGrid.OnRangeSelect)
4911            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
4912            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
4913            (LayerTableFrame.__init__): Convert between row ids and row
4914            ordinals as appropriate
4915    
4916            * test/postgissupport.py (PostGISDatabase.__init__): Add
4917            doc-string.
4918            (PostGISDatabase.initdb): The optional third item in a tuple in
4919            tables is now a (key, value) list with additional arguments to
4920            pass to upload_shapefile
4921            (upload_shapefile): New parameter gid_offset to allow gids that
4922            are not the same as the shapeids in the shapefile
4923            (PostgreSQLServer.get_default_static_data_db): Use the new
4924            gid_offset to make the gids in landmarks 1000 higher than the
4925            shapeids in the shapefile
4926    
4927            * test/test_viewport.py
4928            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
4929            new shapeids in the landmarks table
4930    
4931            * test/test_transientdb.py
4932            (TestTransientTable.run_iceland_political_tests)
4933            (TestTransientTable.test_transient_joined_table): Add tests for
4934            the new table methods and new keywords arguments.
4935    
4936            * test/test_postgis_db.py
4937            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
4938            (TestPostGISTable.test_read_value_row_count_mode)
4939            (TestPostGISTable.test_row_id_to_ordinal)
4940            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
4941            table methods and the new arguments
4942            (TestPostGISShapestorePoint.test_shapes_in_region)
4943            (TestPostGISShapestorePoint.test_shape_raw_data)
4944            (TestPostGISShapestorePoint.test_shape_points)
4945            (TestPostGISShapestorePoint.test_shape_shapeid)
4946            (TestPostGISShapestorePoint.test_all_shapes)
4947            (TestPostGISTable.test_simple_query)
4948            (TestPostGISTable.test_simple_query)
4949            (TestPostGISTable.test_simple_query)
4950            (TestPostGISTable.test_read_value)
4951            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
4952            shapeids in the landmarks table
4953    
4954            * test/test_memory_table.py
4955            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
4956            (TestMemoryTable.test_read_value_row_count_mode)
4957            (TestMemoryTable.test_row_id_to_ordinal)
4958            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
4959            table methods and the new arguments
4960    
4961            * test/test_dbf_table.py
4962            (TestDBFTable.test_read_row_as_dict_row_count_mode)
4963            (TestDBFTable.test_read_value_row_count_mode)
4964            (TestDBFTable.test_row_id_to_ordinal)
4965            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
4966            methods and the new arguments
4967    
4968    2003-08-26  Bernhard Herzog  <[email protected]>
4969    
4970            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
4971            more postgis specific but much faster method to get the bounding
4972            box
4973    
4974    2003-08-26  Bernhard Herzog  <[email protected]>
4975    
4976            * Thuban/Model/postgisdb.py (PostGISTable.Title)
4977            (PostGISShapeStore.AllShapes): Add these missing methods.
4978            (PostGISShapeStore.ShapesInRegion): No need to raise
4979            StopIteration. We can simply return
4980    
4981            * test/test_postgis_db.py (TestPostGISTable.test_title)
4982            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
4983            new methods
4984    
4985    2003-08-25  Bernhard Herzog  <[email protected]>
4986    
4987            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
4988    
4989            * test/test_postgis_db.py (PolygonTests): New class containing
4990            those tests from TestPostGISShapestorePolygon that can also be
4991            used to test MUTLIPOLYGON tables
4992            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
4993            so derive from that
4994            (TestPostGISShapestoreMultiPolygon): New class with tests for
4995            MUTLIPOLYGON tables
4996    
4997            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
4998            tables argument to have tuples with three items to override the
4999            WKT type used.
5000            (PostgreSQLServer.get_default_static_data_db): Use the above to
5001            create a polygon table with MUTLIPOLYGONs
5002            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
5003            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
5004            coords_to*
5005            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
5006            (wkt_converter): New. Map WKT types to converters
5007            (upload_shapefile): New parameter force_wkt_type to use a
5008            different WKT type than the default
5009    
5010    2003-08-25  Bernhard Herzog  <[email protected]>
5011    
5012            * Thuban/UI/application.py
5013            (ThubanApplication.run_db_param_dialog): New. Suitable as a
5014            db_connection_callback. Main difference is that the dialog run
5015            from this method doesn't have a parent so it can be used even when
5016            there is no main window
5017            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
5018            no db_connection_callback was given. This way the dialog pops up
5019            even when the .thuban file was given as a command line parameter.
5020    
5021    2003-08-25  Bernhard Herzog  <[email protected]>
5022    
5023            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
5024            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
5025            which leads to an effectively frozen X session because the user
5026            can only interact with the dialog but the mouse is still grabbed
5027            by the canvas.
5028            Also, call the tool's Hide method before MouseLeftUp because
5029            MouseLeftUp may change the tool's coordinates.
5030    
5031    2003-08-25  Bernhard Herzog  <[email protected]>
5032    
5033            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
5034            LoadCancelled exceptions and handle them by returning immediately.
5035    
5036    2003-08-25  Bernhard Herzog  <[email protected]>
5037    
5038            GUI part of loading sessions with postgis connections which may
5039            require user interaction to get passwords or updated parameters
5040    
5041            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
5042            bit nucer and be more generic.
5043            (DBFrame.OnAdd): Adapt to new DBDialog interface
5044    
5045            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
5046            optional parameter db_connection_callback which is passed to
5047            load_session.
5048    
5049            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
5050            Suitable as a db_connection_callback
5051            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
5052            db_connection_callback of the application's OpenSession method
5053    
5054    
5055    2003-08-25  Bernhard Herzog  <[email protected]>
5056    
5057            Basic loading of sessions containing postgis connections:
5058    
5059            * Thuban/Model/load.py (LoadError): Add doc-string
5060            (LoadCancelled): New exception class to indicate a cancelled load
5061            (SessionLoader.__init__): Add the db_connection_callback parameter
5062            which will be used by the loader to get updated parameters and a
5063            password for a database connection
5064            (SessionLoader.__init__): Add the new XML elements to the
5065            dispatchers dictionary
5066            (SessionLoader.check_attrs): Two new conversions, ascii to convert
5067            to a byte-string object and idref as a generic id reference
5068            (SessionLoader.start_dbconnection)
5069            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
5070            elements
5071            (load_session): Add the db_connection_callback to pass through the
5072            SessionLoader
5073    
5074            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
5075            New classes to test loading of sessions with postgis database
5076            connections.
5077    
5078    2003-08-25  Bernhard Herzog  <[email protected]>
5079    
5080            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
5081            replace it and the comment with __BuildDate__ by the Source: and
5082            Id: cvs keywords as used in the other files.
5083    
5084    2003-08-25  Bernhard Herzog  <[email protected]>
5085    
5086            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
5087            LoadError when a required attribute is missing. The code used to
5088            be commented out for some reason, but probably should have been
5089            active.
5090    
5091            * test/test_load.py (TestLoadError.test): Test the message in the
5092            LoadError too to make sure it really is about the missing
5093            attribute
5094    
5095    2003-08-22  Bernhard Herzog  <[email protected]>
5096    
5097            * test/test_save.py (SaveSessionTest.test_dbf_table)
5098            (SaveSessionTest.test_joined_table): Add XML validation tests.
5099    
5100    2003-08-22  Bernhard Herzog  <[email protected]>
5101    
5102            Implement saving a session with a postgis connection
5103    
5104            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
5105            elements for database connections and shapestores using db
5106            connections
5107            (session): Add the dbconnections to the content model
5108    
5109            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
5110            Write the db connections
5111            (SessionSaver.write_session): Call write_db_connections to write
5112            the connection before the data sources
5113            (SessionSaver.write_data_containers): Handle postgis shapestores
5114    
5115            * test/test_save.py (SaveSessionTest.thubanids)
5116            (SaveSessionTest.thubanidrefs): Update for new DTD
5117            (SaveSessionTest.test_save_postgis): New. Test saving a session
5118            with postgis connections
5119    
5120            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
5121            (PostGISTable.TableName): New accessor methods for the connection
5122            and table name
5123    
5124            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
5125            (TestPostGISTable.test_dbname): New methods to test the new
5126            PostGISConnection methods
5127    
5128    2003-08-22  Bernhard Herzog  <[email protected]>
5129    
5130            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
5131            for exceptions occurring when establishing a Database connection
5132            (PostGISConnection.connect): Catch psycopg.OperationalError during
5133            connects and raise ConnectionError.
5134    
5135            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
5136            tests for database exceptions
5137    
5138    2003-08-22  Bernhard Herzog  <[email protected]>
5139    
5140            Prepare the test suite for tests with required authentication
5141    
5142            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
5143            variables with two predefined users/passwords, one for the admin
5144            and one for a non-privileged user.
5145            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
5146            the non-privileged user to the database and set the admin password
5147            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
5148            Better error reporting
5149            (PostgreSQLServer.connection_params)
5150            (PostgreSQLServer.connection_string): New methods to return
5151            information about how to connect to the server
5152            (PostgreSQLServer.execute_sql): New. Convenience method to execute
5153            SQL statements
5154            (PostgreSQLServer.require_authentication): Toggle whether the
5155            server requires authentication
5156            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
5157            Add or alter users
5158            (PostGISDatabase.initdb): Pass the admin name one the
5159            subprocesses' command lines. Grant select rights on
5160            geometry_columns to everybody.
5161            (upload_shapefile): Use the admin name and password when
5162            connecting. Grant select rights on the new table to everybody.
5163    
5164            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
5165            server's new methods to get the connection parameters.
5166    
5167            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
5168            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
5169            server's new methods to get the connection parameters.
5170    
5171            * test/test_postgis_db.py
5172            (TestPostGISConnection.test_gis_tables_empty)
5173            (TestPostGISConnection.test_gis_tables_non_empty)
5174            (PostGISStaticTests.setUp): Use the server's new methods to get
5175            the connection parameters.
5176    
5177    2003-08-22  Bernhard Herzog  <[email protected]>
5178    
5179            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
5180    
5181            * Thuban/version.py: Add psycopg version
5182    
5183            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
5184            version of the psycopg module
5185    
5186    2003-08-22  Bernhard Herzog  <[email protected]>
5187    
5188            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
5189            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
5190            at the moment. The functionality should probably be implemented
5191            some time, though.
5192            (DBFrame.OnRemove): Display a message if the connection can't be
5193            removed because it's still in use.
5194    
5195    2003-08-22  Jan-Oliver Wagner <[email protected]>
5196    
5197            * Thuban/UI/about.py (About.__init__): split up the huge about
5198            text into elements/lists for easier translation. This fixes bug
5199            https://intevation.de/rt/webrt?serial_num=2058
5200            Also, made some forgotten string available for the i18n.
5201    
5202    2003-08-21  Bernhard Herzog  <[email protected]>
5203    
5204            Make postgis support really optional including insensitive menu
5205            items.
5206    
5207            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
5208            whether the postgis is supported.
5209    
5210            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
5211            to make postgis support optional
5212    
5213            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
5214            version of Thuban.Model.postgisdb.has_postgis_support
5215            (database_management command): Make it only sensitive if postgis
5216            is supported.
5217    
5218    2003-08-21  Jan-Oliver Wagner <[email protected]>
5219    
5220            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
5221            (section Adding and Removing Layers): Added text and described
5222            multi-selection.
5223            (chapter Extensions): New.
5224    
5225    2003-08-21  Jan-Oliver Wagner <[email protected]>
5226    
5227            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
5228            settings to allow multiple files to load into the map.
5229            Also reduced selection to *.shp as a default.
5230    
5231    2003-08-20  Bernhard Herzog  <[email protected]>
5232    
5233            Add dialogs and commands to open database connections and add
5234            database layers.
5235    
5236            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
5237            method to open the database connection management dialog
5238            (MainWindow.AddDBLayer): New method to add a layer from a database
5239            (_has_dbconnections): New helper function to use for sensitivity
5240            (database_management command, layer_add_db command): New commands
5241            that call the above new methods.
5242            (main_menu): Add the new commands to the menu.
5243    
5244            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
5245            (PostGISConnection.connect): Establish the actual connection in a
5246            separate method and call it in __init__. This makes it easier to
5247            override the behavior in test cases
5248            (PostGISConnection.BriefDescription): New method to return a brief
5249            description for use in dialogs.
5250    
5251            * test/test_postgis_db.py (NonConnection): DB connection that
5252            doesn't actually connect
5253            (TestBriefDescription): New class with tests for the new
5254            BriefDescription method
5255    
5256    2003-08-19  Jan-Oliver Wagner <[email protected]>
5257    
5258            Moved anything from extensions to libraries.
5259    
5260            * libraries: New.
5261    
5262            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
5263    
5264            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
5265            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
5266            been moved here from thuban/extensions/pyprojection/
5267            See there in the Attic for the older history.
5268    
5269            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
5270            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
5271            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
5272            have been moved here from thuban/extensions/pyshapelib/
5273            See there in the Attic for the older history.
5274    
5275            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
5276            files have been moved here from thuban/extensions/shapelib/
5277            See there in the Attic for the older history.
5278    
5279            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
5280            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
5281            thuban/extensions/thuban/
5282            See there in the Attic for the older history.
5283    
5284            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
5285    
5286            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
5287            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
5288    
5289            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
5290            Moved to libraries/shapelib.
5291    
5292            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
5293            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
5294            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
5295            Moved to libraries/pyshapelib.
5296    
5297            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
5298            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
5299            Moved to libraries/pyprojection.
5300    
5301            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
5302    
5303            * extensions: Removed.
5304    
5305    2003-08-19  Bernhard Herzog  <[email protected]>
5306    
5307            * test/test_viewport.py (ViewPortTest): We don't use the
5308            facilities of FileTestMixin so don't derive from it.
5309            (TestViewportWithPostGIS): New class with tests for using a
5310            viewport on a map with postgis layers.
5311    
5312    2003-08-19  Bernhard Herzog  <[email protected]>
5313    
5314            Add the db connection management to the session.
5315    
5316            * Thuban/Model/session.py (Session.__init__): New instance
5317            variable db_connections
5318            (Session.AddDBConnection, Session.DBConnections)
5319            (Session.HasDBConnections, Session.CanRemoveDBConnection)
5320            (Session.RemoveDBConnection): New methods to manage and query the
5321            db connections managed by the session
5322            (Session.OpenDBShapeStore): New method to open a shapestore from a
5323            db connection
5324    
5325            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
5326            messages for the db connection handling in the session
5327    
5328            * test/test_postgis_session.py: New. test cases for the session's
5329            db connection handling with postgis connections
5330    
5331    2003-08-19  Bernhard Herzog  <[email protected]>
5332    
5333            Add very basic postgis database support and the corresponding test
5334            cases. The test cases require a PostgreSQL + postgis installation
5335            but no existing database. The database will be created
5336            automatically by the test cases
5337    
5338            * test/README: Add note about skipped tests and the requirements
5339            of the postgis tests.
5340    
5341            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
5342    
5343            * test/test_postgis_db.py: New. Test cases for the postgis
5344            support.
5345    
5346            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
5347            format
5348    
5349            * test/test_wellknowntext.py: New. Test cases for the
5350            wellknowntext parser
5351    
5352            * test/postgissupport.py: New. Support module for tests involving
5353            a postgis database.
5354    
5355            * test/support.py (execute_as_testsuite): Shut down the postmaster
5356            if it's still running after the tests
5357    
5358            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
5359            well known text format
5360    
5361    2003-08-19  Jan-Oliver Wagner <[email protected]>
5362    
5363            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
5364            message dialog.
5365    
5366    2003-08-18  Bernhard Herzog  <[email protected]>
5367    
5368            * test/support.py (ThubanTestResult.printErrors): Indent the
5369            reason for the skips in the output to make it a bit more readable.
5370            (execute_as_testsuite): New helper function to run a test suite
5371            and print some more information.
5372            (run_tests): Use execute_as_testsuite to run the tests
5373    
5374            * test/runtests.py (main): Use execute_as_testsuite to run the
5375            tests
5376    
5377    2003-08-18  Bernhard Herzog  <[email protected]>
5378    
5379            Fix some bugs in Thuban and the test suite that were uncovered by
5380            changes introduced in Python 2.3:
5381    
5382            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
5383            filename is an absolute name
5384    
5385            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
5386            filename is an absolute name
5387    
5388            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
5389            unique filename to save to and use the correct relative filename
5390            in the expected output.
5391            (SaveSessionTest.test_dbf_table): Use the correct relative
5392            filename in the expected output.
5393    
5394            * test/test_layer.py (TestLayer.test_raster_layer): Update the
5395            test to check whether the filename is absolute.
5396    
5397    2003-08-18  Jan-Oliver Wagner <[email protected]>
5398    
5399            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
5400    
5401    2003-08-15  Bernhard Herzog  <[email protected]>
5402    
5403            Change the way shapes are returned by a shape store. The
5404            ShapesInRegion method returns an iterator over actual shape
5405            objects instead of a list of shape ids.
5406    
5407            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
5408            id.
5409            (ShapefileStore.ShapesInRegion): Return an iterator over the
5410            shapes which yields shape objects instead of returning a list of
5411            shape ids
5412            (ShapefileStore.AllShapes): New. Return an iterator over all
5413            shapes in the shape store
5414            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
5415    
5416            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
5417            doc-string.
5418    
5419            * Thuban/UI/baserenderer.py
5420            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
5421            layer_shapes and make it return an iterator containg shapes
5422            instead of a list of ids.
5423            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
5424            layer_shapes() change
5425    
5426            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
5427            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
5428    
5429            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
5430            changes in the ShapesInRegion return value.
5431            (ViewPort._get_hit_tester): Remove commented out code
5432    
5433            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
5434            new return value.
5435            (SimpleShapeStore.AllShapes): New. Implement this method too.
5436    
5437            * test/test_layer.py (TestLayer.test_arc_layer)
5438            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
5439            (TestLayer.test_point_layer_with_projection)
5440            (TestLayer.test_derived_store): Adapt to changes in the
5441            ShapesInRegion return value.
5442    
5443            * test/test_shapefilestore.py
5444            (TestShapefileStoreArc.test_shapes_in_region)
5445            (TestShapefileStorePolygon.test_shapes_in_region)
5446            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
5447            in the ShapesInRegion return value.
5448            (TestShapefileStorePoint.test_all_shapes)
5449            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
5450            methods
5451    
5452            * test/test_derivedshapestore.py
5453            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
5454            the ShapesInRegion return value.
5455            (TestDerivedShapeStore.test_all_shapes)
5456            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
5457            methods
5458    
5459    2003-08-15  Bernhard Herzog  <[email protected]>
5460    
5461            Make the renderers deal correctly with raw vs. python level
5462            representation of shape geometries
5463    
5464            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
5465            Return a flag useraw in addition to the callable and the parameter
5466            to indicate whether the callable can deal with the raw shape data
5467            or uses the higher level python lists of coordinates. The callable
5468            now should accept either the raw data or the return value of the
5469            shape's Points() method.
5470            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
5471            change
5472            (BaseRenderer.projected_points): Instead of the shape id use the
5473            points list as parameter.
5474            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
5475            (BaseRenderer.draw_point_shape): Adapt to projected_points()
5476            change and accept the points list as parameter instead of the
5477            shape id.
5478    
5479            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
5480            the useraw flag as required by the BaseRenderer
5481            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
5482            changes.
5483    
5484            * test/test_baserenderer.py
5485            (TestBaseRenderer.test_point_with_classification): New test for
5486            rendering a map with classifications.
5487    
5488    2003-08-15  Bernhard Herzog  <[email protected]>
5489    
5490            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
5491            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
5492            (ViewPort._get_hit_tester, ViewPort.projected_points)
5493            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
5494            (ViewPort._find_label_at): Split the find_shape_at method into
5495            several new methods and use the functions in the hit-test module.
5496    
5497            * Thuban/UI/hittest.py: New module with Python-level hit-testing
5498            functions
5499    
5500            * test/test_hittest.py: New. Test for the new hittest module
5501    
5502    2003-08-15  Bernhard Herzog  <[email protected]>
5503    
5504            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
5505            projection to all corners of the bounding box to get a better
5506            approximation of the projected bounding box
5507    
5508            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
5509            New. Test coordinate handling of a layer with a projection.
5510            Catches the bug fixed in Layer.ShapesInRegion
5511    
5512    2003-08-15  Bernhard Herzog  <[email protected]>
5513    
5514            Move some of the mock objects in test_baserenderer into their own
5515            module so they can easily be used from other tests
5516    
5517            * test/mockgeo.py: New test helper module with some mock objects
5518            for geometry related things like shapes, shapestores and
5519            projections.
5520    
5521            * test/test_mockgeo.py: New. Tests for the new helper module
5522    
5523            * test/test_baserenderer.py: Some of the mock-objects are in
5524            mockgeo now.
5525    
5526    2003-08-12  Jan-Oliver Wagner <[email protected]>
5527    
5528            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
5529    
5530    2003-08-12  Bernhard Herzog  <[email protected]>
5531    
5532            * po/de.po: New. German translations by Bjoern Broscheit
5533    
5534    2003-08-12  Bernhard Herzog  <[email protected]>
5535    
5536            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
5537            strings have to be one string literal.
5538    
5539    2003-08-11  Bernhard Herzog  <[email protected]>
5540    
5541            * test/support.py (FloatComparisonMixin.assertPointListEquals):
5542            New. This method was used in various derived classes, but it's
5543            better to have it here.
5544    
5545            * test/test_shapefilestore.py
5546            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
5547            FloatComparisonMixin
5548    
5549            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
5550            It's now in FloatComparisonMixin
5551    
5552            * test/test_derivedshapestore.py
5553            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
5554            in FloatComparisonMixin
5555    
5556    2003-08-11  Bernhard Herzog  <[email protected]>
5557    
5558            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
5559            error message
5560    
5561    2003-08-08  Jan-Oliver Wagner <[email protected]>
5562    
5563            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
5564            with version number.
5565            Changed title to reflect version number of Thuban.
5566    
5567    2003-08-08  Jan-Oliver Wagner <[email protected]>
5568    
5569            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
5570            the list corresponds to the "About" web page.
5571    
5572    2003-08-08  Bernhard Herzog  <[email protected]>
5573    
5574            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
5575            Make sure translated strings are recognized as one string literal.
5576    
5577            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
5578            Make sure translated strings are recognized as one string literal.
5579    
5580            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
5581            translated strings are recognized as one string literal.
5582    
5583            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
5584            sure translated strings are recognized as one string literal.
5585    
5586    2003-08-07  Bernhard Herzog  <[email protected]>
5587    
5588            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
5589            Simply delegates to the original shapestore.
5590    
5591            * test/test_derivedshapestore.py
5592            (TestDerivedShapeStore.test_raw_format): New. Test case for
5593            DerivedShapeStore.RawShapeFormat
5594    
5595    2003-08-07  Bernhard Herzog  <[email protected]>
5596    
5597            Add raw data interface to shape objects.
5598    
5599            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
5600            class to ShapefileShape which now holds shapefile specific
5601            information.
5602            (ShapefileShape.compute_bbox): Simplified to not cache any
5603            information. The way this method is used that shouldn't matter
5604            performance wise.
5605            (ShapefileShape.RawData): New. Return the shapeid which is the raw
5606            data format for shapes from shapefiles.
5607            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
5608            in the shape objects returned by a shapestore. For a
5609            ShapefileStore this is always RAW_SHAPEFILE.
5610            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
5611            method.
5612    
5613            * test/test_shapefilestore.py
5614            (TestShapefileStore.test_raw_format): New test to test the raw
5615            format feature of shapes.
5616    
5617            * Thuban/Model/layer.py: Remove the unused import of Shape from
5618            data. It was only there for interface compatibility but it's not
5619            used inside of Thuban and the generic Shape class has gone away.
5620    
5621            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
5622            the raw data format and only use an optimized version of its a
5623            shapefile.
5624    
5625    2003-08-07  Bernhard Herzog  <[email protected]>
5626    
5627            * test/test_baserenderer.py (SimpleShape): Shape class for the
5628            tests.
5629            (SimpleShapeStore.Shape): Use SimpleShape instead of
5630            Thuban.Model.data.Shape to make the tests independed of the coming
5631            changes.
5632    
5633    2003-08-07  Bernhard Herzog  <[email protected]>
5634    
5635            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
5636            (ThubanTestProgram): New classes that extend the respective
5637            classes from unittest. These new version support skipping tests
5638            under certain expected conditions. In the Thuban test suite we
5639            uses this for tests that require the optional gdal support.
5640            (run_tests): Use ThubanTestProgram instead of the unittest.main()
5641    
5642            * test/runtests.py (main): Use the new ThubanTestRunner instead of
5643            the normal one from unittest
5644    
5645            * test/test_layer.py (TestLayer.test_raster_layer): If this test
5646            is not run because gdal support isn't available report this to the
5647            runner.
5648    
5649            * test/test_baserenderer.py
5650            (TestBaseRenderer.test_raster_no_projection): Do not run this test
5651            if gdal support isn't available and report this to the runner.
5652    
5653    2003-08-06  Bernhard Herzog  <[email protected]>
5654    
5655            Rearrange the renderers a bit, partly in preparation for changes
5656            required for the postgis merge, partly to make it more testable.
5657            Also make the representation of coordinates in Shapes more
5658            consistent.
5659    
5660            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
5661            this class is now in BaseRenderer. This class is now practically
5662            only a specialization of BaseRenderer for rendering to an actual
5663            wx DC.
5664            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
5665            to get the shapetype specific rendering functions.
5666    
5667            * Thuban/UI/baserenderer.py: New file with the basic rendering
5668            logic. The code in this file is completely independend of wx.
5669            (BaseRenderer): Class with the basic rendering logic
5670    
5671            * test/test_baserenderer.py: New. Test cases for BaseRenderer
5672    
5673            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
5674            error_on_redraw to guard agains endless loops and stack overflows
5675            when there's a bug in the rendering code that raises exceptions.
5676            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
5677            rendering into a separate method _do_redraw so that error handling
5678            is a bit easier. When an exception occurs, set error_on_redraw to
5679            true. When it's true on entry to OnIdle do nothing and return
5680            immediately.
5681    
5682            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
5683            Shape object will always have the coordinates as a list of list of
5684            coordinate pairs (tuples).
5685            (Shape.compute_bbox): Adapt to new representation.
5686    
5687            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
5688            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
5689            Shape objects.
5690    
5691            * test/test_shapefilestore.py
5692            (ShapefileStoreTests.assertFloatTuplesEqual)
5693            (ShapefileStoreTests.assertPointListEquals): Rename to
5694            assertPointListEquals and change purpose to checking equality of
5695            the lists returned by Shape.Points().
5696            (TestShapefileStoreArc.test_shape)
5697            (TestShapefileStorePolygon.test_shape)
5698            (TestShapefileStorePoint.test_shape): Use the new
5699            assertPointListEquals instead of assertFloatTuplesEqual
5700    
5701            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
5702            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
5703            and change purpose to checking equality of the lists returned by
5704            Shape.Points().
5705            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
5706            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
5707            (TestLayer.test_derived_store): Use the new assertPointListEquals
5708            instead of assertFloatTuplesEqual
5709    
5710            * test/test_derivedshapestore.py
5711            (TestDerivedShapeStore.assertFloatTuplesEqual)
5712            (TestDerivedShapeStore.assertPointListEquals): Rename to
5713            assertPointListEquals and change purpose to checking equality of
5714            the lists returned by Shape.Points().
5715            (TestDerivedShapeStore.test_shape): Use the new
5716            assertPointListEquals instead of assertFloatTuplesEqual
5717    
5718    2003-08-06  Jan-Oliver Wagner <[email protected]>
5719    
5720            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
5721            a bounding box. A dialog is raised in case, no bounding box
5722            is found. This fixes bug #2043:
5723            https://intevation.de/rt/webrt?serial_num=2043
5724    
5725    2003-08-05  Bernhard Herzog  <[email protected]>
5726    
5727            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
5728            object look like a Color instantiation. Formerly it looked like a
5729            tuple.
5730    
5731            * test/test_color.py (TestColor.test_repr)
5732            (TestColor.test_equality, TestColor.test_inequality): New. test
5733            some more apects of the Color class
5734            (TestTransparent.test_repr, TestTransparent.test_hex)
5735            (TestTransparent.test_equality): New. Test cases for the
5736            Transparent object.
5737    
5738    2003-08-04  Jan-Oliver Wagner <[email protected]>
5739    
5740            * Doc/manual/thuban-manual.xml: a number of small improvements.
5741            The resulting file is the version submitted for GREAT-ER II.
5742    
5743    2003-08-01  Bernhard Herzog  <[email protected]>
5744    
5745            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
5746            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
5747            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
5748    
5749            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
5750            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
5751            (ThubanEndBusyCursor): Add doc-strings
5752    
5753    2003-08-01  Bernhard Herzog  <[email protected]>
5754    
5755            First step towards PostGIS integration. More abstraction by movin
5756            more code from the layer to the shapestore. More methods of the
5757            layer are now simply delegated to the equivalent method of the
5758            shapestore. The SHAPETYPE_* constants are now in data not in
5759            layer.
5760    
5761            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
5762            (SHAPETYPE_POINT, Shape): Move these constants and classes from
5763            layer.py to data.py
5764            (ShapefileStore.__init__): More Initialization for the new methods
5765            and functionality.
5766            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
5767            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
5768            (ShapefileStore.Shape): New methods that were formerly implemented
5769            in the layer.
5770            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
5771            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
5772            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
5773            equivalents of the new shape methods. These versions are simply
5774            delegated to the original shapstore.
5775    
5776            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
5777            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
5778            (Layer.SetShapeStore): Removed the initializatin of instance
5779            variables that were needed for the stuff that's now in
5780            ShapefileStore
5781            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
5782            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
5783            shapestore.
5784    
5785            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
5786            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
5787            instead of layer.
5788    
5789            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
5790    
5791            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
5792    
5793            * test/test_layer.py: Import the SHAPETYPE_* constants from data
5794            instead of layer.
5795            (TestLayer.test_derived_store): Remove the test for the exception
5796            when instantiating the DerivedShapeStore with an incompatible
5797            table which is now in test_derivedshapestore.py. Add some more
5798            tests of the layer methods to determine whether they work for a
5799            DerivedShapeStore as well.
5800    
5801    2003-07-31  Jonathan Coles   <[email protected]>
5802    
5803            * Doc/manual/thuban-manual.xml: Fix the list of required packages
5804            by just listing the name and where they can be found.
5805    
5806    2003-07-31  Frank Koormann   <[email protected]>
5807    
5808            * Doc/manual/thuban-manual.xml:
5809            Changed the screenshot elements to figure.
5810            Changed some variablelist elements to itemizedlist.
5811            Added section on GDAL formats.
5812    
5813    2003-07-31  Jonathan Coles   <[email protected]>
5814    
5815            * Doc/manual/thuban-manual.xml: Added a few sentences about
5816            the Fix Border Color option when generating classes.
5817    
5818    2003-07-30  Jonathan Coles   <[email protected]>
5819    
5820            * Thuban/Model/classgen.py: Add docstrings. Rename specific
5821            Ramp instances to use lower_case_style.
5822    
5823            * Thuban/UI/classgen.py: Use renamed Ramp instances.
5824            
5825            * Thuban/UI/classifier.py: Add docstrings.
5826    
5827            * Thuban/UI/dock.py: Add docstrings.
5828    
5829            * test/test_classgen.py: Use renamed Ramp instances.
5830    
5831    2003-07-30  Bernhard Herzog  <[email protected]>
5832    
5833            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
5834            was never used in Thuban.
5835    
5836    2003-07-30  Bernhard Herzog  <[email protected]>
5837    
5838            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
5839            method directly instead of going through the transient_table
5840            method. This faster because transient_table may force the copy of
5841            a DBF file into the transient database and setting a table's title
5842            doesnm't affect the title of the associated transient table, so
5843            this fixes RT #2042
5844    
5845            * Thuban/UI/main.py (__version__): Don't import the already
5846            removed show_exception_dialog.
5847    
5848    2003-07-29  Jonathan Coles   <[email protected]>
5849    
5850            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5851            Put back this method and remove the equivalent function since we
5852            are setting the exception hook from within this class (OnInit).
5853    
5854    2003-07-29  Jonathan Coles   <[email protected]>
5855    
5856            * Doc/manual/images/5_2_custom_ramp.png,
5857            Doc/manual/images/5_2_quantiles.png,
5858            Doc/manual/images/5_2_uniform_dist.png,
5859            Doc/manual/images/5_2_unique_values.png,
5860            Doc/manual/images/8_int_error.png: New screen shots.
5861    
5862            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
5863            some points, and added more screen shots.
5864    
5865    2003-07-29  Bernhard Herzog  <[email protected]>
5866    
5867            * Thuban/Model/data.py: Remove the now unused import of warnings
5868    
5869    2003-07-29  Bernhard Herzog  <[email protected]>
5870    
5871            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
5872            deprecated since before the 0.8 release and isn't used in Thuban
5873            itself anymore.
5874    
5875            * Thuban/Model/transientdb.py: Remove some unnecessary imports
5876    
5877    2003-07-29  Jonathan Coles   <[email protected]>
5878    
5879            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
5880            python exception hook here so that we are sure to catch any
5881            Thuban exception that happen during initialization.
5882    
5883            * Thuban/UI/main.py (main): Don't set the exception hook here,
5884            it will get set in ThubanApplication.OnInit.
5885    
5886    2003-07-29  Jonathan Coles   <[email protected]>
5887                                                                                
5888            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
5889            Removed and called it show_exception_dialog() so that the exception
5890            handler can be set before the class is created.
5891                                                                                
5892            * Thuban/UI/main.py (main): Install the exception handler before
5893            a ThubanApplication is created.
5894                                                                                    
5895    2003-07-29  Bernhard Herzog  <[email protected]>
5896    
5897            * po/it.po: New. Italian translation by Maurizio Napolitano
5898    
5899            * po/ru.po: New. Russian translation by Alex Shevlakov
5900    
5901    2003-07-29  Frank Koormann   <[email protected]>
5902    
5903            * Doc/manual/thuban-manual.xml: Extended section on supported
5904            projections.
5905            
5906    2003-07-29  Frank Koormann   <[email protected]>
5907    
5908            * Doc/manual/thuban-manual.xml: gaspell-checked.
5909    
5910    2003-07-29  Jonathan Coles   <[email protected]>
5911    
5912            * Doc/manual/images/3_5_legend.png: Added border to improve look
5913            on white background.
5914    
5915    2003-07-29  Jonathan Coles   <[email protected]>
5916    
5917            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
5918            descriptions for the legend toolbar.
5919    
5920            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
5921            cursor from dialog box.
5922    
5923    2003-07-28  Jonathan Coles   <[email protected]>
5924    
5925            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
5926    
5927            * Doc/manual/images/2_4_session_tree.png,
5928            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
5929            Doc/manual/images/4_2_layer_properties.png,
5930            Doc/manual/images/4_2_raster_layer_properties.png,
5931            Doc/manual/images/5_3_genclass.png,
5932            Doc/manual/images/5_classification.png,
5933            Doc/manual/images/6_projection.png,
5934            Doc/manual/images/7_1_table_view.png,
5935            Doc/manual/images/7_2_5_join.png: New screenshots.
5936    
5937    2003-07-24  Jonathan Coles   <[email protected]>
5938    
5939            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
5940    
5941    2003-07-24  Jonathan Coles   <[email protected]>
5942    
5943            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
5944            chapter on Layer Management.
5945    
5946            * Doc/manual/Makefile: New. Makefile to generate all formats for the
5947            manual and images.
5948    
5949    2003-07-24  Bernhard Herzog  <[email protected]>
5950    
5951            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
5952            it annoys lintian which warns about these files not being
5953            executable. The #! isn't necessary here since if you absolutely
5954            must execute them you can always say "python <filename>".
5955    
5956            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
5957            superfluous code to set brush and pen for point shapes
5958    
5959            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
5960            belong in viewport anyway
5961    
5962    2003-07-24  Frank Koormann   <[email protected]>
5963    
5964            * Doc/manual/thuban-manual.xml: Added section on table management.
5965    
5966    2003-07-24  Bernhard Herzog  <[email protected]>
5967    
5968            * test/runtests.py (main): Recognize the long "verbose" option
5969            correctly.
5970    
5971    2003-07-22  Jonathan Coles   <[email protected]>
5972    
5973            * Doc/manual/thuban-manual.xml: Continue to write first revision
5974            of the manual.
5975    
5976            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
5977            with Begin/EndDrawing() calls to ensure we aren't doing to
5978            many updates to the dc during rendering.
5979            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
5980            a pen and brush argument so they need to be passed to the function.
5981    
5982            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
5983            Calculates the minimum and maximum scale values. Factored out
5984            of set_view_transform so that it could be used to zoom all the
5985            way into a single point.
5986            (ViewPort.set_view_transform): Call calc_min_max_scales().
5987            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
5988            if only a single point is selected.
5989    
5990            * Doc/manual/images/1_2_legend_close.png,
5991            Doc/manual/images/1_2_legend_dock.png,
5992            Doc/manual/images/1_2_mainwindow.png,
5993            Doc/manual/images/1_2_mainwindow.ps,
5994            Doc/manual/images/1_2_mainwindow.sk,
5995            Doc/manual/images/3_2_fullextent.png,
5996            Doc/manual/images/3_2_fulllayerextent.png,
5997            Doc/manual/images/3_2_fullshapeextent.png,
5998            Doc/manual/images/3_2_pan.png,
5999            Doc/manual/images/3_2_zoomin.png,
6000            Doc/manual/images/3_2_zoomout.png,
6001            Doc/manual/images/3_3_identify.png,
6002            Doc/manual/images/3_3_label.png,
6003            Doc/manual/images/3_5_invisible.png,
6004            Doc/manual/images/3_5_movedown.png,
6005            Doc/manual/images/3_5_moveup.png,
6006            Doc/manual/images/3_5_props.png,
6007            Doc/manual/images/3_5_tobottom.png,
6008            Doc/manual/images/3_5_totop.png,
6009            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
6010    
6011    2003-07-18  Bernhard Herzog  <[email protected]>
6012    
6013            * Thuban/UI/messages.py (MAP_REPLACED): New message.
6014    
6015            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
6016            after the new map has been assigned
6017    
6018            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
6019            Delegate MAP_REPLACED to the canvas too
6020            (MainWindow.prepare_new_session): Removed. Thanks to the new
6021            MAP_REPLACED message it's no longer needed
6022            (MainWindow.OpenSession, MainWindow.NewSession):
6023            prepare_new_session has been removed.
6024    
6025            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
6026            MAP_REPLACED so that we can close the dialog if a new map is set.
6027            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
6028            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
6029            dialog
6030    
6031            * test/test_viewport.py (SimpleViewPortTest)
6032            (SimpleViewPortTest.test_default_size): Add doc-strings
6033            (ViewPortTest.setUp): Bind map to self.map so we can use it in
6034            tests. Subscribe to MAP_REPLACED messages too.
6035            (ViewPortTest.tearDown): No need to explicitly unsubscribe
6036            (ViewPortTest.test_set_map): New test for the SetMap method.
6037    
6038    2003-07-18  Bernhard Herzog  <[email protected]>
6039    
6040            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
6041            Move this test from ViewPortTest.setUp to this new separate test
6042            case. setUp is not the place for the actual tests.
6043            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
6044            more of the test from setUp to the new test test_inital_settings.
6045            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
6046            (ViewPortTest.test_proj_conv): Split test_proj_conv into
6047            test_win_to_proj and test_proj_to_win and make the tests easier to
6048            understand
6049            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
6050            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
6051            (ViewPortTest.test_unprojected_rect_around_point)
6052            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
6053            Reformat to increase readability.
6054    
6055    2003-07-18  Bernhard Herzog  <[email protected]>
6056    
6057            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
6058    
6059    2003-07-18  Bernhard Herzog  <[email protected]>
6060    
6061            * test/runtests.py: The test suite can now be run without an X
6062            connection. To make sure this remains true, remove the DISPLAY
6063            environment variable so that an error occurs if the wxGTK is
6064            imported accidentally
6065    
6066    2003-07-18  Bernhard Herzog  <[email protected]>
6067    
6068            * Thuban/UI/viewport.py: Remove unused imports
6069    
6070            * Thuban/UI/view.py: Remove unused imports
6071    
6072    2003-07-18  Bernhard Herzog  <[email protected]>
6073    
6074            * test/test_export.py Remove unused imports. The OutputTransform
6075            function is now in viewport.py and is called output_transform
6076            (TestScalebar.test_output_transform)
6077            (TestScalebar.test_OutputTransform): Renamed to
6078            test_output_transform and updated to use output_transform instead
6079            of OutputTransform
6080    
6081            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
6082            renamed.
6083            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
6084            renamed to output_transform
6085    
6086            * Thuban/UI/viewport.py (OutputTransform, output_transform):
6087            Rename to output_transform
6088    
6089    2003-07-18  Bernhard Herzog  <[email protected]>
6090    
6091            * Thuban/Model/layer.py (Layer.__init__): Rename
6092            classificationField to classificatin_column and init it here so
6093            that it can be used in SetClassificationColumn
6094            (Layer.GetClassificationColumn, Layer.GetClassificationField):
6095            Rename to GetClassificationColumn.
6096            (Layer.SetClassificationColumn, Layer.SetClassificationField):
6097            Rename to SetClassificationColumn and issue a LAYER_CHANGED
6098            message if the column changes.
6099            (Layer._classification_changed, Layer.ClassChanged): Rename to
6100            _classification_changed. Update the callers.
6101            (Layer.SetShapeStore): Further field->column renames.
6102    
6103            * Thuban/Model/load.py (SessionLoader.start_classification)
6104            (SessionLoader.start_clpoint): Updates because of
6105            field->column method name changes in the Layer class
6106    
6107            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
6108            because of field->column method name changes in the Layer class
6109    
6110            * Thuban/UI/classifier.py (Classifier.__init__)
6111            (Classifier._OnTry, Classifier._OnRevert): Updates because of
6112            field->column method name changes in the Layer class
6113    
6114            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
6115            because of field->column method name changes in the Layer class
6116    
6117            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
6118            of field->column method name changes in the Layer class
6119    
6120            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
6121            (SaveSessionTest.testClassifiedLayer): Update because of
6122            field->column method name changes in the Layer class
6123    
6124            * test/test_layer.py (SetShapeStoreTests.setUp)
6125            (SetShapeStoreTests.test_sanity): Update because of field->column
6126            method name changes in the Layer class
6127            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
6128            (TestLayerModification.test_sanity)
6129            (TestLayerModification.test_initial_settings): remove unsued code
6130            and rename to test_sanity.
6131            (TestLayerModification.test_set_classification): New test for
6132            SetClassification and SetClassificationField.
6133    
6134    2003-07-18  Bernhard Herzog  <[email protected]>
6135    
6136            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
6137            the non-fixed values as well. The old test would have accepted a
6138            fixed ramp that only returnes the fixed properties
6139    
6140    2003-07-17  Jonathan Coles   <[email protected]>
6141    
6142            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
6143            shots for the manual. The XCF file is the source image and
6144            has additional layers to support changes.
6145    
6146            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
6147    
6148            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
6149            Return both the new class and the field name.
6150    
6151            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
6152            fit the map to the window as this changes any zoom level that
6153            the user may have set.
6154    
6155    2003-07-16  Jonathan Coles   <[email protected]>
6156    
6157            * Thuban/Model/classgen.py (generate_singletons,
6158            generate_uniform_distribution, generate_quantiles): Remove
6159            fixes parameter, but maintain the same functionality by having
6160            the calling function pass a FixedRamp object for the ramp.
6161            (FixedRamp): New. Adapts a ramp to have fixed property values.
6162    
6163            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
6164            (Classification): Inherit from Publisher.
6165            (Classification.__init__): Remove the layer parameter.
6166            Classifications no longer need to have a parent layer.
6167            (Classification.GetField, Classification.GetFieldType,
6168            Classification.SetFieldInfo): Removed. The field name is stored
6169            in the layer, and the type can be retreived by calling
6170            Layer.GetFieldType().
6171            (Classification._set_layer, Classification.GetLayer): Removed.
6172            Classifications no longer have a parent layer.
6173    
6174            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
6175            classification.
6176            (Layer.SetShapeStore): Reset the classification first while
6177            we still have the old shape store to work with.
6178            (Layer.GetClassificationField, Layer.SetClassificationField):
6179            New. Method for getting/setting the field to classify on.
6180            (Layer.SetClassification): Simplified now that the layer
6181            simply has to hold a reference to the classification and not
6182            tell the classification who owns it.
6183            Fixes RTbug #2023.
6184    
6185            * Thuban/Model/load.py (SessionLoader.start_classification):
6186            Set the field name on the layer, not the classification.
6187    
6188            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
6189            classification is modified.
6190    
6191            * Thuban/Model/save.py (SessionSaver.write_classification):
6192            Get the field name and type from the layer.
6193    
6194            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
6195            parameter records to rows and add docstring. Fixes RTbug #1997.
6196    
6197            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
6198            ramp when we need to fix certain values of a ramp rather than
6199            using the old fixes parameter. Fixes RTbug #2024.
6200    
6201            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
6202            parameter.
6203            (ClassTable.Reset): Add fieldType parameter and use it, rather
6204            than asking the classification.
6205            (Classifier.__init__): Remember the original class's field
6206            and ask the layer for the field type, rather than the classification.
6207            (Classifier.__SetGridTable): Retrieve the field and field type
6208            for the table because they are not in the classification.
6209            (Classifier._OnTry, Classifier._OnRevert): Set the classification
6210            field on the layer in addition to the classification itself.
6211    
6212            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
6213            classification field from layer.
6214    
6215            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
6216            classification field from layer. Split up tests and remove
6217            *-imports. Fixes RTbug #1992.
6218    
6219            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
6220    
6221            * test/test_classification.py
6222            (TestClassification.test_classification): Remove tests for methods
6223            that no longer exist.
6224    
6225            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
6226            __init__ no longer has a field parameter, use SetClassificationField.
6227            (SetShapeStoreTests.test_sanity): Use layer object to get class
6228            field info.
6229    
6230            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
6231            SetClassificationField on layer to set class field info.
6232    
6233            * test/test_viewport.py: Renamed from test/test_view.py.
6234    
6235    2003-07-16  Jan-Oliver Wagner <[email protected]>
6236    
6237            * Doc/manual/thuban-manual.xml: Added authors and an initial
6238            coarse structure.
6239    
6240    2003-07-15  Bernhard Herzog  <[email protected]>
6241    
6242            * test/support.py (FloatComparisonMixin): This is a mix-in class
6243            and therefore should not be derived from any other class.
6244    
6245            * test/test_range.py (RangeTest): FloatComparisonMixin is a
6246            mix-in, so derive from TestCase as well.
6247    
6248    2003-07-15  Bernhard Herzog  <[email protected]>
6249    
6250            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
6251            draw_func handling a bit to remove one layer of indirection. This
6252            makes the renderer about 10% faster in the non-classifying case
6253            and the code a bit cleaner
6254            (MapRenderer.draw_point_shape): Add the pen and brush parameters
6255            and set them in the dc. Now the draw_point_shape method and
6256            wxproj's draw_polygon_shape function have basically the same
6257            signature so that both can be directly used as draw_func
6258    
6259    2003-07-15  Bernhard Herzog  <[email protected]>
6260    
6261            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
6262            string values (in addition to the labels) as UTF 8
6263    
6264            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
6265            values if the field type is string
6266    
6267            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
6268            saving a session with non-ascii string classification values.
6269    
6270            * test/test_load.py (TestClassification.file_contents)
6271            (TestClassification.test): Check for non-ascii values in string
6272            classifications
6273    
6274    2003-07-14  Jonathan Coles   <[email protected]>
6275    
6276            * test/test_view.py: New. Tests for ViewPort.
6277    
6278    2003-07-14  Frank Koormann   <[email protected]>
6279    
6280            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
6281            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
6282    
6283            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
6284            unicode strings from session file: session title, map title and
6285            projection name.
6286            
6287    2003-07-10  Jonathan Coles   <[email protected]>
6288    
6289            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
6290            drag_stop, not drag_move when the mouse is released.
6291    
6292    2003-07-10  Jonathan Coles   <[email protected]>
6293    
6294            The most important part of this is the seperation of view.py into
6295            two pieces. viewport.py now has a class called ViewPort which
6296            contains all the non-wx parts of view.py and can therefore be
6297            tested. view.py contains only the wx-specific parts and is fairly
6298            simple.
6299    
6300            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
6301            RTTbug #1992.
6302            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
6303            RTTbug #1992.
6304    
6305            * Thuban/Model/classgen.py (generate_singletons,
6306            generate_uniform_distribution, generate_quantiles):
6307            Added 'fixes' parameter so that property attributes can
6308            be held constant over the generated classification groups.
6309            (CustomRamp.GetProperties): Remove unused variables.
6310    
6311            * Thuban/Model/map.py (Map.SetProjection): Send the old
6312            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
6313            event.
6314    
6315            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
6316            parameter which is a list of records that restricts which
6317            records are saved. Fixes RTbug #1997.
6318    
6319            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
6320            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
6321    
6322            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
6323            to allow the user to fix line color/width on generated groups.
6324            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
6325            functions to optionally fix group properties.
6326    
6327            * Thuban/UI/main.py (main): Set exception hook to the
6328            ShowExceptionDialog. Fixes RTbug #1993.
6329    
6330            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
6331            the table window when it is selectd to be shown.
6332    
6333            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
6334            Export Selection button and move the export buttons underneath
6335            the table.
6336            (QueryTableFrame.UpdateStatusText): Added event argument so
6337            that it can respond to grid selection events. The status text
6338            is now updated even when the table is not associated with a
6339            layer as was previously assumed.
6340            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
6341            UpdateStatusText responds to these events.
6342            (QueryTableFrame.OnSaveAs): Renamed to doExport.
6343            (QueryTableFrame.doExport): Helper function that saves the
6344            entire table, or selected rows, to a file.
6345            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
6346            Respond to export button events and call doExport.
6347    
6348            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
6349            the function doesn't return NULL without first setting a Python
6350            Error.
6351    
6352            * test/runtests.py (main): Only print "Unknown option" for
6353            unsupported options.
6354    
6355            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
6356            optional epsilon argument to specify floating point accuracy.
6357            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
6358            for each item test.
6359    
6360            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
6361            tests for saving selected records.
6362    
6363            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
6364            tests for saving selected records.
6365    
6366            * test/test_map.py (TestMapWithContents.test_set_projection):
6367            MAP_PROJECTION_CHANGED events send the old projection.
6368    
6369            * test/test_session.py
6370            (TestSessionWithContent.test_forward_map_projection):
6371            MAP_PROJECTION_CHANGED events send the old projection.
6372    
6373            * test/test_table.py (TableTest): Update tests to use non-deprecated
6374            functions.
6375    
6376    2003-07-08  Bernhard Herzog  <[email protected]>
6377    
6378            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
6379            constants in the column objects are the standard ones defined in
6380            the table module.
6381    
6382            * test/test_transientdb.py
6383            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
6384            exporting transient tables as DBF works. This should catch the bug
6385            just fixed in TransientTableBase.Width.
6386    
6387    2003-07-08  Bernhard Herzog  <[email protected]>
6388    
6389            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
6390            interpolated colors correctly.
6391    
6392            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
6393            New. Test case for the fix in classgen.py
6394    
6395    2003-07-08  Bernhard Herzog  <[email protected]>
6396    
6397            * test/runtests.py (main): Make the default output less verbose
6398            and add a verbosity option (-v) to get the old output
6399    
6400    2003-07-08  Bernhard Herzog  <[email protected]>
6401    
6402            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
6403            0.9.
6404    
6405            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
6406            New. Return the join type
6407    
6408            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
6409            DTD
6410            (SessionSaver.write_data_containers): Save the join type for
6411            joined tables
6412    
6413            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
6414            namespace
6415            (SessionLoader.start_jointable): Handle the jointype attribute
6416    
6417            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
6418            as of Thuban 0.8. These are now tests to determine whether Thuban
6419            can still read files generated by Thuban 0.8
6420    
6421            * test/test_load.py (LoadSessionTest.dtd)
6422            (TestSingleLayer.file_contents)
6423            (TestLayerVisibility.file_contents, TestLabels.file_contents)
6424            (TestLayerProjection.file_contents)
6425            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
6426            (TestJoinedTable.file_contents)
6427            (TestLoadError.file_contents): Update for new DTD
6428            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
6429            for new join type attribute
6430    
6431            * test/test_save.py (SaveSessionTest.dtd)
6432            (SaveSessionTest.testEmptySession)
6433            (SaveSessionTest.testSingleLayer)
6434            (SaveSessionTest.testLayerProjection)
6435            (SaveSessionTest.testRasterLayer)
6436            (SaveSessionTest.testClassifiedLayer)
6437            (SaveSessionTest.test_dbf_table)
6438            (SaveSessionTest.test_joined_table): Update for new DTD
6439            (SaveSessionTest.test_joined_table): Add test for new join type
6440            attribute
6441    
6442    2003-07-04  Bernhard Herzog  <[email protected]>
6443    
6444            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
6445            function for table_to_dbf
6446            (table_to_dbf): Deal with names longer than the 10 character limit
6447    
6448            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
6449            doc-string
6450            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
6451            long column names
6452    
6453    2003-07-03  Bernhard Herzog  <[email protected]>
6454    
6455            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
6456    
6457    2003-07-03  Bernhard Herzog  <[email protected]>
6458    
6459            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
6460            for the Thuban manual and README with some basic information about
6461            the manual
6462    
6463    2003-07-03  Bernhard Herzog  <[email protected]>
6464    
6465            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
6466            Update doc-string
6467            (TransientJoinedTable.create): Do not modify the column objects of
6468            the input tables in place and copy all columns of the input tables
6469            into the joined table after all.
6470    
6471            * test/test_transientdb.py
6472            (TestTransientTable.test_transient_joined_table_same_column_name):
6473            Update to reflect the new behavior
6474            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
6475            Update to reflect the new behavior
6476            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
6477            New test case for a bug which modified the column objects in place
6478    
6479    2003-07-02  Jonathan Coles   <[email protected]>
6480    
6481            * Thuban/Model/classgen.py (generate_singletons,
6482            generate_uniform_distribution, generate_quantiles,
6483            GenQuantiles0): Make sure maxValue isn't less than
6484            one, otherwise we could divide by zero.
6485    
6486            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
6487            ClassGenTest.doClassSingleTest): Call doBoundsTest to
6488            check the end classification groups against the
6489            proper property values.
6490            (ClassGenTest.doBoundsTest): New. Checks the first and
6491            last classification groups to make sure their properties
6492            are the correct upper and lower bounds for a color ramp.
6493    
6494    2003-07-02  Jonathan Coles   <[email protected]>
6495    
6496            * Thuban/Model/classgen.py (generate_singletons,
6497            generate_uniform_distribution, generate_quantiles,
6498            GenQuantiles0): The denominator was one to high when
6499            calculating the index for the ramp causing the index
6500            to never to reach one.
6501    
6502    2003-07-02  Jonathan Coles   <[email protected]>
6503    
6504            Changed the singature of ClassGroupRange.__init__ and
6505            ClassGroupRange.SetRange() so that the min/max values are
6506            passed as a tuple. This makes a better calling scheme for
6507            when a Range object is passed instead.
6508    
6509            * Thuban/Model/classgen.py: Fixed parameters to
6510            ClassGroupRange constructor.
6511    
6512            * Thuban/Model/classification.py (ClassGroupRange.__init__):
6513            Consolidate the min/max parameters into a single _range which
6514            can either be a tuple or a Range object.
6515            (ClassGroupRange.SetRange): Consolidate the min/max parameters
6516            into a single _range which can either be a tuple or a Range object.
6517    
6518            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
6519            call to ClassGroupRange constructor to use a tuple.
6520    
6521            * Thuban/Model/layer.py (Layer.SetClassification): Switch
6522            the classification instance variable to the new class
6523            before calling _set_layer otherwise subscribers to a
6524            LAYER_CHANGED event will not see any difference.
6525    
6526            * test/test_classification.py: Fix tests of ClassGroupRange
6527            so that they use the new signature.
6528    
6529            * test/test_load.py: Fix use of ClassGroupRange so that it
6530            uses the new signature.
6531    
6532            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
6533            uses the new signature.
6534    
6535            * test/test_save.py: Fix use of ClassGroupRange so that it
6536            uses the new signature.
6537    
6538    
6539    2003-07-01  Jonathan Coles   <[email protected]>
6540    
6541            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
6542            Import used objects/class from color.
6543            (generate_singletons): We don't
6544            need the numGroups parameter anymore because we are using
6545            the new ramps with GetProperties().
6546            (generate_uniform_distribution): Use new ramp method
6547            GetProperties().
6548            (generate_quantiles, GenQuantiles0): Use new ramp method
6549            GetProperties().
6550            (CustomRamp.SetNumGroups): Removed. The ramps now map
6551            a value from 0 to 1 to class properties so the number
6552            of groups is not needed ahead of time.
6553            (CustomRamp.next): Removed. CustomRamp does not support
6554            interation anymore.
6555            (CustomRamp.GetProperties): Returns a ClassGroupProperties
6556            object based on the index value from 0 to 1 that is
6557            passed to it.
6558            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
6559            Made into instances of Monochromatic class instread of
6560            deriving from it.
6561            (HotToCold.SetNumGroups): Removed. See CustomRamp.
6562            (HotToCold.next): Removed. See CustomRamp.
6563    
6564            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
6565            (Classification.SetField, Classification.SetFieldType):
6566            Replaced with SetFieldInfo.
6567            (Classification.SetFieldInfo): New. Does a better job of
6568            what SetField and SetFieldType used to do by combining
6569            their function since they should really always be done
6570            at the same time.
6571            (Classification.SetLayer): Renamed to _set_layer.
6572            (Classification._set_layer): Should only be called from
6573            Layer's SetClassification. This does not cause a recursive
6574            call as SetLayer did because we know that Layer knows about
6575            the classification.
6576    
6577            * Thuban/Model/color.py: Fixes RTbug #1971.
6578            (_Transparent): Renamed from Transparent so it doesn't
6579            conflict with the module variable.
6580            (Transparent, Black): Renamed from Color.Transparent,
6581            Color.Black so they are not class variables.
6582    
6583            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
6584            (Layer.Destroy): We don't need to call SetClassification
6585            anymore to clear out the back reference in the classifcation
6586            to the layer. It's better to set it to None using _set_layer,
6587            and we won't be creating another clas object too.
6588            (Layer.SetClassification): Classification._set_layer is not
6589            recursive so remove all the locking variables. Also clean
6590            up the code so that it remains unchanged if something fails.
6591    
6592            * Thuban/Model/load.py: Fixes RTbug #1971.
6593            (SessionLoader.start_classification): Call
6594            Classification.SetFieldInfo().
6595    
6596            * Thuban/Model/save.py: Removed import of Color which wasn't
6597            being used.
6598    
6599            * Thuban/UI/classgen.py: Fixes RTbug #1972.
6600            (ClassGenDialog.__init__): Color ramps are now instances
6601            already so we don't need to create any new objects.
6602            (ClassGenDialog.OnOK): Check for numGroups is no longer
6603            necessary because we never use it.
6604    
6605            * Thuban/UI/classifier.py: Fixes RTbug #1971.
6606            (Classifier.__BuildClassification, Classifier.__SetGridTable):
6607            Call Classification.SetFieldInfo() instead of SetFieldType.
6608    
6609            * Thuban/UI/renderer.py: Fixes RTbug #1971.
6610    
6611            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
6612            (MapCanvas.__init__): Subscribe to the idle time event. Set
6613            background color to white.
6614            (MapCanvas.OnPaint): Set a flag indicating that we should
6615            render the map during idle time. If we already have a bitmap
6616            just draw it now.
6617            (MapCanvas.OnIdle): New. Render the map only during idle time.
6618            This also fixes a problem with the busy cursor under gtk.
6619    
6620            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
6621            Fix calls to generate_singletons because the signature changed.
6622    
6623            * test/test_classification.py: Fix color references and
6624            change calls to Classification.[SetField|SetFieldType] to
6625            SetFieldInfo.
6626    
6627            * test/test_load.py: Fix color references.
6628    
6629            * test/test_load_0_2.py: Fix color references.
6630    
6631            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
6632            Change calls to Classification.[SetField|SetFieldType] to
6633            SetFieldInfo.
6634    
6635    2003-07-01  Frank Koormann   <[email protected]>
6636    
6637            MERGE from the greater-ms3 branch.
6638    
6639            * test/test_transientdb.py
6640            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
6641            New. Test join of two tables with partly equal column names.
6642    
6643            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
6644            If duplicates in left and right tables column names are found,
6645            append '_' (underscores) to the name until it is unique.
6646            Create always new internal names for the resulting table and reference
6647            columns in the join statement with <table>.<column>
6648    
6649    2003-07-01  Bernhard Herzog  <[email protected]>
6650    
6651            * test/test_transientdb.py
6652            (TestTransientTable.test_transient_joined_table_same_column_name):
6653            New. Test whether joining on columns with the same names in both
6654            tables works.
6655            
6656            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
6657            sure to use the right internal names even when joining on field
6658            with the same names in both tables. Also, detect duplicate names
6659            in the joined table correctly.
6660    
6661    2003-07-01  Frank Koormann   <[email protected]>
6662    
6663            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
6664            Reverse List of layers to render in same order as in desktop legend.
6665    
6666    2003-06-30  Jonathan Coles   <[email protected]>
6667    
6668            * Thuban/version.py (make_tuple): Takes a version string
6669            and splits it into a tuple of at most three integers.
6670            Used make_tuple() to make tuple versions of the version
6671            numbers.
6672    
6673            * Thuban/UI/about.py: Add Thuban email addresses.
6674    
6675    2003-06-30  Jonathan Coles   <[email protected]>
6676    
6677            * Thuban/version.py: SQLite/PySQLite version dependencies
6678            were too high.
6679    
6680    2003-06-30  Jonathan Coles   <[email protected]>
6681    
6682            * Thuban/version.py: Update version to 0.8.1
6683            
6684            * MANIFEST.in: Added Projections so that default.proj is
6685            included.
6686    
6687    2003-06-26  Jonathan Coles   <[email protected]>
6688    
6689            New About box with lots more information including library
6690            versions and credits. More/better version checking before
6691            Thuban starts.
6692    
6693            * Thuban/UI/about.py: New. New About box that displays
6694            library version information and credits.
6695    
6696            * Thuban/version.py: Added new 'versions' dictionary which
6697            contains the verions of various libraries which are checked
6698            when the module loads.
6699            (verify_versions): Check all version numbers and returns
6700            a list of errors.
6701    
6702            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
6703            Reset the status of the buttons as the situation warrants,
6704            but in a better more reliable way by not relying on the
6705            current status to determine what needs to change.
6706    
6707            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
6708            (verify_versions): Remove most of the code since it is
6709            now in Thuban.version.verify_versions.o
6710    
6711            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
6712            About box in Thuban.UI.about.
6713    
6714            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
6715            Returns the version of gdal library being used as a string.
6716    
6717            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
6718            Removed.
6719            (get_proj_version): Return the version of PROJ that the file
6720            was compiled with.
6721            (get_gtk_version): Return th version of GTK that the file
6722            was compiled with.
6723    
6724    2003-06-25  Jonathan Coles   <[email protected]>
6725    
6726            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
6727            of the SelectPropertiesDialog should be self so the window
6728            appears on top.
6729            (ClassGroupPropertiesCtrl.DoEdit): The parent
6730            of the SelectPropertiesDialog should be self so the window
6731            appears on top.
6732    
6733            * Thuban/UI/resource.py: Cleaned up how we determine file
6734            extensions.
6735            (GetImageResource): Return an wxImage from our Resources.
6736    
6737    2003-06-24  Jonathan Coles   <[email protected]>
6738    
6739            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
6740            Check that a layer has a classification before trying
6741            to get it. Raster layers don't have classifications.
6742    
6743    2003-06-23  Jonathan Coles   <[email protected]>
6744            
6745            * setup.py: Add Resources/XML to resource list.
6746        
6747    2003-06-23  Jonathan Coles   <[email protected]>
6748    
6749            * setup.cfg: Fix copyright dates
6750        
6751    2003-06-23  Jonathan Coles   <[email protected]>
6752    
6753            * MANIFEST.in: Update with Resources/XML
6754    
6755            * setup.py: Don't include Locale resources yet as we don't
6756            have any and it causes problems building the distribution
6757            for Windows. Update version to 0.8.0.
6758    
6759            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
6760    
6761            * Thuban/UI/mainwindow.py: Add blank line at the end because
6762            file was not being read correctly building the Windows
6763            distribution.
6764    
6765    2003-06-23  Jonathan Coles   <[email protected]>
6766    
6767            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
6768    
6769            * Thuban/version.py: Temporarily update longversion for
6770            the 0.8 release so that it doesn't have the cvs revision.
6771    
6772    2003-06-23  Jonathan Coles   <[email protected]>
6773    
6774            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
6775            to make sure that we don't create reentrant possibilities with
6776            wxYield.
6777    
6778            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
6779            directly to avoid the wxSafeYield() call which generates an
6780            OnPaint event causing infinite recursion. Don't try to catch
6781            exception anymore. This was for before there were limits on map
6782            scaling.
6783    
6784    2003-06-23  Bernhard Herzog  <[email protected]>
6785    
6786            Bug fix for RT #1961:
6787    
6788            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
6789            Register DerivedShapestores with the session
6790    
6791            * Thuban/Model/session.py (Session.Tables): Make sure each table
6792            is only listed once.
6793    
6794            * test/test_load.py (TestJoinedTable.test): Add check_format call.
6795            Update file contents to match the one written out.
6796    
6797    2003-06-20  Bernhard Herzog  <[email protected]>
6798    
6799            * test/xmlsupport.py (SaxEventLister.startElementNS)
6800            (SaxEventLister.endElementNS): Do not include the qname. Python
6801            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
6802            is (presumably incorrectly) None, whereas it's a string with the
6803            element name in the later versions.
6804    
6805            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
6806            (TestEventList.test_even_list_namespace): Update tests to reflect
6807            the new behaviour
6808            (TestEventList.test_even_list_id_normalization): Fix doc-string
6809    
6810    2003-06-20  Jonathan Coles   <[email protected]>
6811    
6812            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
6813            by deriving classes to determine if that layer supports shapes.
6814            (Layer): Override HasShapes and return true.
6815    
6816            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
6817            instead of a direct call to wx[Begin|End]CusyCursor().
6818            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
6819            table data.
6820    
6821            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
6822            New. Wrappers around the wxWindows functions that allow us to
6823            make additional calls such as wxYield which gives the native
6824            system a chance to update the cursor correctly.
6825    
6826            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
6827            instead of a direct call to wx[Begin|End]CusyCursor().
6828    
6829            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
6830            instead of a direct call to wx[Begin|End]CusyCursor().
6831            (MapCanvas.find_shape_at): Check if the current search layer
6832            support shapes, otherwise go on to the next layer.
6833    
6834            * test/test_layer.py: Add tests in each type of layer for
6835            HasClassification() and HasShapes()
6836    
6837    2003-06-20  Jonathan Coles   <[email protected]>
6838    
6839            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
6840            turning on the busy cursor to allow the system to change the
6841            cursor before we begin painting. This fixes a problem that
6842            was occuring only under GTK. Fixes RTbug #1840.
6843    
6844    2003-06-20  Bernhard Herzog  <[email protected]>
6845    
6846            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
6847            version.
6848    
6849            * Thuban/Model/save.py (sort_data_stores): New. Make topological
6850            sort of the data sources so they can be written with sources that
6851            data sources that depend on other data sources come after the
6852            sources they depend on.
6853            (SessionSaver.__init__): Add idmap instance variable to map from
6854            objects to the ids used in the file.
6855            (SessionSaver.get_id, SessionSaver.define_id)
6856            (SessionSaver.has_id): New. Methods to manage the idmap
6857            (SessionSaver.write): Use thuban-0.8.dtd
6858            (SessionSaver.write_session): Add a namespace on the session and
6859            write out the data sources before the maps.
6860            (SessionSaver.write_data_containers): New. Write the data
6861            containers.
6862            (SessionSaver.write_layer): Layer elements now refer to a
6863            shapestore and don't contain filenames anymore.
6864    
6865            * Thuban/Model/load.py (LoadError): Exception class to raise when
6866            errors in the files are discovered
6867            (SessionLoader.__init__): Define dispatchers for elements with a
6868            thuban-0.8 namespace too.
6869            (SessionLoader.check_attrs): New helper method to check and
6870            convert attributes
6871            (AttrDesc): New. Helper class for SessionLoader.check_attrs
6872            (SessionLoader.start_fileshapesource)
6873            (SessionLoader.start_derivedshapesource)
6874            (SessionLoader.start_filetable, SessionLoader.start_jointable):
6875            Handlers for the new elements in the new fileformat
6876            (SessionLoader.start_layer): Handle the shapestore attribute in
6877            addition to filename.
6878            (SessionLoader.start_table, SessionLoader.end_table): Removed.
6879            They were never used in the old formats and aren't needed for the
6880            new.
6881    
6882            * Thuban/Model/session.py (Session.DataContainers): New method to
6883            return all "data containers", i.e. shapestores and tables
6884    
6885            * test/xmlsupport.py (SaxEventLister.__init__)
6886            (SaxEventLister.startElementNS, sax_eventlist): Add support to
6887            normalize IDs.
6888    
6889            * test/test_xmlsupport.py
6890            (TestEventList.test_even_list_id_normalization): New test case for
6891            id normalization
6892    
6893            * test/test_load.py (LoadSessionTest.check_format): Use ID
6894            normalization
6895            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
6896            class atrributes used for ID normalization
6897            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
6898            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
6899            file format
6900            (TestJoinedTable): New test for loading sessions with joined
6901            tables.
6902            (TestLoadError): New. Test whether missing required attributes
6903            cause a LoadError.
6904    
6905            * test/test_save.py (SaveSessionTest.thubanids)
6906            (SaveSessionTest.thubanidrefs): New class attributes for ID
6907            normalization in .thuban files.
6908            (SaveSessionTest.compare_xml): Use id-normalization.
6909            (SaveSessionTest.testEmptySession)
6910            (SaveSessionTest.testLayerProjection)
6911            (SaveSessionTest.testRasterLayer)
6912            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
6913            (SaveSessionTest.testLayerProjection): The filename used was the
6914            same as for testSingleLayer. Use a different one.
6915            (SaveSessionTest.test_dbf_table)
6916            (SaveSessionTest.test_joined_table): New test cases for saving the
6917            new data sources structures.
6918            (TestStoreSort, MockDataStore): Classes to test the sorting of the
6919            data stores for writing.
6920    
6921            * test/runtests.py: Add CVS keywords
6922    
6923    2003-06-20  Jonathan Coles   <[email protected]>
6924    
6925            * test/test_session.py
6926            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
6927            Use the cultural_landmark-point.dbf file for the store so that
6928            the table rows and shape count match.
6929    
6930    2003-06-20  Jonathan Coles   <[email protected]>
6931    
6932            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
6933            an exception if the number of shapes is different from the
6934            number of rows in the table. Address RTbug #1933.
6935    
6936            * test/test_layer.py (TestLayer.test_derived_store): Add
6937            a test for the new exception in DerivedShapeStore.__init__.
6938    
6939            * test/support.py (FloatTestCase): Removed since there is
6940            already FloatComparisonMixin. Fixes RTbug #1954.
6941            (FloatComparisonMixin.assertFloatEqual): Include test for
6942            infinity that was part of FloatTestCase.
6943    
6944            * test/test_range.py (RangeTest): Inherit from
6945            support.FloatComparisonMixin now that we don't have
6946            support.FloatTestCase.
6947    
6948    2003-06-20  Bernhard Herzog  <[email protected]>
6949    
6950            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
6951            the implementation in xmlsupport instead.
6952            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
6953    
6954            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
6955            of test_save
6956    
6957    2003-06-20  Bernhard Herzog  <[email protected]>
6958    
6959            * test/test_load.py (LoadSessionTest.check_format): New helper
6960            method to make sure the test files we load might have been written
6961            by the current thuban version.
6962            (ClassificationTest.TestLayers, TestSingleLayer.test)
6963            (TestLayerVisibility.test, TestClassification.test)
6964            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
6965            Add check_format() calls and fix the thuban data to match the data
6966            that would be written by saving the session loaded from it.
6967    
6968            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
6969            the same class and function in test_save.
6970    
6971            * test/test_xmlsupport.py (TestEventList): New. test cases for
6972            sax_eventlist
6973    
6974    2003-06-20  Bernhard Herzog  <[email protected]>
6975    
6976            * Resources/XML/thuban.dtd: Add comment about which versions of
6977            Thuban are covered by this DTD
6978            (map): Fix content model for layers and raster layers. There can
6979            be any number or layers and raster layers in any order.
6980    
6981    2003-06-20  Jonathan Coles   <[email protected]>
6982    
6983            This is mainly about fixing RTbug #1949.
6984    
6985            * Thuban/Model/classification.py: Remove "from __future__"
6986            import statement since python 2.2 is the earliest supported
6987            version.
6988    
6989            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
6990            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
6991            depending on the units this projection *forwards* into.
6992    
6993            * Thuban/Model/save.py (SessionSaver.write_classification):
6994            Remove unnecessary use of lambdas and nested functions.
6995    
6996            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
6997            adjustment here if the map projection uses degrees.
6998    
6999            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
7000            scale adjust code since it is now done before calling
7001            this method. Don't do anything if the map projection
7002            is None.
7003    
7004    2003-06-19  Bernhard Herzog  <[email protected]>
7005    
7006            Move version specific load tests to their own file.
7007    
7008            * test/test_load.py: Expand the doc-string to explain a bit how to
7009            handle file format changes.
7010            (TestClassification.test): Update the docstring as this test is
7011            not about Thuban 0.2 anymore.
7012    
7013            * test/test_load_0_2.py: New file with the load tests for thuban
7014            files created with Thuban 0.2 and earlier.
7015    
7016    2003-06-19  Bernhard Herzog  <[email protected]>
7017    
7018            Add XML validation to some of the tests. Validation will only be
7019            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
7020            To make the DTD available to the test cases it's moved into
7021            Resources/XML
7022    
7023            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
7024            for versions up to and including 0.2. Two slight changes: added an
7025            encoding specification and fixed the comment which refered to
7026            GRASS, not Thuban
7027    
7028            * test/xmlsupport.py: New support module for tests involving XML.
7029            Currently there's a mix-in class for XML validation.
7030    
7031            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
7032    
7033            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
7034            so that we can validate the
7035            (SaveSessionTest.testEmptySession)
7036            (SaveSessionTest.testSingleLayer)
7037            (SaveSessionTest.testSingleLayer)
7038            (SaveSessionTest.testLayerProjection)
7039            (SaveSessionTest.testRasterLayer)
7040            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
7041    
7042            * test/runtests.py (main): Call print_additional_summary instead
7043            of print_garbage_information
7044    
7045            * test/support.py (resource_dir): New function to return the
7046            "Resource" subdirectory
7047            (print_additional_summary): New function to combine several
7048            summary functions
7049            (run_tests): Use print_additional_summary instead of calling
7050            print_garbage_information directly
7051    
7052    2003-06-19  Bernhard Herzog  <[email protected]>
7053    
7054            * Doc/thuban.dtd (classification): Correct the content model of
7055            the classification element.
7056            (projection): Add the "name" attribute
7057    
7058    2003-06-19  Frank Koormann   <[email protected]>
7059    
7060            MERGE from the greater-ms3 branch.
7061    
7062            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
7063            scale if projection is latlong to get better estimate.
7064    
7065            Fix problem of hidden properties dialog under windows after double
7066            click on layer tree:
7067            The tree control always gets an Expanded / Collapsed event after
7068            the ItemActivated  on double click, which raises the main window again.
7069            We add a second ItemActivated event to the queue, which simply
7070            raises the already displayed window.
7071    
7072            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
7073            raiseProperties initialized to prevent endless loops
7074            (LegendTree._OnItemActivated): Depending on self.raiseProperties
7075            simply raise the properties or open the dialog and issue a second
7076            event.
7077    
7078    2003-06-18  Jonathan Coles   <[email protected]>
7079    
7080            * setup.py: Fix a few problems that occured under Windows.
7081    
7082    2003-06-18  Jonathan Coles   <[email protected]>
7083    
7084            When Thuban loaded the map was redrawn twice because the
7085            legend was being opened after the mainwindow was created
7086            and not during its creation. This meant the map was drawn
7087            initially and then had to be redrawn when the legend
7088            caused the display to change. Now the legend is opened
7089            in the mainwindow constructor which resolves this issue.
7090    
7091            Also, although we were checking for the existence of
7092            gdal and gdalwarp modules, the gdalwarp extension was
7093            still being compiled (which may fail if the system doesn't
7094            have gdal installed). the build_ext command to setup.py
7095            now accepts the flags --with-gdal and --without-gdal.
7096            If --without-gdal is specified setup.py will try to
7097            use the gdal parameters specified by gdal-config. Under
7098            windows, those parameters have to be set in setup.py
7099            as with proj4 an wxWindows.
7100    
7101            * setup.py: Use a list instead of seperate variables for
7102            extension parameters so we can create a generic function
7103            that runs an appropriate *-config script.
7104            (run_cs_script): Renamed from run_wx_script and modified
7105            to accept a second argument which is a list of lists to
7106            be filled in by the values returned from running the command.
7107            (thuban_build_ext): New. Extends the build_ext command and
7108            provides the options --with-gdal/--without-gdal which then
7109            optionally includes the gdalwarp extension.
7110    
7111            * Thuban/Model/resource.py: First check if we can import
7112            the gdalwarp Thuban extension before checking for gdal.
7113            Also added some comments.
7114            
7115            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
7116            the map is None which may be the case if none has been loaded
7117            yet.
7118    
7119            * Thuban/UI/main.py (main): Remove call to ShowLegend.
7120    
7121            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
7122    
7123            * Thuban/UI/renderer.py: Check for gdal support before importing
7124            gdalwarp.
7125            (MapRenderer.render_map): Only try to optimize if we have gdal
7126            support otherwise nothing will get drawn.
7127    
7128            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
7129            during startup before a map has been created. Check if map is None
7130            before using it and do nothing if it is.
7131    
7132    2003-06-17  Jonathan Coles   <[email protected]>
7133    
7134            Fix the problem with raster layers under Windows that caused
7135            Thuban to crash. The view should respond to layer projection
7136            changed events to update the display. Changes to a projection
7137            should not cause the map to be set to full extent.
7138            
7139            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
7140            current_map_proj to remember the current map projection so that
7141            when the projection changes we know what the previous projection
7142            was.
7143            (MapCanvas.SetMap): Unsubscribe and subscribe to
7144            LAYER_PROJECTION_CHANGED events.
7145            (MapCanvas.projection_changed): Split into two methods that respond
7146            to map and layer projection changes.
7147            (MapCanvas.map_projection_changed): New. Takes the current view and
7148            projects it using the new projection. This does not cause the
7149            map to be redrawn at full extent.
7150            (MapCanvas.layer_projection_changed): New. Cause a redraw which
7151            will draw each layer in its new projection.
7152            
7153            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
7154            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
7155            under Windows.
7156            
7157            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
7158            to twice sizeof(void*) because there are two digits for each
7159            hex byte.
7160    
7161    2003-06-16  Bernhard Herzog  <[email protected]>
7162    
7163            Update to the layer interface: Direct access to the table,
7164            shapetable, shapefile and filename attributes is now actively
7165            deprecated by issuing deprecation warnings for all places where
7166            this happens.
7167    
7168            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
7169            to the instance variables table, shapetable, shapefile and
7170            filename via __getattr__ so that we can issue a deprecation
7171            warning.
7172            (Layer.SetShapeStore): Don't set the deprecated instance variables
7173            any more
7174            (Layer.SetShapeStore): Don't use deprecated layer instance
7175            variables
7176            (Layer.Destroy): No need to explicitly remove the instance
7177            variables any more
7178            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
7179            instance variables
7180    
7181            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
7182            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
7183            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
7184            use deprecated layer instance variables
7185    
7186            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
7187            deprecated layer instance variables
7188    
7189            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
7190            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
7191            instance variables
7192    
7193            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
7194            deprecated layer instance variables
7195    
7196            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
7197            deprecated layer instance variables
7198    
7199            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
7200            deprecated layer instance variables
7201    
7202            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
7203            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
7204            variables
7205    
7206            * test/runtests.py (main): Turn Thuban's deprecation warnings into
7207            errors so that they're cought by the tests
7208    
7209            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
7210            layer instance variables
7211    
7212    2003-06-16  Jonathan Coles   <[email protected]>
7213    
7214            Fix a problem under Windows whereby if the user double-clicks on a
7215            layer in the legend that tree item will expand or collapse as well
7216            as open the layer properties dialog. The state of the tree item
7217            should not be affected.
7218    
7219            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
7220            preventExpandCollapse and subscribe to expanding and collapsing
7221            events.
7222            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
7223            collapsing events and will veto the event if it has been triggered
7224            by the user double clicking on a layer.
7225            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
7226            that an expanding/collapsing event should be vetoed.
7227    
7228    2003-06-13  Bernhard Herzog  <[email protected]>
7229    
7230            * Thuban/UI/classifier.py (Classifier.OnClose)
7231            (Classifier.map_layers_removed)
7232            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
7233            in OnClose and not in map_layers_removed or
7234            layer_shapestore_replaced to make sure it always happens when the
7235            dialog is closed
7236    
7237    2003-06-13  Jonathan Coles   <[email protected]>
7238    
7239            This puts back a fix for Windows where a panel is needed so that
7240            the background of the table view appears correctly.
7241    
7242            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
7243            object that can be used by derived classes to place any
7244            controls (including the grid) onto.
7245            (QueryTableFrame.__init__): Use the panel as the parent window
7246            for all the controls. Reparent the grid so that the panel is
7247            the parent. Call UpdateStatusText() to correctly initialize
7248            the status bar.
7249    
7250    2003-06-13  Jonathan Coles   <[email protected]>
7251    
7252            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
7253            from wxFrame (as opposed to wxDialog like the other classes)
7254            but otherwise behaves like the other classes. This is needed
7255            for the TableView which isn't really a dialog and needs to
7256            have a status bar and control buttons.
7257    
7258            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
7259            instance variable to keep track of how many rows are selected.
7260            Subscribe once to the the events we are interested in.
7261            (ThubanGrid.OnRangeSelect): Only handle event if event handling
7262            hasn't been turned off.
7263            (ThubanGrid.OnSelectCell): Only handle event if event handling
7264            hasn't been turned off.
7265            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
7266            as an event listener (which changes the event handler stack)
7267            simply set an instance variable to False. This is checked in
7268            the event handlers.
7269            (ThubanGrid.GetNumberSelected): Return the number of currently
7270            selected rows.
7271            (TableFrame): Inherit from ThubanFrame so we can have a
7272            status bar and control buttons.
7273            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
7274            Explicitly set which items are selected in the operator choice and
7275            action choice so there is always a valid selection. Fixes RTbug #1941.
7276            Subscribe to grid cell selection events so we can update the
7277            status bar.
7278            (QueryTableFrame.UpdateStatusText): Update the status bar with
7279            how many rows are in the grid, how many columns, and how many
7280            rows are selected.
7281            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
7282            Call UpdateStatusText when cells are (de)selected.
7283            (QueryTableFrame.OnQuery): Use the string value in the value
7284            combo if either the selected item index is 0 or if the string
7285            cannot be found in the predefined list (this happens if the
7286            user changes the text). Fixes RTbug #1940.
7287            Only turn off the grid event listeners if there a query comes
7288            back with a none empty list of ids. in the case that the list
7289            is empty this causes a grid.ClearSelection() call to actually
7290            clear the grid selection which causes the selected items in
7291            the map to be deselected. Fixes RTbug #1939.
7292    
7293            * test/test_save.py (XMLWriterTest.Encode): Check return values.
7294            Fixes RTbug #1851.
7295    
7296    2003-06-13  Bernhard Herzog  <[email protected]>
7297    
7298            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
7299            self.selected_shape with the current selection to make sure the
7300            contents of the dialog are up to date when it's shown for the
7301            first time.
7302            The dialog used to work without this by luck. The recent fix to
7303            the connector module 'broke' a 'feature' the identify view was
7304            relying on, i.e that subscribing to a message in response to
7305            receiving a message of that type would mean that the new
7306            subscriber would also be called for the same message.
7307            
7308    2003-06-12  Jonathan Coles   <[email protected]>
7309    
7310            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
7311            the image is rendered. Fixes RTbug #1937.
7312    
7313    2003-06-12  Jonathan Coles   <[email protected]>
7314    
7315            * Thuban/Lib/fileutil.py: As is done under Windows, create the
7316            user directory if it doesn't exist on a posix system.
7317            Fixes RTbug #1815.
7318    
7319            * Thuban/Model/resource.py (get_user_proj_files): Moved the
7320            called to get_application_dir here, so that the directory
7321            will only be called if this method is invoked.
7322    
7323            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
7324            the projfilepath if no projection is selected.
7325    
7326    2003-06-12  Jonathan Coles   <[email protected]>
7327    
7328            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
7329            the scalebar if the current map has no projection set.
7330    
7331            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
7332            projfilepath label to just the basename of the projection file
7333            rather than include the entire path.
7334    
7335            * Thuban/Model/resource.py: Fix missed proj functions that
7336            needed to be renamed.
7337    
7338    2003-06-12  Jonathan Coles   <[email protected]>
7339    
7340            * Thuban/Model/classification.py: Removed assert statements that
7341            tested if the variable was an instance of Color.
7342    
7343            * Thuban/Model/color.py (Color): Remove commented code that isn't
7344            used.
7345            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
7346            Fixes RTbug #1835.
7347            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
7348            Needed now that the class doesn't inherit from Color.
7349    
7350    2003-06-12  Jonathan Coles   <[email protected]>
7351    
7352            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
7353            check unicode strings.
7354    
7355            * test/test_layer.py: Check for existence of gdal.
7356    
7357    2003-06-12  Jonathan Coles   <[email protected]>
7358        
7359            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
7360            that was in load.py
7361    
7362            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
7363            that was in save.py
7364    
7365    2003-06-12  Jonathan Coles   <[email protected]>
7366    
7367            This is largely a collection of bug fixes. We also handle the
7368            case where gdal is not on the system. The XMLReader and XMLWriter
7369            classes were moved into there own files to resolve some circular
7370            import references and because they shouldn't really be in the
7371            file that is dediciated to reading/writing session files since
7372            they are also used elsewhere.
7373    
7374            * Thuban/Model/classgen.py: Renamed functions to follow the
7375            function_names_with_underscores style. Fixes RTbug #1903.
7376            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
7377    
7378            * Thuban/Model/layer.py: Import gdal only if it available.
7379            (RasterLayer): Handle the case where the gdal library is unavailable.
7380            Addresses RTbug #1877.
7381    
7382            * Thuban/Model/load.py (XMLReader): Moved into seperate file
7383            xmlreader.py.
7384    
7385    2003-06-12  Jonathan Coles   <[email protected]>
7386    
7387            This is largely a collection of bug fixes. We also handle the
7388            case where gdal is not on the system. The XMLReader and XMLWriter
7389            classes were moved into there own files to resolve some circular
7390            import references and because they shouldn't really be in the
7391            file that is dediciated to reading/writing session files since
7392            they are also used elsewhere.
7393    
7394            * Thuban/Model/classgen.py: Renamed functions to follow the
7395            function_names_with_underscores style. Fixes RTbug #1903.
7396            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
7397    
7398            * Thuban/Model/layer.py: Import gdal only if it available.
7399            (RasterLayer): Handle the case where the gdal library is unavailable.
7400            Addresses RTbug #1877.
7401    
7402            * Thuban/Model/load.py (XMLReader): Moved into seperate file
7403            xmlreader.py.
7404    
7405            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
7406            file xmlwriter.py.
7407    
7408            * Thuban/Model/resource.py: Renamed functions to following the
7409            function_names_with_underscores style.
7410            (has_gdal_support): New function that returns true if the gdal
7411            library is available. Addresses RTbug #1877.
7412    
7413            * Thuban/UI/application.py (ThubanApplication.OpenSession):
7414            Display a message box if the gdal library is not available, but
7415            only if there are any layers that would use it. Addresses RTbug #1877.
7416    
7417            * Thuban/UI/classgen.py: Use renamed projection resource functions.
7418            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
7419            when using integers versus floats.
7420    
7421            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
7422            determine if the "Add Image Layer" menu option should be
7423            greyed out or not. Addresses RTbug #1877.
7424    
7425            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
7426    
7427            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
7428            optimize if a raster layer is visible. Fixes RTbug #1931.
7429            Only draw the raster layer if the gdal library is available.
7430            Addresses RTbug #1877.
7431    
7432            * test/test_classgen.py: Add tests for generate_singletons,
7433            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
7434            (test_calculate_quantiles): Fix some tests to catch the new
7435            ValueError that is raised.
7436    
7437            * test/test_proj.py: Use renamed projection resource functions.
7438    
7439            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
7440            test for saving classified layers. Fixes RTbug #1902.
7441            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
7442    
7443    2003-06-12  Jan-Oliver Wagner <[email protected]>
7444    
7445            Fix for http://intevation.de/rt/webrt?serial_num=1900.
7446    
7447            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
7448    
7449            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
7450            multiplechoicedialog.py rather than from the wxPython library.
7451    
7452    2003-06-11  Frank Koormann  <[email protected]>
7453    
7454            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
7455            update.
7456    
7457    2003-06-11  Frank Koormann  <[email protected]>
7458    
7459            * Thuban/Lib/fileutil.py (get_application_dir): New function to
7460            determine the absolute .thuban/thuban directory under
7461            "posix" (os.expanduser) and "nt" (read AppData registry key).
7462    
7463            * Thuban/Model/resource.py: Use get_application_dir
7464    
7465            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7466            Use get_application_dir.
7467    
7468    2003-06-10  Bernhard Herzog  <[email protected]>
7469    
7470            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
7471            the messages MAP_LAYERS_REMOVED messages
7472            (LayerTableFrame.OnClose): Unsubscribe from it.
7473            (LayerTableFrame.map_layers_removed): New. Receiver for
7474            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
7475            dialog is showing is removed.
7476    
7477    2003-06-10  Bernhard Herzog  <[email protected]>
7478    
7479            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
7480            of the receivers list so that unsubscribing in a receiver doesn't
7481            modify it while iterating over it.
7482    
7483            * test/test_connector.py
7484            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
7485            unsubscribing in a receiver works correctly. See docstring for
7486            details
7487    
7488    2003-06-10  Bernhard Herzog  <[email protected]>
7489    
7490            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
7491            message.
7492    
7493            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
7494            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
7495            LAYER_CHANGED will still be sent if the classification changes.
7496    
7497            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
7498            parameter so we can subscribe to some of its messages
7499            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
7500            and the layer's LAYER_SHAPESTORE_REPLACED
7501            (Classifier.unsubscribe_messages): New. Unsubscribe from message
7502            subscribed to in __init__
7503            (Classifier.map_layers_removed)
7504            (Classifier.layer_shapestore_replaced): receivers for the messages
7505            subscribed to in __init__. Unsubscribe and close the dialog
7506    
7507            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
7508            the map to the Classifier dialog
7509    
7510            * test/test_layer.py (SetShapeStoreTests): Derive from
7511            SubscriberMixin as well so we can test messages
7512            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
7513            messages
7514            (SetShapeStoreTests.tearDown): Clear the messages again
7515            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
7516            for the modified flag too
7517            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
7518            to check whether SetShapeStore sets the modified flag
7519            (SetShapeStoreTests.test_set_shape_store_different_field_name)
7520            (SetShapeStoreTests.test_set_shape_store_same_field)
7521            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
7522            Add tests for the messages. This checks both the new
7523            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
7524    
7525    2003-06-06  Jan-Oliver Wagner <[email protected]>
7526    
7527            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
7528            the menu items.
7529    
7530    2003-06-05  Frank Koormann  <[email protected]>
7531    
7532            * Thuban/UI/identifyview.py (IdentifyView.__init__):
7533            Layout reimplemented without panel. Make life easier to fit the list
7534            in the dialog.
7535    
7536    2003-06-05  Frank Koormann  <[email protected]>
7537    
7538            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
7539            once on initialisation (Former implementation resulted in multiple
7540            entries for each projection).
7541            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
7542            if set, select the projection found under the specified name. This
7543            overwrites any other selection estimate.
7544            Removed projchoice filling from this method.
7545            (ProjFrame._OnSave, ProjFrame._OnAddToList):
7546            Updated call of ProjFrame.__FillAvailList
7547            (LCCPanel._DoLayout): Moved parameter controls in more common order.
7548    
7549            * Resources/Projections/defaults.proj: Extended defaults representing
7550            various common European projections.
7551    
7552    2003-06-05  Frank Koormann  <[email protected]>
7553    
7554            * Thuban/UI/identifyview.py (IdentifyView.__init__):
7555            Use ListCtrl instead of GridCtrl
7556    
7557            * Thuban/Model/resource.py:
7558            Guess location of .thuban directory from tempdir parent directory.
7559    
7560            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7561            Guess location of .thuban directory from tempdir parent directory.
7562    
7563    2003-06-04  Bernhard Herzog  <[email protected]>
7564    
7565            Do not cache the values returned by the tree widget's
7566            GetFirstChild and GetNextChild methods because it led to lots of
7567            segfaults. The new way requires more brute force but is more
7568            reliable.
7569    
7570            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
7571            variable layer2id
7572            (LegendTree.find_layer): New method to do with brute force what
7573            layer2id tried to accomplish
7574            (LegendTree._OnMsgLayerChanged)
7575            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
7576            Use find_layer instead of layer2id
7577            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
7578            update layer2id anymore
7579            (LegendTree._OnMsgMapLayersRemoved)
7580            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
7581    
7582    2003-06-03  Thomas Koester  <[email protected]>
7583    
7584            * Thuban/Model/classgen.py (GenQuantiles0): New function.
7585    
7586    2003-06-02  Bernhard Herzog  <[email protected]>
7587    
7588            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
7589            New commands.
7590            (main_menu): Add the new commands.
7591            (MainWindow.TableRename): New. Implementation of the table_rename
7592            command.
7593            (MainWindow.RenameLayer): New. Implementation of the layer_rename
7594            command.
7595    
7596            * Thuban/Model/session.py (Session.AddTable): call self.changed to
7597            set the modified flag
7598    
7599            * test/test_session.py (TestSessionSimple.test_add_table): Test
7600            whether the modified flag is set properly
7601    
7602            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
7603            instead of issue so that the modified flags get updated.
7604    
7605            * test/test_base.py (SomeTitledObject): Derive from Modifiable
7606            instead of Publisher to reflect reality better and to accomodate
7607            the fact that SetTitle now calls changed instead of issue
7608    
7609    2003-06-02  Bernhard Herzog  <[email protected]>
7610    
7611            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
7612            acquisition has to happen before the try in a try-finally.
7613    
7614    2003-06-02  Bernhard Herzog  <[email protected]>
7615    
7616            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
7617            possible that a layer is removed that is not currently selected in
7618            the legend so don't check for this.
7619    
7620    2003-05-30  Bernhard Herzog  <[email protected]>
7621    
7622            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
7623            variables to None that have direct or indirect references to
7624            shapefiles or dbf files to make sure that they do go away and the
7625            files are closed.
7626    
7627    2003-05-30  Bernhard Herzog  <[email protected]>
7628    
7629            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
7630            availImgListIndices when a new image list is created
7631            
7632    2003-05-30  Bernhard Herzog  <[email protected]>
7633    
7634            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
7635            changing_selection to indicate whether the LegendTree code itself
7636            is currently changing the selection
7637            (LegendTree.normalize_selection): New method to normalize the
7638            selection by selecting the layer item even if the user clicked on
7639            the classification.
7640            (LegendTree._OnSelChanged): normalize the selection. This works
7641            around a bug in wx which doesn't keep track of the selection
7642            properly when subtrees are deleted.
7643    
7644    2003-05-30  Bernhard Herzog  <[email protected]>
7645    
7646            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
7647            maximum and minimum scale factors.
7648    
7649            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
7650            changes in classgen.py
7651    
7652    2003-05-30  Jonathan Coles   <[email protected]>
7653    
7654            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
7655            all the methods functions. Fixes RTBug #1903.
7656    
7657            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
7658            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
7659            RTBug #1907.
7660    
7661            * Thuban/UI/classgen.py: Use classgen functions that were part
7662            of the ClassGenerator class. Put try/finally blocks around
7663            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
7664            RTBug #1904.
7665    
7666            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
7667    
7668            * Thuban/UI/legend.py: The legend was cleared and repopulated any
7669            time something changed which caused some state to be lost such
7670            as which children were expanded or collapsed. Fixes RTBug #1901.
7671            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
7672            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
7673            the legend but not in the map.
7674            (LegendTree.__FillTree): Move main functionality out into smaller
7675            methods that can be used by other methods.
7676            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
7677            if they are available.
7678            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
7679            that we override the wxTreeCtrl method. Iterate over children
7680            and call __RemoveLayer.
7681            (LegendTree.__AddLayer): New. Add a new layer to the legend.
7682            (LegendTree.__RemoveLayer): Remove a layer from the legend.
7683            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
7684            Should only be called with the id of a layer branch.
7685            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
7686            Returns the root item or creates one if necessary.
7687    
7688            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
7689            ProjectRasterFile with tuple arguments instead of strings.
7690    
7691            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
7692            with try/finally. Fixes RTBug #1904.
7693    
7694            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
7695            with try/finally. Fixes RTBug #1904.
7696            (MapCanvas.FitSelectedToWindow): If a single point is selected
7697            simply center it on the display. Fixes RTBug #1849.
7698    
7699            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
7700            to be compiled as a standalone app. Now the code can only be
7701            called from Python which simplifies the parameter passing.
7702            (ProjectRasterFile): Handle Python arguments. Remove code that
7703            checks for a destination dataset. Add more clean up code.
7704    
7705            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
7706            TestMapWithContents.test_lower_layer_bottom):
7707            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
7708            Fixes RTBug #1907.
7709    
7710            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
7711            extent to the map when the legend is toggled. Fixes RTBug #1881.
7712    
7713    2003-05-29  Jan-Oliver Wagner <[email protected]>
7714    
7715            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
7716            unsubscribes all that is subcribed in __init__.
7717    
7718    2003-05-28  Bernhard Herzog  <[email protected]>
7719    
7720            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
7721            (MainWindow.CanDuplicateLayer): New methods to implement the
7722            Layer/Duplicate command.
7723            (layer_duplicate command): New.
7724            (main_menu): Add layer_duplicate to the Layer menu.
7725    
7726    2003-05-28  Bernhard Herzog  <[email protected]>
7727    
7728            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
7729            renderer so that NULL/None values get displayed differently (by a
7730            gray rectangle).
7731            (TableGrid.__init__): Override the default renderers
7732    
7733    2003-05-28  Bernhard Herzog  <[email protected]>
7734    
7735            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
7736            classification to "None" if the type of the field has changed.
7737    
7738            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
7739            test for the Layer.SetShapeStore method
7740    
7741    2003-05-28  Jan-Oliver Wagner <[email protected]>
7742    
7743            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
7744            does not necessarily have a filename).
7745    
7746    2003-05-28  Jan-Oliver Wagner <[email protected]>
7747    
7748            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
7749            sort the selection list for the dialog.
7750    
7751    2003-05-28  Frank Koormann  <[email protected]>
7752    
7753            * extensions/thuban/wxproj.cpp
7754            (project_point): Removed cast to int for projected point coordinates.
7755            (shape_centroid): Return last point if all polygon vertices fall
7756            to one point.
7757    
7758    2003-05-28  Bernhard Herzog  <[email protected]>
7759    
7760            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
7761            with layers that don't have shapestores, i.e. raster layers.
7762    
7763    2003-05-28  Bernhard Herzog  <[email protected]>
7764    
7765            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
7766            when determining the title from the filename.
7767    
7768            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
7769            reflect changes in the way the title is derived from the filename
7770    
7771    2003-05-28  Frank Koormann  <[email protected]>
7772    
7773            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
7774            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
7775    
7776    2003-05-27  Bernhard Herzog  <[email protected]>
7777    
7778            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
7779            delegate SelectedLayer.
7780            (MainWindow.LayerUnjoinTable): Implement.
7781            (_can_unjoin): New. Helper function for the sensitivity of the
7782            layer/unjoin command.
7783    
7784            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
7785            (DerivedShapeStore.OrigShapeStore): New. Return the original
7786            shapestore. Used to figure out how to unjoin.
7787            (DerivedShapeStore.Shapefile): Fix a typo.
7788    
7789    2003-05-27  Bernhard Herzog  <[email protected]>
7790    
7791            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
7792            well
7793            (JoinDialog.__init__): Use the layer parameter and only build the
7794            left choice when a layer is given
7795            (JoinDialog.OnJoin): Handle layer joins as well
7796            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
7797            that the user selects the "Select..." item. The sensitivitly
7798            updating is now in update_sensitivity
7799            (JoinDialog.y): New method to refactor the sensitivity update of
7800            the join button into its own method.
7801    
7802            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
7803    
7804    2003-05-27  Bernhard Herzog  <[email protected]>
7805    
7806            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
7807            iff there are unreferenced tables in the session
7808    
7809    2003-05-27  Bernhard Herzog  <[email protected]>
7810    
7811            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
7812    
7813            * Thuban/Model/session.py (Session.UnreferencedTables): New method
7814            to return tables that are not referenced by other tables or shape
7815            stores and can be removed.
7816            (Session.RemoveTable): Issue a TABLE_REMOVED message after
7817            removing the table
7818    
7819            * Thuban/UI/mainwindow.py: Remove unused imports
7820            (MainWindow.TableClose): Implement.
7821    
7822            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
7823            messages so that the frame will be automatically closed when a new
7824            session is opened or the table is removed.
7825            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
7826            __init__
7827            (TableFrame.close_on_session_replaced)
7828            (TableFrame.close_on_table_removed): New. Subscribers that close
7829            the window
7830    
7831            * test/test_session.py (TestSessionMessages.test_remove_table)
7832            (TestSessionSimple.test_remove_table): Move the test to
7833            TestSessionSimple and add test for the TABLE_REMOVED message
7834            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
7835            (TestSessionSimple.test_unreferenced_tables) New. Test for the
7836            UnreferencedTables method.
7837            (UnreferencedTablesTests): New. Class with some more sophisticated
7838            tests for UnreferencedTables.
7839    
7840    2003-05-27  Frank Koormann  <[email protected]>
7841    
7842            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
7843            display has some unwanted side effects. Removed again.
7844    
7845    2003-05-27  Frank Koormann  <[email protected]>
7846    
7847            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
7848    
7849            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
7850    
7851    2003-05-27  Jan-Oliver Wagner <[email protected]>
7852    
7853            * test/test_menu.py (MenuTest.test): Added test for
7854            Menu.RemoveItem().
7855    
7856            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
7857            the menu.
7858    
7859    2003-05-27  Frank Koormann  <[email protected]>
7860            
7861            Nonmodal dialogs without parent (i.e. they can fall behind the main
7862            window)
7863    
7864            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
7865            all dialogs in the dialogs dictionary and the canvas.
7866    
7867            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
7868            parent, i.e. can fall behind other windows.
7869            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
7870            dictionary before removing it.
7871    
7872            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
7873    
7874            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
7875            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
7876            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
7877    
7878    2003-05-27  Bernhard Herzog  <[email protected]>
7879    
7880            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
7881            tableview dialog
7882            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
7883            Also, don't use the table's titles as the dialog names. The titles
7884            aren't guaranteed to be unique.
7885            (MainWindow.TableOpen): Open a table view dialog after opening the
7886            table
7887    
7888    2003-05-27  Bernhard Herzog  <[email protected]>
7889    
7890            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
7891            effect can be achieved by simply closing the window showing the
7892            table.
7893            (MainWindow.TableHide): Removed.
7894            (main_menu): Removed "table_hide"
7895    
7896    2003-05-27  Frank Koormann  <[email protected]>
7897    
7898            Fix legend tree display problems under Win32
7899    
7900            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
7901            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
7902            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
7903    
7904            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
7905    
7906    2003-05-27  Jan-Oliver Wagner <[email protected]>
7907    
7908            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
7909            'after' now allows to insert separators almost anywhere in the menu.
7910    
7911    2003-05-27  Frank Koormann  <[email protected]>
7912    
7913            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
7914            "S" of selection box label to hint on hot key (Alt-S). Works under
7915            Win32 but is ignored under GTK.
7916    
7917    2003-05-26  Frank Koormann  <[email protected]>
7918    
7919            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
7920            Center Choices.
7921    
7922    2003-05-26  Bernhard Herzog  <[email protected]>
7923    
7924            Remove the Precision methods again. They're too DBF specific to be
7925            part of the table interface and they're only used in table_to_dbf
7926            anyway.
7927            
7928            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
7929            fixed precision of 12 for doubles.
7930            (TransientTableBase.Precision): Removed
7931            (AutoTransientTable.Width): Delegate to self.table.
7932    
7933            * Thuban/Model/table.py (DBFTable.Precision)
7934            (MemoryTable.Precision): Removed.
7935            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
7936            (table_to_dbf): Use a fixed precision of 12 for floats unless the
7937            column object specifies something else.
7938    
7939            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
7940            test for table_to_dbf
7941    
7942    2003-05-26  Bernhard Herzog  <[email protected]>
7943    
7944            * test/test_transientdb.py
7945            (TestTransientTable.run_iceland_political_tests): Fix a comment.
7946    
7947    2003-05-26  Bernhard Herzog  <[email protected]>
7948    
7949            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
7950            implementation. Mark parts of the file format strings for
7951            localization.
7952    
7953            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
7954            file and add the table to the tables managed by the session
7955    
7956            * test/test_session.py (TestSessionSimple.test_open_table_file):
7957            New. test case for OpenTableFile
7958    
7959    2003-05-26  Jan-Oliver Wagner <[email protected]>
7960    
7961            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
7962            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
7963            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
7964            Replace the true/false of wxWindows by True/False of Python 2.2.1.
7965    
7966    2003-05-26  Jan-Oliver Wagner <[email protected]>
7967    
7968            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
7969            already a selection present, update the grid accordingly.
7970    
7971            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
7972            resizeable and increase its initial size.
7973    
7974    2003-05-26  Frank Koormann  <[email protected]>
7975    
7976            Table export functionality
7977    
7978            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
7979            Return width (in characters) for a column.
7980            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
7981            (table_to_dbf): Write table to dbf file.
7982            (table_to_csv): Write table to csv file.
7983    
7984            * Thuban/Model/transientdb.py (TransientTableBase.Width,
7985            TransientTableBase.Precision): Return column width and precision.
7986    
7987            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
7988            or table_to_csv depending on file selection.
7989    
7990            * test/test_dbf_table.py:
7991            Test table_to_dbf (extension of former part of test).
7992    
7993            * test/test_csv_table.py:
7994            Test table_to_csv.
7995    
7996    2003-05-23  Jan-Oliver Wagner <[email protected]>
7997    
7998            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
7999            Use QueryTableFrame instead of TableFrame.
8000    
8001            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
8002            table window with 'Layer Table:' instead of 'Table:'.
8003    
8004    2003-05-23  Jan-Oliver Wagner <[email protected]>
8005    
8006            Give all tables a title via mix-in TitledObject.LayerShowTable
8007    
8008            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
8009            only if it exists.
8010    
8011            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
8012            and call its init-method with a default title. Remove Title() method.
8013    
8014            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
8015            AutoTransientTable): mix-in TitledObject and call its init-method with
8016            a default title. Remove Title() method.
8017    
8018    2003-05-23  Bernhard Herzog  <[email protected]>
8019    
8020            * Thuban/Model/session.py (Session.AddShapeStore): Define
8021            AddShapeStore analogously to AddTable.
8022    
8023            * test/test_session.py (TestSessionSimple.test_add_shapestore):
8024            New. Test for AddShapeStore
8025    
8026    2003-05-23  Jan-Oliver Wagner <[email protected]>
8027    
8028            Introducing QueryTableFrame and a very coarse ShowTable implementation.
8029    
8030            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
8031            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
8032            The latter implements the selection GUI without dependency on a layer.
8033            LayerTableFrame now is derived from QueryTableFrame and connects
8034            to a layer.
8035    
8036            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
8037            implementation that still needs work.
8038    
8039            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
8040    
8041    2003-05-22  Frank Koormann  <[email protected]>
8042    
8043            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
8044            Added "outer_join = False" as optional parameter.
8045            (TransientJoinedTable.create): If outer join is true, perform a
8046            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
8047            the left table. Records not matching are filled with 0 / None.
8048    
8049            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
8050            (JoinDialog.OnJoin): Consider outer join check box.
8051    
8052    2003-05-22  Bernhard Herzog  <[email protected]>
8053    
8054            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
8055            somewhat safer way. Storing the traceback in a local variable can
8056            lead to memory leaks
8057    
8058    2003-05-22  Bernhard Herzog  <[email protected]>
8059    
8060            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
8061            the wxMessageDialog's Destroy() method.
8062    
8063    2003-05-22  Frank Koormann  <[email protected]>
8064    
8065            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
8066            TransientTable.Title()
8067    
8068    2003-05-22  Frank Koormann  <[email protected]>
8069    
8070            Join Dialog, initial version.
8071    
8072            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
8073    
8074            * Thuban/UI/join.py (JoinDialog): Functional implementation of
8075            former framework. Renamed Table1/Table2 to LeftTable/RightTable
8076            in all occurences.
8077    
8078            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
8079            Typo fixed.
8080    
8081    2003-05-22  Bernhard Herzog  <[email protected]>
8082    
8083            Give the tables titles so that the GUI can display more meaningful
8084            names. For now the titles are fixed but depend on e.g. filenames
8085            or the titles of the joined tables.
8086    
8087            * Thuban/Model/transientdb.py (TransientTable.Title)
8088            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
8089    
8090            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
8091    
8092            * test/test_transientdb.py
8093            (TestTransientTable.test_auto_transient_table_title): New. Test
8094            for the Title method
8095            (TestTransientTable.test_transient_joined_table)
8096            (TestTransientTable.test_transient_table): Add test for the Title
8097            methods
8098    
8099            * test/test_memory_table.py (TestMemoryTable.test_title): New.
8100            Test for the Title method
8101    
8102            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
8103            the Title method
8104    
8105    2003-05-22  Bernhard Herzog  <[email protected]>
8106    
8107            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
8108            Provide a better way to destroy the layers
8109            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
8110            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
8111            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
8112            the new way to destroy the layers.
8113            (TestLayer.test_derived_store): New. Test for using a layer with a
8114            DerivedShapeStore
8115    
8116            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
8117            filename if the shape store actually has one.
8118    
8119    2003-05-22  Bernhard Herzog  <[email protected]>
8120    
8121            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
8122            for the filename
8123    
8124            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
8125            for the FileName method
8126            (TestDBFTableWriting.test_write): Fix spelling of filename
8127    
8128    2003-05-22  Thomas Koester  <[email protected]>
8129    
8130            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
8131            from SciParam that now really is immutable.
8132    
8133    2003-05-22  Frank Koormann  <[email protected]>
8134    
8135            Layer Top/Bottom placement added to legend.
8136    
8137            * Thuban/UI/legend.py
8138            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
8139            bound to tool events.
8140            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
8141            New, methods binding the event methods with the map methods.
8142    
8143            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
8144            layer at top/bottom of layer stack.
8145    
8146            * Resources/Bitmaps/top_layer.xpm: New button icon.
8147    
8148            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
8149    
8150    2003-05-22  Bernhard Herzog  <[email protected]>
8151    
8152            * Thuban/Model/session.py (Session.RemoveTable): New method to
8153            remove tables
8154    
8155            * test/test_session.py (TestSessionSimple.test_remove_table): New.
8156            Test for RemoveTable
8157    
8158    2003-05-22  Thomas Koester  <[email protected]>
8159    
8160            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
8161            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
8162    
8163    2003-05-22  Bernhard Herzog  <[email protected]>
8164    
8165            Implement a way to discover dependencies between tables and
8166            shapestores.
8167    
8168            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
8169            (TransientJoinedTable.Dependencies)
8170            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
8171            interface
8172            (TransientJoinedTable.__init__): Keep tack of the original table
8173            objects in addition to the corresponding transient tables.
8174    
8175            * Thuban/Model/table.py (DBFTable.Dependencies)
8176            (MemoryTable.Dependencies): New. Implement the dependencies
8177            interface
8178    
8179            * Thuban/Model/data.py (ShapeTable): New. Helper class for
8180            ShapefileStore
8181            (ShapefileStore.__init__): Use ShapeTable instead of
8182            AutoTransientTable
8183            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
8184            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
8185            methods for filename and type
8186            (ShapefileStore.Dependencies): New. Implement the dependencies
8187            interface
8188            (DerivedShapeStore): New class to replace SimpleStore. The main
8189            difference to SimpleStore is that it depends not on a shapefile
8190            but another shapestore which expresses the dependencies a bit
8191            better
8192            (SimpleStore.__init__): Add deprecation warning.
8193    
8194            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
8195            Test for the Dependencies method.
8196    
8197            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
8198            New. Test for the Dependencies method.
8199    
8200            * test/test_transientdb.py
8201            (TestTransientTable.test_auto_transient_table_dependencies): New.
8202            Test for the Dependencies method.
8203            (TestTransientTable.test_transient_joined_table): Add test for the
8204            Dependencies method.
8205    
8206            * test/test_session.py (TestSessionSimple.setUp)
8207            (TestSessionSimple.tearDown): New. Implement a better way to
8208            destroy the sessions.
8209            (TestSessionSimple.test_initial_state)
8210            (TestSessionSimple.test_add_table): Bind session to self.session
8211            so that it's destroyed by tearDown
8212            (TestSessionSimple.test_open_shapefile): New. Test for
8213            OpenShapefile and the object it returns
8214    
8215    2003-05-22  Bernhard Herzog  <[email protected]>
8216    
8217            * Thuban/Model/session.py (Session.AddTable): New method to
8218            register tables with the session.
8219            (Session.Tables): Return the tables registered with AddTable too.
8220    
8221            * test/test_session.py (TestSessionSimple.test_add_table): New.
8222            Test case for the AddTable method
8223    
8224    2003-05-22  Frank Koormann  <[email protected]>
8225    
8226            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
8227            lower right corner, center labels for selections, initialize controls
8228            in reasonable order for keyboard navigation.
8229    
8230            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
8231            (ProjFrame.__DoOnProjAvail): Determine position of current projection
8232            using the wxListBox.FindString() method. Still a problem (#1886)
8233    
8234            * Thuban/UI/classifier.py
8235            (Classifier.__init__, SelectPropertiesDialog.__init__)
8236    
8237            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
8238            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
8239            different classification types from here to __init__.
8240            (GenUniquePanel.__init__): Set the column width of the first field
8241            in the Field ListCtrl to the full width.
8242    
8243            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
8244            Button to 'Export'. Center Buttons in Selection Box, set Focus to
8245            Grid.
8246            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
8247            changes focus to the Selection when pressing "Alt-S".
8248    
8249            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
8250            the text if not visible. The italic font sometimes exceeds the
8251            rendering area.
8252    
8253    2003-05-21  Jonathan Coles   <[email protected]>
8254    
8255            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
8256            to OnClose so that Thuban closes correctly.
8257    
8258            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
8259            DockFrame.OnClose, not DockFrame._OnClose.
8260    
8261    2003-05-21  Jonathan Coles   <[email protected]>
8262    
8263            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
8264            references to 'inf' and use new Range __init__ to pass floats
8265            directly rather than converting them to strings first.
8266            Fixes RTBug #1876.
8267    
8268            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
8269            Use new Range ___init__ to pass floats.
8270    
8271            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
8272            filename is a valid image file. Throw IOError otherwise.
8273    
8274            * Thuban/Model/range.py: Brought over new Range from SciParam that
8275            is immutable and has an __init__ which can accept floats.
8276    
8277            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
8278            into try block. AddLayer doesn't throw any exceptions anymore.
8279            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
8280            try block.
8281    
8282            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
8283            the first item in choices. Fixes RTBug #1882.
8284    
8285            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
8286            has gone to 0 which is a serious problem. abort.
8287            (MapRenderer.draw_raster_layer): Catch IOError seperately and
8288            print the error from GDAL.
8289    
8290            * Thuban/UI/tableview.py (TableGrid.__init__): Call
8291            ToggleEventListeners to turn on listening.
8292            (TableGrid.ToggleEventListeners): New. Turns event listening on
8293            and off so as to prevent excessive messages.
8294            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
8295            to suppress excessive messages when selecting many rows.
8296            Fixes RTBug #1880.
8297    
8298            * Thuban/UI/view.py: Added checks against if scale == 0. This
8299            is a serious problem that can occur when an image without
8300            geo data is loading and causes the map projection bounds to
8301            go to infinity. Right now, the solution is to simply try
8302            to recover.
8303    
8304            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
8305            to set the MFILEReceiver attributes even if the data is NULL.
8306    
8307            * extensions/thuban/gdalwarp.cpp: Improved the error handling
8308            and passed GDAL messages back up to the Python layer. Also
8309            tried to fix some memory leaks that were present in the original
8310            utility but didn't matter because the program aborted.
8311    
8312            * test/test_range.py: Copied over tests from SciParam. Removed
8313            tests against importing. Fixes RTBug #1867.
8314    
8315    2003-05-21  Bernhard Herzog  <[email protected]>
8316    
8317            * test/test_load.py: Remove unused imports and restructure the
8318            test code
8319            (LoadSessionTest): Split into one class for each test and turn
8320            LoadSessionTest itself into the base class for all such session
8321            tests.
8322            (ClassificationTest): New base class for load tests that test
8323            classifications
8324            (TestSingleLayer, TestLayerVisibility, TestClassification)
8325            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
8326            for the individual tests
8327    
8328            * test/support.py (FileLoadTestCase.filename): New base class for
8329            file loading tests
8330    
8331    2003-05-21  Jan-Oliver Wagner <[email protected]>
8332    
8333            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
8334            Mercator' to 'UTM Zone 32' as a more convenient example.
8335            Added 'Gauss Krueger Zone 6'.
8336    
8337            * Data/iceland_sample_raster.thuban: political polygon now
8338            filled transparent to have the raster image visible at once.
8339    
8340    2003-05-21  Frank Koormann  <[email protected]>
8341    
8342            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
8343            OnClose() to keep in sync with extensions. Internally Thuban
8344            still uses "underscored" names.
8345    
8346    2003-05-20  Jonathan Coles   <[email protected]>
8347    
8348            This puts back Raster layer support. These layers support projections
8349            through the GDAL library. Currently, the CVS version is being used.
8350            There are no Debian packages available although this may change soon.
8351            A GDAL driver was extended to support writing to memory rather to
8352            files.
8353    
8354            There is still some work that needs to be done, such as some error
8355            handling when loading invalid images or when there is a problem
8356            projecting the image. This putback simply checks in the majority
8357            of the work.
8358    
8359            * setup.py: Add gdalwarp library extension.
8360    
8361            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
8362            Defaults to False, but can be overridden by subclasses if they
8363            support classification.
8364            (RasterLayer): New. Defines a new layer that represents an
8365            image.
8366    
8367            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
8368            tag handler.
8369            (SessionLoader.start_layer): Encode the filename.
8370            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
8371            New. Supports reading a rasterlayer tag.
8372    
8373            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
8374    
8375            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
8376            get a string in Latin1. If we get such as string convert it to
8377            unicode first, otherwise leave if alone before encoding.
8378            (SessionSaver.write_layer): Add support for writing both Layers
8379            and RasterLayers.
8380    
8381            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
8382            The right argument may not be a string, it could also be a Column.
8383    
8384            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
8385            Make initial window size 600x400. Fixes RTBug #1872.
8386    
8387            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
8388            the dialog is constructed so that we can support layers that
8389            do not have classifications.
8390            (Classifier._OnTry): Only build a classification if the layer
8391            supports one.
8392    
8393            * Thuban/UI/legend.py: Change all checks that a layer is an
8394            instance of Layer into checks against BaseLayer.
8395            (LegendTree.__FillTreeLayer): Only add children to a branch if
8396            the layer supports classification.
8397    
8398            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
8399            MainWindow.OpenSession): Don't proceed with an action if the
8400            user chooses Cancel when they are asked to save changes.
8401            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
8402            user to select an image file. Create a new RasterLayer and add
8403            it to the map.
8404    
8405            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
8406            for rendering RasterLayer layers.
8407            (MapRenderer.draw_raster_layer): Actually method that calls
8408            the GDALWarp python wrapper and constructs an image from the
8409            data returned.
8410    
8411            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
8412            Choices symbols to match those used in the table query method.
8413            Replace deprecated method calls on table with new method names.
8414    
8415            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
8416            how small the scale can get. This still needs more testing.
8417    
8418            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
8419            Provides a driver to output in .bmp format.
8420    
8421            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
8422            New. Provides IO routines which write to memory, rather than a file.
8423    
8424            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
8425            of the gdalwarp utility provided in GDAL. Added function calls
8426            that can be accessed from python.
8427    
8428            * Data/iceland_sample_raster.thuban: New. Sample file that uses
8429            a raster layer.
8430    
8431            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
8432            layer image data.
8433    
8434            * Doc/thuban.dtd: Added rasterlayer attribute definition.
8435    
8436            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
8437            tests associated with the raster layer code.
8438    
8439            * test/test_transientdb.py
8440            (TestTransientTable.test_auto_transient_table_query): Added a test
8441            for using a Column object as the "right" parameter to a query.
8442    
8443    2003-05-19  Frank Koormann  <[email protected]>
8444    
8445            * Thuban/version.py (get_changelog_date):
8446            Catch exceptions if ChangeLog does not exist.
8447    
8448            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
8449    
8450    2003-05-19  Frank Koormann  <[email protected]>
8451    
8452            Extended version information for Thuban
8453    
8454            * Thuban/version.py: New, version information for Thuban: Last
8455            modification date and last ChangeLog entry date.
8456    
8457            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
8458            information: Display Thuban, wxPython and Python version.
8459    
8460    2003-05-16  Bernhard Herzog  <[email protected]>
8461    
8462            * Thuban/Model/save.py: Remove some unused imports including the
8463            __future__ import for nested_scopes as Thuban relies on Python 2.2
8464            now.
8465            (XMLWriter.encode): Remove the special case for a None argument.
8466            In the saver encode is always called with a string argument.
8467    
8468    2003-05-16  Bernhard Herzog  <[email protected]>
8469    
8470            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
8471            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
8472            of the bug was that e.g. float("1.2") would fail. Thuban now
8473            requires 2.4.x.
8474            
8475    2003-05-16  Frank Koormann   <[email protected]>
8476    
8477            Printing enhancement and WMF export (under Win32)
8478    
8479            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
8480            ScreenRenderer. Renders Map, Legend and Scalebar for export.
8481            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
8482            PrintRender.
8483    
8484            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
8485            to fullfil information needed for PrinterRenderer.
8486            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
8487            (MapCanvas.Print): Adapted to new MapPrintout.
8488            (OutputTransform): General calculations to transform from canvas
8489            coordinates to export/printing devices.
8490    
8491            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
8492            new method_command to call ExportMap, with platform dependency (only
8493            __WXMSW__)
8494      
8495            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
8496            of scalebar drawing area as new parameters.
8497            
8498            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
8499    
8500            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
8501            Update to extended scalebar.DrawScalebar header.
8502    
8503            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
8504    
8505            * test/test_scalebar.py: Made test executable as standalone.
8506    
8507    2003-05-16  Bernhard Herzog  <[email protected]>
8508    
8509            * Thuban/Model/table.py (Table): Remove this compatibility alias
8510            for DBFTable.
8511    
8512            * test/test_table.py: Import DBFTable as Table because that alias
8513            doesn't exist anymore.
8514    
8515            * Thuban/UI/classgen.py: Remove some unused imports
8516    
8517    2003-05-14  Jonathan Coles   <[email protected]>
8518    
8519            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
8520            Fix docstring.
8521            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
8522            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
8523            values of the supplied range to determine the beginning and end
8524            bounds of the generated classes.
8525    
8526            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
8527            do not have a leading 0 (.5 is now accepted as well as 0.5).
8528    
8529            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
8530            call to ClassGenerator.GenUniformDistribution.
8531    
8532            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
8533            layout bug with the 'Projection' label.
8534    
8535            * test/support.py (FloatTestCase): New. Needed for the Range tests.
8536    
8537            * test/test_range.py: New. Imported from SciParam.
8538    
8539    2003-05-12  Jonathan Coles   <[email protected]>
8540    
8541            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
8542            to table.UniqueValues() with calls that retrieve all the values
8543            from the table. This will need to be replaced by a method on table
8544            which can simply return the list (perhaps more efficiently).
8545    
8546    2003-05-12  Jonathan Coles   <[email protected]>
8547    
8548            The return value of ClassGenerator.CalculateQuantiles has changed.
8549            Refer to the documentation for details.
8550    
8551            * test/test_classgen.py: Modified Quantile tests to use the
8552            new return values.
8553    
8554            * Thuban/Model/classgen.py
8555            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
8556            use new return values from CalculateQuantiles to produce the correct
8557            range bounds in the Classification.
8558            (ClassGenerator.CalculateQuantiles): Add more comments describing
8559            the return values and parameters. Make minor adjustments to improve
8560            the legibility of the code. Fix problem with adjusted not being set
8561            in most cases.
8562    
8563    2003-05-12  Frank Koormann <[email protected]>
8564            
8565            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
8566            and latin1. Fixes #1851 finally.
8567    
8568    2003-05-09  Jonathan Coles   <[email protected]>
8569    
8570            * test/test_classgen.py: New. Tests the Quantile algorithm.
8571    
8572            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
8573            Clean up debugging statement, add comments, fix a small bug in the
8574            returned adjusted percentiles.
8575            
8576    2003-05-09  Jonathan Coles   <[email protected]>
8577    
8578            Introduces Range class from SciParam into the ClassGroupRange class,
8579            and such ranges can now be saved and loaded from disk.
8580    
8581            Quantiles are now available in the Classification Generator.
8582    
8583            Initial support for building Queries on a table. Doesn't do anything
8584            but run some tests.
8585    
8586            * Thuban/Model/classification.py: Explicit imports.
8587            (ClassGroupRange): Use the Range class to store the underlying
8588            range information. The interface remains the same, except for
8589            GetRange(), and you can also supply a Range object as the min
8590            parameter to SetRange or __init__.
8591    
8592            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
8593            string appropriately for use in Thuban. Fixes RTbug #1851.
8594            (SessionLoader.end_projection): Handle the context of the
8595            projection tag a bit better by looking at what objects are not
8596            None. There was an assumption that a projection tag for a map
8597            could occur before any layers.
8598            (SessionLoader.start_clrange): Provide backward compatibility for
8599            reading min/max values as well as the new range parameter.
8600    
8601            * Thuban/Model/map.py: Explicit imports.
8602    
8603            * Thuban/Model/resource.py: Import _.
8604            (ProjFileSaver.write): write header using projfile.dtd.
8605    
8606            * Thuban/Model/save.py: Explicit imports.
8607            (XMLWriter.encode): New. Encode the given string from a format
8608            used by Thuban into UTF-8. Fixes RTbug #1851.
8609    
8610            * Thuban/UI/classgen.py: Explicit imports.
8611            (ClassGenDialog.__init__): Clean up the code and add support
8612            for Quantiles.
8613            (ClassGenDialog.OnOK): Add support for Quantiles.
8614            (GenQuantilesPanel): New. Input panel for Quantiles.
8615            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
8616            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
8617    
8618            * Thuban/Model/classgen.py: New. Contains all the classes named above.
8619    
8620            * Thuban/UI/classifier.py: Explicit imports.
8621            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
8622            ClassTable.SetValueAsCustom): Reworked to use new Range class.
8623    
8624            * Thuban/UI/legend.py: Explicit imports.
8625    
8626            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
8627            a Table menu and associated method calls.
8628            (MainWindow.choose_color): Removed. No longer needed.
8629    
8630            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
8631            should be disabled if no projection is selected in the available
8632            list.
8633    
8634            * Thuban/UI/renderer.py: Explicit imports.
8635    
8636            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
8637            with correctly selecting the rows and issuing the right events.
8638            Be sure to call Skip() to allow the grid to do some of its own
8639            handling which allows the rows to actually be selected.
8640            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
8641            selecting multiple shapes.
8642            (LayerTableFrame): Support for building Queries.
8643            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
8644    
8645            * Thuban/UI/tree.py: Explicit imports.
8646    
8647            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
8648            table view can call it.
8649    
8650            * test/test_classification.py: Explicit imports.
8651            (TestClassification.test_ClassGroupRange): Fix test for new
8652            Range class.
8653    
8654            * Doc/thuban.dtd: Add range parameter for clrange.
8655    
8656            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
8657            object in ClassGroupRange, and also uesd for inputting ranges in
8658            the classifer table and elsewhere.
8659    
8660            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
8661            yet.
8662    
8663    2003-05-09  Frank Koormann <[email protected]>
8664    
8665            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
8666    
8667    2003-05-08  Frank Koormann <[email protected]>
8668    
8669            Coding style updates
8670    
8671            * test/test_scalebar.py: Replaced tab indentation by spaces.
8672    
8673            * Thuban/UI/scalebar.py: Explicit imports.
8674    
8675    2003-05-08  Frank Koormann <[email protected]>
8676    
8677            * Thuban/UI/scalebar.py
8678            (ScaleBar.DrawScalebar): Format string bug fixed.
8679    
8680    2003-05-08  Frank Koormann <[email protected]>
8681    
8682            Reorganization of scalebar component (no wx in Thuban/Model)
8683    
8684            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
8685            (deriveInterval):
8686            Calculate scalebar interval and unit which fits in width for scale.
8687            (roundInterval): Round float.
8688    
8689            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
8690    
8691            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
8692    
8693            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
8694    
8695    2003-05-08  Frank Koormann <[email protected]>
8696    
8697            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
8698            Initialize ScaleBar with canvas.map
8699    
8700            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
8701            round intervals to display smarter lengths
8702            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
8703            layer. If the maps has no projection applied grey the scalebar.
8704    
8705    2003-05-07  Frank Koormann <[email protected]>
8706            
8707            Basic Scalebar features added.
8708    
8709            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
8710    
8711            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
8712            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
8713            and the renderer.
8714    
8715            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
8716    
8717            * Thuban/UI/messages.py: SCALE_CHANGED added.
8718    
8719    2003-05-07  Bernhard Herzog  <[email protected]>
8720    
8721            * Thuban/Model/session.py (Session.__init__): New instance
8722            variable shapestores to hold a list of all open shapestore objects
8723            (Session.ShapeStores): New. Accessor method for the shapestores
8724            list.
8725            (Session._add_shapestore, Session._clean_weak_store_refs): New.
8726            Internal methods to maintain the shapestores list.
8727            (Session.Tables): New. Return all tables open in the session.
8728            (Session.OpenShapefile): Insert the new ShapeStore into the
8729            shapestores list.
8730    
8731            * test/test_session.py (TestSessionSimple.test_initial_state): Add
8732            tests for ShapeStores and Tables
8733            (TestSessionWithContent.test_shape_stores)
8734            (TestSessionWithContent.test_tables): New. Test cases for
8735            ShapeStores and Tables
8736    
8737    2003-05-07  Bernhard Herzog  <[email protected]>
8738    
8739            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
8740            Add comments about the optimizations used.
8741            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
8742            Implement the ReadValue table interface method.
8743    
8744            * test/test_transientdb.py
8745            (TestTransientTable.run_iceland_political_tests)
8746            (TestTransientTable.test_transient_joined_table): Add tests for
8747            ReadValue
8748    
8749    2003-05-07  Frank Koormann <[email protected]>
8750    
8751            * Resources/Bitmaps/fulllayerextent.xpm,
8752            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
8753            new icons.
8754    
8755    2003-05-06  Bernhard Herzog  <[email protected]>
8756    
8757            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
8758            New. Simply delegate to the transient table's version.
8759    
8760            * test/test_transientdb.py
8761            (TestTransientTable.test_auto_transient_table_query): New. Test
8762            case for AutoTransientTable's SimpleQuery
8763    
8764    2003-05-06  Bernhard Herzog  <[email protected]>
8765    
8766            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
8767            Implement a simple query method for the query dialog
8768            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
8769            the row index or shapeid.
8770            (TransientTable.create): Insert the right value of the row index
8771            (TransientJoinedTable.create): Copy the row index of the left
8772            table to the joined result table
8773    
8774            * test/test_transientdb.py
8775            (TestTransientTable.test_transient_table_read_twice): Fix
8776            doc-string
8777            (TestTransientTable.test_transient_table_query): New. Test for the
8778            SimpleQuery method
8779    
8780    2003-05-06  Bernhard Herzog  <[email protected]>
8781    
8782            Convert all table users to use the new table interface. This only
8783            covers Thuban itself, not GREAT-ER or other applications built on
8784            Thuban yet, so the compatibility interface stays in place for the
8785            time being but it now issues DeprecationWarnings.
8786    
8787            Finally, the new Table interface has a new method, HasColumn.
8788    
8789            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
8790            issue deprecation warnings when they're. The warnings refer to the
8791            caller of the method.
8792            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
8793            for the deprecation warnings
8794    
8795            * test/test_table.py: Ignore the deprecation warnings for the old
8796            table in the tests in this module. The purpose of the tests is to
8797            test the old interface, after all.
8798    
8799            * test/test_transientdb.py
8800            (TestTransientTable.run_iceland_political_tests): Use the
8801            constants for the types. Add a test for HasColumn
8802            (TestTransientTable.test_transient_joined_table): Adapt to new
8803            table interface. Add a test for HasColumn
8804            (TestTransientTable.test_transient_table_read_twice): Adapt to new
8805            table interface
8806    
8807            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
8808            Adapt to new table interface
8809    
8810            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
8811            new table interface
8812    
8813            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
8814            (RecordTable.SetTable): Adapt to new table interface
8815    
8816            * Thuban/UI/classifier.py (Classifier.__init__)
8817            (Classifier.__init__): Adapt to new table interface
8818    
8819            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
8820            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
8821            to new table interface
8822    
8823            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
8824            (AutoTransientTable.HasColumn): Implement the new table interface
8825            method
8826            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
8827            (AutoTransientTable.UniqueValues): Adapt to new table interface
8828    
8829            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
8830            Adapt to new table interface
8831    
8832            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
8833            simplify opening shapefiles a bit easier.
8834            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
8835            (TestLayer.test_point_layer): Use the new helper method
8836            (TestLayer.test_get_field_type): New. Test for the GetFieldType
8837            method
8838    
8839            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
8840            the new table method
8841    
8842            * test/test_memory_table.py (TestMemoryTable.test_has_column):
8843            Test for the new table method HasColumn
8844    
8845    2003-05-06  Jonathan Coles   <[email protected]>
8846    
8847            Addresses the "Selection Extent" wish of RTbug #1787.
8848    
8849            * Resources/Bitmaps/fulllayerextent.xpm,
8850            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
8851            extent. These are just place holders for the real bitmaps.
8852    
8853            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
8854            calculate the bounding box once (the first time compute_bbox() is
8855            called).
8856            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
8857            the bounding box for the shapes in lat/long coordinates.
8858    
8859            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
8860            option.
8861            (MainWindow.has_selected_shapes): New. Returns true if there are
8862            any selected shapes.
8863            (MainWindow.FullSelectionExtent): New. Calls
8864            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
8865            (_has_selected_shapes): New. Returns true if there are any
8866            selected shapes.
8867    
8868            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
8869            true if there are any selected shapes.
8870    
8871            * Thuban/UI/view.py (MapCanvas): Added delegated method
8872            HasSelectedShapes.
8873            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
8874            shapes on the canvas using the map projection (if any).
8875    
8876            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
8877            for Layer.ShapesBoundingBox().
8878    
8879    2003-05-06  Bernhard Herzog  <[email protected]>
8880    
8881            * Resources/Projections/defaults.proj: Fix spelling of Mercator
8882    
8883    2003-05-05  Jonathan Coles   <[email protected]>
8884    
8885            Addresses the "Full Layer Extent" wish of RTbug #1787.
8886    
8887            * Resources/Projections/defaults.proj: Added UK National Grid.
8888    
8889            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
8890            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
8891            when the user selects the menu option.
8892    
8893            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
8894            scales the given layer on the canvas using the map projection.
8895    
8896    2003-05-05  Bernhard Herzog  <[email protected]>
8897    
8898            Convert the table implementations to a new table interface. All
8899            tables use a common mixin class to provide backwards compatibility
8900            until all table users have been updated.
8901    
8902            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
8903            provide backwards compatibility for table classes implementing the
8904            new interface
8905            (DBFTable, MemoryTable): Implement the new table interface. Use
8906            OldTableInterfaceMixin as base for compatibility
8907            (DBFColumn, MemoryColumn): New. Column description for DBFTable
8908            and MemoryTable resp.
8909    
8910            * test/test_dbf_table.py: New. Test cases for the DBFTable with
8911            the new table interface.
8912    
8913            * test/test_memory_table.py: New. Test cases for the MemoryTable
8914            with the new table interface.
8915    
8916            * test/test_table.py: Document the all tests in this file as only
8917            for backwards compatibility. The equivalent tests for the new
8918            interface are in test_memory_table.py and test_dbf_table.py
8919            (MemoryTableTest.test_read): field_info should be returning tuples
8920            with four items
8921            (MemoryTableTest.test_write): Make doc-string a more precise.
8922    
8923            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
8924            table interface. Derive from from OldTableInterfaceMixin for
8925            compatibility.
8926            (TransientTableBase.create): New intance variable column_map to
8927            map from names and indices to column objects
8928            (TransientTable.create): Use the new table interface of the input
8929            table
8930            (AutoTransientTable): Convert to new table interface. Derive from
8931            from OldTableInterfaceMixin for compatibility.
8932            (AutoTransientTable.write_record): Removed. It's not implemented
8933            yet and we still have to decide how to handle writing with the new
8934            table and data framework.
8935    
8936            * test/test_transientdb.py
8937            (TestTransientTable.run_iceland_political_tests)
8938            (TestTransientTable.test_transient_joined_table): Use the new
8939            table interface
8940    
8941    2003-05-05  Jonathan Coles   <[email protected]>
8942    
8943            This is namely a collection of UI updates to improve user interactivity.
8944            Tabbing between controls now exists and you can use ESC to close dialog
8945            boxes; ENTER will active the default button.
8946    
8947            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
8948            order that the controls are created so that tabbing works correctly.
8949            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
8950            wxDialog can handle the default button correctly.
8951            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
8952            same reasons as for OnOK.
8953            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
8954            when we ask the table for the maximum/minimum values of a field
8955            which could take a very long time.
8956    
8957            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
8958            order that the controls are created so that tabbing works correctly.
8959            (SelectPropertiesDialog.__init__): Rearrange the order that the
8960            controls are created so that tabbing works correctly.
8961    
8962            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
8963            to derive from a wxDialog but behave like the original implementation
8964            which was derived from a wxFrame. wxDialog provides useful key
8965            handling functionality like ESC calling OnCancel and ENTER calling
8966            OnOK which is lost with wxFrame.
8967    
8968            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
8969            new dialogs.
8970    
8971            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
8972            order that the controls are created so that tabbing works correctly.
8973            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
8974            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
8975            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
8976            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
8977            can provide the "UK National Grid" as a default projection.
8978            (UTMPanel.__init__): Rearrange the order that the controls are
8979            created so that tabbing works correctly.
8980    
8981    2003-05-05  Bernhard Herzog  <[email protected]>
8982    
8983            * extensions/thuban/wxproj.cpp: Fix some of the comments.
8984            (project_point): If a map projection but no layer projection is
8985            given, convert degrees to radians before applying the map
8986            projection.
8987    
8988            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
8989            (TableGrid.allow_messages): New methods to make it possible to
8990            inhibit message sending.
8991            (TableGrid.issue): Only send the message if not inhibited.
8992            (LayerTableGrid.select_shape): Use the new methods to make sure
8993            that no ROW_SELECTED message is sent while we're updating the
8994            selected rows to match the selected shapes.
8995    
8996    2003-05-02  Jan-Oliver Wagner <[email protected]>
8997    
8998            Implementation of MemoryTable.
8999    
9000            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
9001            implementation that operates on a list of tuples. All of the data
9002            are kept in the memory.
9003    
9004            * test/test_table.py (MemoryTableTest): New.
9005    
9006            * test/test_transientdb.py (SimpleTable): Removed.
9007            (TestTransientTable.test_transient_joined_table,
9008            (TestTransientTable.test_transient_table_read_twice): Replaced
9009            SimpleTable by MemoryTable.
9010    
9011    2003-04-30  Jonathan Coles   <[email protected]>
9012    
9013            * Data/iceland_sample.thuban: Now contains correct projections
9014            for each of the layers.
9015    
9016            * Resources/Projections/defaults.proj: Geographic projection
9017            contains unit conversion parameter.
9018    
9019    2003-04-30  Jonathan Coles   <[email protected]>
9020    
9021            The most important part of this putback is the projection changes.
9022            It should now be possible to specify the projection that a layer
9023            is in and then specify a different projection for the map. The
9024            projection dialog has an extra parameter for a geographic projection
9025            which lets the user select if the input is in degrees or radians.
9026    
9027            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
9028            to say that the parameter is a tuple of unprojected
9029            points (which is what the callers to this method were assuming).
9030            Also, since the points are unprojected we need to projected them.
9031    
9032            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
9033            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
9034            groups are selected, move the layer up/down. Fixes RTbug #1833.
9035    
9036            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
9037    
9038            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
9039            parameter in call to SetClientData.
9040            (GeoPanel): Add support for selecting the units that the
9041            source data is in (Radians or Degrees).
9042    
9043            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
9044            the rendering loop by reducing the number of if's, removing the
9045            unnecessary try/except block, and checking if the old group
9046            is the same as the new one (which happens a lot if there is
9047            no classification, or lots of shapes are in the same group).
9048    
9049            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
9050            around the redraw routine to try to catch problems that the user
9051            may create by selecting invalid projections for the data set and
9052            map. Clears the display if there are any problems and prints the
9053            error.
9054            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
9055            rectangle.
9056    
9057            * extensions/thuban/wxproj.cpp (project_point): First invert the
9058            supplied point (which should be in projected coordinates) using
9059            the layer's projection and then project the point using the
9060            map's projection.
9061            (project_points): Use project_point() to project each point.
9062    
9063    2003-04-30  Jan-Oliver Wagner <[email protected]>
9064    
9065            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
9066            don't set the Classification to None if the classfication field
9067            is None (ie only a DEFAULT).
9068    
9069    2003-04-30  Bernhard Herzog  <[email protected]>
9070    
9071            * Thuban/UI/view.py: Fix some typos.
9072    
9073            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
9074            not pop up the dialog if the selection becomes empty (this could
9075            happen if e.g. a new selection is opened while the identify tool
9076            is active and dialog had been closed)
9077    
9078    2003-04-30  Bernhard Herzog  <[email protected]>
9079    
9080            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
9081            instance variable read_record_last_result
9082            (TransientTableBase.read_record): Make sure reading the same
9083            record twice works. The implementation uses the new instance
9084            variable read_record_last_result
9085    
9086            * test/test_transientdb.py
9087            (TestTransientTable.test_transient_table_read_twice): New test
9088            case for the above bug-fix.
9089    
9090    2003-04-29  Jonathan Coles   <[email protected]>
9091    
9092            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
9093    
9094            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
9095    
9096            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
9097            (ClassTable.SetValueAsCustom): Rename keyword argument in
9098            ClassGroup* constructors to match argument name.
9099    
9100    2003-04-29  Bernhard Herzog  <[email protected]>
9101    
9102            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
9103            transient DB if it exists to make sure it doesn't leave a journal
9104            file in the temp directory.
9105    
9106            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
9107            self.conn to None after closing the connection to make sure it's
9108            not closed twice
9109    
9110    2003-04-29  Jonathan Coles   <[email protected]>
9111    
9112            Add a visible parameter in the layer XML tag. The default value is
9113            "true". If anything other than "false" is specified we also assume
9114            "true". Addresses RTbug #1025.
9115    
9116            * Doc/thuban.dtd: Add visible parameter to a layer.
9117    
9118            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
9119            of visible from 1 to True.
9120            (Layer.__init__): Change default value of visible from 1 to True.
9121    
9122            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
9123            parameter.
9124    
9125            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
9126            parameter.
9127    
9128            * test/test_load.py: Add new test data contents_test_visible.
9129            (LoadSessionTest.setUp): save test data.
9130            (LoadSessionTest.testLayerVisibility): Test if the visible flag
9131            is loaded correctly.
9132    
9133            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
9134            for saving an invisible layer.
9135    
9136    2003-04-29  Jonathan Coles   <[email protected]>
9137    
9138            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
9139            legend dialog box and tell it to change its map to the one
9140            supplied to SetMap(). Fixes RTbug #1770.
9141    
9142    2003-04-29  Bernhard Herzog  <[email protected]>
9143    
9144            Next step of table implementation. Introduce a transient database
9145            using SQLite that some of the data is copied to on demand. This
9146            allows us to do joins and other operations that require an index
9147            for good performance with reasonable efficiency. Thuban now needs
9148            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
9149            haven't tested that.
9150            
9151            * Thuban/Model/transientdb.py: New. Transient database
9152            implementation.
9153    
9154            * test/test_transientdb.py: New. Tests for the transient DB
9155            classes.
9156    
9157            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
9158            classes to help automatically remove temporary files and
9159            directories.
9160            (Session.__init__): New instance variables temp_dir for the
9161            temporary directory and transient_db for the SQLite database
9162            (Session.temp_directory): New. Create a temporary directory if not
9163            yet done and return its name. Use AutoRemoveDir to have it
9164            automatically deleted
9165            (Session.TransientDB): Instantiate the transient database if not
9166            done yet and return it.
9167    
9168            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
9169            AutoTransientTable so that data is copied to the transient DB on
9170            demand.
9171            (SimpleStore): New class that simply combines a table and a
9172            shapefile
9173    
9174            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
9175            DBFTable and update its doc-string to reflect the fact that this
9176            is only the table interface to a DBF file. Table is now an alias
9177            for DBFTable for temporary backwards compatibility.
9178    
9179            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
9180            the last reference to the session goes away so that the temporary
9181            files are removed properly.
9182    
9183            * test/test_load.py (LoadSessionTest.tearDown): Remove the
9184            reference to the session to make sure the temporary files are
9185            removed.
9186    
9187    2003-04-29  Bernhard Herzog  <[email protected]>
9188    
9189            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
9190            the __parser instance variable into a normal local variable in
9191            read. It's only used there and read will never be called more than
9192            once. Plus it introduces a reference cycle that keeps can keep the
9193            session object alive for a long time.
9194    
9195    2003-04-29  Jonathan Coles   <[email protected]>
9196    
9197            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
9198            Projection an immutable item. Fixes RTbug #1825.
9199            (Projection.__init__): Initialize instance variables here.
9200            (ProjFile.Replace): New. Replace the given projection object with
9201            the new projection object. This solves the problem of needing the
9202            mutator Projection.SetProjection() in the ProjFrame class and
9203            allows a projection to change parameters without changing its
9204            location in the file.
9205    
9206            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
9207            be of type wxSAVE and should verify overwriting a file.
9208    
9209            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
9210            ProjFile.Replace() method instead of the mutator
9211            Projection.SetProjection(). Also requires that we reassign the
9212            client data to the new projection.
9213    
9214            * test/test_proj.py (TestProjection.test): Test GetName() and
9215            GetAllParameters()
9216            (TestProjFile.test): Remove tests for Set*() methods. Add tests
9217            for Replace().
9218    
9219    2003-04-25  Jonathan Coles   <[email protected]>
9220    
9221            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
9222            to save the name of the projection.
9223    
9224            * test/test_save.py (SaveSessionTest.testLayerProjection): New
9225            test to verify layer projections are saved correctly.
9226    
9227    2003-04-25  Jonathan Coles   <[email protected]>
9228    
9229            * Thuban/Model/proj.py (Projection.SetName): Set the name
9230            to "Unknown" if name is None.
9231            (Projection.SetAllParameters): New. Set the projection's
9232            parameter list to the one supplied.
9233            (Projection.SetProjection): New. Set the projection's
9234            properties to those of the supplied Projection.
9235    
9236            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
9237            the dialog title to include the map's title.
9238            (MainWindow.LayerProjection): Set the dialog title to include
9239            the layer's title.
9240    
9241            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
9242            error dialogs into a single method call.
9243            (ProjFrame.__VerifyButtons): Add more states to check.
9244            (ProjFrame.__GetProjection): Return the current state of an
9245            edited projection or None.
9246            (ProjFrame.__FillAvailList): Remove checks for states that
9247            shouldn't exist.
9248            (ProjFrame._OnNew): Clear all selected items and supply
9249            a projection panel if necessary.
9250    
9251            * test/test_proj.py (TestProjFile.test): Add tests for
9252            ProjFile.SetAllParameters, ProjFile.SetProjection,
9253            ProjFile.SetName.
9254    
9255    2003-04-25  Jonathan Coles   <[email protected]>
9256    
9257            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
9258            takes an optional argument to select the current projection.
9259            This does not guarantee that the item is visible due to
9260            limited wxWindows functionality. Fixes RTBug #1821.
9261    
9262    2003-04-25  Jonathan Coles   <[email protected]>
9263    
9264            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
9265            the projection name and use it when constructing the Projection
9266            object.
9267    
9268            * Thuban/Model/proj.py (Projection.__init__): Change the default
9269            value for 'name' to None and then test if name is equal to None
9270            in the body of the constructor. This way the caller doesn't have to
9271            know what the default value should be. Namely, useful in load.py
9272            where we have to pick a default value if the 'name' parameter
9273            doesn't exist in the XML file.
9274    
9275            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
9276            Tests a file where a layer has a projection.
9277    
9278    2003-04-25  Jonathan Coles   <[email protected]>
9279    
9280            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
9281            tree for projection information.
9282    
9283            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
9284            XMLReader.GetFileName.
9285            (SessionLoader): Added support for loading projection tags that
9286            appear inside a layer.
9287    
9288            * Thuban/Model/proj.py (ProjFile): Document the class. Move
9289            back to using a list because the order of the projections in
9290            the file is important to maintain. Fixes RTbug #1817.
9291    
9292            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
9293            to ProjFile.GetFilename.
9294    
9295            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
9296            information.
9297    
9298            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
9299            ProjFrame._OnSaveAs. Removed old dead code from previous
9300            implementation.
9301            (ProjFrame._OnExport): Add support for exporting more than one
9302            projection to a single file.
9303            (ProjFrame.__FillAvailList): use string formatting (% operator)
9304            to build strings that are (partly) translated. Fixes RTbug #1818.
9305    
9306            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
9307            class.
9308    
9309    2003-04-24  Bernhard Herzog  <[email protected]>
9310    
9311            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
9312    
9313            * po/fr.po: New. French translation by Daniel Calvelo Aros
9314    
9315            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
9316            empty strings.
9317    
9318    2003-04-24  Jonathan Coles   <[email protected]>
9319    
9320            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
9321            implement the interface that the ProjFrame dialog expects.
9322    
9323            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
9324            name of the projection to be changed.
9325            (ProjFile): Use a dictionary instead of a list so that removing
9326            projections is easier and we are sure about uniqueness.
9327            (ProjFile.Remove): Remove the given projection object.
9328    
9329            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
9330            Return a list with only one projection file instead of searching for
9331            any projection file. This simplifies many things if the user can
9332            only have one system file and one user file.
9333    
9334            * Thuban/UI/classgen.py: Change all references to
9335            genCombo to genChoice.
9336    
9337            * Thuban/UI/mainwindow.py: Add a Projection option under the
9338            layer menu.
9339            (MainWindow.LayerProjection): New. Open up a projection window
9340            for a layer.
9341    
9342            * Thuban/UI/projdialog.py: Large changes to how the dialog is
9343            laid out. Use three panels instead of one. One for the list of
9344            projections, one for the edit controls, and one for the buttons.
9345            Fixed resizing problems so that the dialog resizes correctly
9346            when the projection panel changes. Added import/export, save, and
9347            new buttons/functionality.
9348    
9349    2003-04-24  Bernhard Herzog  <[email protected]>
9350    
9351            First step towards table management. Introduce a simple data
9352            abstraction so that we replace the data a layer uses more easily
9353            in the next step.
9354    
9355            * Thuban/Model/data.py: New file with a simple data abstraction
9356            that bundles shapefile and dbffile into one object.
9357    
9358            * Thuban/Model/session.py (Session.OpenShapefile): New method to
9359            open shapefiles and return a shape store object
9360    
9361            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
9362            object instead of a shapefile filename. This introduces a new
9363            instance variable store holding the datastore. For intermediate
9364            backwards compatibility keep the old instance variables.
9365            (open_shapefile): Removed. No longer needed with the shape store.
9366            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
9367            get the shape store used by a layer.
9368            (Layer.Destroy): No need to explicitly destroy the shapefile or
9369            table anymore.
9370    
9371            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
9372            (MainWindow.AddLayer): Use the session's OpenShapefile method to
9373            open shapefiles
9374    
9375            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
9376            session's OpenShapefile method to open shapefiles
9377    
9378            * test/test_classification.py
9379            (TestClassification.test_classification): Use the session's
9380            OpenShapefile method to open shapefiles and build the filename in
9381            a more platform independed way
9382    
9383            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
9384            Implement to have a session to use in the tests
9385            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
9386            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
9387            session's OpenShapefile method to open shapefiles
9388            (TestLayerLegend.setUp): Instantiate a session so that we can use
9389            it to open shapefiles.
9390            (TestLayerLegend.tearDown): Make sure that all references to
9391            layers and session are removed otherwise we may get a resource
9392            leak
9393    
9394            * test/test_map.py (TestMapAddLayer.test_add_layer)
9395            (TestMapWithContents.setUp): Instantiate a session so that we can
9396            use it to open shapefiles.
9397            (TestMapWithContents.tearDown): Make sure that all references to
9398            layers, maps and sessions are removed otherwise we may get a
9399            resource leak
9400            ("__main__"): use support.run_tests() so that more info about
9401            uncollected garbage is printed
9402    
9403            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
9404            session's OpenShapefile method to open shapefiles
9405            ("__main__"): use support.run_tests() so that more info about
9406            uncollected garbage is printed
9407    
9408            * test/test_selection.py (TestSelection.tearDown): Make sure that
9409            all references to the session and the selection are removed
9410            otherwise we may get a resource leak
9411            (TestSelection.get_layer): Instantiate a session so that we can
9412            use it to open shapefiles.
9413            ("__main__"): use support.run_tests() so that more info about
9414            uncollected garbage is printed
9415    
9416            * test/test_session.py (TestSessionBase.tearDown)
9417            (TestSessionWithContent.tearDown): Make sure that all references
9418            to the session and layers are removed otherwise we may get a
9419            resource leak
9420            (TestSessionWithContent.setUp): Use the session's OpenShapefile
9421            method to open shapefiles
9422    
9423    2003-04-24  Jonathan Coles   <[email protected]>
9424    
9425            * Thuban/Model/load.py (XMLReader.read): Should have been checking
9426            if the file_or_filename object had the 'read' attribute.
9427    
9428    2003-04-23  Jonathan Coles   <[email protected]>
9429    
9430            * Thuban/Model/resource.py: Fixes RTbug #1813.
9431            (ReadProjFile): Add documentation about which exceptions are raised.
9432            Always pass the exceptions up to the caller.
9433            (GetProjFiles): If the directory can't be read return an empty list.
9434            If any of the proj files can't be read skip that file and go
9435            on to the next one.
9436    
9437            * test/test_proj.py: Added test cases to handle nonexistent files,
9438            unreadable files, and files that don't parse correctly.
9439    
9440    2003-04-23  Jonathan Coles   <[email protected]>
9441    
9442            Projection dialog. Allows the user to select from a list
9443            of projection templates and optionally edit them and save new ones.
9444    
9445            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
9446            (ProjPanel): Base class for projection specific panels.
9447            (TMPanel): Projection panel for Transverse Mercartor.
9448            (UTMPanel): Projection panel for Universal Transverse Mercartor.
9449            (LCCPanel): Projection panel for Lambert Conic Conformal.
9450            (GeoPanel): Projetion panel for Geographic Projection.
9451    
9452    2003-04-23  Jonathan Coles   <[email protected]>
9453    
9454            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
9455            promote symmetry. There now exists XMLReader and XMLWriter.
9456            (XMLReader.read): New. Call to read the given file descriptor or
9457            filename.
9458            (XMLReader.close): New. Make sure the file is closed.
9459            (XMLReader.GetFileName): New. Return just the file name that is being
9460            read from.
9461            (XMLReader.GetDirectory): New. Return just the directory of the file
9462            that is being read.
9463            (XMLReader.AddDispatchers): New. Take a dictionary which contains
9464            the names of functions to call as the XML tree is parsed.
9465            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
9466            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
9467            (SessionLoader): Removed class variables start_dispatcher and
9468            end_dispatcher since this functionality is now part of a class
9469            instance. Fixes RTbug #1808.
9470            (SessionLoader.__init__): Add dispatcher functions.
9471            (load_xmlfile): Code was moved into the XMLReader.read().
9472            (load_session): Use modified SessionLoader.
9473    
9474            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
9475            map's projection.
9476    
9477            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
9478            GetAllParameters.
9479            (Projection.GetParameter): Returns the value for the given parameter.
9480    
9481            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
9482            (GetProjFiles): Renamed from GetProjections. Now returns a list
9483            of ProjFile objects.
9484            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
9485            a list of ProjFile objects whose files are not user defined.
9486            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
9487            list of ProjFile objects whose files are user defined.
9488            (ProjFileReader): Extend new XMLReader.
9489    
9490            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
9491            promote symmetry.
9492    
9493            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
9494            control instead of a wxComboBox. wxChoice controls do not generate
9495            events as the uses highlights possible choices which fixes problems
9496            with resizing the dialog when the use selects an option.
9497    
9498            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
9499            control instead of a wxComboBox.
9500    
9501            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
9502            dialog.
9503    
9504            * test/test_proj.py (TestProjection.test): New tests for GetParameter
9505            method.
9506    
9507    2003-04-22  Bernhard Herzog  <[email protected]>
9508    
9509            * Thuban/UI/mainwindow.py: Remove some unused imports and global
9510            constants
9511    
9512            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
9513            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
9514    
9515    2003-04-17  Bernhard Herzog  <[email protected]>
9516    
9517            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
9518            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
9519            anymore.
9520            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
9521            (Layer.ShapeType, Layer.Shape): No need to call
9522            self.open_shapefile since it's always called in __init__
9523    
9524            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
9525            In wxPython 2.4 there's no need to extend MainLoop anymore since
9526            wxPython itself makes sure OnExit is called.
9527    
9528    2003-04-16  Jonathan Coles   <[email protected]>
9529    
9530            Initial putback of projection management code. Includes new
9531            classes to read and write projection files. The current load
9532            and save classes were abstracted a bit so they could be reused.
9533            The Projection class was extended to provide new methods and
9534            have a name.
9535    
9536            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
9537            general XML reading methods that were part of ProcessSession.
9538    
9539            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
9540            name.
9541            (ProjFile): New. Represents a file that contains projection
9542            information.
9543    
9544            * Thuban/Model/resource.py: New. Contains general utilities
9545            for read and writing projection files.
9546    
9547            * Thuban/Model/save.py (XMLSaver): New. Contains all the
9548            general XML writing methods that were part of SessionSaver.
9549            (SessionSaver): Renamed from Saver.
9550    
9551            * test/test_proj.py: New test cases for the projection
9552            file read and write functions.
9553    
9554    2003-04-16  Jonathan Coles   <[email protected]>
9555    
9556            * Thuban/Model/classification.py: Use repr() around values
9557            in the ClassGroup*.__repr__() methods so it is clearer when
9558            a value is a string and when it is a number.
9559    
9560            * test/test_load.py: Rework the classification test to test
9561            that we can load old files.
9562            (testLabels): Test a file where the groups have labels.
9563    
9564    2003-04-16  Bernhard Herzog  <[email protected]>
9565    
9566            Safer implementation of the performance enhancements of the
9567            low-level renderer:
9568            
9569            * extensions/thuban/wxproj.cpp (extract_projection)
9570            (extract_pointer): Rename extract_projection to extract_pointer
9571            and redefine its purpose to return the pointer stored in a CObject
9572            returned by the object's cobject method. Update all callers.
9573            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
9574            handling of these low-level parameters so that each s_draw_info
9575            instance is handled as a CObject at python level that also
9576            contains real references to the actual python objects which
9577            contain the values in the struct. Add free_draw_info as the
9578            destructor.
9579            (draw_polygon_shape): Add the py_draw_info parameter which must a
9580            cobject containing an s_draw_info pointer.
9581    
9582            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
9583            method to instantiat the low-level render parameter
9584            (MapRenderer.draw_shape_layer): Use the new method. Remove some
9585            commented out code.
9586            (MapRenderer.draw_polygon_shape): Make the first parameter not the
9587            layer but the low-level render parameter
9588            (ScreenRenderer.draw_shape_layer): Use the low-level render
9589            parameter.
9590    
9591    2003-04-15  Jonathan Coles   <[email protected]>
9592    
9593            * Thuban/Model/classification.py: Implemented __repr__ for
9594            the ClassGroup* classes to make debugging a bit easier.
9595            (ClassGroup.SetLabel): Check that the string is an instance
9596            of StringTypes not StringType. Accounts for Unicode strings.
9597    
9598            * Thuban/Model/color.py: Implemented __repr__ to make
9599            debugging a bit easier.
9600    
9601            * Thuban/Model/save.py (Saver.write_classification): Need to
9602            save the group label.
9603    
9604            * test/test_load.py (testClassification): New. Loads the
9605            iceland_sample_test.thuban file and checks if it was loaded
9606            correctly.
9607    
9608    2003-04-15  Jonathan Coles   <[email protected]>
9609    
9610            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
9611            to improve rendering performance by initializing the variables
9612            that are not change each time draw_polygon_shape() is called.
9613            The values are stored in a global struct draw_info.
9614            (draw_polygon_shape): Removed initialization code that is
9615            now in draw_polygon_init().
9616    
9617            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
9618            drawing initialization call to draw_polygon_init()
9619            (MapRenderer.draw_polygon_shape): Use new signature of
9620            draw_polygon_shape.
9621    
9622            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
9623            weirdness by setting the range to (1, maxint).
9624    
9625            * Thuban/Model/classification.py (ClassGroupProperties): Make
9626            instance variables private and optimize comparison operator
9627            by first checking if the color references are the same.
9628            (ClassGroupSingleton): Make instance variables private.
9629            (ClassGroupRange): Make instance variables private.
9630    
9631            * HOWTO-Release: Filled in missing steps for releasing packages.
9632    
9633    2003-04-15  Bernhard Herzog  <[email protected]>
9634    
9635            First stab at internationalized messages:
9636    
9637            * Thuban/__init__.py (_): Implement the translation function for
9638            real using the python gettext module.
9639    
9640            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
9641            translate empty strings.
9642    
9643            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
9644            Add a missing space to a warning message
9645    
9646            * po/README: New. Notes about the management of the translation
9647            files.
9648    
9649            * po/Makefile: New. Makefile to help manage the translation files.
9650    
9651            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
9652    
9653            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
9654            translations and support files in po/
9655    
9656            * setup.py (data_files): Add the *.mo files to the data_files too
9657    
9658            * README: Add note about the translations when building from CVS
9659    
9660    2003-04-14  Jonathan Coles   <[email protected]>
9661    
9662            * Thuban/UI/dock.py: Fixes some window resizing problems most
9663            noticable under windows. Always assume the button bitmaps will
9664            be there. Code clean up.
9665            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
9666            images for the dock/undock button to the same images.
9667            Work around for RTbug #1801.
9668    
9669            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
9670            be allowed to grow within the sizer. Fixes a bug under Windows
9671            where the toolbar wasn't being drawn.
9672    
9673    2003-04-14  Frank Koormann   <[email protected]>
9674    
9675            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
9676            Updated design to try to make the button functionality more
9677            transparent.
9678    
9679    2003-04-14  Jonathan Coles   <[email protected]>
9680    
9681            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
9682            finalize the intialization of the panel.
9683    
9684            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
9685            creation of the panel. Should be the last thing called in the
9686            initializer of a subclass.
9687    
9688            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
9689            set the current selections in the combo boxes. This is needed
9690            under Windows.
9691    
9692            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
9693            level panel to the dialog so that the background colors are
9694            consistent under Windows.
9695    
9696    2003-04-11  Jonathan Coles   <[email protected]>
9697    
9698            * Thuban/UI/classgen.py: Change color ramps to start at white
9699            not black.
9700    
9701            * Thuban/UI/legend.py: Enable/disable the legend buttons when
9702            the legend changes. Fixes RTbug #1793.
9703    
9704            * test/test_classification.py: Added test for copying of
9705            classifications.
9706    
9707    2003-04-11  Jonathan Coles   <[email protected]>
9708    
9709            * Thuban/UI/resource.py: New. Centralize the loading of resources
9710            such as bitmaps.
9711    
9712            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
9713            added images to the move buttons, added 'reverse' button.
9714            (CustomRampPanel.__init__): Added images to the move buttons.
9715            (GreyRamp): New. Generates a ramp from white to black.
9716            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
9717    
9718            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
9719            ID_PROPERTY_*.
9720            (Classifier.__init__): Minor changes to the layout.
9721            (Classifier._OnTitleChanged): Listen for when the user edits the
9722            title and update the dialog's title and the layer's title.
9723    
9724            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
9725    
9726            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
9727            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
9728            if the layer's title changes.
9729    
9730            * Thuban/UI/mainwindow.py: Added new menu item and associated code
9731            to open a dialog to rename the map.
9732            (MainWindow): Use new resource class to import bitmaps.
9733    
9734    2003-04-11  Jonathan Coles   <[email protected]>
9735    
9736            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
9737            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
9738            Resources/Bitmaps/group_use_none.xpm,
9739            Resources/Bitmaps/group_use_not.xpm,
9740            Resources/Bitmaps/hide_layer.xpm,
9741            Resources/Bitmaps/layer_properties.xpm,
9742            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
9743            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
9744            New.
9745    
9746    2003-04-10  Jonathan Coles   <[email protected]>
9747    
9748            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
9749            Should pass group to ClassGroup constructor.
9750    
9751    2003-04-10  Jonathan Coles   <[email protected]>
9752    
9753            * Thuban/Model/classification.py: (ClassGroup): Move all the common
9754            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
9755            here. Implement SetVisible(), IsVisible().
9756            (ClassGroup.__init__): Add group parameter which acts as a copy
9757            constructor.
9758    
9759            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
9760            "Visible" check boxes.
9761            (Classifier): Rename the buttons and refactor the code to match
9762            the new labels.
9763    
9764            * Thuban/UI/legend.py: Classify button is now called "Properties".
9765            Refactored the code to change variable names.
9766            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
9767    
9768            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
9769            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
9770            renamed to MainWindow.LayerEditProperties.
9771            (MainWindow.ToggleLegend): Don't include map name in legend title.
9772            (MainWindow.SetMap): Added the map name to the window title.
9773            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
9774            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
9775            Functionality is found in the layer properties dialog.
9776    
9777            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
9778            draw visible groups.
9779    
9780    2003-04-09  Jonathan Coles   <[email protected]>
9781    
9782            * Thuban/UI/classgen.py: Modifications to allow simple
9783            addition and selection of new color schemes.
9784            (MonochromaticRamp): New. Generates a ramp between two colors.
9785            (RedRamp): New. Generates a ramp of all red.
9786            (GreenRamp): New. Generates a ramp of all green.
9787            (BlueRamp): New. Generates a ramp of all blue.
9788    
9789    2003-04-09  Jonathan Coles   <[email protected]>
9790    
9791            * Thuban/Model/classification.py (Classification.__deepcopy__):
9792            Need to copy over field and fieldType attributes.
9793    
9794            * Thuban/Model/table.py (Table.field_range): New. Retrive the
9795            maximum and minimum values over the entire table for a given
9796            field.
9797            (Table.GetUniqueValues): New. Retrieve all the unique values
9798            in the table for a given field.
9799    
9800            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
9801            (GenUniquePanel): New. Controls to allow the user to select
9802            which unique field values they would like in the classification.
9803            (CustomRampPanel): Code that was in ClassGenDialog that allows
9804            the user to select the properties for a custom ramp.
9805            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
9806    
9807            * Thuban/UI/classifier.py: Removed a lot of debugging code.
9808            (Classifier._SetClassification): Callback method so that the
9809            class generator can set the classification in the grid.
9810            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
9811            editing of a group properties class into a wxWindows control.
9812    
9813            * Thuban/UI/dock.py: It was decided that if the user closes
9814            a dockable window the window should simply hide itself. That
9815            way if the user wants to show the dock again it appears in the
9816            same place as it was when it was closed.
9817            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
9818            (DockableWindow._OnButtonClose): Hide the window instead of
9819            destroying it.
9820            (DockableWindow._OnClose): Hide the window instead of
9821            destroying it.
9822    
9823            * Thuban/UI/legend.py (LegendTree): Use a private method to
9824            consistently set the font and style of the text. Fixes RTbug #1786.
9825    
9826            * Thuban/UI/mainwindow.py: Import just the Classifier class.
9827    
9828    2003-04-07  Bernhard Herzog  <[email protected]>
9829    
9830            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
9831            to the map module
9832    
9833    2003-04-07  Bernhard Herzog  <[email protected]>
9834    
9835            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
9836            favor of ToggleSessionTree
9837            (MainWindow.ToggleSessionTree): New method to toggle visibility of
9838            the session tree.
9839            (MainWindow.SessionTreeShown): New method to return whether the
9840            session tree is currently shown.
9841            (MainWindow.ToggleLegend): New method to toggle visibility of the
9842            legend
9843            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
9844            LegendShown
9845            (MainWindow.LegendShown): New method to return whether the legend
9846            is currently shown.
9847            (_method_command): Add checked parameter so we can define check
9848            menu items
9849            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
9850            mainwindow methods.
9851            (show_session_tree, show_legend commands): Removed.
9852            (toggle_session_tree, toggle_legend commands): New commands to
9853            toggle the visibility of the dialogs
9854    
9855    2003-04-07  Jonathan Coles   <[email protected]>
9856    
9857            * Thuban/UI/classgen.py: Fix Windows problem.
9858    
9859            * Thuban/UI/dock.py: Fix Windows problem.
9860    
9861            * Thuban/UI/mainwindow.py: Use False instead of false.
9862            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
9863    
9864    2003-04-07  Jonathan Coles   <[email protected]>
9865    
9866            Since we now say that the order of the groups in a classification
9867            matters, it makes sense to be able to manipulate that order. Most
9868            of the changes to Thuban/Model/classification.py are to that end.
9869    
9870            * Thuban/Model/classification.py (Classification.AppendGroup,
9871            Classification.InsertGroup, Classification.ReplaceGroup,
9872            Classification.RemoveGroup, Classification.GetGroup): Do as the
9873            names imply.
9874            (Classification.FindGroup): This was called GetGroup, but GetGroup
9875            takes an index, while FindGroup takes a value.
9876            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
9877            REFERENCE. Currently there is a cyclic reference between the layer
9878            and its classification. If the classification doesn't need to know
9879            its owning layer we can change this, since it may make sense to be
9880            able to use the same classification with different layers.
9881    
9882            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
9883    
9884            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
9885            not AddGroup()
9886    
9887            * Thuban/UI/classifier.py: Now that we can depend on the order in
9888            a Classification and have methods to manipulate that order we don't
9889            need to use our own data structures in the grid. We can simply make
9890            the grid/table access the information they need from a copy of
9891            the classification object.
9892            (Classifier._OnCloseBtn): Event handler for when the user clicks
9893            'Close'. This is needed so if the user applies changes and then
9894            continues to change the table the user has the option of discarding
9895            the most recent changes and keeping what they applied.
9896    
9897            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
9898            into the same group.
9899    
9900            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
9901            with a really old version of proj, PJ_VERSION won't even be defined.
9902            If it isn't defined then just compile so that the function always
9903            returns Py_False.
9904    
9905            * test/test_classification.py: Fix tests to use the renamed methods.
9906            Still need to write tests for the new methods.
9907    
9908    2003-04-04  Jonathan Coles   <[email protected]>
9909    
9910            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
9911            call to SetSelection out of the method and before the call
9912            to __SelectField in __init__. This prevents a recursion of events
9913            when _OnFieldSelect is triggered by the user.
9914    
9915    2003-04-04  Jonathan Coles   <[email protected]>
9916    
9917            * Thuban/Model/classification.py: Rename Color.None to
9918            Color.Transparent.
9919            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
9920            Don't bother copying the color, since Colors are immutable.
9921    
9922            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
9923            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
9924            Thuban/UI/renderer.py, Thuban/UI/view.py:
9925            Rename Color.None to Color.Transparent.
9926        
9927            * test/test_classification.py, test/test_load.py: Rename Color.None
9928            to Color.Transparent.
9929    
9930    2003-04-04  Jonathan Coles   <[email protected]>
9931    
9932            * Thuban/Model/classification.py: Fix assert calls.
9933            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
9934            Copy the color parameter rather than hold onto a reference.
9935    
9936            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
9937            the color object.
9938            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
9939            are sure there exists only one refernce to Color.None in the system.
9940            This allows us to use 'is' rather than the comparision functions.
9941            
9942            * Thuban/Model/save.py: Fix assert calls.
9943            
9944            * Thuban/UI/classifier.py: Fix assert calls.
9945            (ClassGrid._OnCellDClick): Call up to the classifier to open the
9946            dialog to edit the groups properties.
9947            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
9948            correctly if a cell is resized.
9949            (ClassTable.SetClassification): New. Changes the classification
9950            that is in the table.
9951            (ClassTable.__SetRow): Allow groups to be prepended.
9952            (Classifier): New code for opening the EditProperties and
9953            GenerateRanges dialogs.
9954            (SelectPropertiesDialog.__GetColor): Only set the color in the
9955            color dialog if the current color is not None.
9956            
9957            * Thuban/UI/dock.py: Fix assert calls.
9958            
9959            * Thuban/UI/legend.py: Fix assert calls.
9960            
9961            * Thuban/UI/renderer.py: Fix assert calls.
9962            
9963            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
9964            classifications.
9965            (GenRangePanel): Panel specific to range generation.
9966            (GenSingletonPanel): Panel specific to singleton generation.
9967            (ClassGenerator): Class responsible for actually generating
9968            the classification from the data gathered in the dialog box.
9969            (PropertyRamp): Generates properties whose values range from
9970            a starting property to an ending property.
9971    
9972    2003-04-03  Bernhard Herzog  <[email protected]>
9973    
9974            * test/support.py (print_garbage_information): New function that
9975            prints information about still connected messages and memory
9976            leaks.
9977            (run_suite): Removed.
9978            (run_tests): New function for use as a replacement of
9979            unittest.main in the test_* files. This one calls
9980            print_garbage_information at the end.
9981    
9982            * test/runtests.py (main): Use support.print_garbage_information
9983    
9984            * test/test_layer.py: Use support.run_tests instead of
9985            unittest.main so we get memory leak information
9986            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
9987            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
9988            (TestLayerLegend.test_visibility): Call the layer's Destroy method
9989            to fix a memory leak.
9990    
9991            * test/test_classification.py: Use support.run_tests instead of
9992            unittest.main so we get memory leak information
9993            (TestClassification.test_classification): Call the layer's Destroy
9994            method to fix a memory leak.
9995    
9996    2003-04-02  Bernhard Herzog  <[email protected]>
9997    
9998            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
9999            Handle the reference counts of the return value and errors in
10000            PyArg_ParseTuple correctly.
10001    
10002            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
10003            sure the filename is absolute to avoid problems when saving the
10004            session again
10005    
10006            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
10007    
10008    2003-04-01  Jonathan Coles   <[email protected]>
10009    
10010            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
10011            that there actually are points in the returned list of points
10012            before trying to index into the list. The list may be empty if
10013            the shape is a Null Shape.
10014    
10015    2003-04-01  Bernhard Herzog  <[email protected]>
10016    
10017            * test/test_map.py: Don't use from <module> import *
10018    
10019    2003-04-01  Jonathan Coles   <[email protected]>
10020    
10021            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
10022            LAYER_LEGEND_CHANGED
10023    
10024            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
10025            self.Destroy() to close the window after yesterday's changes.
10026    
10027            * test/test_map.py, test/test_session.py: Fix messages that
10028            are sent from maps and layers.
10029    
10030    2003-03-31  Jonathan Coles   <[email protected]>
10031    
10032            * Thuban/UI/classifier.py: Commented out some debugging statements.
10033            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
10034            RTbug #1769.
10035    
10036            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
10037            position (although position doesn't work yet under GTK).
10038            (DockableWindow.Destroy): New. Called when the window must be
10039            closed. Namely needed when the DockFrame closes and must close
10040            its children.
10041            (DockFrame): Listen for EVT_CLOSE and destroy all children.
10042    
10043            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
10044            when then window is told to close.
10045            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
10046            comment in source for more info.
10047    
10048            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
10049    
10050            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
10051            symmetry with other such methods.
10052            (MainWindow.ShowLegend): Show the legend docked by default.
10053    
10054    2003-03-28  Jonathan Coles   <[email protected]>
10055    
10056            * Thuban/UI/classifier.py: Support for highlighting a specific
10057            group within the grid when the classification dialog is opened.
10058            Also contains a lot of debugging printouts which will later
10059            be removed.
10060    
10061            * Thuban/UI/dock.py: Complete rework on the dock code so that
10062            that it is fairly removed from the rest of the Thuban application.
10063            It is easy to add new docks which the rest of the program having
10064            to be aware of them.
10065    
10066            * Thuban/UI/legend.py: Modifications to support selecting a
10067            specific group in the classification dialog. Changed how layers
10068            are drawn when the layer is visible/invisible.
10069    
10070            * Thuban/UI/mainwindow.py: Removed legend specific code and
10071            replaced it with calls to the new dock code.
10072    
10073            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
10074            to check if scale > 0. Trying to track down a divide by zero.
10075    
10076    2003-03-26  Jonathan Coles   <[email protected]>
10077    
10078            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
10079            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
10080            now part of DockableWindow.
10081            (LegendPanel.DoOnSelChanged): Select the current layer in the
10082            map.
10083            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
10084            with the selected layer and/or group.
10085    
10086    2003-03-26  Jonathan Coles   <[email protected]>
10087    
10088            This putback contains the code for dockable windows. There is
10089            no support in wxWindows as of this date for windows that can
10090            attach themselves to other windows.
10091    
10092            The current model contains a DockableWindow which has a parent
10093            window for when it is detached and a dock window that it puts
10094            its contents in when it is docked. The contents of a DockableWindow
10095            must be a DockPanel. DockPanel itself derives from wxPanel.
10096    
10097            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
10098            message, not a LAYER_LEGEND_CHANGED message.
10099    
10100            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
10101    
10102            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
10103            as one of the style properties for the fieldTypeText item to
10104            be sure that its size is correct when the text changes.
10105    
10106            * Thuban/UI/dock.py: New. Classes for the DockPanel and
10107            DockableWindow.
10108    
10109            * Thuban/UI/legend.py: Added some more buttons and made the
10110            LegendPanel a DockPanel.
10111    
10112            * Thuban/UI/mainwindow.py: Added sash windows to the main window
10113            and supporting functions for manipulating the sashes.
10114            (MainWindow.ShowLegend): Create a DockableWindow with the
10115            LegendPanel as the contents.
10116    
10117            * Thuban/UI/messages.py: Added DOCKABLE_* messages
10118    
10119            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
10120            not LAYER_LEGEND_CHANGED, messages.
10121    
10122    2003-03-25  Jonathan Coles   <[email protected]>
10123    
10124            * setup.py: Added custom script bdist_rpm_build_script so that
10125            when the rpm is built the path to wx-config is correct.
10126    
10127            * setup.cfg: Added line saying to use the custom build script
10128    
10129    2003-03-20  Jonathan Coles   <[email protected]>
10130    
10131            Initial implementation of the Legend.
10132    
10133            * Thuban/UI/legend.py: New. Creates a window that shows the map's
10134            Legend information and allows the user to add/modify classifications
10135            and how the layers are drawn on the map.
10136    
10137            * setup.py: New command 'build_docs' which currently uses
10138            happydoc to generate html documentation for Thuban.
10139    
10140            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
10141            Returns a string which is appropriately describes the group.
10142    
10143            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
10144            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
10145    
10146            * Thuban/Model/map.py (Map): Rename messages and use new, more
10147            specific, messages.
10148    
10149            * Thuban/Model/messages.py: New message to indicate that a layer's
10150            data has changed (LAYER_CHANGED). New map messages to indicate
10151            when layers have been added/removed/changed or if the stacking order
10152            of the layers has changed.
10153    
10154            * Thuban/Model/session.py: Rename and use new messages.
10155    
10156            * Thuban/UI/classifier.py: Remember if any changes have actually
10157            been applied so that if the dialog is cancelled without an application
10158            of changes we don't have to set a new classification.
10159            (ClassDataPreviewer): Pulled out the window specific code and put it
10160            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
10161            symbols on any DC.
10162            
10163            * Thuban/UI/mainwindow.py: New code to open the legend.
10164    
10165            * Thuban/UI/view.py: Use new message names.
10166    
10167    2003-03-19  Jonathan Coles   <[email protected]>
10168    
10169            * Thuban/UI/main.py (verify_versions): New. Checks the versions
10170            of Python, wxPython, and some other libraries.
10171    
10172            * extensions/thuban/wxproj.cpp (check_version): Checks the given
10173            version against what wxproj was compiled with.
10174            (check_version_gtk): If wxproj was compiled with gtk then check
10175            the given version against the version of the gtk library
10176            currently being used.
10177    
10178    2003-03-14  Bernhard Herzog  <[email protected]>
10179    
10180            * test/test_command.py: Run the tests when the module is run as a
10181            script
10182    
10183    2003-03-14  Bernhard Herzog  <[email protected]>
10184    
10185            Implement selection of multiple selected shapes in the same layer:
10186    
10187            - Introduce a new class to hold the selection. This basically
10188              replaces the interactor which was nothing more than the
10189              selection anyway. A major difference is of course that the new
10190              selection class supports multiple selected shapes in one layer
10191            
10192            - Move the object that represents the selection from the
10193              application to the canvas. The canvas is a better place than the
10194              application because the selection represents which shapes and
10195              layer of the map displayed by the canvas are selected and
10196              affects how the map is drawn.
10197    
10198            - Make the selection and its messages publicly available through
10199              the mainwindow.
10200    
10201            - The non-modal dialogs do not get a reference to the interactor
10202              anymore as they can simply refer to their parent, the
10203              mainwindow, for the what the interactor had to offer.
10204    
10205            * Thuban/UI/selection.py: New module with a class to represent the
10206            selection.
10207    
10208            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
10209            these unused messages
10210    
10211            * Thuban/UI/application.py (ThubanApplication.OnInit)
10212            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
10213            interactor is gone now.
10214            (ThubanApplication.CreateMainWindow): There is no interactor
10215            anymore so we pass None as the interactor argument for now for
10216            compatibility.
10217    
10218            * Thuban/UI/view.py (MapCanvas.delegated_messages)
10219            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
10220            Unsubscribe, delegate messages according to the delegated_messages
10221            class variable.
10222            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
10223            attributes from instance variables as described with the
10224            delegated_methods class variable.
10225            (MapCanvas.__init__): New instance variable selection holding the
10226            current selection
10227            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
10228            pass them on to the renderer
10229            (MapCanvas.SetMap): Clear the selection when a different map is
10230            selected.
10231            (MapCanvas.shape_selected): Simple force a complete redraw. The
10232            selection class now takes care of only issueing SHAPES_SELECTED
10233            messages when the set of selected shapes actually does change.
10234            (MapCanvas.SelectShapeAt): The selection is now managed in
10235            self.selection
10236    
10237            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
10238            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
10239            Unsubscribe, delegate messages according to the delegated_messages
10240            class variable.
10241            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
10242            attributes from instance variables as described with the
10243            delegated_methods class variable.
10244            (MainWindow.__init__): The interactor as ivar is gone. The
10245            parameter is still there for compatibility. The selection messages
10246            now come from the canvas.
10247            (MainWindow.current_layer, MainWindow.has_selected_layer):
10248            Delegate to the the canvas.
10249            (MainWindow.LayerShowTable, MainWindow.Classify)
10250            (MainWindow.identify_view_on_demand): The dialogs don't need the
10251            interactor parameter anymore.
10252    
10253            * Thuban/UI/tableview.py (TableFrame.__init__)
10254            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
10255            (LayerTableFrame.row_selected): The interactor is gone. It's job
10256            from the dialog's point of view is now done by the mainwindow,
10257            i.e. the parent. Subscribe to SHAPES_SELECTED instead
10258            of SELECTED_SHAPE
10259            
10260            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
10261            is gone. It's job from the dialog's point of view is now done by
10262            the mainwindow, i.e. the parent.
10263            
10264            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
10265            gone. It's job from the dialog's point of view is now done by the
10266            mainwindow, i.e. the parent.
10267    
10268            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
10269            gone. It's job from the dialog's point of view is now done by the
10270            mainwindow, i.e. the parent.
10271            (SessionTreeCtrl.__init__): New parameter mainwindow which is
10272            stored as self.mainwindow. The mainwindow is need so that the tree
10273            can still subscribe to the selection messages.
10274            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
10275            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
10276            selection is now accessible through the mainwindow. Subscribe to
10277            SHAPES_SELECTED instead of SELECTED_SHAPE
10278    
10279            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
10280            SHAPES_SELECTED message now.
10281            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
10282            so deal with multiple shapes
10283            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
10284            gone. It's job from the dialog's point of view is now done by the
10285            mainwindow, i.e. the parent.
10286    
10287            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
10288            parameter is now a list of shape ids.
10289            (RecordTable.SetTable): The second parameter is now a list of
10290            indices.
10291    
10292            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
10293            selected_shape parameter and ivar to selected_shapes. It's now a
10294            list of shape ids.
10295            (MapRenderer.draw_label_layer): Deal with multiple selected
10296            shapes. Rearrange the code a bit so that the setup and shape type
10297            distinctions are only executed once.
10298    
10299            * test/test_selection.py: Test cases for the selection class
10300    
10301    2003-03-11  Jonathan Coles   <[email protected]>
10302    
10303            * Thuban/Model/load.py: Temporary fix so that the xml reader
10304            doesn't cause Thuban to crash.
10305    
10306            * Thuban/Model/layer.py: Handle the cyclic references between
10307            a layer and its classification better, and be sure to disconnect
10308            the classification from the layer when the layer is destroyed
10309            so that we don't maintain a cyclic reference that may not be
10310            garbage collected.
10311    
10312            * Thuban/Model/classification.py: See comment for layer.py.
10313    
10314    2003-03-12  Jan-Oliver Wagner <[email protected]>
10315    
10316            * HOWTO-Release: New. Information on the steps for releasing
10317            a new version of Thuban.
10318    
10319    2003-03-11  Jonathan Coles   <[email protected]>
10320    
10321            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
10322            Use True instead of true.
10323            (Classifier): Should have a single panel in which all the controls lie.
10324    
10325            * Thuban/UI/proj4dialog.py: Add normal border.
10326    
10327            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
10328    
10329            * Thuban/UI/mainwindow.py: Use True instead of true.
10330    
10331            * setup.py: Update some definitions to use wxWindows2.4 files
10332    
10333            * Data/iceland_sample_class.thuban: Fixed file so that the
10334            field_type information is present.
10335    
10336    2003-03-10  Jonathan Coles   <[email protected]>
10337    
10338            * Thuban/UI/classifier.py (Classifier.__init__): Make the
10339            field type label grow so that when the text changes the
10340            size is updated correctly. This may be a wxWindows bug.
10341    
10342    2003-03-10  Jonathan Coles   <[email protected]>
10343    
10344            * Thuban/UI/application.py: Changed SESSION_CHANGED to
10345            SESSION_REPLACED.
10346    
10347            * Thuban/UI/classifier.py: Wrap text with _().
10348            (ClassGrid.CreateTable): Set dimensions and size hints here,
10349            instead of in Reset, so we only set the size once.
10350    
10351            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
10352    
10353            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
10354            Call Close() instead of Shutdown().
10355    
10356            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
10357    
10358            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
10359            Go back to using OnClose() instead of Shutdown().
10360    
10361    2003-03-10  Jonathan Coles   <[email protected]>
10362    
10363            * Thuban/UI/classifier.py (Classifier): SelectField() needed
10364            to know the old field index as well as the new one.
10365    
10366    2003-03-10  Jonathan Coles   <[email protected]>
10367    
10368            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
10369            to correctly set the table information and call this from
10370            __init__ and from _OnFieldSelect so that all the information
10371            is up to date when the dialog opens and when a field is changed.
10372    
10373    2003-03-10  Jonathan Coles   <[email protected]>
10374    
10375            * Thuban/Model/classification.py (Classification): Don't use
10376            layer's message function directly, use the ClassChanged() method
10377            when then classification changes. SetField/SetFieldType/SetLayer
10378            must keep the information about field name and field type in
10379            sync when an owning layer is set or removed.
10380    
10381            * Thuban/Model/layer.py: Added ClassChanged() so that the
10382            classification can tell the layer when its data has changed.
10383            (Layer.SetClassification): Accepts None as an arguement to
10384            remove the current classification and correctly handles
10385            adding a new classification.
10386    
10387            * Thuban/Model/load.py: Comment out print statement
10388    
10389            * test/test_classification.py, test/test_save.py: New and
10390            improved tests.
10391    
10392    2003-03-07  Jonathan Coles   <[email protected]>
10393    
10394            * Thuban/Model/classification.py: Implemented __copy__ and
10395            __deepcopy__ for ClassGroup* and ClassGroupProperites so
10396            they can easily be copied by the classifier dialog.
10397            (ClassGroupProperites.__init__): The default line color should
10398            have been Color.Black.
10399    
10400            * Thuban/UI/classifier.py: Setting and Getting table values now
10401            uses a consistent set of functions.
10402            (Classifier): Now non-modal. Has field type label which changes
10403            as the field changes. Keep track of buttons in a list so that
10404            we can enable/disable the buttons when the None field is selected.
10405            (SelectPropertiesDialog): Add buttons to make the colors transparent.
10406    
10407            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
10408            does what OnClose did, but can be called by the application to
10409            close a window. Needed when a session changes, and we have to
10410            close the classifier windows.
10411    
10412            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
10413            Shuts down open dialogs. Used when a new session is created
10414            or a session is opened.
10415            (MainWindow.SaveSession): Should only call application.SaveSession()
10416            if we don't call SaveSessionAs first.
10417            (MainWindow.Classify): Allow different classifier dialogs for
10418            different layers.
10419    
10420            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
10421            the parent class handle it. Add Shutdown() to unsubscibe from
10422            event notification and call the parent Shutdown(). This was
10423            necessary so the application can close the tree window.
10424    
10425    2003-03-06  Jonathan Coles   <[email protected]>
10426    
10427            * Thuban/Model/classification.py: Minor documentation changes,
10428            Addition of __eq__ and __ne__ methods.
10429            (Classification.SetLayer): prevent recursion between this method
10430            and Layer.SetClassification().
10431    
10432            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
10433    
10434            * Thuban/Model/layer.py (SetClassification): prevent recursion
10435            between this method and Classification.SetLayer().
10436    
10437            * test/test_classification.py, test/test_load.py,
10438            test/test_session.py: Fixed and added tests for the classification
10439            classes.
10440    
10441    2003-03-06  Bernhard Herzog  <[email protected]>
10442    
10443            * Thuban/UI/classifier.py (ClassGrid.__init__)
10444            (ClassGrid.CreateTable): Move the SetSelectionMode call to
10445            CreateTable because otherwise it triggers an assertion in
10446            wxPython/wxGTK 2.4.
10447    
10448    2003-03-05  Jonathan Coles   <[email protected]>
10449    
10450            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
10451    
10452            * Thuban/Model/load.py: import FIELDTYPE constants from table.
10453    
10454            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
10455    
10456            * Thuban/Model/table.py: Put FIELDTYPE constants back.
10457    
10458    2003-03-05  Jonathan Coles   <[email protected]>
10459    
10460            * Thuban/UI/classifier.py: Added class documentation.
10461            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
10462            Store just the groups in the table and generate the other
10463            column information when it is requested. Add "None" field
10464            to pull-down to select no classification.
10465    
10466            * Thuban/common.py: Moved FIELDTYPE constants from table.py
10467            (Str2Num): Only catch ValueError exceptions.
10468    
10469            * Thuban/Model/classification.py: Class documentation. Renaming
10470            of methods with Stroke to Line. Groups are stored in a single
10471            list with the default as the first element. Groups are searched
10472            in the order they appear in the list.
10473    
10474            * Thuban/Model/color.py: Documentation.
10475    
10476            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
10477            the kind of data represented by a field.
10478    
10479            * Thuban/Model/load.py (ProcessSession): Use proper string
10480            conversion function; fixes RTbug #1713.
10481    
10482            * Thuban/Model/save.py (Saver): Store field type information.
10483    
10484            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
10485            (Table): Add field_info_by_name() to retrieve field information
10486            by specifying the field name, not the number.
10487    
10488            * Thuban/UI/mainwindow.py: Function name changes.
10489    
10490            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
10491            get the layer classification once. Don't try to classify
10492            values when the field is None: just use the default properties.
10493    
10494            * Thuban/UI/view.py: Function name changes.
10495    
10496            * Doc/thuban.dtd: Add field_type attribute to a classification.
10497    
10498    2003-03-04  Bernhard Herzog  <[email protected]>
10499    
10500            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
10501            the fill and stroke layer attributes optional with suitable
10502            default values. Add the stroke_width layer attribute. Use correct
10503            syntax for empty elements. Make the attribute list for labels
10504            refer to the label element.
10505    
10506    2003-03-04  Bernhard Herzog  <[email protected]>
10507    
10508            * setup.py (thuban_build_py.build): Add a comment about distutils in
10509            Python 2.3 containing some of the functionality we implement in
10510            setup.py ourselves.
10511    
10512            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
10513            before the selection mode. Doing it the other way round triggers
10514            an assertion in wxWindows.
10515    
10516            * Thuban/Model/save.py (escape): Fix typo in doc-string
10517    
10518            * Thuban/Model/classification.py: Remove unnecessary wxPython
10519            import
10520    
10521    2003-03-04  Jonathan Coles   <[email protected]>
10522    
10523            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
10524            Parameter 'value' should default to None.
10525    
10526            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
10527            the class attribute __classification is now private.
10528    
10529            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
10530            Classifier to ClassGrid. Added support for removing selected rows,
10531            which including code for keeping track of when cells are selected,
10532            and deselected.
10533            (ClassTable): Support for added/removing rows. Fixed a problem
10534            with __ParseInput whereby it would not allow strings (only numbers)
10535            to be entered.
10536            (Classifier): Added button and supporting code for removing
10537            selected rows.
10538    
10539    2003-02-27  Jonathan Coles   <[email protected]>
10540    
10541            * Thuban/common.py: Moved color conversion functions into
10542            Thuban/UI/common.py.
10543            (Str2Num): Now converts the float (not the string) to a long/int
10544            so that an exception isn't thrown.
10545    
10546            * Thuban/UI/common.py: Common functions used in several UI modules
10547    
10548            * Thuban/Model/classification.py: Changed the class hierarchy
10549            so that a Classification consists of Groups which return
10550            Properties when a value matches a Group.
10551    
10552            * Thuban/Model/layer.py: Fixed name resolution problem.
10553    
10554            * Thuban/Model/load.py: Use new Classification and Group functions.
10555    
10556            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
10557            failure.
10558            (Saver.write_classification): Use new Classification and Group
10559            functions.
10560    
10561            * Thuban/UI/classifier.py: Changes to use new Classification and Group
10562            functions. Fix to create a tuple with a single value instead of
10563            simply returning the value.
10564    
10565            * Thuban/UI/renderer.py: Use new Classification and Group functions.
10566            Use common.py functions.
10567    
10568            * Thuban/UI/tree.py: Use common.py functions.
10569            
10570            * test/test_classification.py: Use new Classification and Group
10571            classes.
10572    
10573    2003-02-24  Jonathan Coles   <[email protected]>
10574    
10575            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
10576            functions from Thuban color objects to wxWindow colour objects.
10577    
10578            * Thuban/Model/classification.py (Classification): Renamed
10579            GetProperties() to GetClassData(). Used the new iterator
10580            in TreeInfo().
10581            (ClassIterator): Iterator implementation to iterate over the
10582            ClassData objects in a classification object.
10583    
10584            * Thuban/Model/save.py (Saver.write_classificaton): Uses
10585            the new iterator to save the classification information.
10586    
10587            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
10588            for changing the stroke and fill colors and previewing the
10589            changes.
10590    
10591            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
10592            MainWindow.SaveSessionAs): Text string changes so the dialogs
10593            have more meaningful titles.
10594    
10595            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
10596            Classification method name from GetProperties to GetClassData.
10597    
10598            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
10599            instead of accessing now non-existent class variables.
10600    
10601    2003-02-24  Bernhard Herzog  <[email protected]>
10602    
10603            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
10604            unneeded Shape() call. Rendering is substantially faster without
10605            it and it avoids some problems with broken shape files.
10606    
10607    2003-02-20  Frank Koormann   <[email protected]>
10608    
10609            Force minimal size of identify and label dialogs. The autosizing
10610            looked too ugly.
10611    
10612            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
10613            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
10614            Set size of listctrl.
10615            * Thuban/UI/identifyview.py (IdentifyView.__init__):
10616            Set size of dialog.
10617    
10618    2003-02-19  Jonathan Coles   <[email protected]>
10619    
10620            * test/test_classification.py, test/test_layer.py,
10621            test/test_load.py, test/test_map.py, test/test_session.py:
10622            Updated the tests to use the new functions that are in the
10623            respective classes.
10624    
10625            * Thuban/Model/classification.py (Classification):
10626            Uses the new ClassData* classes. Modification messages are
10627            passed up to the parent layer (if it exists).
10628            (ClassData): New class to encapsulate the common data in each
10629            classification property.
10630            (ClassDataDefault): Represents the Default class. data.
10631            (ClassDataPoint): Represents a single class. data point
10632            (ClassDataRange): Represents a class. range
10633            (ClassDataMap): Represents a class. map (unused).
10634    
10635            * Thuban/Model/color.py: Added Color.None to represent something
10636            with no color. Color.Black represents the color black.
10637            (NoColor): Helper class derived from Color to represent something
10638            with no color.
10639    
10640            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
10641            stroke_width attributes. Made the 'classification' attribute private.
10642            New methods for setting/getting the classification.
10643    
10644            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
10645            to get the classifcation and use the new ClassData* classes to
10646            hold the classification data. Use Str2Num to convert numbers
10647            properly.
10648    
10649            * Thuban/Model/save.py (Saver): Use new Color and Classification
10650            methods
10651    
10652            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
10653            custom grid.
10654            (ClassTable): Support for editing Values and Labels and for
10655            changing what type (point or range) of data is stored in each
10656            property based on how the user enters the data.
10657            (Classifier): Support for saving the new classifications and
10658            launching the dialog to edit a property.
10659            (SelectPropertiesDialog): New class for editing the visual
10660            properties of a classification (stroke color, width, and fill color)
10661            (ClassPreviewer): Took the Draw method from ClassRenderer and
10662            made most of it into this new class. Intend to use this class in
10663            the SelectPropertiesDialog for previewing changes.
10664    
10665            * Thuban/UI/renderer.py: Use new Color and Classification methods.
10666    
10667            * Thuban/UI/tree.py: Formatting changes.
10668    
10669            * Doc/thuban.dtd: Add 'label' element
10670    
10671            * Thuban/common.py: New. Contains common routines used throughout
10672            the code.
10673            (Str2Num): Takes a string and converts it to the "best" type of
10674            number.
10675    
10676    2003-02-14  Bernhard Herzog  <[email protected]>
10677    
10678            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
10679            dragging flag is always set to 0 even when the tool implementation
10680            raises an exception
10681    
10682    2003-02-11  Bernhard Herzog  <[email protected]>
10683    
10684            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
10685            method to create a splash screen.
10686            (ThubanApplication.ShowMainWindow): New. Show the main window.
10687            Needed so the splash screen can display the mainwindow
10688            (ThubanApplication.OnInit): Call the
10689            new splash_screen method to determine whether the application
10690            should display a splash screen. If it displays a splash screen do
10691            not immediately show the main window.
10692    
10693    2003-02-11  Jonathan Coles  <[email protected]>
10694    
10695            * Thuban/Model/classification.py: Added import line to fix
10696            feature conflicts between running on python2.2 and python2.1.
10697    
10698            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
10699            onto the clinfo parameter, so removed the deepcopy().
10700    
10701    2003-02-10  Jonathan Coles  <[email protected]>
10702    
10703            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
10704            Added element_open variable to track opening and closing of tags
10705            so that tags that don't span more than one line are closed with
10706            /> instead of </tag_name>. Use the GetDefault*() methods of
10707            the Classification class.
10708    
10709            * Thuban/Model/classification.py (Classificaton): Added set and
10710            get methods for the default data. The class also takes a layer
10711            reference so that modification messages can be sent. Fixed the
10712            methods to use the new ClassData class.
10713            (ClassData): New class to encapsulate the classification data
10714    
10715            * Thuban/Model/layer.py (Layer): Remove the
10716            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
10717            SetDefault*() methods on the layer's classification object.
10718            (Layer.__init__): Use the new SetDefault*() methods in the
10719            Classification class.
10720    
10721            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
10722            object instead of a dictionary.
10723    
10724            * Thuban/UI/classifier.py (ClassRenderer): New class to
10725            draw the classifications in the dialog box's table.
10726            (Classifier): Modified to use the ClassRenderer class.
10727    
10728            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
10729            methods of the Classification class.
10730    
10731            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
10732            of the ClassData class.
10733    
10734            * test/test_classification.py, test/test_layer.py,
10735            test/test_map.py, test/test_session.py: Fix the tests to work
10736            with the above code changes.
10737    
10738    2003-02-03  Jonathan Coles  <[email protected]>
10739    
10740            * Thuban/Model/classification.py (Classification): Added getNull()
10741            to return the NullData reference
10742    
10743            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
10744            Layer.SetStrokeWidth): Modified these functions to change the
10745            null data in the classification rather than keep these values
10746            directly in the Layer class. Menu options to change these values
10747            work again.
10748    
10749    2003-01-28  Jonathan Coles  <[email protected]>
10750    
10751            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
10752            Fixed crashing problem on some systems. Dialog box shows
10753            classification data.
10754    
10755            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
10756            Colors in the tree view.
10757    
10758            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
10759            the tree info for classifications. Commented out unnecessary lines.
10760    
10761            * Thuban/Model/classification.py (Classification.TreeInfo): New
10762            function to add information about the classification into the
10763            tree view.
10764    
10765    2003-01-27  Jan-Oliver Wagner <[email protected]>
10766    
10767            * Thuban/__init__.py (_): New.
10768    
10769            * Thuban/Model/classification.py, Thuban/Model/extension.py,
10770            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
10771            Thuban/Model/session.py, Thuban/UI/application.py,
10772            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
10773            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
10774            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
10775            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
10776            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
10777    
10778    2003-01-27  Jonathan Coles  <[email protected]>
10779    
10780            * Thuban/Model/layer.py: Classification initialization calls.
10781    
10782            * Thuban/Model/classification.py: Created class to encapsulate
10783            a layer classification. Supports specific data points and
10784            ranges.
10785    
10786            * Thuban/Model/load.py: Added support for loading classification
10787            information.
10788    
10789            * Thuban/Model/save.py: Added support for saving classification
10790            information.
10791    
10792            * Thuban/UI/classifier.py: Initial class for a dialog box for
10793            specifying classification information.
10794    
10795            * Thuban/UI/mainwindows.py: Support for opening the classifier
10796            dialog.
10797    
10798            * Thuban/UI/renderer.py: Support for drawing a layer with the
10799            classification information.
10800    
10801            * Data/iceland_sample_class.thuban: iceland_sample with
10802            classification data.
10803    
10804            * test/test_classification: Tests for the Classification class.
10805    
10806    2002-12-09  Bernhard Herzog  <[email protected]>
10807    
10808            * test/test_command.py: New. Tests for the command classes.
10809    
10810            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
10811            (Command.IsTool): New method to distinguish between command
10812            switching tools and other commands.
10813    
10814            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
10815            the tool to avoid direct assignments to instance variables
10816            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
10817            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
10818            change the tool
10819    
10820            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
10821            active tool's command turns insensitive, disable the tool.
10822            (_tool_command): Use the new ToolCommand class
10823    
10824            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
10825            SelectTool method to change the tool
10826            (iconfile): Use the ToolCommand class
10827    
10828    2002-12-03  Bernhard Herzog  <[email protected]>
10829    
10830            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
10831            the case of selected items that are not children of Layers or Maps
10832            properly. Previously this bug would trigger an assertion in
10833            wxWindows.
10834    
10835    2002-11-06  Frank Koormann  <[email protected]>
10836    
10837            * Thuban/UI/mainwindow.py: Altered the order of tools in the
10838            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
10839            Full Extent).
10840    
10841    2002-10-23  Bernhard Herzog  <[email protected]>
10842    
10843            * setup.py (setup call): version now 0.1.3
10844    
10845            * MANIFEST.in: Add the files in test/
10846    
10847            * test/README: Add note about tests requiring the iceland data
10848    
10849            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
10850            copyright notice.
10851    
10852    2002-10-18  Bernhard Herzog  <[email protected]>
10853    
10854            * test/test_map.py
10855            (TestMapWithContents.test_projected_bounding_box): Use an explicit
10856            epsilon.
10857    
10858            * test/support.py (FloatComparisonMixin.assertFloatEqual)
10859            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
10860            message if the assertion fails and don't return the return value
10861            of self.assert_. In assertFloatSeqEqual the return meant that not
10862            all items of the sequence were compared.
10863    
10864    2002-09-20  Bernhard Herzog  <[email protected]>
10865    
10866            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
10867    
10868            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
10869    
10870            * test/test_map.py (TestMapWithContents.test_tree_info): Create
10871            the string with the bounding box on the fly because of platform
10872            differences in the way %g is handled.
10873    
10874            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
10875            DBFfile too because Thuban layers can't yet cope missing DBF
10876            files.
10877    
10878    2002-09-20  Bernhard Herzog  <[email protected]>
10879    
10880            * test/test_menu.py: Use initthuban instead of
10881            add_thuban_dir_to_path to initialize Thuban.
10882    
10883            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
10884            Mixin class for float comparisons
10885            (SubscriberMixin): New. Mixin class to test messages sent through
10886            the Connector class
10887    
10888            * test/README: Fix a typo and add the -v flag to the command for
10889            individual tests
10890    
10891            * test/test_session.py: New. Test cases for Thuban.Model.session
10892    
10893            * test/test_proj.py: New. Test cases for Thuban.Model.proj
10894    
10895            * test/test_map.py: New. Test cases for Thuban.Model.map
10896    
10897            * test/test_layer.py: New. Test cases for Thuban.Model.layer
10898    
10899            * test/test_label.py: New. Test cases for Thuban.Model.label
10900    
10901            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
10902    
10903            * test/test_color.py: New. Test cases for Thuban.Model.color
10904    
10905            * test/test_base.py: New. Test cases for Thuban.Model.base
10906    
10907    2002-09-13  Bernhard Herzog  <[email protected]>
10908    
10909            * Thuban/Model/session.py (Session.forwarded_channels): Forward
10910            the CHANGED channel too.
10911    
10912            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
10913            CHANGED channel too.
10914            (Map.__init__): Call the Modifiable constructor as well.
10915    
10916            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
10917            event if the modified flag changes.
10918            (Modifiable.changed): Tweak the doc-string.
10919    
10920            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
10921            (MainWindow.set_position_text): Put the code that puts the text
10922            with the mouse position into the status bar into the new method
10923            set_position_text so that it can overwritten in derived classes.
10924    
10925    2002-09-12  Bernhard Herzog  <[email protected]>
10926    
10927            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
10928            message box on the main window.
10929    
10930    2002-09-11  Bernhard Herzog  <[email protected]>
10931    
10932            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
10933            the 'E' because it's less likely to interfere with other menu
10934            entries.
10935            (MainWindow.build_menu): remove an incorrect comment.
10936    
10937    2002-09-10  Bernhard Herzog  <[email protected]>
10938    
10939            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
10940            (_tool_command): Add sensitive parameter
10941            (_has_visible_map): Sensitivity callback to tools and other
10942            commands that require a visible map. Use it in map_zoom_in_tool,
10943            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
10944            and map_full_extent
10945    
10946    2002-09-06  Bernhard Herzog  <[email protected]>
10947    
10948            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
10949            VIEW_POSITION
10950    
10951    2002-09-04  Frank Koormann  <[email protected]>
10952    
10953            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
10954    
10955    2002-09-02  Bernhard Herzog  <[email protected]>
10956    
10957            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
10958            wxWindows already and our implementation doesn't work correctly
10959            with wxGTK 2.3:
10960            (MapCanvas.__init__): Remove the instance variable
10961            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
10962            be drawin
10963            (MapCanvas.OnIdle): Removed.
10964    
10965            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
10966            a parameter to determine the size of the rectangle.
10967            (MapCanvas.find_shape_at): Create the box around the point on a
10968            layer by layer basis and make the size depend on the shape type.
10969            This solves a problem with the selection of point shapes at the
10970            border of the layer's bounding box
10971    
10972    2002-08-30  Bernhard Herzog  <[email protected]>
10973    
10974            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
10975            for the sensitivity  of remove layer.
10976            (_can_remove_layer): New. Sensitivity callback for remove layer
10977            (Command layer_remove): Use _can_remove_layer
10978    
10979            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
10980            determine whether a given layer can be deleted.
10981    
10982            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
10983            (MapCanvas.do_redraw): Get rid of the unused update_region
10984            instance variable
10985    
10986            * Thuban/UI/view.py: Add/update some doc-strings.
10987    
10988            * test/: new subdirectory with a bunch of unit tests.
10989    
10990            * test/README, test/test_table.py, test/test_save.py,
10991            test/test_menu.py, test/test_load.py: Initial set of tests and
10992            brief instructions on how to run them
10993    
10994    2002-08-29  Bernhard Herzog  <[email protected]>
10995    
10996            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
10997            arcs with multiple parts.
10998    
10999            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
11000            Handle degenrate rectangles.
11001    
11002            * Thuban/Model/table.py: Make writing records work correctly:
11003            (Table.__init__): Keep track of whether the DBF is open for
11004            writing
11005            (Table.write_record): Open the DBF file for writing when necessary
11006    
11007    2002-08-27  Bernhard Herzog  <[email protected]>
11008    
11009            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
11010            dbf files only for reading by default. Use a new writable dbf
11011            object for writing.
11012    
11013    2002-08-26  Bernhard Herzog  <[email protected]>
11014    
11015            * Thuban/UI/mainwindow.py: Refactor the context creation:
11016            (MainWindow.Context): New method to return a context
11017            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
11018            new method
11019    
11020            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
11021            layer table specific code from TableGrid into LayerTableGrid
11022            (TableFrame, LayerTableFrame): Split the layer table specific code
11023            from TableFrame into LayerTableFrame
11024            (LayerTableGrid.select_shape): Remove a debug print
11025    
11026            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
11027            LayerTableFrame
11028    
11029    2002-08-23  Bernhard Herzog  <[email protected]>
11030    
11031            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
11032            absolute filename.
11033    
11034    2002-08-22  Bernhard Herzog  <[email protected]>
11035    
11036            * Thuban/Model/table.py (Table.write_record): New method to write
11037            records.
11038            (Table.__init__): Open the DBF file for writing too.
11039    
11040            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
11041            into the underlying table.
11042    
11043            * extensions/shapelib/shapefil.h (DBFCommit),
11044            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
11045            commit any changes made to the DBF file.
11046    
11047            * Thuban/UI/mainwindow.py (make_check_current_tool)
11048            (_tool_command): Put the code that generates the "checked"
11049            callback into a separate function so that we can reuse it
11050            elsewhere
11051    
11052            * Thuban/Model/save.py (Saver): New class to handle serializing a
11053            session into an XML file. The main reason to introduce a class is
11054            that applications built on Thuban can derive from it so that they
11055            can save additional information in a session file.
11056            (save_session): Delegate almost all the work to the Saver class.
11057            Rename the filename argument to file because it may be a file like
11058            object now.
11059    
11060            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
11061            code. Remove the little test code which would be executed when the
11062            module is run as a script which didn't work anymore since it can't
11063            import the other Thuban modules.
11064            (ProcessSession, load_session): Refactor the ProcessSession to
11065            have one method for each element start and end tag so that derived
11066            classes can easily override the processing of individual tags.
11067            Also, always parse with namespaces enabled because applications
11068            built on top of Thuban will likely use namespaces if they extend
11069            the session file format.
11070    
11071    2002-08-21  Bernhard Herzog  <[email protected]>
11072    
11073            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
11074            because thubaninit_contents will do it for us.
11075    
11076    2002-08-16  Jan-Oliver Wagner <[email protected]>
11077    
11078            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
11079            tree window already open
11080    
11081    2002-08-15  Bernhard Herzog  <[email protected]>
11082    
11083            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
11084            with self.
11085    
11086            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
11087            when we have actually captured it.
11088    
11089            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
11090            shapefile and destroy the table.
11091    
11092            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
11093    
11094    2002-08-14  Bernhard Herzog  <[email protected]>
11095    
11096            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
11097            instance variable columns
11098            (RecordTable.GetTypeName): row and col may be negative in some
11099            cases.
11100    
11101            * setup.py (InstallLocal.initialize_options)
11102            (InstallLocal.finalize_options, InstallLocal.user_options): New
11103            option create-init-file to build a thubaninit.py when running
11104            install_local
11105            (InstallLocal.run): Create the thubaninit.py module when requested
11106            (thubaninit_contents): Split the template into several parts and
11107            create a new function thubaninit_contents that creates the
11108            contents of a thubaninit module.
11109            (ThubanInstall.run): Use the new function to create the thubaninit
11110            module.
11111    
11112    2002-07-30  Bernhard Herzog  <[email protected]>
11113    
11114            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
11115            cleanup.
11116            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
11117    
11118            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
11119            direct base class' Destroy method.
11120    
11121            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
11122            layers.
11123            (Map.Destroy): Destroy the label_layer as well and call the
11124            inherited Desatroymethod first so that no more messages are
11125            issued.
11126            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
11127            message if the stacking order actually has changed. Add
11128            doc-strings.
11129            (Map.BoundingBox): Correct the doc-string.
11130            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
11131            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
11132    
11133            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
11134            all labels.
11135    
11136    2002-07-29  Bernhard Herzog  <[email protected]>
11137    
11138            * Thuban/Model/map.py (Map.subscribe_layer_channels)
11139            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
11140            to a layer's channels into separate methods.
11141            (Map.RemoveLayer, Map.AddLayer): Call the new methods
11142            (Map.Destroy): Unsubscribe from a layer's channels before
11143            destroying it.
11144    
11145            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
11146            selected_layer parameter to searched_layer which is the layer to
11147            search in.
11148            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
11149            search to that layer. Return the selected layer and shape.
11150    
11151            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
11152            typo
11153    
11154    2002-07-24  Bernhard Herzog  <[email protected]>
11155    
11156            * Thuban/UI/application.py (ThubanApplication.create_session):
11157            Extend the doc string.
11158            (ThubanApplication.subscribe_session)
11159            (ThubanApplication.unsubscribe_session): New methods to
11160            subscribe/unsubscribe to/from session channels.
11161            (ThubanApplication.SetSession): Call the new methods here.
11162            (ThubanApplication.maps_changed, ThubanApplication.set_map):
11163            Renamed set_map to maps_changed. Its now a subscriber for
11164            MAPS_CHANGED.
11165    
11166            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
11167            x-coordinate in case of simple clicks
11168    
11169            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
11170            don't pass it as a parameter
11171    
11172            * Thuban/Model/session.py (Session.RemoveMap): New
11173    
11174            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
11175            window size into a parameter.
11176    
11177    2002-07-23  Bernhard Herzog  <[email protected]>
11178    
11179            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
11180            just commands.
11181    
11182            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
11183            parameter list a bit to allow setting the window title and the
11184            initial message in the status bar. Update the callers.
11185    
11186            * Thuban/UI/application.py (ThubanApplication.OnInit)
11187            (ThubanApplication.CreateMainWindow): Put the mainwindow
11188            instantiation into a separate method so that it can be overridden
11189            by a subclass.
11190    
11191    2002-07-19  Bernhard Herzog  <[email protected]>
11192    
11193            * Thuban/Model/session.py: Issue a CHANGED message every time
11194            another changed message is issued to make it easier to get
11195            notified of changes.
11196            (Session): Update the doc string
11197            (Session.forward): Issue changed-events as CHANGED as well.
11198            (Session.changed): Overwrite the inherited version to issue
11199            CHANGED events as well.
11200    
11201            * Thuban/UI/tree.py: We can now simply subscribe to the session's
11202            CHANGED channel to be informed of changes.
11203            (SessionTreeCtrl.session_channels): Not needed any longer.
11204            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
11205            Only have to (un)subscribe CHANGED
11206    
11207            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
11208    
11209            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
11210            for the wxPython locale bug to __init__.py so that it's
11211            automatically executed by anybody using UI code from Thuban.
11212    
11213    2002-07-18  Bernhard Herzog  <[email protected]>
11214    
11215            * Thuban/UI/main.py (main): app no longer needs to be global
11216    
11217            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
11218            as parameter and store it in an instance variable
11219            (MainWindow.invoke_command, MainWindow.update_command_ui)
11220            (MainWindow.save_modified_session, MainWindow.NewSession)
11221            (MainWindow.OpenSession, MainWindow.SaveSession)
11222            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
11223            application object.
11224    
11225            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
11226            the main window with self.
11227    
11228            * Thuban/UI/context.py: New module with the context class
11229    
11230            * Thuban/UI/command.py (Command): Update doc string.
11231    
11232            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
11233            MainWindow.update_command_ui): Pass an instance of the context
11234            class to the command's methods
11235            (check_current_tool, call_method): Handle the new context
11236            implementation
11237    
11238            * Examples/simple_extensions/simple_tool.py (simple_tool,
11239            check_simple_tool): Handle the new context implementation
11240    
11241            * Examples/simple_extensions/simple_command.py (simple_command):
11242            Handle the new context implementation. Update the comments about
11243            the context.
11244    
11245            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
11246            doc-string
11247            (ThubanApplication.Session): New method to return the session
11248            object
11249    
11250            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
11251            interactor's selected_layer may not be a layer of the current
11252            session when the tree is updated while a new session is being set.
11253    
11254    2002-07-17  Bernhard Herzog  <[email protected]>
11255    
11256            * Thuban/UI/tree.py (color_string): Removed. No longer used.
11257            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
11258            update_tree into update_tree and add_items. The tree now uses a
11259            more generic way to display the contents of the tree.
11260            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
11261    
11262            * Thuban/Model/layer.py (Layer.TreeInfo),
11263            Thuban/Model/extension.py (Extension.TreeInfo),
11264            Thuban/Model/map.py (Map.TreeInfo),
11265            Thuban/Model/session.py (Session.TreeInfo):
11266            Add TreeInfo methods to implement the new tree view update scheme
11267    
11268    2002-07-16  Bernhard Herzog  <[email protected]>
11269    
11270            * Thuban/UI/application.py: Don't use "import from" for the
11271            MainWindow. It can't always be resolved.
11272            (ThubanApplication.OnInit): change reference to MainWindow
11273            accordingly.
11274    
11275            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
11276            completely
11277    
11278    2002-07-10  Bernhard Herzog  <[email protected]>
11279    
11280            * setup.py (create_init_module): New configurable variable whose
11281            default depends on the platform we're running on.
11282            (ThubanInstall.initialize_options): Initialize
11283            self.create_init_module from the global create_init_module
11284            (ThubanInstall.user_options): indictate that the options
11285            create-init-module and init-module-dir have arguments.
11286    
11287            * setup.py: In the setup call change the version number to include
11288            cvs.
11289    
11290            * MANIFEST.in: Add the files in Examples
11291    
11292    2002-07-09  Bernhard Herzog  <[email protected]>
11293    
11294            * setup.py: In the setup call, use the thuban homepage as the
11295            value of the url parameter.
11296    
11297            * Examples: New subdirectory for examples.
11298    
11299            * Examples/simple_extensions/simple_tool.xpm,
11300            Examples/simple_extensions/simple_tool.py,
11301            Examples/simple_extensions/simple_command.py,
11302            Examples/simple_extensions/README: Simple examples showing how to
11303            add new commands and tools.
11304    
11305            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
11306            bdist_rpm that we also have an install script.
11307            (bdist_inno): Add 2002 to the copyright notice.
11308    
11309            * setup.py: Create a file in python's site-packages directory to
11310            make installation of Thuban as a library easier.
11311            (ThubanInstall.user_options): Add two new options,
11312            create-init-module and init-module-dir
11313            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
11314            filenames for installation in the default directories.
11315            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
11316            the inherited methods to capture some filenames before they're
11317            transformed too much by distutils.
11318            (ThubanInstall.run): Create the init module if requested.
11319            (ThubanInstall.thuban_init_filename): New method to return the
11320            full name of the init module.
11321            (ThubanInstall.get_outputs): Append the filename of the init
11322            module.
11323    
11324    2002-07-08  Bernhard Herzog  <[email protected]>
11325    
11326            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
11327            handle the prefix properly which means that the default for the
11328            installation prefix should be /usr for RPMs and /usr/local when
11329            doing a normal source install.
11330            (bdist_rpm_install_script): Script to override the default install
11331            commands in the specfile generated by the bdist_rpm command.
11332            (thuban_bdist_rpm.user_options): Add a prefix option
11333            (thuban_bdist_rpm.initialize_options): Init the prefix option.
11334            Create the script files for the spec files as empty files here
11335            (thuban_bdist_rpm._make_spec_file): Override the inherited method
11336            to fill the script files with content.
11337    
11338            * Thuban/Model/save.py (relative_filename): Wrapper around
11339            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
11340            argument. save_session now automatically uses this version,
11341            solving a problem when saving to a relative filename.
11342    
11343            * setup.py: In the setup call, make sure that the library
11344            directories are under $prefix/lib not directly under $prefix.
11345    
11346    2002-06-20  Jan-Oliver Wagner <[email protected]>
11347    
11348            * Thuban/Model/extension.py: new module to handle extension objects.
11349            * Thuban/Model/messages.py: new messages for extensions.
11350            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
11351            Session.AddExtension): new for handling extensions.
11352            Also some other minor changes to round up extension handling.
11353            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
11354            of Extension titles and title and names of its objects.
11355    
11356    2002-05-29  Bernhard Herzog  <[email protected]>
11357    
11358            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
11359            the events for a command.
11360            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
11361            Call bind_command_events to bind the events. add_toolbar_command
11362            can now bind events too so that it's possible to have commands
11363            that are only available through the toolbar.
11364            (MainWindow.init_ids): New instance variable events_bound to keep
11365            track of for which commands events have been bound.
11366    
11367    2002-05-28  Bernhard Herzog  <[email protected]>
11368    
11369            * Thuban/UI/menu.py: New module to build and manage menus.
11370    
11371            * Thuban/UI/mainwindow.py: Remove some unused imports.
11372            (MainWindow.__init__, main_menu): move the definition of the main
11373            menu from __init__ to the Menu instance main_menu.
11374            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
11375            build the menu bar and sub-menus from a menu description.
11376    
11377            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
11378            startup file
11379            (ThubanApplication.read_startup_files): New method to run
11380            ~/.thuban/thubanstart.py
11381    
11382            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
11383            Move the toolbar definition to the Menu instance main_toolbar.
11384            (MainWindow.build_toolbar): New method to build the toolbar
11385            similar to the build_menu methods
11386    
11387  2002-05-23  Bernhard Herzog  <[email protected]>  2002-05-23  Bernhard Herzog  <[email protected]>
11388    
11389            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
11390            layer_outline_color. Fix it in the definition of the command too.
11391    
11392          * Thuban/UI/command.py (Command): Fix typo in doc string          * Thuban/UI/command.py (Command): Fix typo in doc string
11393    
11394  2002-05-22  Bernhard Herzog  <[email protected]>  2002-05-22  Bernhard Herzog  <[email protected]>
# Line 183  Line 11572 
11572          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
11573          position in the statusbar          position in the statusbar
11574    
11575  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
11576    
11577          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
11578    
11579  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
11580            
11581          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
11582    
11583          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
11584    
11585          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
11586    
11587  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
11588            box
11589    
11590    2002-04-21  Jan-Oliver Wagner <[email protected]>
11591    
11592          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
11593    
11594          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
11595    
11596          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
11597          icon; added map_full_extend as tool          icon; added map_full_extend as tool
11598    
11599  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
11600    
11601          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
11602          saving _new_ sessions          saving _new_ sessions
# Line 308  Line 11698 
11698    
11699          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
11700          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
11701    
11702  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
11703    
11704          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
11705          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
11706    
11707          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
11708          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
11709          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
11710          too.          too.
# Line 425  Line 11814 
11814          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
11815          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
11816    
11817          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
11818          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
11819          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
11820          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
11821          the application's OnInit method          the application's OnInit method
# Line 442  Line 11831 
11831          layer to the tableview dialog.          layer to the tableview dialog.
11832    
11833          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
11834          (TableGrid):          (TableGrid):
11835          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
11836          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
11837          (TableFrame.__init__):          (TableFrame.__init__):
# Line 509  Line 11898 
11898  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
11899    
11900          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
11901            
11902          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
11903          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
11904            
11905          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
11906          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
11907          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 559  Line 11948 
11948          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
11949          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
11950          link_file method          link_file method
11951            
11952          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
11953          the window when the first layer is added to the map.          the window when the first layer is added to the map.
11954    
# Line 596  Line 11985 
11985          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
11986          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
11987          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
11988            
11989          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
11990          installer          installer
11991    

Legend:
Removed from v.184  
changed lines
  Added in v.2650

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26