/[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 1349 by jonathan, Tue Jul 1 16:12:38 2003 UTC revision 2264 by jschuengel, Thu Jul 1 14:43:26 2004 UTC
# Line 1  Line 1 
1    2004-07-01  Jan Sch�ngel <[email protected]>
2    
3            Added the functionality to handle the content thuban is not
4            able to handle directly.
5    
6            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
7            Thuban with the possibility to edit the mapfile content.        
8            
9            * Extensions/umn_mapserver/mf_import.py: Added the possibility
10            to import mapfiles without any layer selected. So it is possible
11            to edit the other settings in a mapfile.
12            (import_mapfile): Added code to use the editing functions.
13            Added the possibility to import the projection to a layer if one
14            is defined.
15            Status settings (On,Off) will now set in thuban (visible, invisible).
16            fixed a bug with with classnames. If no classname is set in mapfile
17            the value in Thuban will set to the expression.
18            
19            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
20            possibility to save a new mapfile or use the old one which is
21            imported or new created.
22            Added code to use the editing functions.
23            Remove some not needed import statements
24    
25            * Extensions/umn_mapserver/mapfile.py: Added new types which are
26            need for the editing functions.
27            Added needed set-functions for the editing functions.
28            Added the possibility to export rasterimages.
29            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
30            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
31            moment.
32            (MF_Class.set_thubanstyle): Now point layers will set to a default
33            symbol to show a circle in mapserver and not only a 1px dot.
34            (MF_Style.__init__): Fixed a bug with the color. Color was not set
35            correct before.
36            (MF_Size): Removed, because it is not needed.
37            
38            * Extensions/umn_mapserver/README: Added the hints to use the
39            export and editing functions, too.
40    
41            * Extensions/umn_mapserver/sample/iceland.map: Added the
42            new parameter "UNITS METERS".
43            Change the political layer to status OFF.
44    
45            * Extensions/umn_mapserver/sample/README: Added some
46            more details to setup the sample in the MapServer.
47            
48    2004-06-26  Bernhard Reiter <[email protected]>
49    
50            * Extensions/svgexport/test/test_svgmapwriter.py:
51            Removed class VFile and used standard StringIO instead.
52    
53    2004-06-23  Jan Sch�ngel  <[email protected]>
54    
55            Add the export function to the umn_mapserver extension.
56    
57            * Extension/umn_mapserver/mf_export.py: New. This module extents
58            Thuban with the possibility to export the Thuban content.
59    
60            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
61            with the export module. Especially added the possibility to
62            add thuban objects directly to the map objects.
63    
64            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
65            because of the hint from Bernhard Herzog.
66            Corrected the handling of absolute pathnames.
67            Changed the Text of the Menu-Item, now the beginning is upper case.
68    
69            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
70    
71    2004-06-16  Jan Sch�ngel  <[email protected]>
72    
73            Add a sample and make some changes.
74    
75            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
76            import from * to explicit used statements. Changed the
77            Thuban.UI.mainwindow import phrase, too.
78            (import_mapfile):Corrected a clerical mistake.
79            Added wxCHANGE_DIR in OpenFile Dialog.
80            Added a MultipleChoiceDialog, to select the layers to load from
81            mapfile into thuban. Thereby the projection is only set if one layer
82            is selected.
83            Added the possibility to handle relative pathnames which uses
84            up-level references.
85            Removed some doubled code.
86            Corrected an error with integer values used as label in thuban
87            ClassGroup.
88            
89            * Extensions/umn_mapserver/sample: New.
90    
91            * Extensions/umn_mapserver/sample/README: New. Describes the
92            usage of the sample files.
93    
94            * Extensions/umn_mapserver/sample/iceland.map: New. This is
95            a suitable .map-file for the iceland data.
96    
97            * Extensions/umn_mapserver/sample/index.html: New. The template
98            for the mapfile.  
99    
100            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
101            file for the Iceland Application on web.
102    
103            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
104            some details.
105    
106            * Extensions/umn_mapserver/test/test_mapserver
107            (mapserver_import_Test_generalClasses.test_MF_Color):
108            Corrected the thubancolor test.
109    
110    2004-06-15  Jan Sch�ngel  <[email protected]>
111    
112            * Extensions/umn_mapserver/README: New. Install instruction.
113    
114    2004-06-14  Bernhard Reiter <[email protected]>
115    
116            * libraries/thuban/cpl_mfile.h: Added copyright header.
117    
118            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
119            Free Software License so that it is most useful with gdalwarp
120            and bmpdataset.
121    
122    2004-06-14  Bernhard Herzog  <[email protected]>
123    
124            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
125            import of wxPython.wx itself (as opposed to the contents of
126            wxPython.wx).  For some reason wxPython.wx is available as
127            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
128            wrt. wxPython 2.4.
129    
130    2004-06-10  Jan Sch�ngel  <[email protected]>
131    
132            Initial version of new extension "umn_mapserver".  This extension aims
133            to manage configuration for the UMN MapServer application.  This
134            inital version just imports the .map-files and displays all, Thuban is
135            capable of.
136    
137            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
138    
139            * Extensions/umn_mapserver/test/README: New. Describes how to run the
140            tests.
141    
142            * Extensions/umn_mapserver/test/test.map: New. This is a test
143            .map-file for automated tests of the umn_mapserver extension of
144            Thuban.
145    
146            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
147            UMN Mapserver classes.
148    
149            * Extensions/umn_mapserver/__init__.py: New. Init to make this
150            directory a package.
151    
152            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
153            '.map'-file objects.
154    
155            * Extensions/umn_mapserver/mf_import.py: New. This module extends
156            Thuban with the possibility to handle UMN MapServer mapfiles.
157    
158    2004-06-03  Bernhard Herzog  <[email protected]>
159    
160            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
161            to a tuple before using it as arguments to the % operator.  This
162            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
163            reported today on thuban-list by Jan Sch�ngel
164    
165            * test/test_layer.py (TestLayerModification.setUp): Save the
166            filename as an instance variable so we can refer to it in tests
167            (TestLayerModification.test_tree_info): Uncomment this method
168            again and make it work.  This tests for the formatting issue
169            filed in RT#2239 on 2004-01-13
170    
171    2004-05-28  Bernhard Herzog  <[email protected]>
172    
173            * Thuban/UI/baserenderer.py: Fix some typos.
174    
175    2004-05-18  Jan-Oliver Wagner <[email protected]>
176    
177            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
178            by increasing a field size.
179    
180    2004-05-17  Bernhard Herzog  <[email protected]>
181    
182            Update to newest shapelib and get rid of Thuban specific
183            extensions, i.e. use the new DBFUpdateHeader instead of our
184            DBFCommit kludge
185    
186            * libraries/shapelib/shpopen.c: Update to version from current
187            shapelib CVS.
188    
189            * libraries/shapelib/shapefil.h: Update to version from current
190            shapelib CVS.
191    
192            * libraries/shapelib/dbfopen.c: Update to version from current
193            shapelib CVS.
194            (DBFCommit): Effectively removed since shapelib itself has
195            DBFUpdateHeader now which is better for what DBFCommit wanted to
196            achieve.  
197            We're now using an unmodified version of dbfopen.
198    
199            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
200            value '1' to the Lib.dbflibc extension.  This simply reflects the
201            shapelib and pyshapelib updates
202    
203    2004-05-16  Jan-Oliver Wagner <[email protected]>
204    
205            Finished introduction of Menu.FindOrInsertMenu.
206    
207            * Extensions/drawshape/drawshape.py: Add the command
208            to the experimental menu additionally to the toolbar.
209    
210            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
211            finding menu on its own.
212    
213            * Doc/manual/thuban-manual.xml: updated sample file
214            to use FindOrInsertMenu().
215    
216            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
217            instead of finding menu on its own.
218    
219    2004-05-11  Jan-Oliver Wagner <[email protected]>
220    
221            * test/test_menu.py (MenuTest.test): Added testing
222            of method Menu.FindOrInsertMenu.
223    
224    2004-05-10  Jan-Oliver Wagner <[email protected]>
225    
226            Introduce and use Menu.FindOrInsertMenu.
227    
228            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
229              given menu or, if not found, insert it.
230    
231            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
232            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
233            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
234            menu on its own.
235    
236    2004-05-06  Jan-Oliver Wagner <[email protected]>
237    
238            Introduce a abstract ColorDialog class and remove
239            and outdated file.
240    
241            * Thuban/UI/proj4dialog.py: Removed. It is has been
242            replaced by projdialog for quite a while and is not used
243            anymore.
244    
245            * Thuban/UI/colordialog.py: New. Abstraction for color selection
246            dialog(s).
247    
248            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
249            Now calls the abstract ColorDialog instead of wxColourDialog.
250            This also removed the dependency to Color class conversion
251            from this function.
252    
253    2004-05-04  Frank Koormann  <[email protected]>
254    
255            * Extensions/bboxdump/__init__.py: Fixed string left over from
256            copying.
257    
258            * Extensions/bboxdump/bboxdump.py (bboxdump):
259            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
260            xrange(layer.NumShapes()). Compile the bboxmessage from a list
261            of formatted outputs (string.join) instead of appending to the
262            message. Two progress bar dialogs to report progress on the sometimes
263            lenghty processing.
264    
265    2004-04-22  Frank Koormann  <[email protected]>
266    
267            New Extension to dump bounding boxes of all shapes of the selected
268            layer. An optional column can be specified to group the objects,
269            in this case the bounding box is a union of the separate boxes.
270            Dump can be displayed in a ScrolledMessageDialog or written to file.
271            The Extension is simply a combination of available and well tested
272            Thuban functionality.
273    
274            * Extensions/bboxdump/__init__.py: New: Init to make this
275            directory a package.
276    
277            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
278            all shapes of the selected layer.
279    
280    2004-04-22  Jan-Oliver Wagner <[email protected]>
281    
282            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
283            strings to be i18n now.
284    
285    2004-04-18  Jan-Oliver Wagner <[email protected]>
286    
287            Changing popup menu of legend from direct building
288            to using the Menu construction as used for the mainwindow.
289    
290            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
291            layer_to_bottom, layer_visibility
292            (MainWindow.LayerToTop): New. Put current layer to the top.
293            (MainWindow.LayerToBottom): New. Put current layer to bottom.
294            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
295            Replace 1,0 by True, False.
296            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
297            current layer.
298            (MainWindow.LayerShowTable): Removed raising of dialog.
299            (_has_selected_layer_visible): New. Support function.
300    
301            * Thuban/UI/legend.py: ID_POP_xxx: removed.
302            (LegendPanel.__init__): Removed EVT_MENU bindings.
303            (LegendTree._OnRightClick): Replace direct creation of
304            menu via wx Classes by applying the menu definition
305            as of Menu class of menu.py.
306            
307    2004-04-16  Jan-Oliver Wagner <[email protected]>
308    
309            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
310        button string to stronger clearify that Thuban will be closed when hitting
311            the button.
312    
313            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
314            Now for layers without a ShapeStore a corresponding message is given
315            to the user, that this layer has no table to show.
316    
317    2004-04-15  Martin Schulze  <[email protected]>
318    
319            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
320            recalculate the format for the internal render engine as well.
321    
322            * Extensions/wms/properties.py (wmsProperties): First start for a
323            properties dialog.  It's functional for a first selection of
324            layers, but still has some weired wxWidgets/GTK problems but
325            beautification can be done later.
326    
327            * Extensions/wms/layer.py: Added more documentation
328            (WMSLayer.getFormats): New: Return list of supported image formats
329            by the WMS server
330            (WMSLayer.getLayers): New: Return the list of layer names
331            supported by the WMS server
332            (WMSLayer.getLayerTitle): New: Return the title of the named layer
333            (WMSLayer.getWMSFormat): New: Return the image format that is used
334            for WMS GetMap requests
335            (WMSLayer.setWMSFormat): New: Set the image format that is used
336            for WMS GetMap requests
337            (WMSLayer.__init__): Move away from using only one layer to using
338            a list of layers (unsorted at the moment, though).
339            (WMSLayer.getVisibleLayers): New: Return the list of names for all
340            visible layers
341            (WMSLayer.setVisibleLayers): New: Set the list of names for all
342            visible layers
343    
344            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
345            order to establish a clean structure.
346    
347            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
348            own in order to establish a clean structure.
349    
350    2004-04-13  Martin Schulze  <[email protected]>
351    
352            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
353            support for oldstyle (WMS 1.0 apparently) image format
354            specification.
355    
356            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
357            supported graphic formats back to JPEG and BMP, PNG and others are
358            too *cough* experimental...  Sorry, I meant to filter this out
359            before I committed this part.  This should make the WMS extension
360            run from CVS again.
361            (wms_dialog): Reset an empty URL to None so that the subsequent
362            program can depend on this, since the dialog will indeed return an
363            empty URL, causing another declaration of love by Python.
364    
365            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
366            Whenever a native BoundingBox request cannot be fulfilled, check
367            whether the requested SRS is EPSG:3426, in which case return the
368            LatLonBoundingBox values.
369    
370            * Extensions/wms/test/test_parser.py
371            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
372            ignoring AUTO:* SRS.
373            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
374            Added another test method to test whether the LatLonBoundingBox
375            values will be returned if BoundingBox values are requested with
376            SRS set to EPSG:3426.
377    
378            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
379            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
380            the moment by placing them into a variable which is currently
381            unused.  Also test whether the EPSG SRS is numerical as it should
382            be and add an error message if it is not.
383    
384            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
385            appear in the real world as well.  Since we cannot handle them yet
386            (OGCLib can't either), we will ignore them for the moment.
387    
388            * Extensions/wms/parser.py: Use a variable for denoting the sample
389            filename
390            (WMSCapabilitiesParser.peekLayers): Added support for error
391            messages during grok().  They will be aggregated in an array and
392            may be displayed later.  We may have to add a classification
393            "Warning" and "Error" to this.  That requires more experience,
394            though, since not every error may be lethal.
395    
396            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
397            ShowTable() dialog/frame when the user attempts to display it
398            while it has been opened before already and not closed again.
399    
400    2004-04-11  Martin Schulze  <[email protected]>
401    
402            * Extensions/wms/infodialog.py: Adjusted the class documentation
403    
404            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
405            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
406            wxWidgets variants.
407            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
408    
409            * Extensions/wms/infodialog.py: Added an information dialog that
410            will display various information about the WMS current resource,
411            so that additional information such as the title, the abstract,
412            fees and access constraints can be displayed for the user if they
413            are documented in the WMS XML.
414    
415    2004-04-10  Martin Schulze  <[email protected]>
416    
417            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
418            string handling.  It's "foo".lower() and not lower(foo) without
419            lower imported from strings or something.
420    
421            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
422            from capabilities.py and parser.py.  Implement priority list for
423            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
424            and GIF are supported here, but not yet by main Thuban.  Hence,
425            support for them may be removed later.  Special contribution to
426            usability: get wxWidgets to change the cursor when we're waiting
427            for data from the network so the user won't start to worry.  This
428            causes a redrawing error/warning, though.
429    
430            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
431            the DOM object.
432    
433    2004-04-01  Martin Schulze  <[email protected]>
434    
435            * Extensions/wms/capabilities.py: Adjusted documentation
436            (WMSCapabilities.__init__): Improved documentation, fixed syntax
437            (WMSCapabilities.saveCapabilities): Only catch IOError when
438            handling files
439            (WMSCapabilities.loadCapabilities): Only catch IOError when
440            handling files
441            __main__: corrected variable naming
442            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
443            class a specialisation of WMSCapabilitiesParser as well.  Also
444            execute grok() after loading or fetching capabilities, if that
445            went well, so that subsequent calls can already access the data.
446            (WMSCapabilities.getVersion): Export the used version of the
447            GetCapabilities request, so we can use it for subsequent calls,
448            i.e. for GetMap requests.
449            (WMSCapabilities.fetchCapabilities): Added proper error handling
450            when the GetCapabilities request failed, so that the surrounding
451            program can act accordingly.
452    
453    2004-03-30  Martin Schulze  <[email protected]>
454    
455            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
456            Adjusted the getLayerSRS method to return the list of SRSes
457            extracted from <SRS> elements instead of <BoundingBox> elements.
458            Added a bit of documentation as well.
459            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
460            since it was only implemented due to a misunderstanding.
461    
462            * Extensions/wms/test/test_parser.py
463            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
464            reflect the corrected interpretation of the standard: i.e. a layer
465            does not have to define a BoundingBox for all SRSes it supports.
466            Hence the <SRS></SRS> specification is authoritative, not the list
467            of BoundingBoxes.
468            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
469            to ensure None is returned for a non-existing SRS.
470            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
471            since it is not applicable anymore.  Listing more SRSes in <SRS>
472            elements is valid according to the specs.
473    
474    2004-03-26  Bernhard Reiter <[email protected]>
475    
476            * README: Nicer formatting of text. Improved descriptions.
477            Reflected wxWidgets name change.
478            
479            * Thuban/UI/about.py: Extended copyright to 2004 and added
480            information about the thuban-devel mailinglist.
481    
482    2004-03-24  Martin Schulze  <[email protected]>
483    
484            * Extensions/wms/capabilities.py: Renamed the class to contain
485            'WMS', also added a linebreak where required
486    
487            * Extensions/wms/parser.py: Finally added the XML parser for the
488            GetCapabilities response.
489    
490            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
491            <SRS> elements match the <BoundingBox> elements, except for the
492            layer 'beschriftung'.
493    
494            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
495            since Python uses unicode strings internally, otherwise
496            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
497            the SRS will be calculated anyway and this method is obsoleted by
498            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
499            Move loading the sample file into the setUp method.  Added a test
500            for finding the integrity problem in the sample response.
501            Improved formatting.
502    
503            * Extensions/wms/domutils.py: Added convenience routines for
504            handling of Document Object Model (DOM) nodes.
505    
506            * Extensions/wms/test/test_domutils.py: Added a test for the
507            domutils module
508    
509    2004-03-19  Martin Schulze  <[email protected]>
510    
511            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
512            Moved path detection and adding into a module of its own,
513            adjustpath, which exports thubandir as main Thuban directory.
514    
515            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
516            detection and adding into a module of its own, adjustpath, which
517            exports thubandir as main Thuban directory.  Reorganised the
518            module in order to support the SkipTest feature for Thuban test
519            cases.
520    
521            * Extensions/wms/test/adjustpath.py: Moved path detection and
522            adding into a module of its own.
523    
524    2004-03-18  Martin Schulze  <[email protected]>
525    
526            * Extensions/wms/test/test_parser.py: Added another test for
527            checking whether the WMS XML parser (to be implemented) returns
528            the information we expect.  This requires a sample WMS WML file
529            (sample.xml) which has been extracted from the frida server and
530            "improved" manually.
531    
532            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
533            main Thuban directory to the path in order to be able to import
534            random modules.  Adjusted the PyOGCLib detection to reuse the
535            information gathered.  Also added a note about the PYTHONPATH
536            environment variable.
537    
538            * Extensions/wms/test/test_ogclib.py: The format specification is
539            a mime-type, not a graphic format, hence image/jpeg wou ld be the
540            proper format and not JPEG.  We'll also have to take care of the
541            encoding of / as %2F.
542    
543    2004-03-16  Martin Schulze  <[email protected]>
544    
545            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
546            comprehensive test for the getMapURL method, built compare URLs
547            according to the documentation in OGC 01-068r3
548    
549            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
550            class WMSCapabilities to manage capabilites, will incorporate
551            parsing the capabilities response and provide details for other
552            classes.
553    
554    2004-03-12  Bernhard Herzog  <[email protected]>
555    
556            Support views in addition to normal tables in the postgis
557            shapestore
558    
559            * Thuban/Model/postgisdb.py
560            (PostGISShapeStore._fetch_table_information): Add a fallback for
561            the case where the table name is not in the geometry_columns
562            table.  This is usually the case for views.  Also, set
563            self.shapestore here.
564            (PostGISShapeStore.ShapeType): No need to query the database all
565            the time.  The shape type is now determined in
566            _fetch_table_information
567    
568            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
569            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
570            New parameter to specify views.
571            (PostGISDatabase.has_data): Also compare the views.  New views
572            parameter
573            (PostGISDatabase.initdb): Create the views.
574            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
575            view
576    
577            * test/test_postgis_db.py
578            (TestPostGISShapestorePointFromViews): New.  Test a
579            PostGISShapeStore with a view
580            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
581            the geometry_column explicitly to test whether that works
582    
583    2004-03-12  Bernhard Herzog  <[email protected]>
584    
585            Final step for explicit id/geometry columns: Loading and saving
586    
587            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
588            with the following changes:
589            (dbshapesource): Two new attributes id_column and geometry_column
590    
591            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
592            (SessionSaver.write_session): Use the new namespace
593            (SessionSaver.write_data_containers): Write the new dbshapesource
594            parameters
595    
596            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
597            the new file format version
598            (SessionLoader.start_dbshapesource): Handle the new db parameters
599    
600            * test/test_save.py: Update to the new dtd and namespace
601            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
602            mock object to provide a working IDColumn method.
603    
604            * test/test_load_1_0.py: New.  Copy of the test_load.py before
605            today's changes but with the round-trip tests removed.
606    
607            * test/test_load_0_9.py: Update doc-string.
608    
609            * test/test_load.py: Update all .thuban files to the new dtd and
610            namespace.
611            (TestPostGISLayer.file_contents): Add the new dbshapesource
612            paramters
613    
614    2004-03-11  Bernhard Herzog  <[email protected]>
615    
616            Next step for explicit id/geometry columns: User interaction
617    
618            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
619            the dialog is constructed. Add combo boxes to select id and
620            geometry column.  Rename some instance variables.
621            (ChooseDBTableDialog.GetTable): Return id and geometry column
622            names
623            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
624            selections in the table list
625    
626            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
627            and geometry_column
628    
629            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
630            parameters for id_column and geometry column of PostGISShapeStore
631            here as well.
632    
633            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
634            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
635            (PostGISConnection.GeometryTables): Use a better query to
636            determine which relations in the database might be usable for
637            shapestores.  Now supports views as well but is more PostgreSQL
638            specific
639            (PostGISConnection.table_columns): New. Somewhat experimental
640            method to let the db dialogs provide lists of columns to users so
641            that they can select id and geometry columns.
642            (PostGISTable.__init__): The default value of the id_column
643            parameter is now None it still means "gid" effectively, though.
644            (PostGISTable.IDColumn): New introspection method to return a
645            column object for the id column
646            (PostGISShapeStore.GeometryColumn): New introspection method to
647            return a column object for the geometry column
648    
649            * test/test_postgis_db.py
650            (TestPostGISConnection.test_gis_tables_non_empty):
651            Removed. Subsumed by the new:
652            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
653            New. Tes the GeometryTables and table_columns methods with actual
654            tables and views.
655            (PointTests.test_id_column, PointTests.test_geometry_column):
656            New. tests for the new methods.
657            (TestPostGISShapestorePoint.setUp)
658            (TestPostGISShapestorePointSRID.setUp)
659            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
660            instance variables needed by the new tests
661    
662    2004-03-11  Bernhard Herzog  <[email protected]>
663    
664            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
665            numbers given to ReadValue are ordinals.
666    
667    2004-03-11  Bernhard Herzog  <[email protected]>
668    
669            Elimiate the requirement for PostGIS tables to have a column
670            called "gid".
671    
672            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
673            id_column to specify which column to use to identify rows.  Also
674            new instance variables id_column and quoted_id_column
675            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
676            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
677            (PostGISTable.SimpleQuery): Use the id column name provided to the
678            constructor instead of "gid"
679            (PostGISShapeStore.__init__): New parameter id_column analogously
680            to PostGISTable.__init__.  This parameter is simply passed through
681            to the base class constructor
682            (PostGISShapeStore._create_col_from_description): Fix typo in
683            doc-string
684            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
685            (PostGISShapeStore.ShapesInRegion): Use the id column name
686            provided to the constructor instead of "gid"
687    
688            * test/postgissupport.py
689            (PostgreSQLServer.get_default_static_data_db): New static table
690            landmarks_point_id with an id column != "gid.  Update the comments
691            a bit.
692            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
693            doc-
694            (upload_shapefile): New parameter gid_column to use a name other
695            than "gid" for the column to store the shape ids
696    
697            * test/test_postgis_db.py (TableTests): New.  Mixin-class
698            containing all tests previously in TestPostGISTable.  The actual
699            tests are the same but the code is a bit more configurable to
700            allow for different id columns etc.
701            (TestPostGISTable): Derive from TableTests now for the actual
702            tests.
703            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
704            except that it the landmarks_point_id table to test the id_column
705            parameter
706            (PointTests): Extend the doc-string
707            (TestPostGISShapestorePointExplicitGIDColumn)
708            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
709            from PointTests to test the explicit id_column parameter.  One
710            tests with the name of the column holding the shape ids, the other
711            uses PostgreSQL's OID column.  For the latter a number of methods
712            have to be overwritten to make them independent of the actual id
713            values.
714    
715    2004-03-08  Silke Reimer  <[email protected]>
716    
717            Update debian directory:
718    
719            * debian/changelog: Added new version.
720            * deiban/rules: Updated management of patches (with cbds)
721            * debian/control: Added cbds to dependencies
722            * debian/patches/*: New. Adds better support for patches of thuban in
723                            debian
724            * debian/menu: Syntax of menu changed slightly
725            * debian/setup.py.patch: removed because it has been moved to
726                            debian/patechs/setup.py.patch
727            
728    
729    2004-02-26  Bernhard Herzog  <[email protected]>
730    
731            Create the Doc/technotes directory for text files with information
732            for developers
733    
734            * Doc/technotes/README: New. README for the technotes
735    
736            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
737            Thuban
738    
739            * Doc/technotes/release_process.txt: New. Used to be
740            HOWTO-Release.  Now slightly adapted to technote formatting style.
741    
742            * HOWTO-Release: Removed.  It's contents are now in
743            Doc/technotes/release_process.txt
744    
745    2004-02-25  Bernhard Herzog  <[email protected]>
746    
747            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
748            version of wxWindows the module was compiled with so we can check
749            that against the wxPython version.
750    
751            * Thuban/version.py (thuban_branch, thuban_release): New variables
752            controlling which and how Thuban versions are shown.  See the
753            comments for details.
754            (verify_versions): Also check that the wx version that wxproj is
755            compiled against matches that of the wxPython we use at runtime
756    
757    2004-02-20  Bernhard Herzog  <[email protected]>
758    
759            * Extensions/wms/wms.py (epsg_code_to_projection): Use
760            get_system_proj_file to read the epsg projections.  The old way
761            depended on the current directory being the top Thuban directory.
762    
763    2004-02-20  Bernhard Herzog  <[email protected]>
764    
765            * Extensions/svgexport/test/test_svgmapwriter.py
766            (TestVirtualDC.test_clippath): Remove a debug print
767    
768    2004-02-20  Bernhard Herzog  <[email protected]>
769    
770            * Extensions/svgexport/__init__.py: New.  Turn
771            Extensions/svgexport into a package.
772    
773            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
774            doc-string a bit.  The doc-string must come first, otherwise it's
775            not a doc-string.  The __future__ import must be the first thing
776            after the doc-string.  Use only double quotes in doc-strings.
777            Single quotes trip up emacs syntax highlighting if the text
778            contains apostrophes.
779    
780    2004-02-20  Bernhard Herzog  <[email protected]>
781    
782            * Extensions/svgexport/test/__init__.py,
783            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
784            suite for svgexport
785    
786            * test/runtests.py (find_test_modules): New. Function with the
787            module finding code from main.
788            (main): Use find_test_modules to figure out the default test
789            modules and take modules from Extensions.svgexport.test too.
790    
791    2004-02-19  Bernhard Herzog  <[email protected]>
792    
793            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
794            the mainwindow has a reference to the map of the initial session.
795            This fixes a bug introduced with the fix for RT#2245
796    
797    2004-02-19  Bernhard Herzog  <[email protected]>
798    
799            * Extensions/svgexport/svgsaver.py,
800            Extensions/svgexport/svgmapwriter.py,
801            Extensions/svgexport/maplegend.py: Added again.  This time in the
802            correct place.
803    
804    2004-02-17  Bernhard Herzog  <[email protected]>
805    
806            Fix for RT#2245
807    
808            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
809            instance variables before trying to create any windows.  Creating
810            windows can start an event loop if e.g. message boxes are popped
811            up for some reason, and event handlers, especially EVT_UPDATE_UI
812            may want to access things from the application.
813            (ThubanApplication.maps_changed): The mainwindow may not have been
814            created yet, so check whether it has been created before calling
815            its methods
816    
817            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
818            have a map
819    
820    2004-02-17  Bernhard Herzog  <[email protected]>
821    
822            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
823            Extensions/svgmapwriter.py, Extensions/maplegend.py,
824            extensions/svgexport/svgsaver.py,
825            extensions/svgexport/svgmapwriter.py,
826            extensions/svgexport/maplegend.py: Removed.  These files were in
827            the wrong places or didn't work at all.
828    
829    2004-02-16  Bernhard Herzog  <[email protected]>
830    
831            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
832            line
833    
834    2004-02-16  Bernhard Herzog  <[email protected]>
835    
836            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
837    
838    2004-02-15  Markus Rechtien  <[email protected]>
839            
840            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
841            to write a session to a file in SVG format.
842            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
843            to write a SVG map of a session.
844            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
845            in SVG format for the current session.
846    
847    2004-02-13  Bernhard Herzog  <[email protected]>
848    
849            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
850            can't be created, return immediately after displaying the error
851            message.
852    
853    2004-02-11  Bernhard Herzog  <[email protected]>
854    
855            Handle postgis tables with more than one geometry column.
856    
857            * Thuban/Model/postgisdb.py
858            (PostGISTable._fetch_table_information): Delegate the creation of
859            column objects to a different method so that we can extend that in
860            derived classes
861            (PostGISTable._create_col_from_description): New. Column object
862            creation part of _fetch_table_information
863            (PostGISShapeStore._create_col_from_description): New. Extend
864            inherited method to handle geometry columns
865            (PostGISShapeStore.__init__): New parameter geometry_column to
866            specify which geometry column to use.  Optional but mandatory for
867            tables with more than one geometry column
868            (PostGISShapeStore._fetch_table_information): Also use the name of
869            the geometry column when looking for the srid
870            (PostGISShapeStore.ShapeType): Also use the name of the geometry
871            column when looking for the shape type
872    
873            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
874            NonConnectionStore to changes in the PostGISShapeStore
875    
876            * test/test_postgis_db.py
877            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
878            PostGISShapeStore with tables having two geometry columns.
879    
880    2004-02-10  Bernhard Herzog  <[email protected]>
881    
882            Fix some postgis problems.  What remains to be done is real
883            handling of SRIDs as they affect how reprojection is done
884    
885            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
886            doc-string
887            (PostGISShapeStore._fetch_table_information): New. Extend
888            inherited method to retrieve srid
889            (PostGISShapeStore.BoundingBox): Handle tables without data.
890            extent yields NULL for those
891            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
892    
893            * test/test_postgis_db.py
894            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
895            for the special case of a table without any data
896            (TestPostGISShapestorePointSRID): New class with tests for a table
897            that uses srids
898            (PolygonTests): Fix a doc-string typo
899    
900            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
901            reference_systems with a specification of spacial reference
902            systems to create in the new db.
903            (PostgreSQLServer.new_postgis_db)
904            (PostgreSQLServer.get_static_data_db): New parameter
905            reference_systems to be passed through ultimately to
906            PostGISDatabase.  In new_postgis_db also check whether an existing
907            db already has the right srids
908            (PostgreSQLServer.get_default_static_data_db): Add srids and a
909            table that uses srids
910            (PostGISDatabase.initdb): Create the entries for the reference
911            systems
912            (PostGISDatabase.has_data): Add reference_systems parameter to
913            check for those too
914            (upload_shapefile): New parameter srid to create tables with a
915            specific srid
916    
917    2004-02-06  Frank Koormann  <[email protected]>
918    
919            * po/pt_BR.po: Fixed charset
920    
921    2004-02-05  Frank Koormann  <[email protected]>
922    
923            * po/pt_BR.po: Fixed format string for error message, missing %s
924            added (Thuban/UI/application.py:273)
925    
926    2004-02-03  Frank Koormann  <[email protected]>
927            
928            First version of Portuguese (Brazilian) translation
929    
930            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
931            Brazilian Portuguese by Eduardo Patto Kanegae.
932    
933            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
934            translators.
935    
936    
937    2004-01-22  Frank Koormann  <[email protected]>
938    
939            * Doc/manual/thuban-manual.xml: Added section on installation of
940            Thuban under Win32 systems. Fixed image path references in the postgis
941            section. Some minor source formattings.
942    
943    2004-01-21  Frank Koormann  <[email protected]>
944    
945            Make Thuban remember path selections (at least for one application run).
946    
947            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
948            attribute of application object. Path is a dictionary of
949            strings, currently with the items "data" and "projection".  
950            (Application.SetPath): New, stores path for the specified item.
951            (Application.Path): New, return path for the specified item.
952    
953            * Thuban/UI/mainwindow.py
954            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
955            MainWindow.AddLayer, MainWindow.AddRasterLayer,
956            MainWindow.TableOpen): Access "data" path information of the
957            application.
958            
959            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
960            Access "projection" path information of the application.
961    
962    2004-01-05  Bernhard Herzog  <[email protected]>
963    
964            * po/ru.po: Updated translations from Alex Shevlakov
965    
966    2004-01-05  Bernhard Herzog  <[email protected]>
967    
968            * po/Makefile, po/README: Move the description of how to generate
969            the translation statistics to the README.
970    
971    2003-12-23  Bernhard Herzog  <[email protected]>
972    
973            * NEWS: Update for 1.0.0
974    
975            * po/it.po: Another update from Maurizio Napolitano
976    
977    2003-12-23  Bernhard Herzog  <[email protected]>
978    
979            * po/it.po: Updated translation from Maurizio Napolitano
980    
981    2003-12-23  Bernhard Herzog  <[email protected]>
982    
983            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
984            for translation
985    
986            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
987            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
988            strings for translation
989    
990            * po/de.po: Update with the newly marked strings.
991    
992    2003-12-22  Bernhard Herzog  <[email protected]>
993    
994            * HOWTO-Release: Fix the places where version numbers have to be
995            updated
996    
997    2003-12-22  Bernhard Herzog  <[email protected]>
998    
999            * setup.py (setup call): 1.0.0, yeah!
1000    
1001            * Thuban/version.py (longversion): 1.0.0, yeah!
1002    
1003            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
1004            1.0.0 namespace too
1005    
1006            * Thuban/Model/save.py (SessionSaver.write_session): Save with
1007            1.0.0 namespace
1008    
1009            * test/test_load.py (LoadSessionTest.dtd)
1010            (TestSingleLayer.file_contents)
1011            (TestNonAsciiColumnName.file_contents)
1012            (TestLayerVisibility.file_contents)
1013            (TestClassification.file_contents, TestLabels.file_contents)
1014            (TestLayerProjection.file_contents)
1015            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1016            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
1017            (TestPostGISLayerPassword.file_contents)
1018            (TestLoadError.file_contents, TestLoadError.test): Update for
1019            1.0.0 namespace
1020    
1021            * test/test_save.py (SaveSessionTest.dtd)
1022            (SaveSessionTest.testEmptySession)
1023            (SaveSessionTest.testSingleLayer)
1024            (SaveSessionTest.testLayerProjection)
1025            (SaveSessionTest.testRasterLayer)
1026            (SaveSessionTest.testClassifiedLayer)
1027            (SaveSessionTest.test_dbf_table)
1028            (SaveSessionTest.test_joined_table)
1029            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
1030    
1031    2003-12-22  Bernhard Herzog  <[email protected]>
1032    
1033            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
1034            alignment flags are byte strings not unicode and that they have
1035            valid values
1036    
1037            * test/test_load.py (TestLabelLayer): New. Test loading (and
1038            indirectly saving) of maps with labels.
1039    
1040    2003-12-22  Bernhard Herzog  <[email protected]>
1041    
1042            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
1043            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
1044            unsubscribe all subscribers.
1045            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
1046            self.grid since it may already have been destroyed.
1047            Fixes RT #2256
1048    
1049    2003-12-19  Bernhard Herzog  <[email protected]>
1050    
1051            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1052    
1053    2003-12-16  Bernhard Herzog  <[email protected]>
1054            
1055            * debian/bitmappath.patch, debian/setup.py.patch:
1056                    added to ensure compliance with FHS for debian
1057            * debian/rules, debian/changelog:
1058                added patches in rules to ensure compliance with FHS for debian
1059    
1060    2003-12-16  Bernhard Herzog  <[email protected]>
1061    
1062            * po/Makefile (mo): Make the output a bit nicer so that it prints
1063            statistics about the translations. Add a comment how produce even
1064            nicer statistics with sed.
1065    
1066    2003-12-09  Frank Koormann   <[email protected]>
1067    
1068            * Resources/Projections/defaults.proj:
1069            French projection sample with correct accents (UNICODE).
1070    
1071    2003-12-05  Bernhard Herzog  <[email protected]>
1072    
1073            * MANIFEST.in: Add the devtools directory
1074    
1075            * setup.py (setup call): Use license instead of licence. This
1076            silences a deprecation warning on Python 2.3
1077    
1078    2003-12-05  Frank Koormann   <[email protected]>
1079    
1080            Documentation synced with 1.0rc1
1081    
1082            * Doc/manual/thuban-manual.xml:
1083            Minor formatting changes and references to database layers .
1084            Introduction.Internationalization: New section on i18n.
1085            MapManagement.AddingandRemovingLayers: Added item on database layers.  
1086            MapManagement.TheLegend: Added section and screenshot on popup menu.
1087            ProjectionManagement: Updated screenshot and sentence on EPSG.
1088            Appendix.SupportedDataSources: Added PostGIS.
1089            Appendix.WorkingwithPostGIS: New section.
1090    
1091            * Doc/manual/images/6_projection.png: Updated screenshot including
1092            EPSG checkboxes.
1093    
1094            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
1095    
1096            * Doc/manual/images/app_postgis_add_layer.png,
1097            Doc/manual/images/app_postgis_db_add.png,
1098            Doc/manual/images/app_postgis_db_management.png:
1099            New screenshots focussing on database layers
1100    
1101    2003-12-05  Frank Koormann   <[email protected]>
1102    
1103            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
1104            write warning to stderr instead of rising a warning dialog
1105    
1106    2003-12-03  Bernhard Herzog  <[email protected]>
1107    
1108            Fix for RT #2243
1109    
1110            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
1111            New. Like has_selected_layer but for shape layers only
1112            (_has_selected_shape_layer): New. Like _has_selected_layer but for
1113            shape layers only
1114            (layer_show_table command, layer_jointable command): Use these
1115            commands should only be available for shape layers
1116    
1117    2003-12-03  Bernhard Herzog  <[email protected]>
1118    
1119            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
1120            publishers that are wx objects and may have been destroyed by wx
1121            already. Fixes RT #2242.
1122    
1123    2003-12-03  Bernhard Herzog  <[email protected]>
1124    
1125            * po/ru.po: Updates from Alex Shevlakov
1126    
1127    2003-12-03  Silke Reimer <silkeintevation.de>
1128    
1129            * debian/control, debian/changelog: Added gdal-support to
1130                    debian package, updated to new thuban version
1131    
1132    
1133    2003-12-03  Bernhard Herzog  <[email protected]>
1134    
1135            * Thuban/Lib/version.py: New. Module for version number
1136            manipulations. The version of make_tuple here also deals better
1137            with more unusual version number strings, such as e.g.
1138            "1.2+cvs20031111"
1139    
1140            * Thuban/version.py (make_tuple): Removed. It's now in
1141            Thuban.Lib.version. Use that implementation instead.
1142    
1143            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
1144    
1145    2003-12-02  Bernhard Herzog  <[email protected]>
1146    
1147            * MANIFEST.in: Add debian files
1148    
1149            * setup.py (setup call): Add packages for the Extensions so that
1150            they're installed too
1151            (data_files): Add READMEs and sample data from some Extensions
1152    
1153            * NEWS: Add note about the extensions in binary packages
1154    
1155    2003-12-02  Bernhard Herzog  <[email protected]>
1156    
1157            * Thuban/Model/save.py (SessionSaver.write_session): Save files
1158            with the thuban-1.0rc1
1159    
1160            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
1161            thuban-1.0rc1 namespace too
1162    
1163            * test/test_save.py (SaveSessionTest.dtd)
1164            (SaveSessionTest.testEmptySession)
1165            (SaveSessionTest.testSingleLayer)
1166            (SaveSessionTest.testLayerProjection)
1167            (SaveSessionTest.testRasterLayer)
1168            (SaveSessionTest.testClassifiedLayer)
1169            (SaveSessionTest.test_dbf_table)
1170            (SaveSessionTest.test_joined_table)
1171            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
1172            namespace
1173    
1174            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
1175            namespace
1176            (TestSingleLayer.file_contents)
1177            (TestNonAsciiColumnName.file_contents)
1178            (TestLayerVisibility.file_contents)
1179            (TestClassification.file_contents, TestLabels.file_contents)
1180            (TestLayerProjection.file_contents)
1181            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1182            (TestPostGISLayer.file_contents)
1183            (TestPostGISLayerPassword.file_contents)
1184            (TestLoadError.file_contents, TestLoadError.test): Update to
1185            thuban-1.0rc1 namespace
1186    
1187    2003-12-01  Bernhard Herzog  <[email protected]>
1188    
1189            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
1190            nt to better match Intevation's current w32 setup
1191    
1192            * HOWTO-Release: Add note about updating MANIFEST.in
1193    
1194            * MANIFEST.in: Add the Extensions
1195    
1196            * NEWS: Update for 1.0rc1
1197    
1198    2003-12-01  Bernhard Herzog  <[email protected]>
1199    
1200            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
1201            cards for the dialog so that shapefiles ending in all uppercase
1202            SHP are listed too
1203    
1204    2003-11-28  Bernhard Herzog  <[email protected]>
1205    
1206            * Thuban/version.py (longversion): Update to 1.0rc1
1207    
1208            * setup.py (setup call): Update version to 1.0rc1. Use the
1209            [email protected] email address as author email instead of my
1210            personal one.
1211    
1212    2003-11-28  Bernhard Herzog  <[email protected]>
1213    
1214            * po/de.po: Update german translation.
1215    
1216    2003-11-28  Bernhard Herzog  <[email protected]>
1217    
1218            Unify the filenames stored in .thuban files so that the .thuban
1219            files are more platform independend
1220    
1221            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
1222            that they can be used on both windows and unix
1223            (SessionSaver.prepare_filename): New. Handle all filename
1224            transformations for filenames stored in the thuban file
1225            (SessionSaver.write_data_containers, SessionSaver.write_layer):
1226            Use prepare_filename
1227    
1228            * test/test_save.py (SaveSessionTest.testSingleLayer)
1229            (SaveSessionTest.testLayerProjection)
1230            (SaveSessionTest.testRasterLayer)
1231            (SaveSessionTest.testClassifiedLayer)
1232            (SaveSessionTest.test_dbf_table)
1233            (SaveSessionTest.test_joined_table): Filenames are always stored
1234            with slashes on all currently supported platforms so adapt all
1235            tests to this
1236    
1237            * test/test_load.py (LoadSessionTest.filenames): With the new
1238            filename scheme the filenames in the tests should be
1239            understandable on all currently supported platforms so we turn
1240            this into an empty list because we don't have to normalize them
1241            anymore
1242    
1243    2003-11-28  Bernhard Herzog  <[email protected]>
1244    
1245            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1246            Add the ellipsoid to the projection since some Proj versions
1247            complain if it's missing.
1248    
1249    2003-11-27  Bernhard Herzog  <[email protected]>
1250    
1251            Corect some bounding box projection problems
1252    
1253            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
1254            version of ForwardBBox
1255            (Projection._transform_bbox): New. common implementation of
1256            ForwardBBox and InverseBBox
1257            (Projection.ForwardBBox): Use _transform_bbox.
1258    
1259            * test/test_proj.py (TestProjection.test): Add test for
1260            InverseBBox
1261    
1262            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
1263            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
1264            new InverseBBox method to determine the unprojected bounding box
1265            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
1266            bbox.
1267    
1268            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
1269            Removed.
1270            (TestLayer.test_arc_layer_with_projection): New. This test is
1271            better able to test whether bounding boxes are projected correctly
1272            than test_point_layer_with_projection
1273    
1274            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
1275            InverseBBox to unproject bboxes
1276    
1277    2003-11-25  Bernhard Herzog  <[email protected]>
1278    
1279            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
1280            source code.
1281    
1282    2003-11-25  Bernhard Herzog  <[email protected]>
1283    
1284            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
1285            there for backwards compatibility and all code relying on that
1286            should have been updated by now.
1287    
1288    2003-11-25  Bernhard Herzog  <[email protected]>
1289    
1290            * test/test_load.py (TestClassification.test): Add the missing
1291            round trip test.
1292            (TestClassification.file_contents): Update to the newest file
1293            format
1294    
1295    2003-11-25  Bernhard Herzog  <[email protected]>
1296    
1297            Add very experimental (and possibly dangerous) extension to draw
1298            polygons:
1299    
1300            * Extensions/drawshape/README: New. Brief installation
1301            instructions
1302    
1303            * Extensions/drawshape/drawshape.py: New. Implementation of the
1304            drawshape extensions
1305    
1306            * Extensions/drawshape/patch.diff: Patch to apply before the
1307            extension can be used.
1308    
1309    2003-11-24  Bernhard Herzog  <[email protected]>
1310    
1311            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
1312            (ShapefileStore.__init__): Factor opening the shapefile into a
1313            separate method (the new _open_shapefile). This makes the code a
1314            bit more readable but the real reason is that it makes some evil
1315            hacks easier. :-)
1316    
1317    2003-11-24  Bernhard Herzog  <[email protected]>
1318    
1319            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
1320            converter is specified for an attribute assume it's a string
1321            containing only Latin1 characters. Update doc-string accordingly.
1322            This change should fix many places where unicode objects might
1323            accidentally enter Thuban.
1324    
1325            * test/test_load.py (TestNonAsciiColumnName): New test to check
1326            what happens with column names in DBF files that contain non-ascii
1327            characters
1328    
1329    2003-11-21  Bernhard Herzog  <[email protected]>
1330    
1331            Enable the experimental attribute editing again and introduce a
1332            command line switch to actually activate it
1333    
1334            * Thuban/UI/main.py (options): New. Container for options set on
1335            the commmand line
1336            (main): Add the --enable-attribute-editing flag.
1337    
1338            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
1339            editing is enabled use the grid ctrl which allows editing of the
1340            values
1341    
1342            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
1343            New. Just delegate this to the underlying table.
1344    
1345    2003-11-20  Bernhard Herzog  <[email protected]>
1346    
1347            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
1348            Skip this test if run under non-posix systems since it only works
1349            there
1350    
1351    2003-11-19  Bernhard Herzog  <[email protected]>
1352    
1353            * Thuban/Model/resource.py: Rework the way gdal support is
1354            determined so that we can give a reason in the about why gdal is
1355            not supported.
1356            (gdal_support_status): New. Variable holding a string with the
1357            reason for no gdal support
1358    
1359            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
1360            not supported to the message
1361    
1362    2003-11-19  Bernhard Herzog  <[email protected]>
1363    
1364            Remove the old table interface and its test cases
1365    
1366            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
1367            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
1368            anymore
1369    
1370            * Thuban/Model/transientdb.py (TransientTableBase)
1371            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
1372            anymore
1373    
1374            * test/test_table.py: Removed since the old interface it tests is
1375            gone.
1376    
1377            * test/runtests.py (main): The old table interface is gone and
1378            with it the deprecation warnings so remove the code that turns
1379            these warnings into errors
1380    
1381    2003-11-19  Bernhard Herzog  <[email protected]>
1382    
1383            * test/test_table.py: Revert to revision 1.5 again. Changing the
1384            tests to use the new table interface is completely wrong since the
1385            whole purpose of the tests in this module is to test the old
1386            interface.
1387    
1388    2003-11-18  Bernhard Herzog  <[email protected]>
1389    
1390            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
1391            New. Test whether the connection matches a set of connection
1392            parameters
1393    
1394            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
1395            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
1396            for existing connections with the same parameters and break out of
1397            the loop correctly.
1398    
1399            * test/test_postgis_db.py (TestBriefDescription)
1400            (TestPostGISSimple.test_brief_description): Rename
1401            TestBriefDescription to TestPostGISSimple and the test method to
1402            test_brief_description so that we can add more test methods.
1403            (TestPostGISSimple.test_matches_parameters): New. Test the new
1404            MatchesParameters method
1405    
1406    2003-11-18  Bernhard Herzog  <[email protected]>
1407    
1408            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
1409            _was_destroyed, to indicate whether an publisher instance has
1410            already been destroyed.
1411            (Publisher.Unsubscribe): Only disconnect if the publisher has not
1412            been destroyed yet.
1413            (Publisher.Destroy): Set the _was_destroyed flag to true.
1414    
1415            * test/test_connector.py
1416            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
1417            calling Unsubscribe after Destroy doesn't raise an exception
1418    
1419    2003-11-14  Bernhard Herzog  <[email protected]>
1420    
1421            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
1422            typo in doc-string
1423    
1424    2003-11-13  Bernhard Herzog  <[email protected]>
1425    
1426            Quote table and column names properly for postgis.
1427    
1428            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
1429            quote an identifier for use in an sql statement
1430            (PostGISColumn.__init__): Add the quoted_name attribute
1431            (PostGISTable.__init__): New instance variable quoted_tablename
1432            (PostGISTable._fetch_table_information): Use the quoted table
1433            name. New isntance variable quoted_geo_col with a quoted version
1434            of geometry_column
1435            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
1436            (PostGISTable.RowOrdinalToId): Use the quoted table name
1437            (PostGISTable.ReadValue, PostGISTable.ValueRange)
1438            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
1439            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
1440            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
1441            Use quoted table and column names
1442    
1443            * test/test_postgis_db.py (TestPostGISSpecialCases)
1444            (TestPostGISIgnoredColumns): Rename the class to
1445            TestPostGISSpecialCases because that better describes the new
1446            cases
1447            (TestPostGISSpecialCases.test_unsupported_types)
1448            (TestPostGISSpecialCases.test): Rename the method to
1449            test_unsupported_types because we need a more descriptive name now
1450            that there are more methods
1451            (TestPostGISSpecialCases.test_table_name_quoting)
1452            (TestPostGISSpecialCases.test_column_name_quoting)
1453            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
1454            cases to test quoting of table and column names in PostGISTable
1455            and PostGISShapeStore
1456    
1457            * test/postgissupport.py
1458            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
1459            AddGeometryColumn desn't support table or column names with sapces
1460            or double quotes
1461    
1462    2003-11-12  Jan-Oliver Wagner <[email protected]>
1463    
1464            * Extensions/wms/__init__.py: New: Init to make this
1465            directory a package.
1466    
1467            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
1468    
1469    2003-11-11  Bernhard Herzog  <[email protected]>
1470    
1471            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
1472            Constant for the file woth deprecated epsg projections
1473            (get_system_proj_file): Update doc-string
1474    
1475            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
1476            above the EPS widgets, introduce a check box for the deprecated
1477            eps projections and a label for the epsg widgets
1478            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
1479            too
1480    
1481    2003-11-11  Bernhard Herzog  <[email protected]>
1482    
1483            Avoid warnings when run under Python 2.3
1484    
1485            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
1486            (BaseRenderer.draw_label_layer): Coordinates must be ints.
1487    
1488            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
1489            real method so that we can convert to int.
1490            (MapRenderer.label_font): The font size mist be an int.
1491    
1492            * Thuban/UI/common.py (Color2wxColour): The color values must be
1493            ints. Also, remove the unnecessary asserts.
1494    
1495            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
1496            (TestUnicodeStrings.test): Python source code should not contain
1497            non-ascii characters unless an encoding is specified in the file.
1498            Therefore use \x escapes in the string literals for non-ascii
1499            characters.
1500    
1501    2003-11-11  Bernhard Herzog  <[email protected]>
1502    
1503            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
1504            parameter so that this function can be used for all proj files in
1505            Resource/Projections
1506            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
1507            get_system_proj_file
1508    
1509            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
1510            ProjFile self.__sysProjFile use a dictionary of system ProjFile
1511            objects self._sys_proj_files
1512            (ProjFrame.build_dialog): Adapt to the new changes in the
1513            ProjectionList constructor. Add a check button to toggle whether
1514            EPSG projections are shown
1515            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
1516            events.
1517            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
1518            the busy cursor if the files have not yet been loaded by the
1519            dialog.
1520            (ProjFrame.load_system_proj): Add a parameter for the name of the
1521            proj file. Maintain the dictionary of system projections
1522            self._sys_proj_files
1523    
1524            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
1525            user_projs parameters into one parameter proj_files which is a
1526            list of proj files.
1527            (ProjectionList._subscribe_proj_files)
1528            (ProjectionList._unsubscribe_proj_files): New. Move
1529            subscription/unsubscription of projfile messages to separate
1530            methods
1531            (ProjectionList.Destroy): The unsubscribe is now done in
1532            _unsubscribe_proj_files
1533            (ProjectionList.update_projections): We now have a list of proj
1534            file objects
1535            (ProjectionList.SetProjFiles): New method to set a new list of
1536            proj file objects
1537    
1538            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
1539            Specify explicitly which system proj file to load.
1540    
1541    2003-11-11  Bernhard Herzog  <[email protected]>
1542    
1543            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
1544            instance variables to cut cyclic references. The GC would have
1545            collected the loader eventually but it can happen that it doesn't
1546            run at all until thuban is closed (2.3 but not 2.2 tries a bit
1547            harder and forces a collection when the interpreter terminates)
1548            (load_session): Call the handler's Destroy method to make sure
1549            that it gets garbage collected early. Otherwise it will be
1550            collected very late if at all and it holds some references to e.g.
1551            shapestores and the session which can lead to leaks (of e.g. the
1552            temporary files)
1553    
1554            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
1555            resource leak in load_session
1556    
1557    2003-11-10  Bernhard Herzog  <[email protected]>
1558    
1559            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
1560            extensions are to be rendered.
1561            (_renderer_extensions): New. List with renderer for layers in
1562            extensions
1563            (add_renderer_extension): New. Add a renderer extension
1564            (init_renderer_extensions): New. Init the renderer extensions
1565            (BaseRenderer.render_map_incrementally): Search
1566            _renderer_extensions for how to draw unknown layer types
1567            (BaseRenderer.draw_raster_data): Add format parameter so that
1568            formats other than BMP can be drawn
1569            (BaseRenderer.draw_raster_layer): Pass an explicit format to
1570            draw_raster_data
1571    
1572            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
1573            strings of the format parameter of draw_raster_data method to wx
1574            constants
1575            (MapRenderer.draw_raster_data): Add the format parameter and use
1576            raster_format_map to map it to the right wxwindows constant for
1577            wxImageFromStream
1578    
1579            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
1580            the format parameter and record it
1581            (TestBaseRenderer.test_raster_no_projection): check the format
1582            paramter of the draw_raster_data method
1583            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
1584            extension facility
1585    
1586    2003-11-07  Bernhard Herzog  <[email protected]>
1587    
1588            Tweak the usage of the sqlite database to make common use cases
1589            more responsive. In most cases copying the data to the sqlite
1590            database takes so long that using sqlite doesn't have enough
1591            advantages.
1592    
1593            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
1594            comments about performance and query the min and max in separate
1595            statements because only that way will indexes be used.
1596            (TransientTableBase.UniqueValues): Add some comments about
1597            performance.
1598            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
1599            Do not copy the data to the transient DB but use the transient
1600            copy if it exists. See the new comments for the performance trade
1601            offs
1602    
1603            * test/test_transientdb.py
1604            (TestTransientTable.test_auto_transient_table): Make sure that the
1605            data is copied to the transient database at some point.
1606    
1607    2003-11-03  Bernhard Herzog  <[email protected]>
1608    
1609            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
1610            globals to locals so that it's a bit faster
1611    
1612    2003-11-03  Bernhard Herzog  <[email protected]>
1613    
1614            * Thuban/UI/baserenderer.py
1615            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
1616            method. ReadValue is faster than ReadRowAsDict since it only reads
1617            one cell especially now that the dbf file objects actually
1618            implement it.
1619    
1620            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
1621            read_attribute method of the dbf objects
1622    
1623    2003-11-03  Bernhard Herzog  <[email protected]>
1624    
1625            * Extensions/profiling/profiling.py (popup_dialog_box): New config
1626            variable to indicate whether the result should be shown in a
1627            dialog box
1628            (profile_screen_renderer, time_screen_renderer): Only show a
1629            dialog box if popup_dialog_box is true.
1630            (profile_screen_renderer): Flush stdout after the printing the
1631            first part of the "profiling..." message
1632    
1633            * Thuban/UI/baserenderer.py
1634            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
1635            brushes for the groups so that they're not created over and over
1636            again
1637    
1638            * Thuban/Model/classification.py (Classification.__getattr__)
1639            (Classification._compile_classification)
1640            (Classification._clear_compiled_classification): New. Methods to
1641            manage a 'compiled' representation of the classification groups
1642            which is created on demand
1643            (Classification.InsertGroup, Classification.RemoveGroup)
1644            (Classification.ReplaceGroup): reset the compiled representation
1645            (Classification.FindGroup): Use the compiled representation to
1646            find the matching group
1647            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
1648    
1649    2003-10-31  Bernhard Herzog  <[email protected]>
1650    
1651            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
1652            Send a CLASS_CHANGED message
1653            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
1654            not return the removed group since it wasn't used.
1655    
1656            * test/test_classification.py
1657            (TestClassification.test_set_default_group): New. Test the
1658            SetDefaultGroup method
1659            (TestClassification.test_insert_group): New. Test the InsertGroup
1660            method
1661            (TestClassification.test_remove_group): New. Test the RemoveGroup
1662            method
1663            (TestClassification.test_replace_group): New. Test the
1664            ReplaceGroup method
1665    
1666    2003-10-31  Bernhard Herzog  <[email protected]>
1667    
1668            * test/test_classification.py (TestClassification.setUp):
1669            Subscribe to the CLASS_CHANGED messages
1670            (TestClassification.tearDown): New. Destroy the classification
1671            properly
1672            (TestClassification.test_defaults): Add tests for the default line
1673            width and whether no messages were sent yet
1674            (TestClassification.test_set_default_properties): Add tests for
1675            messages and setting the default line width
1676            (TestClassification.test_add_singleton)
1677            (TestClassification.test_add_range)
1678            (TestClassification.test_multiple_groups): Add tests for messages
1679    
1680    2003-10-31  Bernhard Herzog  <[email protected]>
1681    
1682            Some more refactoring in preparation for new tests:
1683    
1684            * test/test_classification.py (TestClassification.setUp): New.
1685            Instantiate the classification here. Update the test methods
1686            accordingly.
1687            (TestClassification.test_multiple_groups): Make sure that the two
1688            singletons matching 1 are considered different.
1689    
1690    2003-10-31  Bernhard Herzog  <[email protected]>
1691    
1692            * test/test_classification.py (red, green, blue): New. These
1693            constants were used in several cases. Update the relevant methods.
1694            (TestClassification.test_defaults)
1695            (TestClassification.test_set_default_properties)
1696            (TestClassification.test_add_singleton)
1697            (TestClassification.test_add_range)
1698            (TestClassification.test_multiple_groups)
1699            (TestClassification.test_deepcopy): New. These were formerly all
1700            part of the single method test.
1701            (TestClassification.test_deepcopy): Removed.
1702            (TestClassIterator): Removed. The test case is now a method of
1703            TestClassification since it tests part of the public interface of
1704            Classification
1705            (TestClassification.test_iterator): New. Used to be
1706            TestClassIterator effectively
1707    
1708    2003-10-31  Jan-Oliver Wagner <[email protected]>
1709    
1710            GUIfied the functions of the profiling extension.
1711    
1712            * /Extensions/profiling/__init__.py: New: Init to make this
1713            directory a package.
1714    
1715            * Extensions/profiling/profiling.py: Moved menu entries to
1716            the Extensions menu. Applied _() for strings.
1717            (profile_screen_renderer): Catch the detailed printout and present
1718            it in a dialog.
1719            (time_screen_renderer): Raise a dialog to present the result instead
1720            of printing it to stdout.
1721    
1722    2003-10-31  Bernhard Herzog  <[email protected]>
1723    
1724            * test/test_classification.py (TestClassGroupProperties)
1725            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
1726            (TestClassGroupSingleton, TestClassIterator, TestClassification):
1727            Split TestClassification into several classes, one for each class
1728            being tested. TestClassification itself now only tests
1729            Classification. This split makes changes to the tests a bit easier
1730    
1731    2003-10-31  Bernhard Herzog  <[email protected]>
1732    
1733            * Extensions/profiling/profiling.py: New. Extension to measure
1734            Thuban performance
1735    
1736    2003-10-31  Frank Koormann <[email protected]>
1737    
1738            Added two items to legend popup menu: Remove Layer and Show Layer Table
1739    
1740            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
1741            LegendPanel._OnShowTable): New event handlers, call the corresponding
1742            mainwindow methods.
1743            (LegendTree._OnRightClick): Added items to popup menu.
1744    
1745    2003-10-30  Bernhard Herzog  <[email protected]>
1746    
1747            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
1748            EVT_WINDOW_DESTROY
1749            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
1750            nothing but is convenient for the derived classes.
1751    
1752            * Thuban/UI/tableview.py
1753            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
1754            Unsubscribe the messages here not in OnClose because that might
1755            get called multiple times. Fixes RT #2196
1756            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
1757            anymore.
1758    
1759            * README: Update the minimum requirement for wxPython. Since we
1760            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
1761            the version in which that was introduced for all platforms
1762    
1763    2003-10-30  Frank Koormann <[email protected]>
1764    
1765            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
1766            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
1767            frame.
1768    
1769    2003-10-30  Jan-Oliver Wagner <[email protected]>
1770    
1771            Improved APR import extension, added further EPSG definitions
1772            and some cleanup regarding string class.
1773    
1774            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
1775            Added test for alias 'longlat'.
1776    
1777            * Resources/Projections/epsg-deprecated.proj: New. Contains
1778            deprecated EPSG definitions.
1779    
1780            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
1781            the variable names for objects.
1782    
1783            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
1784            Copied from importAPR and provided with documentation.
1785    
1786            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
1787            Moved to apr.py.
1788            (APR_View): Added object ref 'ITheme'.
1789    
1790            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
1791            split function by corresponding use of the string class method.
1792    
1793            * Thuban/Model/xmlwriter.py: Replaced string replace function by
1794            corresponding string method.
1795    
1796    2003-10-29  Bernhard Herzog  <[email protected]>
1797    
1798            * Thuban/UI/baserenderer.py
1799            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
1800            special case of a classification that only has the default group
1801    
1802    2003-10-27  Bernhard Herzog  <[email protected]>
1803    
1804            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1805    
1806            * po/de.po: Update.
1807    
1808            * Thuban/UI/application.py
1809            (ThubanApplication.ShowExceptionDialog): Handle translation of the
1810            dialog message properly
1811    
1812    2003-10-27  Bernhard Herzog  <[email protected]>
1813    
1814            Rework how localization works so that we use wx's translation
1815            functions when running Thuban as a normal application but not when
1816            we don't need any UI, such as in the test suite. See the comment
1817            in Thuban/__init__.py for details
1818    
1819            * Thuban/__init__.py (_): Add one level of indirection to make the
1820            translation handling more flexible and to make it possible to use
1821            either wx's translation services or not.
1822            (gettext_identity, translation_function_installed)
1823            (install_translation_function): New function to help with this
1824    
1825            * Thuban/UI/__init__.py: Install the wx specific translation
1826            function if it's OK to do that
1827    
1828            * test/support.py (initthuban): Install a dummy translation
1829            function so that importing Thuban.UI doesn't install a wx specific
1830            one for which would need to import wxPython
1831    
1832    2003-10-27  Bernhard Herzog  <[email protected]>
1833    
1834            * HOWTO-Release: Source archives should be created first and the
1835            binary packages should be created from the source archives.
1836            There's an official debian package now so there's no need to test
1837            the rpm on debian anymore
1838    
1839    2003-10-27  Bernhard Herzog  <[email protected]>
1840    
1841            Several rendering changes:
1842    
1843             - Render the selection into a separate bitmap so that only that
1844               bitmap needs to be redrawn when the selection changes
1845    
1846             - Render incrementally showing previews and allowing interaction
1847               before rendering is complete
1848    
1849             - Update the renderer interface a bit. Most parameters of
1850               RenderMap are now parameters of the constructor
1851    
1852            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
1853            and the update region as parameters. Update the doc-string
1854            (BaseRenderer.render_map_incrementally): New. Generator function
1855            to renders the map incrementally
1856            (BaseRenderer.render_map): Remove the map argument (it's now in
1857            the constructor) and simply iterate over the
1858            render_map_incrementally generator to draw the map.
1859            (BaseRenderer.draw_shape_layer_incrementally)
1860            (BaseRenderer.draw_shape_layer): Renamed to
1861            draw_shape_layer_incrementally and changed into a generator that
1862            yields True every 500 shapes. Used by render_map_incrementally to
1863            render shape layers incrementally
1864    
1865            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
1866            map and region parameters which are now in the constructor
1867            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
1868            the inherited render_map_incrementally.
1869            (BaseRenderer.draw_shape_layer): Removed.
1870            (ScreenRenderer.draw_selection_incrementally): New. The selection
1871            drawing part of the removed draw_shape_layer as a generator
1872            (ScreenRenderer.layer_shapes): Update because of the region
1873            parameter change
1874            (ExportRenderer.__init__): New. Extend the inherited constructor
1875            with the destination region for the drawing
1876            (ExportRenderer.RenderMap): Removed the map and region parameters
1877            which are now in the constructor
1878    
1879            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
1880            bitmap suitable for a preview in a tool
1881            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
1882            bitmap
1883            (MapPrintout.draw_on_dc): Adapt to new renderer interface
1884            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
1885            exists
1886            (MapCanvas.OnIdle): Update the logic to deal with incremental
1887            rendering and the selection bitmap
1888            (MapCanvas._do_redraw): Handle the instantiation of the render
1889            iterator and the redraws during rendering
1890            (MapCanvas._render_iterator): New. Generator to incrementally
1891            redraw both bitmaps
1892            (MapCanvas.Export): Adapt to new renderer interface.
1893            (MapCanvas.full_redraw): Reset the selection bitmap and the
1894            renderer iterator too
1895            (MapCanvas.redraw_selection): New. Force a redraw of the selection
1896            bitmap
1897            (MapCanvas.shape_selected): Only redraw the selection bitmap
1898    
1899            * test/test_baserenderer.py
1900            (TestBaseRenderer.test_polygon_no_projection)
1901            (TestBaseRenderer.test_raster_no_projection)
1902            (TestBaseRenderer.test_point_map_projection)
1903            (TestBaseRenderer.test_point_layer_and_map_projection)
1904            (TestBaseRenderer.test_point_layer_projection)
1905            (TestBaseRenderer.test_point_with_classification): Adapt to new
1906            renderer interface
1907    
1908    2003-10-24  Bernhard Herzog  <[email protected]>
1909    
1910            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
1911            (point_in_polygon_shape, shape_centroid): Raise an exception if
1912            the shape can't be read. Previously invalid shape ids would lead
1913            to a segfault.
1914    
1915            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
1916            New. test whether an exception is raised for invalid shape ids
1917    
1918    2003-10-24  Jan-Oliver Wagner <[email protected]>
1919    
1920            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
1921            as alias for 'latlong'.
1922    
1923            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
1924            as alias for 'latlong'.
1925    
1926    2003-10-24  Jan-Oliver Wagner <[email protected]>
1927    
1928            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
1929            the projection even for the UnknownPanel.
1930            (UnknownProjPanel.__init__): Define the text and create the textctrl
1931            widget.
1932            (UnknownProjPanel._DoLayout): Replaced static text widget by the
1933            textctrl created in __init__.
1934            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
1935            including the parameters of the projection.
1936            
1937    2003-10-24  Jan-Oliver Wagner <[email protected]>
1938    
1939            * Resources/Projections/epsg.proj: New. This is a list of
1940            EPSG codes with parameters for proj. The list has been
1941            generated using devtools/create_epsg.py based on the
1942            file nad/epsg of the proj 4.4.7 package. Four projection
1943            definitions have been deleted as they are not accepted by proj:
1944            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
1945            and "HD72 / EOV".
1946    
1947    2003-10-22  Bernhard Herzog  <[email protected]>
1948    
1949            Some more tweaks to the projection dialog which should fix RT
1950            #1886.
1951    
1952            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
1953            the ProjFile's messages and call the base class methods correctly
1954            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
1955            flag on the newly selected item too. Otherwise some other item is
1956            focused and the first time the focus is moved with the keyboard
1957            the selection moves in unexpected ways.
1958    
1959            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
1960            focus on the OK button, only on the projection list. That way the
1961            list really has the focus initially
1962            (ProjFrame.OnClose): Call the projection list's Destroy method to
1963            make it unsubscribe all messages
1964    
1965    2003-10-21  Bernhard Herzog  <[email protected]>
1966    
1967            Rework the projection dialog to fix a few bugs, including RT 2166
1968            and most of 2168
1969    
1970            * Thuban/UI/projlist.py: New. The class ProjectionList is a
1971            special wxListCtrl to show a list of projections in a more MVC
1972            fashion
1973    
1974            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
1975            throughout the class. The main change is to use the ProjectionList
1976            class instead of a normal wxListBox. Also, add an explicit
1977            "Unknown" projection to the projection choice control.
1978            (ProjPanel.__init__): Add an "unknown" ellipsoid
1979            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
1980            instantiation of the panel's controls to make the tab-order more
1981            natural
1982    
1983    2003-10-21  Bernhard Herzog  <[email protected]>
1984    
1985            * test/test_load.py (TestSingleLayer.file_contents)
1986            (TestSingleLayer.test): Add non-ascii characters to the titles of
1987            session, map and layer. This is effectively a port of the
1988            TestUnicodeStrings test in test_load_0_8.py which for some reason
1989            was only added there.
1990    
1991            * test/test_load_0_9.py (TestSingleLayer.file_contents)
1992            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
1993            characters to the titles of session, map and layer,.
1994    
1995    2003-10-21  Bernhard Herzog  <[email protected]>
1996    
1997            Add EPSG projection handling to .thuban files
1998    
1999            * test/test_save.py (SaveSessionTest.dtd)
2000            (SaveSessionTest.testEmptySession)
2001            (SaveSessionTest.testLayerProjection)
2002            (SaveSessionTest.testRasterLayer)
2003            (SaveSessionTest.testClassifiedLayer)
2004            (SaveSessionTest.test_dbf_table)
2005            (SaveSessionTest.test_joined_table)
2006            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
2007            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
2008            use a and epsg projection to test saving them
2009    
2010            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
2011            namespace
2012            (TestLayerVisibility.file_contents, TestLabels.file_contents)
2013            (TestLayerProjection.file_contents)
2014            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2015            (TestPostGISLayer.file_contents)
2016            (TestPostGISLayerPassword.file_contents)
2017            (TestLoadError.file_contents, TestLoadError.test): Update to use
2018            1.0-dev namespace
2019            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
2020            use 1.0-dev namespace and use an EPSG projection to test whether
2021            loading it works
2022    
2023            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
2024            as of Thuban 0.9. These are now tests to determine whether Thuban
2025            can still read files generated by Thuban 0.9
2026    
2027            * Thuban/Model/save.py (SessionSaver.write)
2028            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
2029            namespace
2030            (SessionSaver.write_projection): Write the projection's epsg
2031            attribute
2032    
2033            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
2034            thuban-1.0-dev.dtd namespace
2035            (SessionLoader.check_attrs): Allow a callable object as conversion
2036            too
2037            (SessionLoader.start_projection, SessionLoader.end_projection)
2038            (SessionLoader.start_parameter): Handle the epsg attribute and
2039            rename a few instance variables to lower case
2040    
2041            * Resources/XML/thuban-1.0.dtd: New. Only difference to
2042            thuban-0.9.dtd is the epsg attribute for projections.
2043    
2044    2003-10-21  Bernhard Herzog  <[email protected]>
2045    
2046            * test/runtests.py (main): Let the user specify which tests to run
2047            on the command line
2048    
2049            * test/support.py (ThubanTestResult.getDescription): Override to
2050            give a better short description. The description can be used as a
2051            parameter to run_tests to run that particular test in isolation.
2052    
2053    2003-10-21  Frank Koormann   <[email protected]>
2054    
2055            Popup menu for legend. Scheduled for the 1.2 release this was too
2056            simple to implement: The popup menu is bound to the legend tree, while
2057            the events are hanlded by its anchestor, the legend panel. This
2058            allows reuse of all the event handlers already implemented for the
2059            legend toolbar buttons.
2060    
2061            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
2062            to add handlers for the events issued by the popup menu.
2063            (LegendPanel._OnToggleVisibility): Handler for toggling layer
2064            visibility event
2065            (LegendPanel._OnProjection): Handler for layer projection event.
2066            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
2067            (LegendTree._OnRightClick): Event handler for right click, select item
2068            and pop up menu.
2069            (LegendTree.ToggleVisibility): Toggle layer visibility
2070            (LegendTree.LayerProjection): Raise layer projection dialog for
2071            current layer.
2072    
2073    2003-10-21  Bernhard Herzog  <[email protected]>
2074    
2075            * Resources/Projections/defaults.proj: Use correct DOCTYPE
2076            declaration. The top-level element is projectionlist not projfile
2077    
2078    2003-10-20  Bernhard Herzog  <[email protected]>
2079    
2080            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
2081            method to write a projfile and display a busy cursor and error
2082            dialogs.
2083            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
2084            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
2085            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
2086            busy cursor while loading the user and system prj files.
2087    
2088    2003-10-16  Bernhard Herzog  <[email protected]>
2089    
2090            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
2091            ProjFile objects
2092            (clear_proj_file_cache): New function to clear the cache. Mainly
2093            useful for use by the test suite
2094            (read_proj_file): Use the cache.
2095    
2096            * test/test_proj.py (TestProjFile): Clarify the doc-string
2097            (ProjFileReadTests): Update doc-string
2098            (ProjFileReadTests.test_get_system_proj_file): Check whether the
2099            system proj files is cached.
2100            (ProjFileLoadTestCase): New base class for the proj file tests
2101            derived from support.FileLoadTestCase to provide some common
2102            behavior.
2103            (TestLoadingProjFile)
2104            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
2105            (TestProjFileWithInvalidParameters.file_contents): Derive from
2106            ProjFileLoadTestCase
2107            (TestLoadingProjFile.test_caching): New. Test whether the cache
2108            works
2109    
2110    2003-10-16      Silke Reimer    <[email protected]>
2111    
2112            * debian/*: New directory with configuration files for building a thuban
2113              deb-package.
2114    
2115    2003-10-14  Bernhard Herzog  <[email protected]>
2116    
2117            * test/test_proj.py: Execute support.run_tests when run as
2118            __main__ so that missing unsubscribes are detected
2119            (TestProjFile.tearDown): Destroy the proj_file properly
2120    
2121    2003-10-14  Bernhard Herzog  <[email protected]>
2122    
2123            * Thuban/Model/messages.py (PROJECTION_ADDED)
2124            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
2125            the ProjFile objects
2126    
2127            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
2128            easily send messages when the projections change
2129            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
2130            when the change was successful
2131    
2132            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
2133            proj file messages
2134            (TestProjFile.test_add_remove)
2135            (TestProjFile.test_remove_non_existing)
2136            (TestProjFile.test_replace)
2137            (TestProjFile.test_replace_non_existing): Test whether the right
2138            messages are sent
2139    
2140    2003-10-14  Bernhard Herzog  <[email protected]>
2141    
2142            * test/test_proj.py (TestProjFile.test): Refactor into several
2143            tests
2144            (TestProjFile.test_add_remove)
2145            (TestProjFile.test_remove_non_existing)
2146            (TestProjFile.test_replace)
2147            (TestProjFile.test_replace_non_existing): Some of the new
2148            individual test cases
2149            (TestProjFileSimple): New class for the rest of the test cases
2150            that came out of the refactoring
2151            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
2152            derived classes don't have to
2153    
2154    2003-10-13  Bernhard Herzog  <[email protected]>
2155    
2156            Add an optional EPSG code to the projection objects and extend the
2157            .proj file format accordingly.
2158    
2159            * Resources/XML/projfile.dtd (element projection): Add epsg
2160            attribute
2161    
2162            * Thuban/Model/proj.py (Projection.__init__): New parameter and
2163            instance variable epsg. Update doc-string
2164            (Projection.EPSGCode, Projection.Label): New methods to provide
2165            access to EPSG code and a label for use in dialogs
2166    
2167            * Thuban/Model/resource.py (ProjFileReader.start_projection)
2168            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
2169            Handle the epsg code attribute when reading or writing proj files
2170    
2171            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
2172            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
2173            (ProjFrame.__FillAvailList): Use the projection's Label method to
2174            get the string for the list box
2175    
2176            * test/test_proj.py (TestProjection.test_label)
2177            (TestProjection.test_label_epsg)
2178            (TestProjection.test_epsgcode_for_non_epsg_projection)
2179            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
2180            for the label and EPSGCode methods
2181            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
2182            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
2183            objects in the test cases and put the expected contents into the
2184            test case methods too. Update doTestWrite accordingly
2185            (TestLoadingProjFile)
2186            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
2187            read tests from TestProjFile.
2188            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
2189            tests are now in the new classes.
2190            (sample_projfile, sample_projfile_data)
2191            (sample_projfile2, sample_projfile_data2): Removed. Not used
2192            anymore.
2193            (TestProjFile.test_read_unreadable_file): No need to reset the
2194            permissions at the end anymore since we use a unique filename
2195    
2196    2003-10-13  Bernhard Herzog  <[email protected]>
2197    
2198            * test/test_proj.py: Some more refactoring of the test cases
2199            (ProjFileTest): New base class for the proj file tests.
2200            (TestProjFile): Derive from ProjFileTest
2201            (TestProjFile.test_read_unreadable_file)
2202            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
2203            the new filename method to get a unique filename
2204            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
2205            (WriteProjFileTests): New class for proj file write tests.
2206            Contains the write test that were in TestProjFile originally.
2207    
2208    2003-10-13  Bernhard Herzog  <[email protected]>
2209    
2210            * test/test_proj.py (TestProjFile.testRead)
2211            (TestProjFile.test_read_non_existing_file)
2212            (TestProjFile.test_read_unreadable_file)
2213            (TestProjFile.test_read_empty_file): Split into several methods.
2214    
2215    2003-10-10  Bernhard Herzog  <[email protected]>
2216    
2217            * Thuban/UI/sizers.py: New file with custom sizers.
2218    
2219            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
2220            all projection type specific panels and put them into a
2221            NotebookLikeSizer. This way the dialog doesn't change its size
2222            when a different projection is selected
2223            (ProjFrame.__init__): Rename projection_panels
2224            projection_panel_defs and reuse projection_panels for a list of
2225            the instantiated panels.
2226            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
2227            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
2228            the panels
2229            (UnknownProjPanel._DoLayout): Place the newlines in the message
2230            differently to make the panel narrower.
2231            (TMPanel._DoLayout): Layout the parameters in one column.
2232    
2233    2003-10-10  Bernhard Herzog  <[email protected]>
2234    
2235            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
2236            that contains all the setup for the dialog's widgets, layout and
2237            event handling.
2238            (__): Call build_dialog to build the dialog.
2239            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
2240            Their functionality is now in build_dialog
2241            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
2242            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
2243            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
2244            different widget names and hierarchy introduced with build_dialog.
2245    
2246    2003-10-10  Bernhard Herzog  <[email protected]>
2247    
2248            * README: Fix typo.
2249    
2250    2003-10-09  Bernhard Herzog  <[email protected]>
2251    
2252            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
2253            projection is already in the list. This is *a lot* faster when
2254            loading files with hundreds of projections since it saves a linear
2255            search. OTOH this will allow adding the same projection to the
2256            user.proj file multiple times in the projection dialog but we'll
2257            deal with that later
2258    
2259    2003-10-09  Jan-Oliver Wagner <[email protected]>
2260    
2261            * devtools: New. Directory for developer tools that are not intended
2262            for the regular user.
2263    
2264            * devtools/create_epsg.py: New. Convert the epsg file of proj into
2265            a python .proj file.
2266    
2267    2003-10-09  Bernhard Herzog  <[email protected]>
2268    
2269            * test/test_proj.py
2270            (TestProjection.test_get_parameter_without_equals_sign): New. Test
2271            whether GetParameter handles parameters without "=" sign correctly
2272    
2273            * Thuban/Model/proj.py (Projection.GetParameter): Handle
2274            parameters that do not contain a "=". Update the doc-string
2275    
2276    2003-10-08  Bernhard Herzog  <[email protected]>
2277    
2278            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
2279            length limit on the projname text control
2280    
2281    2003-10-08  Bernhard Herzog  <[email protected]>
2282    
2283            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
2284            (TestProjection.test_get_projection_units_normal): New. Tests for
2285            the Projection.GetProjectedUnits method
2286    
2287    2003-10-08  Jan-Oliver Wagner <[email protected]>
2288    
2289            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
2290            Added missing 'val' parameter.
2291    
2292    2003-10-08  Bernhard Herzog  <[email protected]>
2293    
2294            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
2295            projection type of the currently selected projection is not known,
2296            i.e. there's no panel for it, use the UnknownProjPanel
2297            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
2298            the actual replacing of the proj panel into the new method
2299            _show_proj_panel.
2300            (UnknownProjPanel): Add doc-string.
2301            (UnknownProjPanel._DoLayout): Insert a newline into the text so
2302            that the panel is not so wide.
2303    
2304    2003-10-08  Bernhard Herzog  <[email protected]>
2305    
2306            * Thuban/Model/resource.py (read_proj_file): Return the warnings
2307            too. Update the doc-string
2308            (get_proj_files): Removed. It wasn't used anywhere
2309            (get_system_proj_files, get_system_proj_file): Rename to
2310            get_system_proj_file and return the ProjFile object and not a list
2311            of ProjFile objects. Update the callers.
2312            (get_user_proj_files, get_user_proj_file): Rename to
2313            get_user_proj_file return the ProjFile object and not a list of
2314            ProjFile objects. Update the callers.
2315            (ProjFileReader.__init__): New instance variable for the warnings.
2316            Rename the __pf ivar to projfile. Update the methods referring to
2317            __pf
2318            (ProjFileReader.end_projection): Catch any errors raised when
2319            instantiating the projection and record that as an error. The
2320            projection will not be in the final ProjFile object.
2321            (ProjFileReader.GetWarnings): New method to return the warnings.
2322    
2323            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
2324            show the warnings from the projfile reader
2325            (ProjFrame._OnImport): Deal with any warnings returned by
2326            read_proj_file
2327            (ProjFrame.__FillAvailList): Deal with any warnings returned by
2328            get_system_proj_file or get_user_proj_file.
2329    
2330            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
2331            (TestProjFileWithInvalidParameters.file_contents): New test cases
2332            to test whether read_proj_file handles invalid projection
2333            parameters correctly
2334            (TestProjFile.test_get_system_proj_file): New. Simple test for
2335            resource.get_system_proj_file
2336    
2337    2003-10-07  Bernhard Herzog  <[email protected]>
2338    
2339            * test/test_derivedshapestore.py
2340            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
2341            properly so that the temporary directories get deleted correctly
2342    
2343    2003-10-06  Bernhard Herzog  <[email protected]>
2344    
2345            Handle the title changes in a proper MVC way.
2346    
2347            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
2348            canvas' TITLE_CHANGED messages
2349            (MainWindow.update_title): New. Update the main window's title
2350            (MainWindow.__SetTitle): Removed. Use update_title instead.
2351            (MainWindow.SetMap): Use update_title instead of __SetTitle
2352            (MainWindow.RenameMap): Do change the window title explicitly
2353            here. That's handled in a proper MVC way now.
2354            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
2355            messages
2356    
2357            * Thuban/Lib/connector.py (Conduit): New class to help classes
2358            that forward messages
2359    
2360            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
2361            (ViewPort): Derive from Conduit instead of Publisher
2362            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
2363            when calling the inherited versions
2364            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
2365            methods to subscribe and unsubscribe map messages
2366            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
2367            handle the map subscriptions
2368            (ViewPort.Map, ViewPort.map_projection_changed)
2369            (ViewPort.layer_projection_changed): Add or update doc-strings
2370    
2371            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
2372            typo
2373            (MyConduit): Helper class for the Conduit test.
2374            (TestConduit): Test cases for Conduit
2375    
2376            * test/test_connector.py: Use support.run_tests as main.
2377    
2378            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
2379            the TITLE_CHANGED messages
2380            (ViewPortTest.test_forwarding_title_changed): New test to check
2381            whether the viewport forwards the map's TITLE_CHANGED messages
2382            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
2383            after the port's because the latter may require a still functional
2384            map.
2385    
2386    2003-10-06  Bernhard Herzog  <[email protected]>
2387    
2388            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
2389            doc-string
2390    
2391    2003-10-06  Bernhard Herzog  <[email protected]>
2392    
2393            * test/test_viewport.py (ViewPortTest.setUp)
2394            (SimpleViewPortTest.test_init_with_size): Move the test for the
2395            initial size as a constructor parameter from ViewPortTest.setUp
2396            method to a new separate test in SimpleViewPortTest.
2397    
2398    2003-10-06  Bernhard Herzog  <[email protected]>
2399    
2400            * test/test_viewport.py (MockView): New class derived from
2401            ViewPort with a mock implementation of GetTextExtent to be used in
2402            the test cases
2403            (ViewPortTest.setUp): Use MockView instead of ViewPort
2404    
2405            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
2406            into what would be a "pure virtual function" in C++: always raise
2407            NotImplementedError. Mock implementations for test cases don't
2408            belong into the real code
2409    
2410    2003-10-02  Bernhard Herzog  <[email protected]>
2411    
2412            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
2413            close the dbf file we create so that it's contents have been
2414            written properly.
2415    
2416            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
2417            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
2418            Update to shapelib 1.2.10
2419    
2420    2003-10-01  Jan-Oliver Wagner <[email protected]>
2421    
2422            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
2423            it annoys lintian which warns about these files not being
2424            executable. The #! isn't necessary here since if you absolutely
2425            must execute them you can always say "python <filename>".
2426    
2427    2003-09-26  Bernhard Herzog  <[email protected]>
2428    
2429            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
2430            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
2431            is ported to a newer the import will fail, so it should be noticed
2432            immediately that this function is gone.
2433            Fixes RT#1919
2434    
2435    2003-09-26  Bernhard Herzog  <[email protected]>
2436    
2437            Add a DTD for the projection files and make thuban write valid
2438            projection files
2439    
2440            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
2441            files
2442    
2443            * Thuban/Model/resource.py (ProjFileSaver.write): Use
2444            'projectionlist' as the name in the document type declaration so
2445            that it matches the element type of the root element.
2446    
2447            * test/test_proj.py (sample_projfile, sample_projfile2): Use
2448            'projectionlist' as the name in the document type declaration just
2449            as it is done now in the files thuban would write
2450            (sample_projfile, sample_projfile_data): Fix spelling of
2451            "Mercator"
2452            (TestProjFile.doTestWrite): Validate the written and the expected
2453            XML data
2454            (TestProjFile): Derive from ValidationTest so that we can run xml
2455            validation tests
2456    
2457    2003-09-24  Bernhard Herzog  <[email protected]>
2458    
2459            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
2460            modify the list returned by map.Layers() in place since it is the
2461            actual list of layers used by the map.
2462    
2463    2003-09-23  Jan-Oliver Wagner <[email protected]>
2464    
2465            * Doc/manual/thuban-manual.xml: Added subsection to chapter
2466            Extensions to describe the extensions coming with the Thuban
2467            standard package (gns2shp and importAPR).
2468    
2469    2003-09-23  Bernhard Herzog  <[email protected]>
2470    
2471            * libraries/thuban/wxproj.cpp (project_point): if there's an
2472            inverse but no forward projection, convert to degrees after
2473            applying the inverse projection. Fixes RT#2096
2474    
2475            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
2476            implicitly tests for the fix to RT#2096
2477    
2478            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
2479            Check that the sequences have the same lengths
2480    
2481            * Resources/Projections/defaults.proj (Geographic projection): Use
2482            a much more precise value for the to_meter attribute.
2483    
2484    2003-09-22  Bernhard Herzog  <[email protected]>
2485    
2486            * test/support.py (initthuban): Make sure to unset the LANG env.
2487            var. so that tests that compare translated strings work. Solves RT
2488            #2094
2489    
2490    2003-09-22  Jan-Oliver Wagner <[email protected]>
2491    
2492            Small improvement of APR import.
2493    
2494            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
2495            Added tests for text-ranges.
2496    
2497            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
2498            returns a string object if the range is based on text.
2499    
2500            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
2501            range retrieval.
2502    
2503    2003-09-22  Jan-Oliver Wagner <[email protected]>
2504    
2505            Initial version of the importAPR extension which is in
2506            experimental state.
2507    
2508            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
2509            /Extensions/importAPR/test/: New directories.
2510    
2511            * /Extensions/importAPR/samples/README: New: Howto load the samples.
2512    
2513            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
2514            file which refers to the Thuban Iceland demo data.
2515    
2516            * /Extensions/importAPR/test/README: New: Howto execute the tests.
2517    
2518            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
2519    
2520            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
2521            as in '.apr'-files.
2522    
2523            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
2524            ODB Objects as in '.apr', '.avl' and other files.
2525    
2526            * /Extensions/importAPR/__init__.py: New: Init to make this
2527            directory a package.
2528    
2529            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
2530            project file (.apr) and convert it to Thuban.
2531    
2532    2003-09-22  Jan-Oliver Wagner <[email protected]>
2533    
2534            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
2535    
2536    2003-09-19  Jan-Oliver Wagner <[email protected]>
2537    
2538            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
2539            with description on RPM installation and RPM binary package
2540            creation.
2541    
2542    2003-09-18  Bernhard Herzog  <[email protected]>
2543    
2544            * setup.py (data_files): Only add the mo files if the Locales
2545            directory actually exists, so that setup.py works with a fresh CVS
2546            checkout
2547    
2548    2003-09-12  Jan-Oliver Wagner <[email protected]>
2549    
2550            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
2551            in viewport, not anymore in view
2552    
2553    2003-09-04  Jan-Oliver Wagner <[email protected]>
2554    
2555            Introducing first Extension (gns2shp).
2556    
2557            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
2558    
2559            * Extensions/__init__.py: New. init to make this dir a package.
2560    
2561            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
2562    
2563            * Extensions/gns2shp/test/README: New. some info on this test directory.
2564    
2565            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
2566    
2567            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
2568            of Shapefile from GNS text file format
2569    
2570    2003-09-03  Jan-Oliver Wagner <[email protected]>
2571    
2572            Fix/workaround for bug #2019:
2573            https://intevation.de/rt/webrt?serial_num=2019
2574    
2575            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
2576            (IdentifyView.__init__): Added another button that allows to
2577            stop the identify mode.
2578            (IdentifyView.OnStop): New. Stops the identify mode.
2579    
2580    2003-09-03  Jan-Oliver Wagner <[email protected]>
2581    
2582            Introducing a new exception dialog that allows to exit the
2583            application immediately.
2584            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
2585    
2586            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
2587    
2588            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2589            Made strings available to translations. Exchanged the simple
2590            ScrolledMessageDialog by the new ExceptionDialog.
2591    
2592    2003-09-01  Bernhard Herzog  <[email protected]>
2593    
2594            * NEWS: New. Summary of changes and release notes.
2595    
2596            * MANIFEST.in: Add NEWS
2597    
2598    2003-09-01  Bernhard Herzog  <[email protected]>
2599    
2600            * MANIFEST.in: Correct the include statement for the mo-files and
2601            include the documentation too.
2602    
2603            * setup.py (data_files): Add the .mo files
2604            (setup call): Up to version 0.9.0
2605    
2606    2003-09-01  Bernhard Herzog  <[email protected]>
2607    
2608            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
2609            parameter list to just parent and session
2610            (ChooseDBTableDialog.__set_properties): Removed. Setting the
2611            selection of empty list boxes is not allowed (and produces C++
2612            assertion errors) and the rest of the setup is better done in
2613            __init__ anyway.
2614            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
2615            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
2616            builtins True/False for booleans to avoid warnings from wxPython
2617    
2618            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
2619            ChooseDBTableDialog constructor parameters.
2620    
2621    2003-09-01  Bernhard Herzog  <[email protected]>
2622    
2623            * Thuban/Model/postgisdb.py
2624            (PostGISTable): Extend doc-string
2625            (PostGISTable._fetch_table_information): Set the column index
2626            correctly, pretending ignored columns don't exist.
2627    
2628            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
2629            for postgis tables with data types not yet supported by thuban.
2630    
2631    2003-08-29  Bernhard Herzog  <[email protected]>
2632    
2633            * HOWTO-Release: Tweak item about running the tests.
2634    
2635    2003-08-29  Jan-Oliver Wagner <[email protected]>
2636    
2637            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
2638    
2639    2003-08-29  Bernhard Herzog  <[email protected]>
2640    
2641            Add some missing parameters to projections. Proj complains about
2642            them on windows but for some reason not on Linux.
2643    
2644            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
2645            missing required projection parameters
2646    
2647            * test/test_proj.py (TestProjFile.test): Add missing required
2648            projection parameters
2649    
2650            * test/test_load_0_8.py (TestLayerProjection.file_contents)
2651            (TestLayerProjection.test): Add missing required projection
2652            parameters and tests for them
2653    
2654            * test/test_load.py (TestLayerProjection.file_contents)
2655            (TestLayerProjection.test): Add missing required projection
2656            parameters and tests for them
2657    
2658            * test/test_layer.py (TestLayer.test_base_layer): Add missing
2659            required projection parameters
2660    
2661    2003-08-29  Bernhard Herzog  <[email protected]>
2662    
2663            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
2664            access the pj_errno because directly accessing pj_errno doesn't
2665            work on windows if the proj library is in a DLL
2666    
2667            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
2668    
2669    2003-08-28  Bernhard Herzog  <[email protected]>
2670    
2671            * test/test_proj.py: Import things from Thuban after calling
2672            initthuban
2673    
2674            * test/test_load.py (LoadSessionTest.filenames): New class
2675            variable with the filename attributes to normalize
2676            (LoadSessionTest.check_format): Pass self.filenames to
2677            sax_eventlist to normalize the filename attributes
2678    
2679            * test/xmlsupport.py: Add cvs keywords
2680            (SaxEventLister.__init__): New parameter filenames which indicates
2681            attributes that contain filenames
2682            (SaxEventLister.startElementNS): Normalize the filename attributes
2683            with os.path.normpath
2684            (sax_eventlist): New parameter filenames to pass through to
2685            SaxEventLister
2686    
2687            * test/test_derivedshapestore.py: Make this file callable as a
2688            program to execute the tests
2689            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
2690            the session to self.session so that it gets destroyed properly
2691    
2692            * test/test_layer.py (TestLayer.tearDown): Call the session's
2693            Destroy method
2694    
2695            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
2696            too if it exists
2697            (TestMapAddLayer.test_add_layer): Bind the session to self.session
2698            so that it gets destroyed properly
2699    
2700            * test/postgissupport.py (reason_for_not_running_tests): Add a
2701            test for the existence of popen2.Popen4.
2702    
2703            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
2704            reliable way to destroy the sessions created in the test cases
2705            (SaveSessionTest.test_dbf_table): Bind the session to self.session
2706            so that it gets destroyed properly
2707            (SaveSessionTest.testLayerProjection): Bind the session to
2708            self.session so that it gets destroyed properly
2709    
2710            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
2711            sure that the session is destroyed properly
2712    
2713            * test/test_shapefilestore.py: Make this callable as a program to
2714            execute the tests
2715    
2716            * test/test_scalebar.py: Remove unnecessary import of _ from
2717            Thuban
2718    
2719            * test/support.py (print_garbage_information): Call initthuban
2720            here because it may be called indirectly from test cases that test
2721            test support modules which do not use anything from thuban itself
2722            (ThubanTestProgram.runTests): Remove unnecessary debug print
2723    
2724    2003-08-28  Bernhard Herzog  <[email protected]>
2725    
2726            * Thuban/version.py (longversion): Update to 0.9
2727    
2728            * Thuban/UI/mainwindow.py: Remove some unused imports
2729    
2730            * README: Add section about required additional software. Add date
2731            and revision CVS keywords
2732    
2733            * HOWTO-Release: Add item about the translations. Add date and
2734            revision CVs keywords and change formatting to match README a bit
2735            better
2736    
2737            * po/de.po: Update for 0.9
2738    
2739            * test/README: Tweak the wording a little because many tests are
2740            not really unittest.
2741    
2742    2003-08-27  Bernhard Herzog  <[email protected]>
2743    
2744            As preparation for the 0.9 release, switch thuban files to a
2745            non-dev namespace
2746    
2747            * Thuban/Model/save.py (SessionSaver.write_session): Write files
2748            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
2749            namespace
2750    
2751            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
2752            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
2753    
2754            * test/test_save.py (SaveSessionTest.dtd)
2755            (SaveSessionTest.testEmptySession)
2756            (SaveSessionTest.testSingleLayer)
2757            (SaveSessionTest.testLayerProjection)
2758            (SaveSessionTest.testRasterLayer)
2759            (SaveSessionTest.testClassifiedLayer)
2760            (SaveSessionTest.test_dbf_table)
2761            (SaveSessionTest.test_joined_table)
2762            (SaveSessionTest.test_save_postgis): Update for new namespace
2763    
2764            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
2765            (TestLayerVisibility.file_contents, TestLabels.file_contents)
2766            (TestLayerProjection.file_contents)
2767            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2768            (TestPostGISLayer.file_contents)
2769            (TestPostGISLayerPassword.file_contents)
2770            (TestLoadError.file_contents, TestLoadError.test): Update for new
2771            namespace
2772    
2773    2003-08-27  Bernhard Herzog  <[email protected]>
2774    
2775            Make the table interface distinguish between row ids (an integer
2776            that uniquely identifies a row) and row ordinals (a simple row
2777            count from 0 to NumRows() - 1)
2778    
2779            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
2780            (PostGISTable.RowOrdinalToId): New methods to conver between row
2781            ids and row ordinals
2782            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
2783            parameter row_is_ordinal to indicate whether the row parameter is
2784            the row id or the ordinal
2785    
2786            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
2787            (TransientTableBase.RowOrdinalToId)
2788            (AutoTransientTable.RowIdToOrdinal)
2789            (AutoTransientTable.RowOrdinalToId): Same new methods as in
2790            PostGISTable.
2791            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
2792            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
2793            Same new parameter as in PostGISTable.
2794    
2795            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
2796            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
2797            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
2798            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
2799            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
2800            parameter as in PostGISTable.
2801    
2802            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
2803            (DataTable.RowOrdinalToId): New methods to convert between row ids
2804            and row ordinals.
2805            (TableGrid.SelectRowById): New method to select a row based on its
2806            ID as opposed to its ordinal
2807            (DataTable.GetValue, TableGrid.OnRangeSelect)
2808            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
2809            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
2810            (LayerTableFrame.__init__): Convert between row ids and row
2811            ordinals as appropriate
2812    
2813            * test/postgissupport.py (PostGISDatabase.__init__): Add
2814            doc-string.
2815            (PostGISDatabase.initdb): The optional third item in a tuple in
2816            tables is now a (key, value) list with additional arguments to
2817            pass to upload_shapefile
2818            (upload_shapefile): New parameter gid_offset to allow gids that
2819            are not the same as the shapeids in the shapefile
2820            (PostgreSQLServer.get_default_static_data_db): Use the new
2821            gid_offset to make the gids in landmarks 1000 higher than the
2822            shapeids in the shapefile
2823    
2824            * test/test_viewport.py
2825            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
2826            new shapeids in the landmarks table
2827    
2828            * test/test_transientdb.py
2829            (TestTransientTable.run_iceland_political_tests)
2830            (TestTransientTable.test_transient_joined_table): Add tests for
2831            the new table methods and new keywords arguments.
2832    
2833            * test/test_postgis_db.py
2834            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
2835            (TestPostGISTable.test_read_value_row_count_mode)
2836            (TestPostGISTable.test_row_id_to_ordinal)
2837            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
2838            table methods and the new arguments
2839            (TestPostGISShapestorePoint.test_shapes_in_region)
2840            (TestPostGISShapestorePoint.test_shape_raw_data)
2841            (TestPostGISShapestorePoint.test_shape_points)
2842            (TestPostGISShapestorePoint.test_shape_shapeid)
2843            (TestPostGISShapestorePoint.test_all_shapes)
2844            (TestPostGISTable.test_simple_query)
2845            (TestPostGISTable.test_simple_query)
2846            (TestPostGISTable.test_simple_query)
2847            (TestPostGISTable.test_read_value)
2848            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
2849            shapeids in the landmarks table
2850    
2851            * test/test_memory_table.py
2852            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
2853            (TestMemoryTable.test_read_value_row_count_mode)
2854            (TestMemoryTable.test_row_id_to_ordinal)
2855            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
2856            table methods and the new arguments
2857    
2858            * test/test_dbf_table.py
2859            (TestDBFTable.test_read_row_as_dict_row_count_mode)
2860            (TestDBFTable.test_read_value_row_count_mode)
2861            (TestDBFTable.test_row_id_to_ordinal)
2862            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
2863            methods and the new arguments
2864    
2865    2003-08-26  Bernhard Herzog  <[email protected]>
2866    
2867            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
2868            more postgis specific but much faster method to get the bounding
2869            box
2870    
2871    2003-08-26  Bernhard Herzog  <[email protected]>
2872    
2873            * Thuban/Model/postgisdb.py (PostGISTable.Title)
2874            (PostGISShapeStore.AllShapes): Add these missing methods.
2875            (PostGISShapeStore.ShapesInRegion): No need to raise
2876            StopIteration. We can simply return
2877    
2878            * test/test_postgis_db.py (TestPostGISTable.test_title)
2879            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
2880            new methods
2881    
2882    2003-08-25  Bernhard Herzog  <[email protected]>
2883    
2884            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
2885    
2886            * test/test_postgis_db.py (PolygonTests): New class containing
2887            those tests from TestPostGISShapestorePolygon that can also be
2888            used to test MUTLIPOLYGON tables
2889            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
2890            so derive from that
2891            (TestPostGISShapestoreMultiPolygon): New class with tests for
2892            MUTLIPOLYGON tables
2893    
2894            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
2895            tables argument to have tuples with three items to override the
2896            WKT type used.
2897            (PostgreSQLServer.get_default_static_data_db): Use the above to
2898            create a polygon table with MUTLIPOLYGONs
2899            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
2900            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
2901            coords_to*
2902            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
2903            (wkt_converter): New. Map WKT types to converters
2904            (upload_shapefile): New parameter force_wkt_type to use a
2905            different WKT type than the default
2906    
2907    2003-08-25  Bernhard Herzog  <[email protected]>
2908    
2909            * Thuban/UI/application.py
2910            (ThubanApplication.run_db_param_dialog): New. Suitable as a
2911            db_connection_callback. Main difference is that the dialog run
2912            from this method doesn't have a parent so it can be used even when
2913            there is no main window
2914            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
2915            no db_connection_callback was given. This way the dialog pops up
2916            even when the .thuban file was given as a command line parameter.
2917    
2918    2003-08-25  Bernhard Herzog  <[email protected]>
2919    
2920            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
2921            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
2922            which leads to an effectively frozen X session because the user
2923            can only interact with the dialog but the mouse is still grabbed
2924            by the canvas.
2925            Also, call the tool's Hide method before MouseLeftUp because
2926            MouseLeftUp may change the tool's coordinates.
2927    
2928    2003-08-25  Bernhard Herzog  <[email protected]>
2929    
2930            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
2931            LoadCancelled exceptions and handle them by returning immediately.
2932    
2933    2003-08-25  Bernhard Herzog  <[email protected]>
2934    
2935            GUI part of loading sessions with postgis connections which may
2936            require user interaction to get passwords or updated parameters
2937    
2938            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
2939            bit nucer and be more generic.
2940            (DBFrame.OnAdd): Adapt to new DBDialog interface
2941    
2942            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
2943            optional parameter db_connection_callback which is passed to
2944            load_session.
2945    
2946            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
2947            Suitable as a db_connection_callback
2948            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
2949            db_connection_callback of the application's OpenSession method
2950    
2951    
2952    2003-08-25  Bernhard Herzog  <[email protected]>
2953    
2954            Basic loading of sessions containing postgis connections:
2955    
2956            * Thuban/Model/load.py (LoadError): Add doc-string
2957            (LoadCancelled): New exception class to indicate a cancelled load
2958            (SessionLoader.__init__): Add the db_connection_callback parameter
2959            which will be used by the loader to get updated parameters and a
2960            password for a database connection
2961            (SessionLoader.__init__): Add the new XML elements to the
2962            dispatchers dictionary
2963            (SessionLoader.check_attrs): Two new conversions, ascii to convert
2964            to a byte-string object and idref as a generic id reference
2965            (SessionLoader.start_dbconnection)
2966            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
2967            elements
2968            (load_session): Add the db_connection_callback to pass through the
2969            SessionLoader
2970    
2971            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
2972            New classes to test loading of sessions with postgis database
2973            connections.
2974    
2975    2003-08-25  Bernhard Herzog  <[email protected]>
2976    
2977            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
2978            replace it and the comment with __BuildDate__ by the Source: and
2979            Id: cvs keywords as used in the other files.
2980    
2981    2003-08-25  Bernhard Herzog  <[email protected]>
2982    
2983            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
2984            LoadError when a required attribute is missing. The code used to
2985            be commented out for some reason, but probably should have been
2986            active.
2987    
2988            * test/test_load.py (TestLoadError.test): Test the message in the
2989            LoadError too to make sure it really is about the missing
2990            attribute
2991    
2992    2003-08-22  Bernhard Herzog  <[email protected]>
2993    
2994            * test/test_save.py (SaveSessionTest.test_dbf_table)
2995            (SaveSessionTest.test_joined_table): Add XML validation tests.
2996    
2997    2003-08-22  Bernhard Herzog  <[email protected]>
2998    
2999            Implement saving a session with a postgis connection
3000    
3001            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
3002            elements for database connections and shapestores using db
3003            connections
3004            (session): Add the dbconnections to the content model
3005    
3006            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
3007            Write the db connections
3008            (SessionSaver.write_session): Call write_db_connections to write
3009            the connection before the data sources
3010            (SessionSaver.write_data_containers): Handle postgis shapestores
3011    
3012            * test/test_save.py (SaveSessionTest.thubanids)
3013            (SaveSessionTest.thubanidrefs): Update for new DTD
3014            (SaveSessionTest.test_save_postgis): New. Test saving a session
3015            with postgis connections
3016    
3017            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
3018            (PostGISTable.TableName): New accessor methods for the connection
3019            and table name
3020    
3021            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
3022            (TestPostGISTable.test_dbname): New methods to test the new
3023            PostGISConnection methods
3024    
3025    2003-08-22  Bernhard Herzog  <[email protected]>
3026    
3027            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
3028            for exceptions occurring when establishing a Database connection
3029            (PostGISConnection.connect): Catch psycopg.OperationalError during
3030            connects and raise ConnectionError.
3031    
3032            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
3033            tests for database exceptions
3034    
3035    2003-08-22  Bernhard Herzog  <[email protected]>
3036    
3037            Prepare the test suite for tests with required authentication
3038    
3039            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
3040            variables with two predefined users/passwords, one for the admin
3041            and one for a non-privileged user.
3042            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
3043            the non-privileged user to the database and set the admin password
3044            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
3045            Better error reporting
3046            (PostgreSQLServer.connection_params)
3047            (PostgreSQLServer.connection_string): New methods to return
3048            information about how to connect to the server
3049            (PostgreSQLServer.execute_sql): New. Convenience method to execute
3050            SQL statements
3051            (PostgreSQLServer.require_authentication): Toggle whether the
3052            server requires authentication
3053            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
3054            Add or alter users
3055            (PostGISDatabase.initdb): Pass the admin name one the
3056            subprocesses' command lines. Grant select rights on
3057            geometry_columns to everybody.
3058            (upload_shapefile): Use the admin name and password when
3059            connecting. Grant select rights on the new table to everybody.
3060    
3061            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
3062            server's new methods to get the connection parameters.
3063    
3064            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
3065            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
3066            server's new methods to get the connection parameters.
3067    
3068            * test/test_postgis_db.py
3069            (TestPostGISConnection.test_gis_tables_empty)
3070            (TestPostGISConnection.test_gis_tables_non_empty)
3071            (PostGISStaticTests.setUp): Use the server's new methods to get
3072            the connection parameters.
3073    
3074    2003-08-22  Bernhard Herzog  <[email protected]>
3075    
3076            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
3077    
3078            * Thuban/version.py: Add psycopg version
3079    
3080            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
3081            version of the psycopg module
3082    
3083    2003-08-22  Bernhard Herzog  <[email protected]>
3084    
3085            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
3086            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
3087            at the moment. The functionality should probably be implemented
3088            some time, though.
3089            (DBFrame.OnRemove): Display a message if the connection can't be
3090            removed because it's still in use.
3091    
3092    2003-08-22  Jan-Oliver Wagner <[email protected]>
3093    
3094            * Thuban/UI/about.py (About.__init__): split up the huge about
3095            text into elements/lists for easier translation. This fixes bug
3096            https://intevation.de/rt/webrt?serial_num=2058
3097            Also, made some forgotten string available for the i18n.
3098    
3099    2003-08-21  Bernhard Herzog  <[email protected]>
3100    
3101            Make postgis support really optional including insensitive menu
3102            items.
3103    
3104            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
3105            whether the postgis is supported.
3106    
3107            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
3108            to make postgis support optional
3109    
3110            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
3111            version of Thuban.Model.postgisdb.has_postgis_support
3112            (database_management command): Make it only sensitive if postgis
3113            is supported.
3114    
3115    2003-08-21  Jan-Oliver Wagner <[email protected]>
3116    
3117            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
3118            (section Adding and Removing Layers): Added text and described
3119            multi-selection.
3120            (chapter Extensions): New.
3121    
3122    2003-08-21  Jan-Oliver Wagner <[email protected]>
3123    
3124            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
3125            settings to allow multiple files to load into the map.
3126            Also reduced selection to *.shp as a default.
3127    
3128    2003-08-20  Bernhard Herzog  <[email protected]>
3129    
3130            Add dialogs and commands to open database connections and add
3131            database layers.
3132    
3133            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
3134            method to open the database connection management dialog
3135            (MainWindow.AddDBLayer): New method to add a layer from a database
3136            (_has_dbconnections): New helper function to use for sensitivity
3137            (database_management command, layer_add_db command): New commands
3138            that call the above new methods.
3139            (main_menu): Add the new commands to the menu.
3140    
3141            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
3142            (PostGISConnection.connect): Establish the actual connection in a
3143            separate method and call it in __init__. This makes it easier to
3144            override the behavior in test cases
3145            (PostGISConnection.BriefDescription): New method to return a brief
3146            description for use in dialogs.
3147    
3148            * test/test_postgis_db.py (NonConnection): DB connection that
3149            doesn't actually connect
3150            (TestBriefDescription): New class with tests for the new
3151            BriefDescription method
3152    
3153    2003-08-19  Jan-Oliver Wagner <[email protected]>
3154    
3155            Moved anything from extensions to libraries.
3156    
3157            * libraries: New.
3158    
3159            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
3160    
3161            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
3162            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
3163            been moved here from thuban/extensions/pyprojection/
3164            See there in the Attic for the older history.
3165    
3166            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
3167            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
3168            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
3169            have been moved here from thuban/extensions/pyshapelib/
3170            See there in the Attic for the older history.
3171    
3172            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
3173            files have been moved here from thuban/extensions/shapelib/
3174            See there in the Attic for the older history.
3175    
3176            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
3177            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
3178            thuban/extensions/thuban/
3179            See there in the Attic for the older history.
3180    
3181            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
3182    
3183            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
3184            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
3185    
3186            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
3187            Moved to libraries/shapelib.
3188    
3189            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
3190            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
3191            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
3192            Moved to libraries/pyshapelib.
3193    
3194            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
3195            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
3196            Moved to libraries/pyprojection.
3197    
3198            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
3199    
3200            * extensions: Removed.
3201    
3202    2003-08-19  Bernhard Herzog  <[email protected]>
3203    
3204            * test/test_viewport.py (ViewPortTest): We don't use the
3205            facilities of FileTestMixin so don't derive from it.
3206            (TestViewportWithPostGIS): New class with tests for using a
3207            viewport on a map with postgis layers.
3208    
3209    2003-08-19  Bernhard Herzog  <[email protected]>
3210    
3211            Add the db connection management to the session.
3212    
3213            * Thuban/Model/session.py (Session.__init__): New instance
3214            variable db_connections
3215            (Session.AddDBConnection, Session.DBConnections)
3216            (Session.HasDBConnections, Session.CanRemoveDBConnection)
3217            (Session.RemoveDBConnection): New methods to manage and query the
3218            db connections managed by the session
3219            (Session.OpenDBShapeStore): New method to open a shapestore from a
3220            db connection
3221    
3222            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
3223            messages for the db connection handling in the session
3224    
3225            * test/test_postgis_session.py: New. test cases for the session's
3226            db connection handling with postgis connections
3227    
3228    2003-08-19  Bernhard Herzog  <[email protected]>
3229    
3230            Add very basic postgis database support and the corresponding test
3231            cases. The test cases require a PostgreSQL + postgis installation
3232            but no existing database. The database will be created
3233            automatically by the test cases
3234    
3235            * test/README: Add note about skipped tests and the requirements
3236            of the postgis tests.
3237    
3238            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
3239    
3240            * test/test_postgis_db.py: New. Test cases for the postgis
3241            support.
3242    
3243            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
3244            format
3245    
3246            * test/test_wellknowntext.py: New. Test cases for the
3247            wellknowntext parser
3248    
3249            * test/postgissupport.py: New. Support module for tests involving
3250            a postgis database.
3251    
3252            * test/support.py (execute_as_testsuite): Shut down the postmaster
3253            if it's still running after the tests
3254    
3255            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
3256            well known text format
3257    
3258    2003-08-19  Jan-Oliver Wagner <[email protected]>
3259    
3260            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
3261            message dialog.
3262    
3263    2003-08-18  Bernhard Herzog  <[email protected]>
3264    
3265            * test/support.py (ThubanTestResult.printErrors): Indent the
3266            reason for the skips in the output to make it a bit more readable.
3267            (execute_as_testsuite): New helper function to run a test suite
3268            and print some more information.
3269            (run_tests): Use execute_as_testsuite to run the tests
3270    
3271            * test/runtests.py (main): Use execute_as_testsuite to run the
3272            tests
3273    
3274    2003-08-18  Bernhard Herzog  <[email protected]>
3275    
3276            Fix some bugs in Thuban and the test suite that were uncovered by
3277            changes introduced in Python 2.3:
3278    
3279            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
3280            filename is an absolute name
3281    
3282            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
3283            filename is an absolute name
3284    
3285            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
3286            unique filename to save to and use the correct relative filename
3287            in the expected output.
3288            (SaveSessionTest.test_dbf_table): Use the correct relative
3289            filename in the expected output.
3290    
3291            * test/test_layer.py (TestLayer.test_raster_layer): Update the
3292            test to check whether the filename is absolute.
3293    
3294    2003-08-18  Jan-Oliver Wagner <[email protected]>
3295    
3296            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
3297    
3298    2003-08-15  Bernhard Herzog  <[email protected]>
3299    
3300            Change the way shapes are returned by a shape store. The
3301            ShapesInRegion method returns an iterator over actual shape
3302            objects instead of a list of shape ids.
3303    
3304            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
3305            id.
3306            (ShapefileStore.ShapesInRegion): Return an iterator over the
3307            shapes which yields shape objects instead of returning a list of
3308            shape ids
3309            (ShapefileStore.AllShapes): New. Return an iterator over all
3310            shapes in the shape store
3311            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
3312    
3313            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
3314            doc-string.
3315    
3316            * Thuban/UI/baserenderer.py
3317            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
3318            layer_shapes and make it return an iterator containg shapes
3319            instead of a list of ids.
3320            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
3321            layer_shapes() change
3322    
3323            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
3324            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
3325    
3326            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
3327            changes in the ShapesInRegion return value.
3328            (ViewPort._get_hit_tester): Remove commented out code
3329    
3330            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
3331            new return value.
3332            (SimpleShapeStore.AllShapes): New. Implement this method too.
3333    
3334            * test/test_layer.py (TestLayer.test_arc_layer)
3335            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
3336            (TestLayer.test_point_layer_with_projection)
3337            (TestLayer.test_derived_store): Adapt to changes in the
3338            ShapesInRegion return value.
3339    
3340            * test/test_shapefilestore.py
3341            (TestShapefileStoreArc.test_shapes_in_region)
3342            (TestShapefileStorePolygon.test_shapes_in_region)
3343            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
3344            in the ShapesInRegion return value.
3345            (TestShapefileStorePoint.test_all_shapes)
3346            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
3347            methods
3348    
3349            * test/test_derivedshapestore.py
3350            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
3351            the ShapesInRegion return value.
3352            (TestDerivedShapeStore.test_all_shapes)
3353            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
3354            methods
3355    
3356    2003-08-15  Bernhard Herzog  <[email protected]>
3357    
3358            Make the renderers deal correctly with raw vs. python level
3359            representation of shape geometries
3360    
3361            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
3362            Return a flag useraw in addition to the callable and the parameter
3363            to indicate whether the callable can deal with the raw shape data
3364            or uses the higher level python lists of coordinates. The callable
3365            now should accept either the raw data or the return value of the
3366            shape's Points() method.
3367            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
3368            change
3369            (BaseRenderer.projected_points): Instead of the shape id use the
3370            points list as parameter.
3371            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
3372            (BaseRenderer.draw_point_shape): Adapt to projected_points()
3373            change and accept the points list as parameter instead of the
3374            shape id.
3375    
3376            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
3377            the useraw flag as required by the BaseRenderer
3378            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
3379            changes.
3380    
3381            * test/test_baserenderer.py
3382            (TestBaseRenderer.test_point_with_classification): New test for
3383            rendering a map with classifications.
3384    
3385    2003-08-15  Bernhard Herzog  <[email protected]>
3386    
3387            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
3388            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
3389            (ViewPort._get_hit_tester, ViewPort.projected_points)
3390            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
3391            (ViewPort._find_label_at): Split the find_shape_at method into
3392            several new methods and use the functions in the hit-test module.
3393    
3394            * Thuban/UI/hittest.py: New module with Python-level hit-testing
3395            functions
3396    
3397            * test/test_hittest.py: New. Test for the new hittest module
3398    
3399    2003-08-15  Bernhard Herzog  <[email protected]>
3400    
3401            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
3402            projection to all corners of the bounding box to get a better
3403            approximation of the projected bounding box
3404    
3405            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
3406            New. Test coordinate handling of a layer with a projection.
3407            Catches the bug fixed in Layer.ShapesInRegion
3408    
3409    2003-08-15  Bernhard Herzog  <[email protected]>
3410    
3411            Move some of the mock objects in test_baserenderer into their own
3412            module so they can easily be used from other tests
3413    
3414            * test/mockgeo.py: New test helper module with some mock objects
3415            for geometry related things like shapes, shapestores and
3416            projections.
3417    
3418            * test/test_mockgeo.py: New. Tests for the new helper module
3419    
3420            * test/test_baserenderer.py: Some of the mock-objects are in
3421            mockgeo now.
3422    
3423    2003-08-12  Jan-Oliver Wagner <[email protected]>
3424    
3425            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
3426    
3427    2003-08-12  Bernhard Herzog  <[email protected]>
3428    
3429            * po/de.po: New. German translations by Bjoern Broscheit
3430    
3431    2003-08-12  Bernhard Herzog  <[email protected]>
3432    
3433            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
3434            strings have to be one string literal.
3435    
3436    2003-08-11  Bernhard Herzog  <[email protected]>
3437    
3438            * test/support.py (FloatComparisonMixin.assertPointListEquals):
3439            New. This method was used in various derived classes, but it's
3440            better to have it here.
3441    
3442            * test/test_shapefilestore.py
3443            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
3444            FloatComparisonMixin
3445    
3446            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
3447            It's now in FloatComparisonMixin
3448    
3449            * test/test_derivedshapestore.py
3450            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
3451            in FloatComparisonMixin
3452    
3453    2003-08-11  Bernhard Herzog  <[email protected]>
3454    
3455            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
3456            error message
3457    
3458    2003-08-08  Jan-Oliver Wagner <[email protected]>
3459    
3460            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
3461            with version number.
3462            Changed title to reflect version number of Thuban.
3463    
3464    2003-08-08  Jan-Oliver Wagner <[email protected]>
3465    
3466            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
3467            the list corresponds to the "About" web page.
3468    
3469    2003-08-08  Bernhard Herzog  <[email protected]>
3470    
3471            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
3472            Make sure translated strings are recognized as one string literal.
3473    
3474            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
3475            Make sure translated strings are recognized as one string literal.
3476    
3477            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
3478            translated strings are recognized as one string literal.
3479    
3480            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
3481            sure translated strings are recognized as one string literal.
3482    
3483    2003-08-07  Bernhard Herzog  <[email protected]>
3484    
3485            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
3486            Simply delegates to the original shapestore.
3487    
3488            * test/test_derivedshapestore.py
3489            (TestDerivedShapeStore.test_raw_format): New. Test case for
3490            DerivedShapeStore.RawShapeFormat
3491    
3492    2003-08-07  Bernhard Herzog  <[email protected]>
3493    
3494            Add raw data interface to shape objects.
3495    
3496            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
3497            class to ShapefileShape which now holds shapefile specific
3498            information.
3499            (ShapefileShape.compute_bbox): Simplified to not cache any
3500            information. The way this method is used that shouldn't matter
3501            performance wise.
3502            (ShapefileShape.RawData): New. Return the shapeid which is the raw
3503            data format for shapes from shapefiles.
3504            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
3505            in the shape objects returned by a shapestore. For a
3506            ShapefileStore this is always RAW_SHAPEFILE.
3507            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
3508            method.
3509    
3510            * test/test_shapefilestore.py
3511            (TestShapefileStore.test_raw_format): New test to test the raw
3512            format feature of shapes.
3513    
3514            * Thuban/Model/layer.py: Remove the unused import of Shape from
3515            data. It was only there for interface compatibility but it's not
3516            used inside of Thuban and the generic Shape class has gone away.
3517    
3518            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
3519            the raw data format and only use an optimized version of its a
3520            shapefile.
3521    
3522    2003-08-07  Bernhard Herzog  <[email protected]>
3523    
3524            * test/test_baserenderer.py (SimpleShape): Shape class for the
3525            tests.
3526            (SimpleShapeStore.Shape): Use SimpleShape instead of
3527            Thuban.Model.data.Shape to make the tests independed of the coming
3528            changes.
3529    
3530    2003-08-07  Bernhard Herzog  <[email protected]>
3531    
3532            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
3533            (ThubanTestProgram): New classes that extend the respective
3534            classes from unittest. These new version support skipping tests
3535            under certain expected conditions. In the Thuban test suite we
3536            uses this for tests that require the optional gdal support.
3537            (run_tests): Use ThubanTestProgram instead of the unittest.main()
3538    
3539            * test/runtests.py (main): Use the new ThubanTestRunner instead of
3540            the normal one from unittest
3541    
3542            * test/test_layer.py (TestLayer.test_raster_layer): If this test
3543            is not run because gdal support isn't available report this to the
3544            runner.
3545    
3546            * test/test_baserenderer.py
3547            (TestBaseRenderer.test_raster_no_projection): Do not run this test
3548            if gdal support isn't available and report this to the runner.
3549    
3550    2003-08-06  Bernhard Herzog  <[email protected]>
3551    
3552            Rearrange the renderers a bit, partly in preparation for changes
3553            required for the postgis merge, partly to make it more testable.
3554            Also make the representation of coordinates in Shapes more
3555            consistent.
3556    
3557            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
3558            this class is now in BaseRenderer. This class is now practically
3559            only a specialization of BaseRenderer for rendering to an actual
3560            wx DC.
3561            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
3562            to get the shapetype specific rendering functions.
3563    
3564            * Thuban/UI/baserenderer.py: New file with the basic rendering
3565            logic. The code in this file is completely independend of wx.
3566            (BaseRenderer): Class with the basic rendering logic
3567    
3568            * test/test_baserenderer.py: New. Test cases for BaseRenderer
3569    
3570            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
3571            error_on_redraw to guard agains endless loops and stack overflows
3572            when there's a bug in the rendering code that raises exceptions.
3573            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
3574            rendering into a separate method _do_redraw so that error handling
3575            is a bit easier. When an exception occurs, set error_on_redraw to
3576            true. When it's true on entry to OnIdle do nothing and return
3577            immediately.
3578    
3579            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
3580            Shape object will always have the coordinates as a list of list of
3581            coordinate pairs (tuples).
3582            (Shape.compute_bbox): Adapt to new representation.
3583    
3584            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
3585            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
3586            Shape objects.
3587    
3588            * test/test_shapefilestore.py
3589            (ShapefileStoreTests.assertFloatTuplesEqual)
3590            (ShapefileStoreTests.assertPointListEquals): Rename to
3591            assertPointListEquals and change purpose to checking equality of
3592            the lists returned by Shape.Points().
3593            (TestShapefileStoreArc.test_shape)
3594            (TestShapefileStorePolygon.test_shape)
3595            (TestShapefileStorePoint.test_shape): Use the new
3596            assertPointListEquals instead of assertFloatTuplesEqual
3597    
3598            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
3599            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
3600            and change purpose to checking equality of the lists returned by
3601            Shape.Points().
3602            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
3603            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
3604            (TestLayer.test_derived_store): Use the new assertPointListEquals
3605            instead of assertFloatTuplesEqual
3606    
3607            * test/test_derivedshapestore.py
3608            (TestDerivedShapeStore.assertFloatTuplesEqual)
3609            (TestDerivedShapeStore.assertPointListEquals): Rename to
3610            assertPointListEquals and change purpose to checking equality of
3611            the lists returned by Shape.Points().
3612            (TestDerivedShapeStore.test_shape): Use the new
3613            assertPointListEquals instead of assertFloatTuplesEqual
3614    
3615    2003-08-06  Jan-Oliver Wagner <[email protected]>
3616    
3617            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
3618            a bounding box. A dialog is raised in case, no bounding box
3619            is found. This fixes bug #2043:
3620            https://intevation.de/rt/webrt?serial_num=2043
3621    
3622    2003-08-05  Bernhard Herzog  <[email protected]>
3623    
3624            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
3625            object look like a Color instantiation. Formerly it looked like a
3626            tuple.
3627    
3628            * test/test_color.py (TestColor.test_repr)
3629            (TestColor.test_equality, TestColor.test_inequality): New. test
3630            some more apects of the Color class
3631            (TestTransparent.test_repr, TestTransparent.test_hex)
3632            (TestTransparent.test_equality): New. Test cases for the
3633            Transparent object.
3634    
3635    2003-08-04  Jan-Oliver Wagner <[email protected]>
3636    
3637            * Doc/manual/thuban-manual.xml: a number of small improvements.
3638            The resulting file is the version submitted for GREAT-ER II.
3639    
3640    2003-08-01  Bernhard Herzog  <[email protected]>
3641    
3642            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
3643            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
3644            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
3645    
3646            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
3647            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
3648            (ThubanEndBusyCursor): Add doc-strings
3649    
3650    2003-08-01  Bernhard Herzog  <[email protected]>
3651    
3652            First step towards PostGIS integration. More abstraction by movin
3653            more code from the layer to the shapestore. More methods of the
3654            layer are now simply delegated to the equivalent method of the
3655            shapestore. The SHAPETYPE_* constants are now in data not in
3656            layer.
3657    
3658            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
3659            (SHAPETYPE_POINT, Shape): Move these constants and classes from
3660            layer.py to data.py
3661            (ShapefileStore.__init__): More Initialization for the new methods
3662            and functionality.
3663            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
3664            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
3665            (ShapefileStore.Shape): New methods that were formerly implemented
3666            in the layer.
3667            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
3668            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
3669            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
3670            equivalents of the new shape methods. These versions are simply
3671            delegated to the original shapstore.
3672    
3673            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
3674            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
3675            (Layer.SetShapeStore): Removed the initializatin of instance
3676            variables that were needed for the stuff that's now in
3677            ShapefileStore
3678            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
3679            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
3680            shapestore.
3681    
3682            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
3683            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
3684            instead of layer.
3685    
3686            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
3687    
3688            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
3689    
3690            * test/test_layer.py: Import the SHAPETYPE_* constants from data
3691            instead of layer.
3692            (TestLayer.test_derived_store): Remove the test for the exception
3693            when instantiating the DerivedShapeStore with an incompatible
3694            table which is now in test_derivedshapestore.py. Add some more
3695            tests of the layer methods to determine whether they work for a
3696            DerivedShapeStore as well.
3697    
3698    2003-07-31  Jonathan Coles   <[email protected]>
3699    
3700            * Doc/manual/thuban-manual.xml: Fix the list of required packages
3701            by just listing the name and where they can be found.
3702    
3703    2003-07-31  Frank Koormann   <[email protected]>
3704    
3705            * Doc/manual/thuban-manual.xml:
3706            Changed the screenshot elements to figure.
3707            Changed some variablelist elements to itemizedlist.
3708            Added section on GDAL formats.
3709    
3710    2003-07-31  Jonathan Coles   <[email protected]>
3711    
3712            * Doc/manual/thuban-manual.xml: Added a few sentences about
3713            the Fix Border Color option when generating classes.
3714    
3715    2003-07-30  Jonathan Coles   <[email protected]>
3716    
3717            * Thuban/Model/classgen.py: Add docstrings. Rename specific
3718            Ramp instances to use lower_case_style.
3719    
3720            * Thuban/UI/classgen.py: Use renamed Ramp instances.
3721            
3722            * Thuban/UI/classifier.py: Add docstrings.
3723    
3724            * Thuban/UI/dock.py: Add docstrings.
3725    
3726            * test/test_classgen.py: Use renamed Ramp instances.
3727    
3728    2003-07-30  Bernhard Herzog  <[email protected]>
3729    
3730            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
3731            was never used in Thuban.
3732    
3733    2003-07-30  Bernhard Herzog  <[email protected]>
3734    
3735            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
3736            method directly instead of going through the transient_table
3737            method. This faster because transient_table may force the copy of
3738            a DBF file into the transient database and setting a table's title
3739            doesnm't affect the title of the associated transient table, so
3740            this fixes RT #2042
3741    
3742            * Thuban/UI/main.py (__version__): Don't import the already
3743            removed show_exception_dialog.
3744    
3745    2003-07-29  Jonathan Coles   <[email protected]>
3746    
3747            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3748            Put back this method and remove the equivalent function since we
3749            are setting the exception hook from within this class (OnInit).
3750    
3751    2003-07-29  Jonathan Coles   <[email protected]>
3752    
3753            * Doc/manual/images/5_2_custom_ramp.png,
3754            Doc/manual/images/5_2_quantiles.png,
3755            Doc/manual/images/5_2_uniform_dist.png,
3756            Doc/manual/images/5_2_unique_values.png,
3757            Doc/manual/images/8_int_error.png: New screen shots.
3758    
3759            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
3760            some points, and added more screen shots.
3761    
3762    2003-07-29  Bernhard Herzog  <[email protected]>
3763    
3764            * Thuban/Model/data.py: Remove the now unused import of warnings
3765    
3766    2003-07-29  Bernhard Herzog  <[email protected]>
3767    
3768            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
3769            deprecated since before the 0.8 release and isn't used in Thuban
3770            itself anymore.
3771    
3772            * Thuban/Model/transientdb.py: Remove some unnecessary imports
3773    
3774    2003-07-29  Jonathan Coles   <[email protected]>
3775    
3776            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
3777            python exception hook here so that we are sure to catch any
3778            Thuban exception that happen during initialization.
3779    
3780            * Thuban/UI/main.py (main): Don't set the exception hook here,
3781            it will get set in ThubanApplication.OnInit.
3782    
3783    2003-07-29  Jonathan Coles   <[email protected]>
3784                                                                                
3785            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3786            Removed and called it show_exception_dialog() so that the exception
3787            handler can be set before the class is created.
3788                                                                                
3789            * Thuban/UI/main.py (main): Install the exception handler before
3790            a ThubanApplication is created.
3791                                                                                    
3792    2003-07-29  Bernhard Herzog  <[email protected]>
3793    
3794            * po/it.po: New. Italian translation by Maurizio Napolitano
3795    
3796            * po/ru.po: New. Russian translation by Alex Shevlakov
3797    
3798    2003-07-29  Frank Koormann   <[email protected]>
3799    
3800            * Doc/manual/thuban-manual.xml: Extended section on supported
3801            projections.
3802            
3803    2003-07-29  Frank Koormann   <[email protected]>
3804    
3805            * Doc/manual/thuban-manual.xml: gaspell-checked.
3806    
3807    2003-07-29  Jonathan Coles   <[email protected]>
3808    
3809            * Doc/manual/images/3_5_legend.png: Added border to improve look
3810            on white background.
3811    
3812    2003-07-29  Jonathan Coles   <[email protected]>
3813    
3814            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
3815            descriptions for the legend toolbar.
3816    
3817            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
3818            cursor from dialog box.
3819    
3820    2003-07-28  Jonathan Coles   <[email protected]>
3821    
3822            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
3823    
3824            * Doc/manual/images/2_4_session_tree.png,
3825            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
3826            Doc/manual/images/4_2_layer_properties.png,
3827            Doc/manual/images/4_2_raster_layer_properties.png,
3828            Doc/manual/images/5_3_genclass.png,
3829            Doc/manual/images/5_classification.png,
3830            Doc/manual/images/6_projection.png,
3831            Doc/manual/images/7_1_table_view.png,
3832            Doc/manual/images/7_2_5_join.png: New screenshots.
3833    
3834    2003-07-24  Jonathan Coles   <[email protected]>
3835    
3836            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
3837    
3838    2003-07-24  Jonathan Coles   <[email protected]>
3839    
3840            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
3841            chapter on Layer Management.
3842    
3843            * Doc/manual/Makefile: New. Makefile to generate all formats for the
3844            manual and images.
3845    
3846    2003-07-24  Bernhard Herzog  <[email protected]>
3847    
3848            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
3849            it annoys lintian which warns about these files not being
3850            executable. The #! isn't necessary here since if you absolutely
3851            must execute them you can always say "python <filename>".
3852    
3853            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
3854            superfluous code to set brush and pen for point shapes
3855    
3856            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
3857            belong in viewport anyway
3858    
3859    2003-07-24  Frank Koormann   <[email protected]>
3860    
3861            * Doc/manual/thuban-manual.xml: Added section on table management.
3862    
3863    2003-07-24  Bernhard Herzog  <[email protected]>
3864    
3865            * test/runtests.py (main): Recognize the long "verbose" option
3866            correctly.
3867    
3868    2003-07-22  Jonathan Coles   <[email protected]>
3869    
3870            * Doc/manual/thuban-manual.xml: Continue to write first revision
3871            of the manual.
3872    
3873            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
3874            with Begin/EndDrawing() calls to ensure we aren't doing to
3875            many updates to the dc during rendering.
3876            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
3877            a pen and brush argument so they need to be passed to the function.
3878    
3879            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
3880            Calculates the minimum and maximum scale values. Factored out
3881            of set_view_transform so that it could be used to zoom all the
3882            way into a single point.
3883            (ViewPort.set_view_transform): Call calc_min_max_scales().
3884            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
3885            if only a single point is selected.
3886    
3887            * Doc/manual/images/1_2_legend_close.png,
3888            Doc/manual/images/1_2_legend_dock.png,
3889            Doc/manual/images/1_2_mainwindow.png,
3890            Doc/manual/images/1_2_mainwindow.ps,
3891            Doc/manual/images/1_2_mainwindow.sk,
3892            Doc/manual/images/3_2_fullextent.png,
3893            Doc/manual/images/3_2_fulllayerextent.png,
3894            Doc/manual/images/3_2_fullshapeextent.png,
3895            Doc/manual/images/3_2_pan.png,
3896            Doc/manual/images/3_2_zoomin.png,
3897            Doc/manual/images/3_2_zoomout.png,
3898            Doc/manual/images/3_3_identify.png,
3899            Doc/manual/images/3_3_label.png,
3900            Doc/manual/images/3_5_invisible.png,
3901            Doc/manual/images/3_5_movedown.png,
3902            Doc/manual/images/3_5_moveup.png,
3903            Doc/manual/images/3_5_props.png,
3904            Doc/manual/images/3_5_tobottom.png,
3905            Doc/manual/images/3_5_totop.png,
3906            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
3907    
3908    2003-07-18  Bernhard Herzog  <[email protected]>
3909    
3910            * Thuban/UI/messages.py (MAP_REPLACED): New message.
3911    
3912            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
3913            after the new map has been assigned
3914    
3915            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
3916            Delegate MAP_REPLACED to the canvas too
3917            (MainWindow.prepare_new_session): Removed. Thanks to the new
3918            MAP_REPLACED message it's no longer needed
3919            (MainWindow.OpenSession, MainWindow.NewSession):
3920            prepare_new_session has been removed.
3921    
3922            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
3923            MAP_REPLACED so that we can close the dialog if a new map is set.
3924            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
3925            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
3926            dialog
3927    
3928            * test/test_viewport.py (SimpleViewPortTest)
3929            (SimpleViewPortTest.test_default_size): Add doc-strings
3930            (ViewPortTest.setUp): Bind map to self.map so we can use it in
3931            tests. Subscribe to MAP_REPLACED messages too.
3932            (ViewPortTest.tearDown): No need to explicitly unsubscribe
3933            (ViewPortTest.test_set_map): New test for the SetMap method.
3934    
3935    2003-07-18  Bernhard Herzog  <[email protected]>
3936    
3937            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
3938            Move this test from ViewPortTest.setUp to this new separate test
3939            case. setUp is not the place for the actual tests.
3940            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
3941            more of the test from setUp to the new test test_inital_settings.
3942            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
3943            (ViewPortTest.test_proj_conv): Split test_proj_conv into
3944            test_win_to_proj and test_proj_to_win and make the tests easier to
3945            understand
3946            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
3947            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
3948            (ViewPortTest.test_unprojected_rect_around_point)
3949            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
3950            Reformat to increase readability.
3951    
3952    2003-07-18  Bernhard Herzog  <[email protected]>
3953    
3954            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
3955    
3956    2003-07-18  Bernhard Herzog  <[email protected]>
3957    
3958            * test/runtests.py: The test suite can now be run without an X
3959            connection. To make sure this remains true, remove the DISPLAY
3960            environment variable so that an error occurs if the wxGTK is
3961            imported accidentally
3962    
3963    2003-07-18  Bernhard Herzog  <[email protected]>
3964    
3965            * Thuban/UI/viewport.py: Remove unused imports
3966    
3967            * Thuban/UI/view.py: Remove unused imports
3968    
3969    2003-07-18  Bernhard Herzog  <[email protected]>
3970    
3971            * test/test_export.py Remove unused imports. The OutputTransform
3972            function is now in viewport.py and is called output_transform
3973            (TestScalebar.test_output_transform)
3974            (TestScalebar.test_OutputTransform): Renamed to
3975            test_output_transform and updated to use output_transform instead
3976            of OutputTransform
3977    
3978            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
3979            renamed.
3980            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
3981            renamed to output_transform
3982    
3983            * Thuban/UI/viewport.py (OutputTransform, output_transform):
3984            Rename to output_transform
3985    
3986    2003-07-18  Bernhard Herzog  <[email protected]>
3987    
3988            * Thuban/Model/layer.py (Layer.__init__): Rename
3989            classificationField to classificatin_column and init it here so
3990            that it can be used in SetClassificationColumn
3991            (Layer.GetClassificationColumn, Layer.GetClassificationField):
3992            Rename to GetClassificationColumn.
3993            (Layer.SetClassificationColumn, Layer.SetClassificationField):
3994            Rename to SetClassificationColumn and issue a LAYER_CHANGED
3995            message if the column changes.
3996            (Layer._classification_changed, Layer.ClassChanged): Rename to
3997            _classification_changed. Update the callers.
3998            (Layer.SetShapeStore): Further field->column renames.
3999    
4000            * Thuban/Model/load.py (SessionLoader.start_classification)
4001            (SessionLoader.start_clpoint): Updates because of
4002            field->column method name changes in the Layer class
4003    
4004            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
4005            because of field->column method name changes in the Layer class
4006    
4007            * Thuban/UI/classifier.py (Classifier.__init__)
4008            (Classifier._OnTry, Classifier._OnRevert): Updates because of
4009            field->column method name changes in the Layer class
4010    
4011            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
4012            because of field->column method name changes in the Layer class
4013    
4014            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
4015            of field->column method name changes in the Layer class
4016    
4017            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
4018            (SaveSessionTest.testClassifiedLayer): Update because of
4019            field->column method name changes in the Layer class
4020    
4021            * test/test_layer.py (SetShapeStoreTests.setUp)
4022            (SetShapeStoreTests.test_sanity): Update because of field->column
4023            method name changes in the Layer class
4024            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
4025            (TestLayerModification.test_sanity)
4026            (TestLayerModification.test_initial_settings): remove unsued code
4027            and rename to test_sanity.
4028            (TestLayerModification.test_set_classification): New test for
4029            SetClassification and SetClassificationField.
4030    
4031    2003-07-18  Bernhard Herzog  <[email protected]>
4032    
4033            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
4034            the non-fixed values as well. The old test would have accepted a
4035            fixed ramp that only returnes the fixed properties
4036    
4037    2003-07-17  Jonathan Coles   <[email protected]>
4038    
4039            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
4040            shots for the manual. The XCF file is the source image and
4041            has additional layers to support changes.
4042    
4043            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
4044    
4045            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
4046            Return both the new class and the field name.
4047    
4048            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
4049            fit the map to the window as this changes any zoom level that
4050            the user may have set.
4051    
4052    2003-07-16  Jonathan Coles   <[email protected]>
4053    
4054            * Thuban/Model/classgen.py (generate_singletons,
4055            generate_uniform_distribution, generate_quantiles): Remove
4056            fixes parameter, but maintain the same functionality by having
4057            the calling function pass a FixedRamp object for the ramp.
4058            (FixedRamp): New. Adapts a ramp to have fixed property values.
4059    
4060            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
4061            (Classification): Inherit from Publisher.
4062            (Classification.__init__): Remove the layer parameter.
4063            Classifications no longer need to have a parent layer.
4064            (Classification.GetField, Classification.GetFieldType,
4065            Classification.SetFieldInfo): Removed. The field name is stored
4066            in the layer, and the type can be retreived by calling
4067            Layer.GetFieldType().
4068            (Classification._set_layer, Classification.GetLayer): Removed.
4069            Classifications no longer have a parent layer.
4070    
4071            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
4072            classification.
4073            (Layer.SetShapeStore): Reset the classification first while
4074            we still have the old shape store to work with.
4075            (Layer.GetClassificationField, Layer.SetClassificationField):
4076            New. Method for getting/setting the field to classify on.
4077            (Layer.SetClassification): Simplified now that the layer
4078            simply has to hold a reference to the classification and not
4079            tell the classification who owns it.
4080            Fixes RTbug #2023.
4081    
4082            * Thuban/Model/load.py (SessionLoader.start_classification):
4083            Set the field name on the layer, not the classification.
4084    
4085            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
4086            classification is modified.
4087    
4088            * Thuban/Model/save.py (SessionSaver.write_classification):
4089            Get the field name and type from the layer.
4090    
4091            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
4092            parameter records to rows and add docstring. Fixes RTbug #1997.
4093    
4094            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
4095            ramp when we need to fix certain values of a ramp rather than
4096            using the old fixes parameter. Fixes RTbug #2024.
4097    
4098            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
4099            parameter.
4100            (ClassTable.Reset): Add fieldType parameter and use it, rather
4101            than asking the classification.
4102            (Classifier.__init__): Remember the original class's field
4103            and ask the layer for the field type, rather than the classification.
4104            (Classifier.__SetGridTable): Retrieve the field and field type
4105            for the table because they are not in the classification.
4106            (Classifier._OnTry, Classifier._OnRevert): Set the classification
4107            field on the layer in addition to the classification itself.
4108    
4109            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
4110            classification field from layer.
4111    
4112            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
4113            classification field from layer. Split up tests and remove
4114            *-imports. Fixes RTbug #1992.
4115    
4116            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
4117    
4118            * test/test_classification.py
4119            (TestClassification.test_classification): Remove tests for methods
4120            that no longer exist.
4121    
4122            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
4123            __init__ no longer has a field parameter, use SetClassificationField.
4124            (SetShapeStoreTests.test_sanity): Use layer object to get class
4125            field info.
4126    
4127            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
4128            SetClassificationField on layer to set class field info.
4129    
4130            * test/test_viewport.py: Renamed from test/test_view.py.
4131    
4132    2003-07-16  Jan-Oliver Wagner <[email protected]>
4133    
4134            * Doc/manual/thuban-manual.xml: Added authors and an initial
4135            coarse structure.
4136    
4137    2003-07-15  Bernhard Herzog  <[email protected]>
4138    
4139            * test/support.py (FloatComparisonMixin): This is a mix-in class
4140            and therefore should not be derived from any other class.
4141    
4142            * test/test_range.py (RangeTest): FloatComparisonMixin is a
4143            mix-in, so derive from TestCase as well.
4144    
4145    2003-07-15  Bernhard Herzog  <[email protected]>
4146    
4147            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
4148            draw_func handling a bit to remove one layer of indirection. This
4149            makes the renderer about 10% faster in the non-classifying case
4150            and the code a bit cleaner
4151            (MapRenderer.draw_point_shape): Add the pen and brush parameters
4152            and set them in the dc. Now the draw_point_shape method and
4153            wxproj's draw_polygon_shape function have basically the same
4154            signature so that both can be directly used as draw_func
4155    
4156    2003-07-15  Bernhard Herzog  <[email protected]>
4157    
4158            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
4159            string values (in addition to the labels) as UTF 8
4160    
4161            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
4162            values if the field type is string
4163    
4164            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
4165            saving a session with non-ascii string classification values.
4166    
4167            * test/test_load.py (TestClassification.file_contents)
4168            (TestClassification.test): Check for non-ascii values in string
4169            classifications
4170    
4171    2003-07-14  Jonathan Coles   <[email protected]>
4172    
4173            * test/test_view.py: New. Tests for ViewPort.
4174    
4175    2003-07-14  Frank Koormann   <[email protected]>
4176    
4177            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
4178            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
4179    
4180            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
4181            unicode strings from session file: session title, map title and
4182            projection name.
4183            
4184    2003-07-10  Jonathan Coles   <[email protected]>
4185    
4186            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
4187            drag_stop, not drag_move when the mouse is released.
4188    
4189    2003-07-10  Jonathan Coles   <[email protected]>
4190    
4191            The most important part of this is the seperation of view.py into
4192            two pieces. viewport.py now has a class called ViewPort which
4193            contains all the non-wx parts of view.py and can therefore be
4194            tested. view.py contains only the wx-specific parts and is fairly
4195            simple.
4196    
4197            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
4198            RTTbug #1992.
4199            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
4200            RTTbug #1992.
4201    
4202            * Thuban/Model/classgen.py (generate_singletons,
4203            generate_uniform_distribution, generate_quantiles):
4204            Added 'fixes' parameter so that property attributes can
4205            be held constant over the generated classification groups.
4206            (CustomRamp.GetProperties): Remove unused variables.
4207    
4208            * Thuban/Model/map.py (Map.SetProjection): Send the old
4209            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
4210            event.
4211    
4212            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
4213            parameter which is a list of records that restricts which
4214            records are saved. Fixes RTbug #1997.
4215    
4216            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4217            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
4218    
4219            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
4220            to allow the user to fix line color/width on generated groups.
4221            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
4222            functions to optionally fix group properties.
4223    
4224            * Thuban/UI/main.py (main): Set exception hook to the
4225            ShowExceptionDialog. Fixes RTbug #1993.
4226    
4227            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
4228            the table window when it is selectd to be shown.
4229    
4230            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
4231            Export Selection button and move the export buttons underneath
4232            the table.
4233            (QueryTableFrame.UpdateStatusText): Added event argument so
4234            that it can respond to grid selection events. The status text
4235            is now updated even when the table is not associated with a
4236            layer as was previously assumed.
4237            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
4238            UpdateStatusText responds to these events.
4239            (QueryTableFrame.OnSaveAs): Renamed to doExport.
4240            (QueryTableFrame.doExport): Helper function that saves the
4241            entire table, or selected rows, to a file.
4242            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
4243            Respond to export button events and call doExport.
4244    
4245            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
4246            the function doesn't return NULL without first setting a Python
4247            Error.
4248    
4249            * test/runtests.py (main): Only print "Unknown option" for
4250            unsupported options.
4251    
4252            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
4253            optional epsilon argument to specify floating point accuracy.
4254            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
4255            for each item test.
4256    
4257            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
4258            tests for saving selected records.
4259    
4260            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
4261            tests for saving selected records.
4262    
4263            * test/test_map.py (TestMapWithContents.test_set_projection):
4264            MAP_PROJECTION_CHANGED events send the old projection.
4265    
4266            * test/test_session.py
4267            (TestSessionWithContent.test_forward_map_projection):
4268            MAP_PROJECTION_CHANGED events send the old projection.
4269    
4270            * test/test_table.py (TableTest): Update tests to use non-deprecated
4271            functions.
4272    
4273    2003-07-08  Bernhard Herzog  <[email protected]>
4274    
4275            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
4276            constants in the column objects are the standard ones defined in
4277            the table module.
4278    
4279            * test/test_transientdb.py
4280            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
4281            exporting transient tables as DBF works. This should catch the bug
4282            just fixed in TransientTableBase.Width.
4283    
4284    2003-07-08  Bernhard Herzog  <[email protected]>
4285    
4286            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
4287            interpolated colors correctly.
4288    
4289            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
4290            New. Test case for the fix in classgen.py
4291    
4292    2003-07-08  Bernhard Herzog  <[email protected]>
4293    
4294            * test/runtests.py (main): Make the default output less verbose
4295            and add a verbosity option (-v) to get the old output
4296    
4297    2003-07-08  Bernhard Herzog  <[email protected]>
4298    
4299            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
4300            0.9.
4301    
4302            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
4303            New. Return the join type
4304    
4305            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
4306            DTD
4307            (SessionSaver.write_data_containers): Save the join type for
4308            joined tables
4309    
4310            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
4311            namespace
4312            (SessionLoader.start_jointable): Handle the jointype attribute
4313    
4314            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
4315            as of Thuban 0.8. These are now tests to determine whether Thuban
4316            can still read files generated by Thuban 0.8
4317    
4318            * test/test_load.py (LoadSessionTest.dtd)
4319            (TestSingleLayer.file_contents)
4320            (TestLayerVisibility.file_contents, TestLabels.file_contents)
4321            (TestLayerProjection.file_contents)
4322            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4323            (TestJoinedTable.file_contents)
4324            (TestLoadError.file_contents): Update for new DTD
4325            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
4326            for new join type attribute
4327    
4328            * test/test_save.py (SaveSessionTest.dtd)
4329            (SaveSessionTest.testEmptySession)
4330            (SaveSessionTest.testSingleLayer)
4331            (SaveSessionTest.testLayerProjection)
4332            (SaveSessionTest.testRasterLayer)
4333            (SaveSessionTest.testClassifiedLayer)
4334            (SaveSessionTest.test_dbf_table)
4335            (SaveSessionTest.test_joined_table): Update for new DTD
4336            (SaveSessionTest.test_joined_table): Add test for new join type
4337            attribute
4338    
4339    2003-07-04  Bernhard Herzog  <[email protected]>
4340    
4341            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
4342            function for table_to_dbf
4343            (table_to_dbf): Deal with names longer than the 10 character limit
4344    
4345            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
4346            doc-string
4347            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
4348            long column names
4349    
4350    2003-07-03  Bernhard Herzog  <[email protected]>
4351    
4352            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
4353    
4354    2003-07-03  Bernhard Herzog  <[email protected]>
4355    
4356            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
4357            for the Thuban manual and README with some basic information about
4358            the manual
4359    
4360    2003-07-03  Bernhard Herzog  <[email protected]>
4361    
4362            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
4363            Update doc-string
4364            (TransientJoinedTable.create): Do not modify the column objects of
4365            the input tables in place and copy all columns of the input tables
4366            into the joined table after all.
4367    
4368            * test/test_transientdb.py
4369            (TestTransientTable.test_transient_joined_table_same_column_name):
4370            Update to reflect the new behavior
4371            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
4372            Update to reflect the new behavior
4373            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
4374            New test case for a bug which modified the column objects in place
4375    
4376    2003-07-02  Jonathan Coles   <[email protected]>
4377    
4378            * Thuban/Model/classgen.py (generate_singletons,
4379            generate_uniform_distribution, generate_quantiles,
4380            GenQuantiles0): Make sure maxValue isn't less than
4381            one, otherwise we could divide by zero.
4382    
4383            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
4384            ClassGenTest.doClassSingleTest): Call doBoundsTest to
4385            check the end classification groups against the
4386            proper property values.
4387            (ClassGenTest.doBoundsTest): New. Checks the first and
4388            last classification groups to make sure their properties
4389            are the correct upper and lower bounds for a color ramp.
4390    
4391    2003-07-02  Jonathan Coles   <[email protected]>
4392    
4393            * Thuban/Model/classgen.py (generate_singletons,
4394            generate_uniform_distribution, generate_quantiles,
4395            GenQuantiles0): The denominator was one to high when
4396            calculating the index for the ramp causing the index
4397            to never to reach one.
4398    
4399    2003-07-02  Jonathan Coles   <[email protected]>
4400    
4401            Changed the singature of ClassGroupRange.__init__ and
4402            ClassGroupRange.SetRange() so that the min/max values are
4403            passed as a tuple. This makes a better calling scheme for
4404            when a Range object is passed instead.
4405    
4406            * Thuban/Model/classgen.py: Fixed parameters to
4407            ClassGroupRange constructor.
4408    
4409            * Thuban/Model/classification.py (ClassGroupRange.__init__):
4410            Consolidate the min/max parameters into a single _range which
4411            can either be a tuple or a Range object.
4412            (ClassGroupRange.SetRange): Consolidate the min/max parameters
4413            into a single _range which can either be a tuple or a Range object.
4414    
4415            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
4416            call to ClassGroupRange constructor to use a tuple.
4417    
4418            * Thuban/Model/layer.py (Layer.SetClassification): Switch
4419            the classification instance variable to the new class
4420            before calling _set_layer otherwise subscribers to a
4421            LAYER_CHANGED event will not see any difference.
4422    
4423            * test/test_classification.py: Fix tests of ClassGroupRange
4424            so that they use the new signature.
4425    
4426            * test/test_load.py: Fix use of ClassGroupRange so that it
4427            uses the new signature.
4428    
4429            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
4430            uses the new signature.
4431    
4432            * test/test_save.py: Fix use of ClassGroupRange so that it
4433            uses the new signature.
4434    
4435    
4436  2003-07-01  Jonathan Coles   <[email protected]>  2003-07-01  Jonathan Coles   <[email protected]>
4437    
4438          * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.          * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
# Line 527  Line 4962 
4962          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
4963          click on layer tree:          click on layer tree:
4964          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
4965          the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply          the ItemActivated  on double click, which raises the main window again.
4966            We add a second ItemActivated event to the queue, which simply
4967          raises the already displayed window.          raises the already displayed window.
4968    
4969          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

Legend:
Removed from v.1349  
changed lines
  Added in v.2264

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26