/[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 924 by frank, Mon May 19 09:12:42 2003 UTC revision 2242 by jschuengel, Tue Jun 15 09:22:01 2004 UTC
# Line 1  Line 1 
1    2004-06-10  Jan Sch�ngel  <[email protected]>
2    
3            * Extensions/umn_mapserver/README: New. Install instruction.
4    
5    2004-06-14  Bernhard Reiter <[email protected]>
6    
7            * libraries/thuban/cpl_mfile.h: Added copyright header.
8    
9            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
10            Free Software License so that it is most useful with gdalwarp
11            and bmpdataset.
12    
13    2004-06-14  Bernhard Herzog  <[email protected]>
14    
15            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
16            import of wxPython.wx itself (as opposed to the contents of
17            wxPython.wx).  For some reason wxPython.wx is available as
18            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
19            wrt. wxPython 2.4.
20    
21    2004-06-10  Jan Sch�ngel  <[email protected]>
22    
23            Initial version of new extension "umn_mapserver".  This extension aims
24            to manage configuration for the UMN MapServer application.  This
25            inital version just imports the .map-files and displays all, Thuban is
26            capable of.
27    
28            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
29    
30            * Extensions/umn_mapserver/test/README: New. Describes how to run the
31            tests.
32    
33            * Extensions/umn_mapserver/test/test.map: New. This is a test
34            .map-file for automated tests of the umn_mapserver extension of
35            Thuban.
36    
37            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
38            UMN Mapserver classes.
39    
40            * Extensions/umn_mapserver/__init__.py: New. Init to make this
41            directory a package.
42    
43            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
44            '.map'-file objects.
45    
46            * Extensions/umn_mapserver/mf_import.py: New. This module extends
47            Thuban with the possibility to handle UMN MapServer mapfiles.
48    
49    2004-06-03  Bernhard Herzog  <[email protected]>
50    
51            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
52            to a tuple before using it as arguments to the % operator.  This
53            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
54            reported today on thuban-list by Jan Sch�ngel
55    
56            * test/test_layer.py (TestLayerModification.setUp): Save the
57            filename as an instance variable so we can refer to it in tests
58            (TestLayerModification.test_tree_info): Uncomment this method
59            again and make it work.  This tests for the formatting issue
60            filed in RT#2239 on 2004-01-13
61    
62    2004-05-28  Bernhard Herzog  <[email protected]>
63    
64            * Thuban/UI/baserenderer.py: Fix some typos.
65    
66    2004-05-18  Jan-Oliver Wagner <[email protected]>
67    
68            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
69            by increasing a field size.
70    
71    2004-05-17  Bernhard Herzog  <[email protected]>
72    
73            Update to newest shapelib and get rid of Thuban specific
74            extensions, i.e. use the new DBFUpdateHeader instead of our
75            DBFCommit kludge
76    
77            * libraries/shapelib/shpopen.c: Update to version from current
78            shapelib CVS.
79    
80            * libraries/shapelib/shapefil.h: Update to version from current
81            shapelib CVS.
82    
83            * libraries/shapelib/dbfopen.c: Update to version from current
84            shapelib CVS.
85            (DBFCommit): Effectively removed since shapelib itself has
86            DBFUpdateHeader now which is better for what DBFCommit wanted to
87            achieve.  
88            We're now using an unmodified version of dbfopen.
89    
90            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
91            value '1' to the Lib.dbflibc extension.  This simply reflects the
92            shapelib and pyshapelib updates
93    
94    2004-05-16  Jan-Oliver Wagner <[email protected]>
95    
96            Finished introduction of Menu.FindOrInsertMenu.
97    
98            * Extensions/drawshape/drawshape.py: Add the command
99            to the experimental menu additionally to the toolbar.
100    
101            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
102            finding menu on its own.
103    
104            * Doc/manual/thuban-manual.xml: updated sample file
105            to use FindOrInsertMenu().
106    
107            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
108            instead of finding menu on its own.
109    
110    2004-05-11  Jan-Oliver Wagner <[email protected]>
111    
112            * test/test_menu.py (MenuTest.test): Added testing
113            of method Menu.FindOrInsertMenu.
114    
115    2004-05-10  Jan-Oliver Wagner <[email protected]>
116    
117            Introduce and use Menu.FindOrInsertMenu.
118    
119            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
120              given menu or, if not found, insert it.
121    
122            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
123            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
124            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
125            menu on its own.
126    
127    2004-05-06  Jan-Oliver Wagner <[email protected]>
128    
129            Introduce a abstract ColorDialog class and remove
130            and outdated file.
131    
132            * Thuban/UI/proj4dialog.py: Removed. It is has been
133            replaced by projdialog for quite a while and is not used
134            anymore.
135    
136            * Thuban/UI/colordialog.py: New. Abstraction for color selection
137            dialog(s).
138    
139            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
140            Now calls the abstract ColorDialog instead of wxColourDialog.
141            This also removed the dependency to Color class conversion
142            from this function.
143    
144    2004-05-04  Frank Koormann  <[email protected]>
145    
146            * Extensions/bboxdump/__init__.py: Fixed string left over from
147            copying.
148    
149            * Extensions/bboxdump/bboxdump.py (bboxdump):
150            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
151            xrange(layer.NumShapes()). Compile the bboxmessage from a list
152            of formatted outputs (string.join) instead of appending to the
153            message. Two progress bar dialogs to report progress on the sometimes
154            lenghty processing.
155    
156    2004-04-22  Frank Koormann  <[email protected]>
157    
158            New Extension to dump bounding boxes of all shapes of the selected
159            layer. An optional column can be specified to group the objects,
160            in this case the bounding box is a union of the separate boxes.
161            Dump can be displayed in a ScrolledMessageDialog or written to file.
162            The Extension is simply a combination of available and well tested
163            Thuban functionality.
164    
165            * Extensions/bboxdump/__init__.py: New: Init to make this
166            directory a package.
167    
168            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
169            all shapes of the selected layer.
170    
171    2004-04-22  Jan-Oliver Wagner <[email protected]>
172    
173            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
174            strings to be i18n now.
175    
176    2004-04-18  Jan-Oliver Wagner <[email protected]>
177    
178            Changing popup menu of legend from direct building
179            to using the Menu construction as used for the mainwindow.
180    
181            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
182            layer_to_bottom, layer_visibility
183            (MainWindow.LayerToTop): New. Put current layer to the top.
184            (MainWindow.LayerToBottom): New. Put current layer to bottom.
185            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
186            Replace 1,0 by True, False.
187            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
188            current layer.
189            (MainWindow.LayerShowTable): Removed raising of dialog.
190            (_has_selected_layer_visible): New. Support function.
191    
192            * Thuban/UI/legend.py: ID_POP_xxx: removed.
193            (LegendPanel.__init__): Removed EVT_MENU bindings.
194            (LegendTree._OnRightClick): Replace direct creation of
195            menu via wx Classes by applying the menu definition
196            as of Menu class of menu.py.
197            
198    2004-04-16  Jan-Oliver Wagner <[email protected]>
199    
200            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
201        button string to stronger clearify that Thuban will be closed when hitting
202            the button.
203    
204            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
205            Now for layers without a ShapeStore a corresponding message is given
206            to the user, that this layer has no table to show.
207    
208    2004-04-15  Martin Schulze  <[email protected]>
209    
210            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
211            recalculate the format for the internal render engine as well.
212    
213            * Extensions/wms/properties.py (wmsProperties): First start for a
214            properties dialog.  It's functional for a first selection of
215            layers, but still has some weired wxWidgets/GTK problems but
216            beautification can be done later.
217    
218            * Extensions/wms/layer.py: Added more documentation
219            (WMSLayer.getFormats): New: Return list of supported image formats
220            by the WMS server
221            (WMSLayer.getLayers): New: Return the list of layer names
222            supported by the WMS server
223            (WMSLayer.getLayerTitle): New: Return the title of the named layer
224            (WMSLayer.getWMSFormat): New: Return the image format that is used
225            for WMS GetMap requests
226            (WMSLayer.setWMSFormat): New: Set the image format that is used
227            for WMS GetMap requests
228            (WMSLayer.__init__): Move away from using only one layer to using
229            a list of layers (unsorted at the moment, though).
230            (WMSLayer.getVisibleLayers): New: Return the list of names for all
231            visible layers
232            (WMSLayer.setVisibleLayers): New: Set the list of names for all
233            visible layers
234    
235            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
236            order to establish a clean structure.
237    
238            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
239            own in order to establish a clean structure.
240    
241    2004-04-13  Martin Schulze  <[email protected]>
242    
243            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
244            support for oldstyle (WMS 1.0 apparently) image format
245            specification.
246    
247            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
248            supported graphic formats back to JPEG and BMP, PNG and others are
249            too *cough* experimental...  Sorry, I meant to filter this out
250            before I committed this part.  This should make the WMS extension
251            run from CVS again.
252            (wms_dialog): Reset an empty URL to None so that the subsequent
253            program can depend on this, since the dialog will indeed return an
254            empty URL, causing another declaration of love by Python.
255    
256            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
257            Whenever a native BoundingBox request cannot be fulfilled, check
258            whether the requested SRS is EPSG:3426, in which case return the
259            LatLonBoundingBox values.
260    
261            * Extensions/wms/test/test_parser.py
262            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
263            ignoring AUTO:* SRS.
264            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
265            Added another test method to test whether the LatLonBoundingBox
266            values will be returned if BoundingBox values are requested with
267            SRS set to EPSG:3426.
268    
269            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
270            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
271            the moment by placing them into a variable which is currently
272            unused.  Also test whether the EPSG SRS is numerical as it should
273            be and add an error message if it is not.
274    
275            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
276            appear in the real world as well.  Since we cannot handle them yet
277            (OGCLib can't either), we will ignore them for the moment.
278    
279            * Extensions/wms/parser.py: Use a variable for denoting the sample
280            filename
281            (WMSCapabilitiesParser.peekLayers): Added support for error
282            messages during grok().  They will be aggregated in an array and
283            may be displayed later.  We may have to add a classification
284            "Warning" and "Error" to this.  That requires more experience,
285            though, since not every error may be lethal.
286    
287            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
288            ShowTable() dialog/frame when the user attempts to display it
289            while it has been opened before already and not closed again.
290    
291    2004-04-11  Martin Schulze  <[email protected]>
292    
293            * Extensions/wms/infodialog.py: Adjusted the class documentation
294    
295            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
296            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
297            wxWidgets variants.
298            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
299    
300            * Extensions/wms/infodialog.py: Added an information dialog that
301            will display various information about the WMS current resource,
302            so that additional information such as the title, the abstract,
303            fees and access constraints can be displayed for the user if they
304            are documented in the WMS XML.
305    
306    2004-04-10  Martin Schulze  <[email protected]>
307    
308            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
309            string handling.  It's "foo".lower() and not lower(foo) without
310            lower imported from strings or something.
311    
312            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
313            from capabilities.py and parser.py.  Implement priority list for
314            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
315            and GIF are supported here, but not yet by main Thuban.  Hence,
316            support for them may be removed later.  Special contribution to
317            usability: get wxWidgets to change the cursor when we're waiting
318            for data from the network so the user won't start to worry.  This
319            causes a redrawing error/warning, though.
320    
321            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
322            the DOM object.
323    
324    2004-04-01  Martin Schulze  <[email protected]>
325    
326            * Extensions/wms/capabilities.py: Adjusted documentation
327            (WMSCapabilities.__init__): Improved documentation, fixed syntax
328            (WMSCapabilities.saveCapabilities): Only catch IOError when
329            handling files
330            (WMSCapabilities.loadCapabilities): Only catch IOError when
331            handling files
332            __main__: corrected variable naming
333            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
334            class a specialisation of WMSCapabilitiesParser as well.  Also
335            execute grok() after loading or fetching capabilities, if that
336            went well, so that subsequent calls can already access the data.
337            (WMSCapabilities.getVersion): Export the used version of the
338            GetCapabilities request, so we can use it for subsequent calls,
339            i.e. for GetMap requests.
340            (WMSCapabilities.fetchCapabilities): Added proper error handling
341            when the GetCapabilities request failed, so that the surrounding
342            program can act accordingly.
343    
344    2004-03-30  Martin Schulze  <[email protected]>
345    
346            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
347            Adjusted the getLayerSRS method to return the list of SRSes
348            extracted from <SRS> elements instead of <BoundingBox> elements.
349            Added a bit of documentation as well.
350            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
351            since it was only implemented due to a misunderstanding.
352    
353            * Extensions/wms/test/test_parser.py
354            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
355            reflect the corrected interpretation of the standard: i.e. a layer
356            does not have to define a BoundingBox for all SRSes it supports.
357            Hence the <SRS></SRS> specification is authoritative, not the list
358            of BoundingBoxes.
359            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
360            to ensure None is returned for a non-existing SRS.
361            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
362            since it is not applicable anymore.  Listing more SRSes in <SRS>
363            elements is valid according to the specs.
364    
365    2004-03-26  Bernhard Reiter <[email protected]>
366    
367            * README: Nicer formatting of text. Improved descriptions.
368            Reflected wxWidgets name change.
369            
370            * Thuban/UI/about.py: Extended copyright to 2004 and added
371            information about the thuban-devel mailinglist.
372    
373    2004-03-24  Martin Schulze  <[email protected]>
374    
375            * Extensions/wms/capabilities.py: Renamed the class to contain
376            'WMS', also added a linebreak where required
377    
378            * Extensions/wms/parser.py: Finally added the XML parser for the
379            GetCapabilities response.
380    
381            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
382            <SRS> elements match the <BoundingBox> elements, except for the
383            layer 'beschriftung'.
384    
385            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
386            since Python uses unicode strings internally, otherwise
387            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
388            the SRS will be calculated anyway and this method is obsoleted by
389            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
390            Move loading the sample file into the setUp method.  Added a test
391            for finding the integrity problem in the sample response.
392            Improved formatting.
393    
394            * Extensions/wms/domutils.py: Added convenience routines for
395            handling of Document Object Model (DOM) nodes.
396    
397            * Extensions/wms/test/test_domutils.py: Added a test for the
398            domutils module
399    
400    2004-03-19  Martin Schulze  <[email protected]>
401    
402            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
403            Moved path detection and adding into a module of its own,
404            adjustpath, which exports thubandir as main Thuban directory.
405    
406            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
407            detection and adding into a module of its own, adjustpath, which
408            exports thubandir as main Thuban directory.  Reorganised the
409            module in order to support the SkipTest feature for Thuban test
410            cases.
411    
412            * Extensions/wms/test/adjustpath.py: Moved path detection and
413            adding into a module of its own.
414    
415    2004-03-18  Martin Schulze  <[email protected]>
416    
417            * Extensions/wms/test/test_parser.py: Added another test for
418            checking whether the WMS XML parser (to be implemented) returns
419            the information we expect.  This requires a sample WMS WML file
420            (sample.xml) which has been extracted from the frida server and
421            "improved" manually.
422    
423            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
424            main Thuban directory to the path in order to be able to import
425            random modules.  Adjusted the PyOGCLib detection to reuse the
426            information gathered.  Also added a note about the PYTHONPATH
427            environment variable.
428    
429            * Extensions/wms/test/test_ogclib.py: The format specification is
430            a mime-type, not a graphic format, hence image/jpeg wou ld be the
431            proper format and not JPEG.  We'll also have to take care of the
432            encoding of / as %2F.
433    
434    2004-03-16  Martin Schulze  <[email protected]>
435    
436            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
437            comprehensive test for the getMapURL method, built compare URLs
438            according to the documentation in OGC 01-068r3
439    
440            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
441            class WMSCapabilities to manage capabilites, will incorporate
442            parsing the capabilities response and provide details for other
443            classes.
444    
445    2004-03-12  Bernhard Herzog  <[email protected]>
446    
447            Support views in addition to normal tables in the postgis
448            shapestore
449    
450            * Thuban/Model/postgisdb.py
451            (PostGISShapeStore._fetch_table_information): Add a fallback for
452            the case where the table name is not in the geometry_columns
453            table.  This is usually the case for views.  Also, set
454            self.shapestore here.
455            (PostGISShapeStore.ShapeType): No need to query the database all
456            the time.  The shape type is now determined in
457            _fetch_table_information
458    
459            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
460            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
461            New parameter to specify views.
462            (PostGISDatabase.has_data): Also compare the views.  New views
463            parameter
464            (PostGISDatabase.initdb): Create the views.
465            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
466            view
467    
468            * test/test_postgis_db.py
469            (TestPostGISShapestorePointFromViews): New.  Test a
470            PostGISShapeStore with a view
471            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
472            the geometry_column explicitly to test whether that works
473    
474    2004-03-12  Bernhard Herzog  <[email protected]>
475    
476            Final step for explicit id/geometry columns: Loading and saving
477    
478            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
479            with the following changes:
480            (dbshapesource): Two new attributes id_column and geometry_column
481    
482            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
483            (SessionSaver.write_session): Use the new namespace
484            (SessionSaver.write_data_containers): Write the new dbshapesource
485            parameters
486    
487            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
488            the new file format version
489            (SessionLoader.start_dbshapesource): Handle the new db parameters
490    
491            * test/test_save.py: Update to the new dtd and namespace
492            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
493            mock object to provide a working IDColumn method.
494    
495            * test/test_load_1_0.py: New.  Copy of the test_load.py before
496            today's changes but with the round-trip tests removed.
497    
498            * test/test_load_0_9.py: Update doc-string.
499    
500            * test/test_load.py: Update all .thuban files to the new dtd and
501            namespace.
502            (TestPostGISLayer.file_contents): Add the new dbshapesource
503            paramters
504    
505    2004-03-11  Bernhard Herzog  <[email protected]>
506    
507            Next step for explicit id/geometry columns: User interaction
508    
509            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
510            the dialog is constructed. Add combo boxes to select id and
511            geometry column.  Rename some instance variables.
512            (ChooseDBTableDialog.GetTable): Return id and geometry column
513            names
514            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
515            selections in the table list
516    
517            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
518            and geometry_column
519    
520            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
521            parameters for id_column and geometry column of PostGISShapeStore
522            here as well.
523    
524            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
525            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
526            (PostGISConnection.GeometryTables): Use a better query to
527            determine which relations in the database might be usable for
528            shapestores.  Now supports views as well but is more PostgreSQL
529            specific
530            (PostGISConnection.table_columns): New. Somewhat experimental
531            method to let the db dialogs provide lists of columns to users so
532            that they can select id and geometry columns.
533            (PostGISTable.__init__): The default value of the id_column
534            parameter is now None it still means "gid" effectively, though.
535            (PostGISTable.IDColumn): New introspection method to return a
536            column object for the id column
537            (PostGISShapeStore.GeometryColumn): New introspection method to
538            return a column object for the geometry column
539    
540            * test/test_postgis_db.py
541            (TestPostGISConnection.test_gis_tables_non_empty):
542            Removed. Subsumed by the new:
543            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
544            New. Tes the GeometryTables and table_columns methods with actual
545            tables and views.
546            (PointTests.test_id_column, PointTests.test_geometry_column):
547            New. tests for the new methods.
548            (TestPostGISShapestorePoint.setUp)
549            (TestPostGISShapestorePointSRID.setUp)
550            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
551            instance variables needed by the new tests
552    
553    2004-03-11  Bernhard Herzog  <[email protected]>
554    
555            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
556            numbers given to ReadValue are ordinals.
557    
558    2004-03-11  Bernhard Herzog  <[email protected]>
559    
560            Elimiate the requirement for PostGIS tables to have a column
561            called "gid".
562    
563            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
564            id_column to specify which column to use to identify rows.  Also
565            new instance variables id_column and quoted_id_column
566            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
567            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
568            (PostGISTable.SimpleQuery): Use the id column name provided to the
569            constructor instead of "gid"
570            (PostGISShapeStore.__init__): New parameter id_column analogously
571            to PostGISTable.__init__.  This parameter is simply passed through
572            to the base class constructor
573            (PostGISShapeStore._create_col_from_description): Fix typo in
574            doc-string
575            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
576            (PostGISShapeStore.ShapesInRegion): Use the id column name
577            provided to the constructor instead of "gid"
578    
579            * test/postgissupport.py
580            (PostgreSQLServer.get_default_static_data_db): New static table
581            landmarks_point_id with an id column != "gid.  Update the comments
582            a bit.
583            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
584            doc-
585            (upload_shapefile): New parameter gid_column to use a name other
586            than "gid" for the column to store the shape ids
587    
588            * test/test_postgis_db.py (TableTests): New.  Mixin-class
589            containing all tests previously in TestPostGISTable.  The actual
590            tests are the same but the code is a bit more configurable to
591            allow for different id columns etc.
592            (TestPostGISTable): Derive from TableTests now for the actual
593            tests.
594            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
595            except that it the landmarks_point_id table to test the id_column
596            parameter
597            (PointTests): Extend the doc-string
598            (TestPostGISShapestorePointExplicitGIDColumn)
599            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
600            from PointTests to test the explicit id_column parameter.  One
601            tests with the name of the column holding the shape ids, the other
602            uses PostgreSQL's OID column.  For the latter a number of methods
603            have to be overwritten to make them independent of the actual id
604            values.
605    
606    2004-03-08  Silke Reimer  <[email protected]>
607    
608            Update debian directory:
609    
610            * debian/changelog: Added new version.
611            * deiban/rules: Updated management of patches (with cbds)
612            * debian/control: Added cbds to dependencies
613            * debian/patches/*: New. Adds better support for patches of thuban in
614                            debian
615            * debian/menu: Syntax of menu changed slightly
616            * debian/setup.py.patch: removed because it has been moved to
617                            debian/patechs/setup.py.patch
618            
619    
620    2004-02-26  Bernhard Herzog  <[email protected]>
621    
622            Create the Doc/technotes directory for text files with information
623            for developers
624    
625            * Doc/technotes/README: New. README for the technotes
626    
627            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
628            Thuban
629    
630            * Doc/technotes/release_process.txt: New. Used to be
631            HOWTO-Release.  Now slightly adapted to technote formatting style.
632    
633            * HOWTO-Release: Removed.  It's contents are now in
634            Doc/technotes/release_process.txt
635    
636    2004-02-25  Bernhard Herzog  <[email protected]>
637    
638            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
639            version of wxWindows the module was compiled with so we can check
640            that against the wxPython version.
641    
642            * Thuban/version.py (thuban_branch, thuban_release): New variables
643            controlling which and how Thuban versions are shown.  See the
644            comments for details.
645            (verify_versions): Also check that the wx version that wxproj is
646            compiled against matches that of the wxPython we use at runtime
647    
648    2004-02-20  Bernhard Herzog  <[email protected]>
649    
650            * Extensions/wms/wms.py (epsg_code_to_projection): Use
651            get_system_proj_file to read the epsg projections.  The old way
652            depended on the current directory being the top Thuban directory.
653    
654    2004-02-20  Bernhard Herzog  <[email protected]>
655    
656            * Extensions/svgexport/test/test_svgmapwriter.py
657            (TestVirtualDC.test_clippath): Remove a debug print
658    
659    2004-02-20  Bernhard Herzog  <[email protected]>
660    
661            * Extensions/svgexport/__init__.py: New.  Turn
662            Extensions/svgexport into a package.
663    
664            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
665            doc-string a bit.  The doc-string must come first, otherwise it's
666            not a doc-string.  The __future__ import must be the first thing
667            after the doc-string.  Use only double quotes in doc-strings.
668            Single quotes trip up emacs syntax highlighting if the text
669            contains apostrophes.
670    
671    2004-02-20  Bernhard Herzog  <[email protected]>
672    
673            * Extensions/svgexport/test/__init__.py,
674            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
675            suite for svgexport
676    
677            * test/runtests.py (find_test_modules): New. Function with the
678            module finding code from main.
679            (main): Use find_test_modules to figure out the default test
680            modules and take modules from Extensions.svgexport.test too.
681    
682    2004-02-19  Bernhard Herzog  <[email protected]>
683    
684            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
685            the mainwindow has a reference to the map of the initial session.
686            This fixes a bug introduced with the fix for RT#2245
687    
688    2004-02-19  Bernhard Herzog  <[email protected]>
689    
690            * Extensions/svgexport/svgsaver.py,
691            Extensions/svgexport/svgmapwriter.py,
692            Extensions/svgexport/maplegend.py: Added again.  This time in the
693            correct place.
694    
695    2004-02-17  Bernhard Herzog  <[email protected]>
696    
697            Fix for RT#2245
698    
699            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
700            instance variables before trying to create any windows.  Creating
701            windows can start an event loop if e.g. message boxes are popped
702            up for some reason, and event handlers, especially EVT_UPDATE_UI
703            may want to access things from the application.
704            (ThubanApplication.maps_changed): The mainwindow may not have been
705            created yet, so check whether it has been created before calling
706            its methods
707    
708            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
709            have a map
710    
711    2004-02-17  Bernhard Herzog  <[email protected]>
712    
713            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
714            Extensions/svgmapwriter.py, Extensions/maplegend.py,
715            extensions/svgexport/svgsaver.py,
716            extensions/svgexport/svgmapwriter.py,
717            extensions/svgexport/maplegend.py: Removed.  These files were in
718            the wrong places or didn't work at all.
719    
720    2004-02-16  Bernhard Herzog  <[email protected]>
721    
722            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
723            line
724    
725    2004-02-16  Bernhard Herzog  <[email protected]>
726    
727            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
728    
729    2004-02-15  Markus Rechtien  <[email protected]>
730            
731            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
732            to write a session to a file in SVG format.
733            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
734            to write a SVG map of a session.
735            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
736            in SVG format for the current session.
737    
738    2004-02-13  Bernhard Herzog  <[email protected]>
739    
740            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
741            can't be created, return immediately after displaying the error
742            message.
743    
744    2004-02-11  Bernhard Herzog  <[email protected]>
745    
746            Handle postgis tables with more than one geometry column.
747    
748            * Thuban/Model/postgisdb.py
749            (PostGISTable._fetch_table_information): Delegate the creation of
750            column objects to a different method so that we can extend that in
751            derived classes
752            (PostGISTable._create_col_from_description): New. Column object
753            creation part of _fetch_table_information
754            (PostGISShapeStore._create_col_from_description): New. Extend
755            inherited method to handle geometry columns
756            (PostGISShapeStore.__init__): New parameter geometry_column to
757            specify which geometry column to use.  Optional but mandatory for
758            tables with more than one geometry column
759            (PostGISShapeStore._fetch_table_information): Also use the name of
760            the geometry column when looking for the srid
761            (PostGISShapeStore.ShapeType): Also use the name of the geometry
762            column when looking for the shape type
763    
764            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
765            NonConnectionStore to changes in the PostGISShapeStore
766    
767            * test/test_postgis_db.py
768            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
769            PostGISShapeStore with tables having two geometry columns.
770    
771    2004-02-10  Bernhard Herzog  <[email protected]>
772    
773            Fix some postgis problems.  What remains to be done is real
774            handling of SRIDs as they affect how reprojection is done
775    
776            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
777            doc-string
778            (PostGISShapeStore._fetch_table_information): New. Extend
779            inherited method to retrieve srid
780            (PostGISShapeStore.BoundingBox): Handle tables without data.
781            extent yields NULL for those
782            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
783    
784            * test/test_postgis_db.py
785            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
786            for the special case of a table without any data
787            (TestPostGISShapestorePointSRID): New class with tests for a table
788            that uses srids
789            (PolygonTests): Fix a doc-string typo
790    
791            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
792            reference_systems with a specification of spacial reference
793            systems to create in the new db.
794            (PostgreSQLServer.new_postgis_db)
795            (PostgreSQLServer.get_static_data_db): New parameter
796            reference_systems to be passed through ultimately to
797            PostGISDatabase.  In new_postgis_db also check whether an existing
798            db already has the right srids
799            (PostgreSQLServer.get_default_static_data_db): Add srids and a
800            table that uses srids
801            (PostGISDatabase.initdb): Create the entries for the reference
802            systems
803            (PostGISDatabase.has_data): Add reference_systems parameter to
804            check for those too
805            (upload_shapefile): New parameter srid to create tables with a
806            specific srid
807    
808    2004-02-06  Frank Koormann  <[email protected]>
809    
810            * po/pt_BR.po: Fixed charset
811    
812    2004-02-05  Frank Koormann  <[email protected]>
813    
814            * po/pt_BR.po: Fixed format string for error message, missing %s
815            added (Thuban/UI/application.py:273)
816    
817    2004-02-03  Frank Koormann  <[email protected]>
818            
819            First version of Portuguese (Brazilian) translation
820    
821            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
822            Brazilian Portuguese by Eduardo Patto Kanegae.
823    
824            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
825            translators.
826    
827    
828    2004-01-22  Frank Koormann  <[email protected]>
829    
830            * Doc/manual/thuban-manual.xml: Added section on installation of
831            Thuban under Win32 systems. Fixed image path references in the postgis
832            section. Some minor source formattings.
833    
834    2004-01-21  Frank Koormann  <[email protected]>
835    
836            Make Thuban remember path selections (at least for one application run).
837    
838            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
839            attribute of application object. Path is a dictionary of
840            strings, currently with the items "data" and "projection".  
841            (Application.SetPath): New, stores path for the specified item.
842            (Application.Path): New, return path for the specified item.
843    
844            * Thuban/UI/mainwindow.py
845            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
846            MainWindow.AddLayer, MainWindow.AddRasterLayer,
847            MainWindow.TableOpen): Access "data" path information of the
848            application.
849            
850            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
851            Access "projection" path information of the application.
852    
853    2004-01-05  Bernhard Herzog  <[email protected]>
854    
855            * po/ru.po: Updated translations from Alex Shevlakov
856    
857    2004-01-05  Bernhard Herzog  <[email protected]>
858    
859            * po/Makefile, po/README: Move the description of how to generate
860            the translation statistics to the README.
861    
862    2003-12-23  Bernhard Herzog  <[email protected]>
863    
864            * NEWS: Update for 1.0.0
865    
866            * po/it.po: Another update from Maurizio Napolitano
867    
868    2003-12-23  Bernhard Herzog  <[email protected]>
869    
870            * po/it.po: Updated translation from Maurizio Napolitano
871    
872    2003-12-23  Bernhard Herzog  <[email protected]>
873    
874            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
875            for translation
876    
877            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
878            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
879            strings for translation
880    
881            * po/de.po: Update with the newly marked strings.
882    
883    2003-12-22  Bernhard Herzog  <[email protected]>
884    
885            * HOWTO-Release: Fix the places where version numbers have to be
886            updated
887    
888    2003-12-22  Bernhard Herzog  <[email protected]>
889    
890            * setup.py (setup call): 1.0.0, yeah!
891    
892            * Thuban/version.py (longversion): 1.0.0, yeah!
893    
894            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
895            1.0.0 namespace too
896    
897            * Thuban/Model/save.py (SessionSaver.write_session): Save with
898            1.0.0 namespace
899    
900            * test/test_load.py (LoadSessionTest.dtd)
901            (TestSingleLayer.file_contents)
902            (TestNonAsciiColumnName.file_contents)
903            (TestLayerVisibility.file_contents)
904            (TestClassification.file_contents, TestLabels.file_contents)
905            (TestLayerProjection.file_contents)
906            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
907            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
908            (TestPostGISLayerPassword.file_contents)
909            (TestLoadError.file_contents, TestLoadError.test): Update for
910            1.0.0 namespace
911    
912            * test/test_save.py (SaveSessionTest.dtd)
913            (SaveSessionTest.testEmptySession)
914            (SaveSessionTest.testSingleLayer)
915            (SaveSessionTest.testLayerProjection)
916            (SaveSessionTest.testRasterLayer)
917            (SaveSessionTest.testClassifiedLayer)
918            (SaveSessionTest.test_dbf_table)
919            (SaveSessionTest.test_joined_table)
920            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
921    
922    2003-12-22  Bernhard Herzog  <[email protected]>
923    
924            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
925            alignment flags are byte strings not unicode and that they have
926            valid values
927    
928            * test/test_load.py (TestLabelLayer): New. Test loading (and
929            indirectly saving) of maps with labels.
930    
931    2003-12-22  Bernhard Herzog  <[email protected]>
932    
933            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
934            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
935            unsubscribe all subscribers.
936            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
937            self.grid since it may already have been destroyed.
938            Fixes RT #2256
939    
940    2003-12-19  Bernhard Herzog  <[email protected]>
941    
942            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
943    
944    2003-12-16  Bernhard Herzog  <[email protected]>
945            
946            * debian/bitmappath.patch, debian/setup.py.patch:
947                    added to ensure compliance with FHS for debian
948            * debian/rules, debian/changelog:
949                added patches in rules to ensure compliance with FHS for debian
950    
951    2003-12-16  Bernhard Herzog  <[email protected]>
952    
953            * po/Makefile (mo): Make the output a bit nicer so that it prints
954            statistics about the translations. Add a comment how produce even
955            nicer statistics with sed.
956    
957    2003-12-09  Frank Koormann   <[email protected]>
958    
959            * Resources/Projections/defaults.proj:
960            French projection sample with correct accents (UNICODE).
961    
962    2003-12-05  Bernhard Herzog  <[email protected]>
963    
964            * MANIFEST.in: Add the devtools directory
965    
966            * setup.py (setup call): Use license instead of licence. This
967            silences a deprecation warning on Python 2.3
968    
969    2003-12-05  Frank Koormann   <[email protected]>
970    
971            Documentation synced with 1.0rc1
972    
973            * Doc/manual/thuban-manual.xml:
974            Minor formatting changes and references to database layers .
975            Introduction.Internationalization: New section on i18n.
976            MapManagement.AddingandRemovingLayers: Added item on database layers.  
977            MapManagement.TheLegend: Added section and screenshot on popup menu.
978            ProjectionManagement: Updated screenshot and sentence on EPSG.
979            Appendix.SupportedDataSources: Added PostGIS.
980            Appendix.WorkingwithPostGIS: New section.
981    
982            * Doc/manual/images/6_projection.png: Updated screenshot including
983            EPSG checkboxes.
984    
985            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
986    
987            * Doc/manual/images/app_postgis_add_layer.png,
988            Doc/manual/images/app_postgis_db_add.png,
989            Doc/manual/images/app_postgis_db_management.png:
990            New screenshots focussing on database layers
991    
992    2003-12-05  Frank Koormann   <[email protected]>
993    
994            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
995            write warning to stderr instead of rising a warning dialog
996    
997    2003-12-03  Bernhard Herzog  <[email protected]>
998    
999            Fix for RT #2243
1000    
1001            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
1002            New. Like has_selected_layer but for shape layers only
1003            (_has_selected_shape_layer): New. Like _has_selected_layer but for
1004            shape layers only
1005            (layer_show_table command, layer_jointable command): Use these
1006            commands should only be available for shape layers
1007    
1008    2003-12-03  Bernhard Herzog  <[email protected]>
1009    
1010            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
1011            publishers that are wx objects and may have been destroyed by wx
1012            already. Fixes RT #2242.
1013    
1014    2003-12-03  Bernhard Herzog  <[email protected]>
1015    
1016            * po/ru.po: Updates from Alex Shevlakov
1017    
1018    2003-12-03  Silke Reimer <silkeintevation.de>
1019    
1020            * debian/control, debian/changelog: Added gdal-support to
1021                    debian package, updated to new thuban version
1022    
1023    
1024    2003-12-03  Bernhard Herzog  <[email protected]>
1025    
1026            * Thuban/Lib/version.py: New. Module for version number
1027            manipulations. The version of make_tuple here also deals better
1028            with more unusual version number strings, such as e.g.
1029            "1.2+cvs20031111"
1030    
1031            * Thuban/version.py (make_tuple): Removed. It's now in
1032            Thuban.Lib.version. Use that implementation instead.
1033    
1034            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
1035    
1036    2003-12-02  Bernhard Herzog  <[email protected]>
1037    
1038            * MANIFEST.in: Add debian files
1039    
1040            * setup.py (setup call): Add packages for the Extensions so that
1041            they're installed too
1042            (data_files): Add READMEs and sample data from some Extensions
1043    
1044            * NEWS: Add note about the extensions in binary packages
1045    
1046    2003-12-02  Bernhard Herzog  <[email protected]>
1047    
1048            * Thuban/Model/save.py (SessionSaver.write_session): Save files
1049            with the thuban-1.0rc1
1050    
1051            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
1052            thuban-1.0rc1 namespace too
1053    
1054            * test/test_save.py (SaveSessionTest.dtd)
1055            (SaveSessionTest.testEmptySession)
1056            (SaveSessionTest.testSingleLayer)
1057            (SaveSessionTest.testLayerProjection)
1058            (SaveSessionTest.testRasterLayer)
1059            (SaveSessionTest.testClassifiedLayer)
1060            (SaveSessionTest.test_dbf_table)
1061            (SaveSessionTest.test_joined_table)
1062            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
1063            namespace
1064    
1065            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
1066            namespace
1067            (TestSingleLayer.file_contents)
1068            (TestNonAsciiColumnName.file_contents)
1069            (TestLayerVisibility.file_contents)
1070            (TestClassification.file_contents, TestLabels.file_contents)
1071            (TestLayerProjection.file_contents)
1072            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1073            (TestPostGISLayer.file_contents)
1074            (TestPostGISLayerPassword.file_contents)
1075            (TestLoadError.file_contents, TestLoadError.test): Update to
1076            thuban-1.0rc1 namespace
1077    
1078    2003-12-01  Bernhard Herzog  <[email protected]>
1079    
1080            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
1081            nt to better match Intevation's current w32 setup
1082    
1083            * HOWTO-Release: Add note about updating MANIFEST.in
1084    
1085            * MANIFEST.in: Add the Extensions
1086    
1087            * NEWS: Update for 1.0rc1
1088    
1089    2003-12-01  Bernhard Herzog  <[email protected]>
1090    
1091            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
1092            cards for the dialog so that shapefiles ending in all uppercase
1093            SHP are listed too
1094    
1095    2003-11-28  Bernhard Herzog  <[email protected]>
1096    
1097            * Thuban/version.py (longversion): Update to 1.0rc1
1098    
1099            * setup.py (setup call): Update version to 1.0rc1. Use the
1100            [email protected] email address as author email instead of my
1101            personal one.
1102    
1103    2003-11-28  Bernhard Herzog  <[email protected]>
1104    
1105            * po/de.po: Update german translation.
1106    
1107    2003-11-28  Bernhard Herzog  <[email protected]>
1108    
1109            Unify the filenames stored in .thuban files so that the .thuban
1110            files are more platform independend
1111    
1112            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
1113            that they can be used on both windows and unix
1114            (SessionSaver.prepare_filename): New. Handle all filename
1115            transformations for filenames stored in the thuban file
1116            (SessionSaver.write_data_containers, SessionSaver.write_layer):
1117            Use prepare_filename
1118    
1119            * test/test_save.py (SaveSessionTest.testSingleLayer)
1120            (SaveSessionTest.testLayerProjection)
1121            (SaveSessionTest.testRasterLayer)
1122            (SaveSessionTest.testClassifiedLayer)
1123            (SaveSessionTest.test_dbf_table)
1124            (SaveSessionTest.test_joined_table): Filenames are always stored
1125            with slashes on all currently supported platforms so adapt all
1126            tests to this
1127    
1128            * test/test_load.py (LoadSessionTest.filenames): With the new
1129            filename scheme the filenames in the tests should be
1130            understandable on all currently supported platforms so we turn
1131            this into an empty list because we don't have to normalize them
1132            anymore
1133    
1134    2003-11-28  Bernhard Herzog  <[email protected]>
1135    
1136            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1137            Add the ellipsoid to the projection since some Proj versions
1138            complain if it's missing.
1139    
1140    2003-11-27  Bernhard Herzog  <[email protected]>
1141    
1142            Corect some bounding box projection problems
1143    
1144            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
1145            version of ForwardBBox
1146            (Projection._transform_bbox): New. common implementation of
1147            ForwardBBox and InverseBBox
1148            (Projection.ForwardBBox): Use _transform_bbox.
1149    
1150            * test/test_proj.py (TestProjection.test): Add test for
1151            InverseBBox
1152    
1153            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
1154            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
1155            new InverseBBox method to determine the unprojected bounding box
1156            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
1157            bbox.
1158    
1159            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
1160            Removed.
1161            (TestLayer.test_arc_layer_with_projection): New. This test is
1162            better able to test whether bounding boxes are projected correctly
1163            than test_point_layer_with_projection
1164    
1165            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
1166            InverseBBox to unproject bboxes
1167    
1168    2003-11-25  Bernhard Herzog  <[email protected]>
1169    
1170            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
1171            source code.
1172    
1173    2003-11-25  Bernhard Herzog  <[email protected]>
1174    
1175            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
1176            there for backwards compatibility and all code relying on that
1177            should have been updated by now.
1178    
1179    2003-11-25  Bernhard Herzog  <[email protected]>
1180    
1181            * test/test_load.py (TestClassification.test): Add the missing
1182            round trip test.
1183            (TestClassification.file_contents): Update to the newest file
1184            format
1185    
1186    2003-11-25  Bernhard Herzog  <[email protected]>
1187    
1188            Add very experimental (and possibly dangerous) extension to draw
1189            polygons:
1190    
1191            * Extensions/drawshape/README: New. Brief installation
1192            instructions
1193    
1194            * Extensions/drawshape/drawshape.py: New. Implementation of the
1195            drawshape extensions
1196    
1197            * Extensions/drawshape/patch.diff: Patch to apply before the
1198            extension can be used.
1199    
1200    2003-11-24  Bernhard Herzog  <[email protected]>
1201    
1202            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
1203            (ShapefileStore.__init__): Factor opening the shapefile into a
1204            separate method (the new _open_shapefile). This makes the code a
1205            bit more readable but the real reason is that it makes some evil
1206            hacks easier. :-)
1207    
1208    2003-11-24  Bernhard Herzog  <[email protected]>
1209    
1210            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
1211            converter is specified for an attribute assume it's a string
1212            containing only Latin1 characters. Update doc-string accordingly.
1213            This change should fix many places where unicode objects might
1214            accidentally enter Thuban.
1215    
1216            * test/test_load.py (TestNonAsciiColumnName): New test to check
1217            what happens with column names in DBF files that contain non-ascii
1218            characters
1219    
1220    2003-11-21  Bernhard Herzog  <[email protected]>
1221    
1222            Enable the experimental attribute editing again and introduce a
1223            command line switch to actually activate it
1224    
1225            * Thuban/UI/main.py (options): New. Container for options set on
1226            the commmand line
1227            (main): Add the --enable-attribute-editing flag.
1228    
1229            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
1230            editing is enabled use the grid ctrl which allows editing of the
1231            values
1232    
1233            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
1234            New. Just delegate this to the underlying table.
1235    
1236    2003-11-20  Bernhard Herzog  <[email protected]>
1237    
1238            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
1239            Skip this test if run under non-posix systems since it only works
1240            there
1241    
1242    2003-11-19  Bernhard Herzog  <[email protected]>
1243    
1244            * Thuban/Model/resource.py: Rework the way gdal support is
1245            determined so that we can give a reason in the about why gdal is
1246            not supported.
1247            (gdal_support_status): New. Variable holding a string with the
1248            reason for no gdal support
1249    
1250            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
1251            not supported to the message
1252    
1253    2003-11-19  Bernhard Herzog  <[email protected]>
1254    
1255            Remove the old table interface and its test cases
1256    
1257            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
1258            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
1259            anymore
1260    
1261            * Thuban/Model/transientdb.py (TransientTableBase)
1262            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
1263            anymore
1264    
1265            * test/test_table.py: Removed since the old interface it tests is
1266            gone.
1267    
1268            * test/runtests.py (main): The old table interface is gone and
1269            with it the deprecation warnings so remove the code that turns
1270            these warnings into errors
1271    
1272    2003-11-19  Bernhard Herzog  <[email protected]>
1273    
1274            * test/test_table.py: Revert to revision 1.5 again. Changing the
1275            tests to use the new table interface is completely wrong since the
1276            whole purpose of the tests in this module is to test the old
1277            interface.
1278    
1279    2003-11-18  Bernhard Herzog  <[email protected]>
1280    
1281            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
1282            New. Test whether the connection matches a set of connection
1283            parameters
1284    
1285            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
1286            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
1287            for existing connections with the same parameters and break out of
1288            the loop correctly.
1289    
1290            * test/test_postgis_db.py (TestBriefDescription)
1291            (TestPostGISSimple.test_brief_description): Rename
1292            TestBriefDescription to TestPostGISSimple and the test method to
1293            test_brief_description so that we can add more test methods.
1294            (TestPostGISSimple.test_matches_parameters): New. Test the new
1295            MatchesParameters method
1296    
1297    2003-11-18  Bernhard Herzog  <[email protected]>
1298    
1299            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
1300            _was_destroyed, to indicate whether an publisher instance has
1301            already been destroyed.
1302            (Publisher.Unsubscribe): Only disconnect if the publisher has not
1303            been destroyed yet.
1304            (Publisher.Destroy): Set the _was_destroyed flag to true.
1305    
1306            * test/test_connector.py
1307            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
1308            calling Unsubscribe after Destroy doesn't raise an exception
1309    
1310    2003-11-14  Bernhard Herzog  <[email protected]>
1311    
1312            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
1313            typo in doc-string
1314    
1315    2003-11-13  Bernhard Herzog  <[email protected]>
1316    
1317            Quote table and column names properly for postgis.
1318    
1319            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
1320            quote an identifier for use in an sql statement
1321            (PostGISColumn.__init__): Add the quoted_name attribute
1322            (PostGISTable.__init__): New instance variable quoted_tablename
1323            (PostGISTable._fetch_table_information): Use the quoted table
1324            name. New isntance variable quoted_geo_col with a quoted version
1325            of geometry_column
1326            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
1327            (PostGISTable.RowOrdinalToId): Use the quoted table name
1328            (PostGISTable.ReadValue, PostGISTable.ValueRange)
1329            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
1330            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
1331            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
1332            Use quoted table and column names
1333    
1334            * test/test_postgis_db.py (TestPostGISSpecialCases)
1335            (TestPostGISIgnoredColumns): Rename the class to
1336            TestPostGISSpecialCases because that better describes the new
1337            cases
1338            (TestPostGISSpecialCases.test_unsupported_types)
1339            (TestPostGISSpecialCases.test): Rename the method to
1340            test_unsupported_types because we need a more descriptive name now
1341            that there are more methods
1342            (TestPostGISSpecialCases.test_table_name_quoting)
1343            (TestPostGISSpecialCases.test_column_name_quoting)
1344            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
1345            cases to test quoting of table and column names in PostGISTable
1346            and PostGISShapeStore
1347    
1348            * test/postgissupport.py
1349            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
1350            AddGeometryColumn desn't support table or column names with sapces
1351            or double quotes
1352    
1353    2003-11-12  Jan-Oliver Wagner <[email protected]>
1354    
1355            * Extensions/wms/__init__.py: New: Init to make this
1356            directory a package.
1357    
1358            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
1359    
1360    2003-11-11  Bernhard Herzog  <[email protected]>
1361    
1362            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
1363            Constant for the file woth deprecated epsg projections
1364            (get_system_proj_file): Update doc-string
1365    
1366            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
1367            above the EPS widgets, introduce a check box for the deprecated
1368            eps projections and a label for the epsg widgets
1369            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
1370            too
1371    
1372    2003-11-11  Bernhard Herzog  <[email protected]>
1373    
1374            Avoid warnings when run under Python 2.3
1375    
1376            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
1377            (BaseRenderer.draw_label_layer): Coordinates must be ints.
1378    
1379            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
1380            real method so that we can convert to int.
1381            (MapRenderer.label_font): The font size mist be an int.
1382    
1383            * Thuban/UI/common.py (Color2wxColour): The color values must be
1384            ints. Also, remove the unnecessary asserts.
1385    
1386            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
1387            (TestUnicodeStrings.test): Python source code should not contain
1388            non-ascii characters unless an encoding is specified in the file.
1389            Therefore use \x escapes in the string literals for non-ascii
1390            characters.
1391    
1392    2003-11-11  Bernhard Herzog  <[email protected]>
1393    
1394            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
1395            parameter so that this function can be used for all proj files in
1396            Resource/Projections
1397            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
1398            get_system_proj_file
1399    
1400            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
1401            ProjFile self.__sysProjFile use a dictionary of system ProjFile
1402            objects self._sys_proj_files
1403            (ProjFrame.build_dialog): Adapt to the new changes in the
1404            ProjectionList constructor. Add a check button to toggle whether
1405            EPSG projections are shown
1406            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
1407            events.
1408            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
1409            the busy cursor if the files have not yet been loaded by the
1410            dialog.
1411            (ProjFrame.load_system_proj): Add a parameter for the name of the
1412            proj file. Maintain the dictionary of system projections
1413            self._sys_proj_files
1414    
1415            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
1416            user_projs parameters into one parameter proj_files which is a
1417            list of proj files.
1418            (ProjectionList._subscribe_proj_files)
1419            (ProjectionList._unsubscribe_proj_files): New. Move
1420            subscription/unsubscription of projfile messages to separate
1421            methods
1422            (ProjectionList.Destroy): The unsubscribe is now done in
1423            _unsubscribe_proj_files
1424            (ProjectionList.update_projections): We now have a list of proj
1425            file objects
1426            (ProjectionList.SetProjFiles): New method to set a new list of
1427            proj file objects
1428    
1429            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
1430            Specify explicitly which system proj file to load.
1431    
1432    2003-11-11  Bernhard Herzog  <[email protected]>
1433    
1434            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
1435            instance variables to cut cyclic references. The GC would have
1436            collected the loader eventually but it can happen that it doesn't
1437            run at all until thuban is closed (2.3 but not 2.2 tries a bit
1438            harder and forces a collection when the interpreter terminates)
1439            (load_session): Call the handler's Destroy method to make sure
1440            that it gets garbage collected early. Otherwise it will be
1441            collected very late if at all and it holds some references to e.g.
1442            shapestores and the session which can lead to leaks (of e.g. the
1443            temporary files)
1444    
1445            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
1446            resource leak in load_session
1447    
1448    2003-11-10  Bernhard Herzog  <[email protected]>
1449    
1450            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
1451            extensions are to be rendered.
1452            (_renderer_extensions): New. List with renderer for layers in
1453            extensions
1454            (add_renderer_extension): New. Add a renderer extension
1455            (init_renderer_extensions): New. Init the renderer extensions
1456            (BaseRenderer.render_map_incrementally): Search
1457            _renderer_extensions for how to draw unknown layer types
1458            (BaseRenderer.draw_raster_data): Add format parameter so that
1459            formats other than BMP can be drawn
1460            (BaseRenderer.draw_raster_layer): Pass an explicit format to
1461            draw_raster_data
1462    
1463            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
1464            strings of the format parameter of draw_raster_data method to wx
1465            constants
1466            (MapRenderer.draw_raster_data): Add the format parameter and use
1467            raster_format_map to map it to the right wxwindows constant for
1468            wxImageFromStream
1469    
1470            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
1471            the format parameter and record it
1472            (TestBaseRenderer.test_raster_no_projection): check the format
1473            paramter of the draw_raster_data method
1474            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
1475            extension facility
1476    
1477    2003-11-07  Bernhard Herzog  <[email protected]>
1478    
1479            Tweak the usage of the sqlite database to make common use cases
1480            more responsive. In most cases copying the data to the sqlite
1481            database takes so long that using sqlite doesn't have enough
1482            advantages.
1483    
1484            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
1485            comments about performance and query the min and max in separate
1486            statements because only that way will indexes be used.
1487            (TransientTableBase.UniqueValues): Add some comments about
1488            performance.
1489            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
1490            Do not copy the data to the transient DB but use the transient
1491            copy if it exists. See the new comments for the performance trade
1492            offs
1493    
1494            * test/test_transientdb.py
1495            (TestTransientTable.test_auto_transient_table): Make sure that the
1496            data is copied to the transient database at some point.
1497    
1498    2003-11-03  Bernhard Herzog  <[email protected]>
1499    
1500            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
1501            globals to locals so that it's a bit faster
1502    
1503    2003-11-03  Bernhard Herzog  <[email protected]>
1504    
1505            * Thuban/UI/baserenderer.py
1506            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
1507            method. ReadValue is faster than ReadRowAsDict since it only reads
1508            one cell especially now that the dbf file objects actually
1509            implement it.
1510    
1511            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
1512            read_attribute method of the dbf objects
1513    
1514    2003-11-03  Bernhard Herzog  <[email protected]>
1515    
1516            * Extensions/profiling/profiling.py (popup_dialog_box): New config
1517            variable to indicate whether the result should be shown in a
1518            dialog box
1519            (profile_screen_renderer, time_screen_renderer): Only show a
1520            dialog box if popup_dialog_box is true.
1521            (profile_screen_renderer): Flush stdout after the printing the
1522            first part of the "profiling..." message
1523    
1524            * Thuban/UI/baserenderer.py
1525            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
1526            brushes for the groups so that they're not created over and over
1527            again
1528    
1529            * Thuban/Model/classification.py (Classification.__getattr__)
1530            (Classification._compile_classification)
1531            (Classification._clear_compiled_classification): New. Methods to
1532            manage a 'compiled' representation of the classification groups
1533            which is created on demand
1534            (Classification.InsertGroup, Classification.RemoveGroup)
1535            (Classification.ReplaceGroup): reset the compiled representation
1536            (Classification.FindGroup): Use the compiled representation to
1537            find the matching group
1538            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
1539    
1540    2003-10-31  Bernhard Herzog  <[email protected]>
1541    
1542            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
1543            Send a CLASS_CHANGED message
1544            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
1545            not return the removed group since it wasn't used.
1546    
1547            * test/test_classification.py
1548            (TestClassification.test_set_default_group): New. Test the
1549            SetDefaultGroup method
1550            (TestClassification.test_insert_group): New. Test the InsertGroup
1551            method
1552            (TestClassification.test_remove_group): New. Test the RemoveGroup
1553            method
1554            (TestClassification.test_replace_group): New. Test the
1555            ReplaceGroup method
1556    
1557    2003-10-31  Bernhard Herzog  <[email protected]>
1558    
1559            * test/test_classification.py (TestClassification.setUp):
1560            Subscribe to the CLASS_CHANGED messages
1561            (TestClassification.tearDown): New. Destroy the classification
1562            properly
1563            (TestClassification.test_defaults): Add tests for the default line
1564            width and whether no messages were sent yet
1565            (TestClassification.test_set_default_properties): Add tests for
1566            messages and setting the default line width
1567            (TestClassification.test_add_singleton)
1568            (TestClassification.test_add_range)
1569            (TestClassification.test_multiple_groups): Add tests for messages
1570    
1571    2003-10-31  Bernhard Herzog  <[email protected]>
1572    
1573            Some more refactoring in preparation for new tests:
1574    
1575            * test/test_classification.py (TestClassification.setUp): New.
1576            Instantiate the classification here. Update the test methods
1577            accordingly.
1578            (TestClassification.test_multiple_groups): Make sure that the two
1579            singletons matching 1 are considered different.
1580    
1581    2003-10-31  Bernhard Herzog  <[email protected]>
1582    
1583            * test/test_classification.py (red, green, blue): New. These
1584            constants were used in several cases. Update the relevant methods.
1585            (TestClassification.test_defaults)
1586            (TestClassification.test_set_default_properties)
1587            (TestClassification.test_add_singleton)
1588            (TestClassification.test_add_range)
1589            (TestClassification.test_multiple_groups)
1590            (TestClassification.test_deepcopy): New. These were formerly all
1591            part of the single method test.
1592            (TestClassification.test_deepcopy): Removed.
1593            (TestClassIterator): Removed. The test case is now a method of
1594            TestClassification since it tests part of the public interface of
1595            Classification
1596            (TestClassification.test_iterator): New. Used to be
1597            TestClassIterator effectively
1598    
1599    2003-10-31  Jan-Oliver Wagner <[email protected]>
1600    
1601            GUIfied the functions of the profiling extension.
1602    
1603            * /Extensions/profiling/__init__.py: New: Init to make this
1604            directory a package.
1605    
1606            * Extensions/profiling/profiling.py: Moved menu entries to
1607            the Extensions menu. Applied _() for strings.
1608            (profile_screen_renderer): Catch the detailed printout and present
1609            it in a dialog.
1610            (time_screen_renderer): Raise a dialog to present the result instead
1611            of printing it to stdout.
1612    
1613    2003-10-31  Bernhard Herzog  <[email protected]>
1614    
1615            * test/test_classification.py (TestClassGroupProperties)
1616            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
1617            (TestClassGroupSingleton, TestClassIterator, TestClassification):
1618            Split TestClassification into several classes, one for each class
1619            being tested. TestClassification itself now only tests
1620            Classification. This split makes changes to the tests a bit easier
1621    
1622    2003-10-31  Bernhard Herzog  <[email protected]>
1623    
1624            * Extensions/profiling/profiling.py: New. Extension to measure
1625            Thuban performance
1626    
1627    2003-10-31  Frank Koormann <[email protected]>
1628    
1629            Added two items to legend popup menu: Remove Layer and Show Layer Table
1630    
1631            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
1632            LegendPanel._OnShowTable): New event handlers, call the corresponding
1633            mainwindow methods.
1634            (LegendTree._OnRightClick): Added items to popup menu.
1635    
1636    2003-10-30  Bernhard Herzog  <[email protected]>
1637    
1638            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
1639            EVT_WINDOW_DESTROY
1640            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
1641            nothing but is convenient for the derived classes.
1642    
1643            * Thuban/UI/tableview.py
1644            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
1645            Unsubscribe the messages here not in OnClose because that might
1646            get called multiple times. Fixes RT #2196
1647            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
1648            anymore.
1649    
1650            * README: Update the minimum requirement for wxPython. Since we
1651            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
1652            the version in which that was introduced for all platforms
1653    
1654    2003-10-30  Frank Koormann <[email protected]>
1655    
1656            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
1657            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
1658            frame.
1659    
1660    2003-10-30  Jan-Oliver Wagner <[email protected]>
1661    
1662            Improved APR import extension, added further EPSG definitions
1663            and some cleanup regarding string class.
1664    
1665            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
1666            Added test for alias 'longlat'.
1667    
1668            * Resources/Projections/epsg-deprecated.proj: New. Contains
1669            deprecated EPSG definitions.
1670    
1671            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
1672            the variable names for objects.
1673    
1674            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
1675            Copied from importAPR and provided with documentation.
1676    
1677            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
1678            Moved to apr.py.
1679            (APR_View): Added object ref 'ITheme'.
1680    
1681            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
1682            split function by corresponding use of the string class method.
1683    
1684            * Thuban/Model/xmlwriter.py: Replaced string replace function by
1685            corresponding string method.
1686    
1687    2003-10-29  Bernhard Herzog  <[email protected]>
1688    
1689            * Thuban/UI/baserenderer.py
1690            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
1691            special case of a classification that only has the default group
1692    
1693    2003-10-27  Bernhard Herzog  <[email protected]>
1694    
1695            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1696    
1697            * po/de.po: Update.
1698    
1699            * Thuban/UI/application.py
1700            (ThubanApplication.ShowExceptionDialog): Handle translation of the
1701            dialog message properly
1702    
1703    2003-10-27  Bernhard Herzog  <[email protected]>
1704    
1705            Rework how localization works so that we use wx's translation
1706            functions when running Thuban as a normal application but not when
1707            we don't need any UI, such as in the test suite. See the comment
1708            in Thuban/__init__.py for details
1709    
1710            * Thuban/__init__.py (_): Add one level of indirection to make the
1711            translation handling more flexible and to make it possible to use
1712            either wx's translation services or not.
1713            (gettext_identity, translation_function_installed)
1714            (install_translation_function): New function to help with this
1715    
1716            * Thuban/UI/__init__.py: Install the wx specific translation
1717            function if it's OK to do that
1718    
1719            * test/support.py (initthuban): Install a dummy translation
1720            function so that importing Thuban.UI doesn't install a wx specific
1721            one for which would need to import wxPython
1722    
1723    2003-10-27  Bernhard Herzog  <[email protected]>
1724    
1725            * HOWTO-Release: Source archives should be created first and the
1726            binary packages should be created from the source archives.
1727            There's an official debian package now so there's no need to test
1728            the rpm on debian anymore
1729    
1730    2003-10-27  Bernhard Herzog  <[email protected]>
1731    
1732            Several rendering changes:
1733    
1734             - Render the selection into a separate bitmap so that only that
1735               bitmap needs to be redrawn when the selection changes
1736    
1737             - Render incrementally showing previews and allowing interaction
1738               before rendering is complete
1739    
1740             - Update the renderer interface a bit. Most parameters of
1741               RenderMap are now parameters of the constructor
1742    
1743            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
1744            and the update region as parameters. Update the doc-string
1745            (BaseRenderer.render_map_incrementally): New. Generator function
1746            to renders the map incrementally
1747            (BaseRenderer.render_map): Remove the map argument (it's now in
1748            the constructor) and simply iterate over the
1749            render_map_incrementally generator to draw the map.
1750            (BaseRenderer.draw_shape_layer_incrementally)
1751            (BaseRenderer.draw_shape_layer): Renamed to
1752            draw_shape_layer_incrementally and changed into a generator that
1753            yields True every 500 shapes. Used by render_map_incrementally to
1754            render shape layers incrementally
1755    
1756            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
1757            map and region parameters which are now in the constructor
1758            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
1759            the inherited render_map_incrementally.
1760            (BaseRenderer.draw_shape_layer): Removed.
1761            (ScreenRenderer.draw_selection_incrementally): New. The selection
1762            drawing part of the removed draw_shape_layer as a generator
1763            (ScreenRenderer.layer_shapes): Update because of the region
1764            parameter change
1765            (ExportRenderer.__init__): New. Extend the inherited constructor
1766            with the destination region for the drawing
1767            (ExportRenderer.RenderMap): Removed the map and region parameters
1768            which are now in the constructor
1769    
1770            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
1771            bitmap suitable for a preview in a tool
1772            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
1773            bitmap
1774            (MapPrintout.draw_on_dc): Adapt to new renderer interface
1775            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
1776            exists
1777            (MapCanvas.OnIdle): Update the logic to deal with incremental
1778            rendering and the selection bitmap
1779            (MapCanvas._do_redraw): Handle the instantiation of the render
1780            iterator and the redraws during rendering
1781            (MapCanvas._render_iterator): New. Generator to incrementally
1782            redraw both bitmaps
1783            (MapCanvas.Export): Adapt to new renderer interface.
1784            (MapCanvas.full_redraw): Reset the selection bitmap and the
1785            renderer iterator too
1786            (MapCanvas.redraw_selection): New. Force a redraw of the selection
1787            bitmap
1788            (MapCanvas.shape_selected): Only redraw the selection bitmap
1789    
1790            * test/test_baserenderer.py
1791            (TestBaseRenderer.test_polygon_no_projection)
1792            (TestBaseRenderer.test_raster_no_projection)
1793            (TestBaseRenderer.test_point_map_projection)
1794            (TestBaseRenderer.test_point_layer_and_map_projection)
1795            (TestBaseRenderer.test_point_layer_projection)
1796            (TestBaseRenderer.test_point_with_classification): Adapt to new
1797            renderer interface
1798    
1799    2003-10-24  Bernhard Herzog  <[email protected]>
1800    
1801            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
1802            (point_in_polygon_shape, shape_centroid): Raise an exception if
1803            the shape can't be read. Previously invalid shape ids would lead
1804            to a segfault.
1805    
1806            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
1807            New. test whether an exception is raised for invalid shape ids
1808    
1809    2003-10-24  Jan-Oliver Wagner <[email protected]>
1810    
1811            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
1812            as alias for 'latlong'.
1813    
1814            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
1815            as alias for 'latlong'.
1816    
1817    2003-10-24  Jan-Oliver Wagner <[email protected]>
1818    
1819            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
1820            the projection even for the UnknownPanel.
1821            (UnknownProjPanel.__init__): Define the text and create the textctrl
1822            widget.
1823            (UnknownProjPanel._DoLayout): Replaced static text widget by the
1824            textctrl created in __init__.
1825            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
1826            including the parameters of the projection.
1827            
1828    2003-10-24  Jan-Oliver Wagner <[email protected]>
1829    
1830            * Resources/Projections/epsg.proj: New. This is a list of
1831            EPSG codes with parameters for proj. The list has been
1832            generated using devtools/create_epsg.py based on the
1833            file nad/epsg of the proj 4.4.7 package. Four projection
1834            definitions have been deleted as they are not accepted by proj:
1835            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
1836            and "HD72 / EOV".
1837    
1838    2003-10-22  Bernhard Herzog  <[email protected]>
1839    
1840            Some more tweaks to the projection dialog which should fix RT
1841            #1886.
1842    
1843            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
1844            the ProjFile's messages and call the base class methods correctly
1845            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
1846            flag on the newly selected item too. Otherwise some other item is
1847            focused and the first time the focus is moved with the keyboard
1848            the selection moves in unexpected ways.
1849    
1850            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
1851            focus on the OK button, only on the projection list. That way the
1852            list really has the focus initially
1853            (ProjFrame.OnClose): Call the projection list's Destroy method to
1854            make it unsubscribe all messages
1855    
1856    2003-10-21  Bernhard Herzog  <[email protected]>
1857    
1858            Rework the projection dialog to fix a few bugs, including RT 2166
1859            and most of 2168
1860    
1861            * Thuban/UI/projlist.py: New. The class ProjectionList is a
1862            special wxListCtrl to show a list of projections in a more MVC
1863            fashion
1864    
1865            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
1866            throughout the class. The main change is to use the ProjectionList
1867            class instead of a normal wxListBox. Also, add an explicit
1868            "Unknown" projection to the projection choice control.
1869            (ProjPanel.__init__): Add an "unknown" ellipsoid
1870            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
1871            instantiation of the panel's controls to make the tab-order more
1872            natural
1873    
1874    2003-10-21  Bernhard Herzog  <[email protected]>
1875    
1876            * test/test_load.py (TestSingleLayer.file_contents)
1877            (TestSingleLayer.test): Add non-ascii characters to the titles of
1878            session, map and layer. This is effectively a port of the
1879            TestUnicodeStrings test in test_load_0_8.py which for some reason
1880            was only added there.
1881    
1882            * test/test_load_0_9.py (TestSingleLayer.file_contents)
1883            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
1884            characters to the titles of session, map and layer,.
1885    
1886    2003-10-21  Bernhard Herzog  <[email protected]>
1887    
1888            Add EPSG projection handling to .thuban files
1889    
1890            * test/test_save.py (SaveSessionTest.dtd)
1891            (SaveSessionTest.testEmptySession)
1892            (SaveSessionTest.testLayerProjection)
1893            (SaveSessionTest.testRasterLayer)
1894            (SaveSessionTest.testClassifiedLayer)
1895            (SaveSessionTest.test_dbf_table)
1896            (SaveSessionTest.test_joined_table)
1897            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
1898            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
1899            use a and epsg projection to test saving them
1900    
1901            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
1902            namespace
1903            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1904            (TestLayerProjection.file_contents)
1905            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1906            (TestPostGISLayer.file_contents)
1907            (TestPostGISLayerPassword.file_contents)
1908            (TestLoadError.file_contents, TestLoadError.test): Update to use
1909            1.0-dev namespace
1910            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
1911            use 1.0-dev namespace and use an EPSG projection to test whether
1912            loading it works
1913    
1914            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
1915            as of Thuban 0.9. These are now tests to determine whether Thuban
1916            can still read files generated by Thuban 0.9
1917    
1918            * Thuban/Model/save.py (SessionSaver.write)
1919            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
1920            namespace
1921            (SessionSaver.write_projection): Write the projection's epsg
1922            attribute
1923    
1924            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
1925            thuban-1.0-dev.dtd namespace
1926            (SessionLoader.check_attrs): Allow a callable object as conversion
1927            too
1928            (SessionLoader.start_projection, SessionLoader.end_projection)
1929            (SessionLoader.start_parameter): Handle the epsg attribute and
1930            rename a few instance variables to lower case
1931    
1932            * Resources/XML/thuban-1.0.dtd: New. Only difference to
1933            thuban-0.9.dtd is the epsg attribute for projections.
1934    
1935    2003-10-21  Bernhard Herzog  <[email protected]>
1936    
1937            * test/runtests.py (main): Let the user specify which tests to run
1938            on the command line
1939    
1940            * test/support.py (ThubanTestResult.getDescription): Override to
1941            give a better short description. The description can be used as a
1942            parameter to run_tests to run that particular test in isolation.
1943    
1944    2003-10-21  Frank Koormann   <[email protected]>
1945    
1946            Popup menu for legend. Scheduled for the 1.2 release this was too
1947            simple to implement: The popup menu is bound to the legend tree, while
1948            the events are hanlded by its anchestor, the legend panel. This
1949            allows reuse of all the event handlers already implemented for the
1950            legend toolbar buttons.
1951    
1952            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
1953            to add handlers for the events issued by the popup menu.
1954            (LegendPanel._OnToggleVisibility): Handler for toggling layer
1955            visibility event
1956            (LegendPanel._OnProjection): Handler for layer projection event.
1957            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
1958            (LegendTree._OnRightClick): Event handler for right click, select item
1959            and pop up menu.
1960            (LegendTree.ToggleVisibility): Toggle layer visibility
1961            (LegendTree.LayerProjection): Raise layer projection dialog for
1962            current layer.
1963    
1964    2003-10-21  Bernhard Herzog  <[email protected]>
1965    
1966            * Resources/Projections/defaults.proj: Use correct DOCTYPE
1967            declaration. The top-level element is projectionlist not projfile
1968    
1969    2003-10-20  Bernhard Herzog  <[email protected]>
1970    
1971            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
1972            method to write a projfile and display a busy cursor and error
1973            dialogs.
1974            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
1975            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
1976            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
1977            busy cursor while loading the user and system prj files.
1978    
1979    2003-10-16  Bernhard Herzog  <[email protected]>
1980    
1981            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
1982            ProjFile objects
1983            (clear_proj_file_cache): New function to clear the cache. Mainly
1984            useful for use by the test suite
1985            (read_proj_file): Use the cache.
1986    
1987            * test/test_proj.py (TestProjFile): Clarify the doc-string
1988            (ProjFileReadTests): Update doc-string
1989            (ProjFileReadTests.test_get_system_proj_file): Check whether the
1990            system proj files is cached.
1991            (ProjFileLoadTestCase): New base class for the proj file tests
1992            derived from support.FileLoadTestCase to provide some common
1993            behavior.
1994            (TestLoadingProjFile)
1995            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
1996            (TestProjFileWithInvalidParameters.file_contents): Derive from
1997            ProjFileLoadTestCase
1998            (TestLoadingProjFile.test_caching): New. Test whether the cache
1999            works
2000    
2001    2003-10-16      Silke Reimer    <[email protected]>
2002    
2003            * debian/*: New directory with configuration files for building a thuban
2004              deb-package.
2005    
2006    2003-10-14  Bernhard Herzog  <[email protected]>
2007    
2008            * test/test_proj.py: Execute support.run_tests when run as
2009            __main__ so that missing unsubscribes are detected
2010            (TestProjFile.tearDown): Destroy the proj_file properly
2011    
2012    2003-10-14  Bernhard Herzog  <[email protected]>
2013    
2014            * Thuban/Model/messages.py (PROJECTION_ADDED)
2015            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
2016            the ProjFile objects
2017    
2018            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
2019            easily send messages when the projections change
2020            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
2021            when the change was successful
2022    
2023            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
2024            proj file messages
2025            (TestProjFile.test_add_remove)
2026            (TestProjFile.test_remove_non_existing)
2027            (TestProjFile.test_replace)
2028            (TestProjFile.test_replace_non_existing): Test whether the right
2029            messages are sent
2030    
2031    2003-10-14  Bernhard Herzog  <[email protected]>
2032    
2033            * test/test_proj.py (TestProjFile.test): Refactor into several
2034            tests
2035            (TestProjFile.test_add_remove)
2036            (TestProjFile.test_remove_non_existing)
2037            (TestProjFile.test_replace)
2038            (TestProjFile.test_replace_non_existing): Some of the new
2039            individual test cases
2040            (TestProjFileSimple): New class for the rest of the test cases
2041            that came out of the refactoring
2042            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
2043            derived classes don't have to
2044    
2045    2003-10-13  Bernhard Herzog  <[email protected]>
2046    
2047            Add an optional EPSG code to the projection objects and extend the
2048            .proj file format accordingly.
2049    
2050            * Resources/XML/projfile.dtd (element projection): Add epsg
2051            attribute
2052    
2053            * Thuban/Model/proj.py (Projection.__init__): New parameter and
2054            instance variable epsg. Update doc-string
2055            (Projection.EPSGCode, Projection.Label): New methods to provide
2056            access to EPSG code and a label for use in dialogs
2057    
2058            * Thuban/Model/resource.py (ProjFileReader.start_projection)
2059            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
2060            Handle the epsg code attribute when reading or writing proj files
2061    
2062            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
2063            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
2064            (ProjFrame.__FillAvailList): Use the projection's Label method to
2065            get the string for the list box
2066    
2067            * test/test_proj.py (TestProjection.test_label)
2068            (TestProjection.test_label_epsg)
2069            (TestProjection.test_epsgcode_for_non_epsg_projection)
2070            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
2071            for the label and EPSGCode methods
2072            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
2073            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
2074            objects in the test cases and put the expected contents into the
2075            test case methods too. Update doTestWrite accordingly
2076            (TestLoadingProjFile)
2077            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
2078            read tests from TestProjFile.
2079            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
2080            tests are now in the new classes.
2081            (sample_projfile, sample_projfile_data)
2082            (sample_projfile2, sample_projfile_data2): Removed. Not used
2083            anymore.
2084            (TestProjFile.test_read_unreadable_file): No need to reset the
2085            permissions at the end anymore since we use a unique filename
2086    
2087    2003-10-13  Bernhard Herzog  <[email protected]>
2088    
2089            * test/test_proj.py: Some more refactoring of the test cases
2090            (ProjFileTest): New base class for the proj file tests.
2091            (TestProjFile): Derive from ProjFileTest
2092            (TestProjFile.test_read_unreadable_file)
2093            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
2094            the new filename method to get a unique filename
2095            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
2096            (WriteProjFileTests): New class for proj file write tests.
2097            Contains the write test that were in TestProjFile originally.
2098    
2099    2003-10-13  Bernhard Herzog  <[email protected]>
2100    
2101            * test/test_proj.py (TestProjFile.testRead)
2102            (TestProjFile.test_read_non_existing_file)
2103            (TestProjFile.test_read_unreadable_file)
2104            (TestProjFile.test_read_empty_file): Split into several methods.
2105    
2106    2003-10-10  Bernhard Herzog  <[email protected]>
2107    
2108            * Thuban/UI/sizers.py: New file with custom sizers.
2109    
2110            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
2111            all projection type specific panels and put them into a
2112            NotebookLikeSizer. This way the dialog doesn't change its size
2113            when a different projection is selected
2114            (ProjFrame.__init__): Rename projection_panels
2115            projection_panel_defs and reuse projection_panels for a list of
2116            the instantiated panels.
2117            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
2118            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
2119            the panels
2120            (UnknownProjPanel._DoLayout): Place the newlines in the message
2121            differently to make the panel narrower.
2122            (TMPanel._DoLayout): Layout the parameters in one column.
2123    
2124    2003-10-10  Bernhard Herzog  <[email protected]>
2125    
2126            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
2127            that contains all the setup for the dialog's widgets, layout and
2128            event handling.
2129            (__): Call build_dialog to build the dialog.
2130            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
2131            Their functionality is now in build_dialog
2132            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
2133            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
2134            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
2135            different widget names and hierarchy introduced with build_dialog.
2136    
2137    2003-10-10  Bernhard Herzog  <[email protected]>
2138    
2139            * README: Fix typo.
2140    
2141    2003-10-09  Bernhard Herzog  <[email protected]>
2142    
2143            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
2144            projection is already in the list. This is *a lot* faster when
2145            loading files with hundreds of projections since it saves a linear
2146            search. OTOH this will allow adding the same projection to the
2147            user.proj file multiple times in the projection dialog but we'll
2148            deal with that later
2149    
2150    2003-10-09  Jan-Oliver Wagner <[email protected]>
2151    
2152            * devtools: New. Directory for developer tools that are not intended
2153            for the regular user.
2154    
2155            * devtools/create_epsg.py: New. Convert the epsg file of proj into
2156            a python .proj file.
2157    
2158    2003-10-09  Bernhard Herzog  <[email protected]>
2159    
2160            * test/test_proj.py
2161            (TestProjection.test_get_parameter_without_equals_sign): New. Test
2162            whether GetParameter handles parameters without "=" sign correctly
2163    
2164            * Thuban/Model/proj.py (Projection.GetParameter): Handle
2165            parameters that do not contain a "=". Update the doc-string
2166    
2167    2003-10-08  Bernhard Herzog  <[email protected]>
2168    
2169            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
2170            length limit on the projname text control
2171    
2172    2003-10-08  Bernhard Herzog  <[email protected]>
2173    
2174            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
2175            (TestProjection.test_get_projection_units_normal): New. Tests for
2176            the Projection.GetProjectedUnits method
2177    
2178    2003-10-08  Jan-Oliver Wagner <[email protected]>
2179    
2180            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
2181            Added missing 'val' parameter.
2182    
2183    2003-10-08  Bernhard Herzog  <[email protected]>
2184    
2185            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
2186            projection type of the currently selected projection is not known,
2187            i.e. there's no panel for it, use the UnknownProjPanel
2188            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
2189            the actual replacing of the proj panel into the new method
2190            _show_proj_panel.
2191            (UnknownProjPanel): Add doc-string.
2192            (UnknownProjPanel._DoLayout): Insert a newline into the text so
2193            that the panel is not so wide.
2194    
2195    2003-10-08  Bernhard Herzog  <[email protected]>
2196    
2197            * Thuban/Model/resource.py (read_proj_file): Return the warnings
2198            too. Update the doc-string
2199            (get_proj_files): Removed. It wasn't used anywhere
2200            (get_system_proj_files, get_system_proj_file): Rename to
2201            get_system_proj_file and return the ProjFile object and not a list
2202            of ProjFile objects. Update the callers.
2203            (get_user_proj_files, get_user_proj_file): Rename to
2204            get_user_proj_file return the ProjFile object and not a list of
2205            ProjFile objects. Update the callers.
2206            (ProjFileReader.__init__): New instance variable for the warnings.
2207            Rename the __pf ivar to projfile. Update the methods referring to
2208            __pf
2209            (ProjFileReader.end_projection): Catch any errors raised when
2210            instantiating the projection and record that as an error. The
2211            projection will not be in the final ProjFile object.
2212            (ProjFileReader.GetWarnings): New method to return the warnings.
2213    
2214            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
2215            show the warnings from the projfile reader
2216            (ProjFrame._OnImport): Deal with any warnings returned by
2217            read_proj_file
2218            (ProjFrame.__FillAvailList): Deal with any warnings returned by
2219            get_system_proj_file or get_user_proj_file.
2220    
2221            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
2222            (TestProjFileWithInvalidParameters.file_contents): New test cases
2223            to test whether read_proj_file handles invalid projection
2224            parameters correctly
2225            (TestProjFile.test_get_system_proj_file): New. Simple test for
2226            resource.get_system_proj_file
2227    
2228    2003-10-07  Bernhard Herzog  <[email protected]>
2229    
2230            * test/test_derivedshapestore.py
2231            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
2232            properly so that the temporary directories get deleted correctly
2233    
2234    2003-10-06  Bernhard Herzog  <[email protected]>
2235    
2236            Handle the title changes in a proper MVC way.
2237    
2238            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
2239            canvas' TITLE_CHANGED messages
2240            (MainWindow.update_title): New. Update the main window's title
2241            (MainWindow.__SetTitle): Removed. Use update_title instead.
2242            (MainWindow.SetMap): Use update_title instead of __SetTitle
2243            (MainWindow.RenameMap): Do change the window title explicitly
2244            here. That's handled in a proper MVC way now.
2245            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
2246            messages
2247    
2248            * Thuban/Lib/connector.py (Conduit): New class to help classes
2249            that forward messages
2250    
2251            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
2252            (ViewPort): Derive from Conduit instead of Publisher
2253            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
2254            when calling the inherited versions
2255            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
2256            methods to subscribe and unsubscribe map messages
2257            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
2258            handle the map subscriptions
2259            (ViewPort.Map, ViewPort.map_projection_changed)
2260            (ViewPort.layer_projection_changed): Add or update doc-strings
2261    
2262            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
2263            typo
2264            (MyConduit): Helper class for the Conduit test.
2265            (TestConduit): Test cases for Conduit
2266    
2267            * test/test_connector.py: Use support.run_tests as main.
2268    
2269            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
2270            the TITLE_CHANGED messages
2271            (ViewPortTest.test_forwarding_title_changed): New test to check
2272            whether the viewport forwards the map's TITLE_CHANGED messages
2273            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
2274            after the port's because the latter may require a still functional
2275            map.
2276    
2277    2003-10-06  Bernhard Herzog  <[email protected]>
2278    
2279            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
2280            doc-string
2281    
2282    2003-10-06  Bernhard Herzog  <[email protected]>
2283    
2284            * test/test_viewport.py (ViewPortTest.setUp)
2285            (SimpleViewPortTest.test_init_with_size): Move the test for the
2286            initial size as a constructor parameter from ViewPortTest.setUp
2287            method to a new separate test in SimpleViewPortTest.
2288    
2289    2003-10-06  Bernhard Herzog  <[email protected]>
2290    
2291            * test/test_viewport.py (MockView): New class derived from
2292            ViewPort with a mock implementation of GetTextExtent to be used in
2293            the test cases
2294            (ViewPortTest.setUp): Use MockView instead of ViewPort
2295    
2296            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
2297            into what would be a "pure virtual function" in C++: always raise
2298            NotImplementedError. Mock implementations for test cases don't
2299            belong into the real code
2300    
2301    2003-10-02  Bernhard Herzog  <[email protected]>
2302    
2303            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
2304            close the dbf file we create so that it's contents have been
2305            written properly.
2306    
2307            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
2308            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
2309            Update to shapelib 1.2.10
2310    
2311    2003-10-01  Jan-Oliver Wagner <[email protected]>
2312    
2313            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
2314            it annoys lintian which warns about these files not being
2315            executable. The #! isn't necessary here since if you absolutely
2316            must execute them you can always say "python <filename>".
2317    
2318    2003-09-26  Bernhard Herzog  <[email protected]>
2319    
2320            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
2321            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
2322            is ported to a newer the import will fail, so it should be noticed
2323            immediately that this function is gone.
2324            Fixes RT#1919
2325    
2326    2003-09-26  Bernhard Herzog  <[email protected]>
2327    
2328            Add a DTD for the projection files and make thuban write valid
2329            projection files
2330    
2331            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
2332            files
2333    
2334            * Thuban/Model/resource.py (ProjFileSaver.write): Use
2335            'projectionlist' as the name in the document type declaration so
2336            that it matches the element type of the root element.
2337    
2338            * test/test_proj.py (sample_projfile, sample_projfile2): Use
2339            'projectionlist' as the name in the document type declaration just
2340            as it is done now in the files thuban would write
2341            (sample_projfile, sample_projfile_data): Fix spelling of
2342            "Mercator"
2343            (TestProjFile.doTestWrite): Validate the written and the expected
2344            XML data
2345            (TestProjFile): Derive from ValidationTest so that we can run xml
2346            validation tests
2347    
2348    2003-09-24  Bernhard Herzog  <[email protected]>
2349    
2350            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
2351            modify the list returned by map.Layers() in place since it is the
2352            actual list of layers used by the map.
2353    
2354    2003-09-23  Jan-Oliver Wagner <[email protected]>
2355    
2356            * Doc/manual/thuban-manual.xml: Added subsection to chapter
2357            Extensions to describe the extensions coming with the Thuban
2358            standard package (gns2shp and importAPR).
2359    
2360    2003-09-23  Bernhard Herzog  <[email protected]>
2361    
2362            * libraries/thuban/wxproj.cpp (project_point): if there's an
2363            inverse but no forward projection, convert to degrees after
2364            applying the inverse projection. Fixes RT#2096
2365    
2366            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
2367            implicitly tests for the fix to RT#2096
2368    
2369            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
2370            Check that the sequences have the same lengths
2371    
2372            * Resources/Projections/defaults.proj (Geographic projection): Use
2373            a much more precise value for the to_meter attribute.
2374    
2375    2003-09-22  Bernhard Herzog  <[email protected]>
2376    
2377            * test/support.py (initthuban): Make sure to unset the LANG env.
2378            var. so that tests that compare translated strings work. Solves RT
2379            #2094
2380    
2381    2003-09-22  Jan-Oliver Wagner <[email protected]>
2382    
2383            Small improvement of APR import.
2384    
2385            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
2386            Added tests for text-ranges.
2387    
2388            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
2389            returns a string object if the range is based on text.
2390    
2391            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
2392            range retrieval.
2393    
2394    2003-09-22  Jan-Oliver Wagner <[email protected]>
2395    
2396            Initial version of the importAPR extension which is in
2397            experimental state.
2398    
2399            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
2400            /Extensions/importAPR/test/: New directories.
2401    
2402            * /Extensions/importAPR/samples/README: New: Howto load the samples.
2403    
2404            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
2405            file which refers to the Thuban Iceland demo data.
2406    
2407            * /Extensions/importAPR/test/README: New: Howto execute the tests.
2408    
2409            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
2410    
2411            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
2412            as in '.apr'-files.
2413    
2414            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
2415            ODB Objects as in '.apr', '.avl' and other files.
2416    
2417            * /Extensions/importAPR/__init__.py: New: Init to make this
2418            directory a package.
2419    
2420            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
2421            project file (.apr) and convert it to Thuban.
2422    
2423    2003-09-22  Jan-Oliver Wagner <[email protected]>
2424    
2425            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
2426    
2427    2003-09-19  Jan-Oliver Wagner <[email protected]>
2428    
2429            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
2430            with description on RPM installation and RPM binary package
2431            creation.
2432    
2433    2003-09-18  Bernhard Herzog  <[email protected]>
2434    
2435            * setup.py (data_files): Only add the mo files if the Locales
2436            directory actually exists, so that setup.py works with a fresh CVS
2437            checkout
2438    
2439    2003-09-12  Jan-Oliver Wagner <[email protected]>
2440    
2441            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
2442            in viewport, not anymore in view
2443    
2444    2003-09-04  Jan-Oliver Wagner <[email protected]>
2445    
2446            Introducing first Extension (gns2shp).
2447    
2448            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
2449    
2450            * Extensions/__init__.py: New. init to make this dir a package.
2451    
2452            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
2453    
2454            * Extensions/gns2shp/test/README: New. some info on this test directory.
2455    
2456            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
2457    
2458            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
2459            of Shapefile from GNS text file format
2460    
2461    2003-09-03  Jan-Oliver Wagner <[email protected]>
2462    
2463            Fix/workaround for bug #2019:
2464            https://intevation.de/rt/webrt?serial_num=2019
2465    
2466            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
2467            (IdentifyView.__init__): Added another button that allows to
2468            stop the identify mode.
2469            (IdentifyView.OnStop): New. Stops the identify mode.
2470    
2471    2003-09-03  Jan-Oliver Wagner <[email protected]>
2472    
2473            Introducing a new exception dialog that allows to exit the
2474            application immediately.
2475            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
2476    
2477            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
2478    
2479            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2480            Made strings available to translations. Exchanged the simple
2481            ScrolledMessageDialog by the new ExceptionDialog.
2482    
2483    2003-09-01  Bernhard Herzog  <[email protected]>
2484    
2485            * NEWS: New. Summary of changes and release notes.
2486    
2487            * MANIFEST.in: Add NEWS
2488    
2489    2003-09-01  Bernhard Herzog  <[email protected]>
2490    
2491            * MANIFEST.in: Correct the include statement for the mo-files and
2492            include the documentation too.
2493    
2494            * setup.py (data_files): Add the .mo files
2495            (setup call): Up to version 0.9.0
2496    
2497    2003-09-01  Bernhard Herzog  <[email protected]>
2498    
2499            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
2500            parameter list to just parent and session
2501            (ChooseDBTableDialog.__set_properties): Removed. Setting the
2502            selection of empty list boxes is not allowed (and produces C++
2503            assertion errors) and the rest of the setup is better done in
2504            __init__ anyway.
2505            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
2506            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
2507            builtins True/False for booleans to avoid warnings from wxPython
2508    
2509            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
2510            ChooseDBTableDialog constructor parameters.
2511    
2512    2003-09-01  Bernhard Herzog  <[email protected]>
2513    
2514            * Thuban/Model/postgisdb.py
2515            (PostGISTable): Extend doc-string
2516            (PostGISTable._fetch_table_information): Set the column index
2517            correctly, pretending ignored columns don't exist.
2518    
2519            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
2520            for postgis tables with data types not yet supported by thuban.
2521    
2522    2003-08-29  Bernhard Herzog  <[email protected]>
2523    
2524            * HOWTO-Release: Tweak item about running the tests.
2525    
2526    2003-08-29  Jan-Oliver Wagner <[email protected]>
2527    
2528            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
2529    
2530    2003-08-29  Bernhard Herzog  <[email protected]>
2531    
2532            Add some missing parameters to projections. Proj complains about
2533            them on windows but for some reason not on Linux.
2534    
2535            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
2536            missing required projection parameters
2537    
2538            * test/test_proj.py (TestProjFile.test): Add missing required
2539            projection parameters
2540    
2541            * test/test_load_0_8.py (TestLayerProjection.file_contents)
2542            (TestLayerProjection.test): Add missing required projection
2543            parameters and tests for them
2544    
2545            * test/test_load.py (TestLayerProjection.file_contents)
2546            (TestLayerProjection.test): Add missing required projection
2547            parameters and tests for them
2548    
2549            * test/test_layer.py (TestLayer.test_base_layer): Add missing
2550            required projection parameters
2551    
2552    2003-08-29  Bernhard Herzog  <[email protected]>
2553    
2554            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
2555            access the pj_errno because directly accessing pj_errno doesn't
2556            work on windows if the proj library is in a DLL
2557    
2558            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
2559    
2560    2003-08-28  Bernhard Herzog  <[email protected]>
2561    
2562            * test/test_proj.py: Import things from Thuban after calling
2563            initthuban
2564    
2565            * test/test_load.py (LoadSessionTest.filenames): New class
2566            variable with the filename attributes to normalize
2567            (LoadSessionTest.check_format): Pass self.filenames to
2568            sax_eventlist to normalize the filename attributes
2569    
2570            * test/xmlsupport.py: Add cvs keywords
2571            (SaxEventLister.__init__): New parameter filenames which indicates
2572            attributes that contain filenames
2573            (SaxEventLister.startElementNS): Normalize the filename attributes
2574            with os.path.normpath
2575            (sax_eventlist): New parameter filenames to pass through to
2576            SaxEventLister
2577    
2578            * test/test_derivedshapestore.py: Make this file callable as a
2579            program to execute the tests
2580            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
2581            the session to self.session so that it gets destroyed properly
2582    
2583            * test/test_layer.py (TestLayer.tearDown): Call the session's
2584            Destroy method
2585    
2586            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
2587            too if it exists
2588            (TestMapAddLayer.test_add_layer): Bind the session to self.session
2589            so that it gets destroyed properly
2590    
2591            * test/postgissupport.py (reason_for_not_running_tests): Add a
2592            test for the existence of popen2.Popen4.
2593    
2594            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
2595            reliable way to destroy the sessions created in the test cases
2596            (SaveSessionTest.test_dbf_table): Bind the session to self.session
2597            so that it gets destroyed properly
2598            (SaveSessionTest.testLayerProjection): Bind the session to
2599            self.session so that it gets destroyed properly
2600    
2601            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
2602            sure that the session is destroyed properly
2603    
2604            * test/test_shapefilestore.py: Make this callable as a program to
2605            execute the tests
2606    
2607            * test/test_scalebar.py: Remove unnecessary import of _ from
2608            Thuban
2609    
2610            * test/support.py (print_garbage_information): Call initthuban
2611            here because it may be called indirectly from test cases that test
2612            test support modules which do not use anything from thuban itself
2613            (ThubanTestProgram.runTests): Remove unnecessary debug print
2614    
2615    2003-08-28  Bernhard Herzog  <[email protected]>
2616    
2617            * Thuban/version.py (longversion): Update to 0.9
2618    
2619            * Thuban/UI/mainwindow.py: Remove some unused imports
2620    
2621            * README: Add section about required additional software. Add date
2622            and revision CVS keywords
2623    
2624            * HOWTO-Release: Add item about the translations. Add date and
2625            revision CVs keywords and change formatting to match README a bit
2626            better
2627    
2628            * po/de.po: Update for 0.9
2629    
2630            * test/README: Tweak the wording a little because many tests are
2631            not really unittest.
2632    
2633    2003-08-27  Bernhard Herzog  <[email protected]>
2634    
2635            As preparation for the 0.9 release, switch thuban files to a
2636            non-dev namespace
2637    
2638            * Thuban/Model/save.py (SessionSaver.write_session): Write files
2639            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
2640            namespace
2641    
2642            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
2643            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
2644    
2645            * test/test_save.py (SaveSessionTest.dtd)
2646            (SaveSessionTest.testEmptySession)
2647            (SaveSessionTest.testSingleLayer)
2648            (SaveSessionTest.testLayerProjection)
2649            (SaveSessionTest.testRasterLayer)
2650            (SaveSessionTest.testClassifiedLayer)
2651            (SaveSessionTest.test_dbf_table)
2652            (SaveSessionTest.test_joined_table)
2653            (SaveSessionTest.test_save_postgis): Update for new namespace
2654    
2655            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
2656            (TestLayerVisibility.file_contents, TestLabels.file_contents)
2657            (TestLayerProjection.file_contents)
2658            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2659            (TestPostGISLayer.file_contents)
2660            (TestPostGISLayerPassword.file_contents)
2661            (TestLoadError.file_contents, TestLoadError.test): Update for new
2662            namespace
2663    
2664    2003-08-27  Bernhard Herzog  <[email protected]>
2665    
2666            Make the table interface distinguish between row ids (an integer
2667            that uniquely identifies a row) and row ordinals (a simple row
2668            count from 0 to NumRows() - 1)
2669    
2670            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
2671            (PostGISTable.RowOrdinalToId): New methods to conver between row
2672            ids and row ordinals
2673            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
2674            parameter row_is_ordinal to indicate whether the row parameter is
2675            the row id or the ordinal
2676    
2677            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
2678            (TransientTableBase.RowOrdinalToId)
2679            (AutoTransientTable.RowIdToOrdinal)
2680            (AutoTransientTable.RowOrdinalToId): Same new methods as in
2681            PostGISTable.
2682            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
2683            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
2684            Same new parameter as in PostGISTable.
2685    
2686            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
2687            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
2688            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
2689            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
2690            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
2691            parameter as in PostGISTable.
2692    
2693            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
2694            (DataTable.RowOrdinalToId): New methods to convert between row ids
2695            and row ordinals.
2696            (TableGrid.SelectRowById): New method to select a row based on its
2697            ID as opposed to its ordinal
2698            (DataTable.GetValue, TableGrid.OnRangeSelect)
2699            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
2700            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
2701            (LayerTableFrame.__init__): Convert between row ids and row
2702            ordinals as appropriate
2703    
2704            * test/postgissupport.py (PostGISDatabase.__init__): Add
2705            doc-string.
2706            (PostGISDatabase.initdb): The optional third item in a tuple in
2707            tables is now a (key, value) list with additional arguments to
2708            pass to upload_shapefile
2709            (upload_shapefile): New parameter gid_offset to allow gids that
2710            are not the same as the shapeids in the shapefile
2711            (PostgreSQLServer.get_default_static_data_db): Use the new
2712            gid_offset to make the gids in landmarks 1000 higher than the
2713            shapeids in the shapefile
2714    
2715            * test/test_viewport.py
2716            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
2717            new shapeids in the landmarks table
2718    
2719            * test/test_transientdb.py
2720            (TestTransientTable.run_iceland_political_tests)
2721            (TestTransientTable.test_transient_joined_table): Add tests for
2722            the new table methods and new keywords arguments.
2723    
2724            * test/test_postgis_db.py
2725            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
2726            (TestPostGISTable.test_read_value_row_count_mode)
2727            (TestPostGISTable.test_row_id_to_ordinal)
2728            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
2729            table methods and the new arguments
2730            (TestPostGISShapestorePoint.test_shapes_in_region)
2731            (TestPostGISShapestorePoint.test_shape_raw_data)
2732            (TestPostGISShapestorePoint.test_shape_points)
2733            (TestPostGISShapestorePoint.test_shape_shapeid)
2734            (TestPostGISShapestorePoint.test_all_shapes)
2735            (TestPostGISTable.test_simple_query)
2736            (TestPostGISTable.test_simple_query)
2737            (TestPostGISTable.test_simple_query)
2738            (TestPostGISTable.test_read_value)
2739            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
2740            shapeids in the landmarks table
2741    
2742            * test/test_memory_table.py
2743            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
2744            (TestMemoryTable.test_read_value_row_count_mode)
2745            (TestMemoryTable.test_row_id_to_ordinal)
2746            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
2747            table methods and the new arguments
2748    
2749            * test/test_dbf_table.py
2750            (TestDBFTable.test_read_row_as_dict_row_count_mode)
2751            (TestDBFTable.test_read_value_row_count_mode)
2752            (TestDBFTable.test_row_id_to_ordinal)
2753            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
2754            methods and the new arguments
2755    
2756    2003-08-26  Bernhard Herzog  <[email protected]>
2757    
2758            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
2759            more postgis specific but much faster method to get the bounding
2760            box
2761    
2762    2003-08-26  Bernhard Herzog  <[email protected]>
2763    
2764            * Thuban/Model/postgisdb.py (PostGISTable.Title)
2765            (PostGISShapeStore.AllShapes): Add these missing methods.
2766            (PostGISShapeStore.ShapesInRegion): No need to raise
2767            StopIteration. We can simply return
2768    
2769            * test/test_postgis_db.py (TestPostGISTable.test_title)
2770            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
2771            new methods
2772    
2773    2003-08-25  Bernhard Herzog  <[email protected]>
2774    
2775            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
2776    
2777            * test/test_postgis_db.py (PolygonTests): New class containing
2778            those tests from TestPostGISShapestorePolygon that can also be
2779            used to test MUTLIPOLYGON tables
2780            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
2781            so derive from that
2782            (TestPostGISShapestoreMultiPolygon): New class with tests for
2783            MUTLIPOLYGON tables
2784    
2785            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
2786            tables argument to have tuples with three items to override the
2787            WKT type used.
2788            (PostgreSQLServer.get_default_static_data_db): Use the above to
2789            create a polygon table with MUTLIPOLYGONs
2790            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
2791            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
2792            coords_to*
2793            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
2794            (wkt_converter): New. Map WKT types to converters
2795            (upload_shapefile): New parameter force_wkt_type to use a
2796            different WKT type than the default
2797    
2798    2003-08-25  Bernhard Herzog  <[email protected]>
2799    
2800            * Thuban/UI/application.py
2801            (ThubanApplication.run_db_param_dialog): New. Suitable as a
2802            db_connection_callback. Main difference is that the dialog run
2803            from this method doesn't have a parent so it can be used even when
2804            there is no main window
2805            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
2806            no db_connection_callback was given. This way the dialog pops up
2807            even when the .thuban file was given as a command line parameter.
2808    
2809    2003-08-25  Bernhard Herzog  <[email protected]>
2810    
2811            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
2812            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
2813            which leads to an effectively frozen X session because the user
2814            can only interact with the dialog but the mouse is still grabbed
2815            by the canvas.
2816            Also, call the tool's Hide method before MouseLeftUp because
2817            MouseLeftUp may change the tool's coordinates.
2818    
2819    2003-08-25  Bernhard Herzog  <[email protected]>
2820    
2821            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
2822            LoadCancelled exceptions and handle them by returning immediately.
2823    
2824    2003-08-25  Bernhard Herzog  <[email protected]>
2825    
2826            GUI part of loading sessions with postgis connections which may
2827            require user interaction to get passwords or updated parameters
2828    
2829            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
2830            bit nucer and be more generic.
2831            (DBFrame.OnAdd): Adapt to new DBDialog interface
2832    
2833            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
2834            optional parameter db_connection_callback which is passed to
2835            load_session.
2836    
2837            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
2838            Suitable as a db_connection_callback
2839            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
2840            db_connection_callback of the application's OpenSession method
2841    
2842    
2843    2003-08-25  Bernhard Herzog  <[email protected]>
2844    
2845            Basic loading of sessions containing postgis connections:
2846    
2847            * Thuban/Model/load.py (LoadError): Add doc-string
2848            (LoadCancelled): New exception class to indicate a cancelled load
2849            (SessionLoader.__init__): Add the db_connection_callback parameter
2850            which will be used by the loader to get updated parameters and a
2851            password for a database connection
2852            (SessionLoader.__init__): Add the new XML elements to the
2853            dispatchers dictionary
2854            (SessionLoader.check_attrs): Two new conversions, ascii to convert
2855            to a byte-string object and idref as a generic id reference
2856            (SessionLoader.start_dbconnection)
2857            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
2858            elements
2859            (load_session): Add the db_connection_callback to pass through the
2860            SessionLoader
2861    
2862            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
2863            New classes to test loading of sessions with postgis database
2864            connections.
2865    
2866    2003-08-25  Bernhard Herzog  <[email protected]>
2867    
2868            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
2869            replace it and the comment with __BuildDate__ by the Source: and
2870            Id: cvs keywords as used in the other files.
2871    
2872    2003-08-25  Bernhard Herzog  <[email protected]>
2873    
2874            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
2875            LoadError when a required attribute is missing. The code used to
2876            be commented out for some reason, but probably should have been
2877            active.
2878    
2879            * test/test_load.py (TestLoadError.test): Test the message in the
2880            LoadError too to make sure it really is about the missing
2881            attribute
2882    
2883    2003-08-22  Bernhard Herzog  <[email protected]>
2884    
2885            * test/test_save.py (SaveSessionTest.test_dbf_table)
2886            (SaveSessionTest.test_joined_table): Add XML validation tests.
2887    
2888    2003-08-22  Bernhard Herzog  <[email protected]>
2889    
2890            Implement saving a session with a postgis connection
2891    
2892            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
2893            elements for database connections and shapestores using db
2894            connections
2895            (session): Add the dbconnections to the content model
2896    
2897            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
2898            Write the db connections
2899            (SessionSaver.write_session): Call write_db_connections to write
2900            the connection before the data sources
2901            (SessionSaver.write_data_containers): Handle postgis shapestores
2902    
2903            * test/test_save.py (SaveSessionTest.thubanids)
2904            (SaveSessionTest.thubanidrefs): Update for new DTD
2905            (SaveSessionTest.test_save_postgis): New. Test saving a session
2906            with postgis connections
2907    
2908            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
2909            (PostGISTable.TableName): New accessor methods for the connection
2910            and table name
2911    
2912            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
2913            (TestPostGISTable.test_dbname): New methods to test the new
2914            PostGISConnection methods
2915    
2916    2003-08-22  Bernhard Herzog  <[email protected]>
2917    
2918            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
2919            for exceptions occurring when establishing a Database connection
2920            (PostGISConnection.connect): Catch psycopg.OperationalError during
2921            connects and raise ConnectionError.
2922    
2923            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
2924            tests for database exceptions
2925    
2926    2003-08-22  Bernhard Herzog  <[email protected]>
2927    
2928            Prepare the test suite for tests with required authentication
2929    
2930            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
2931            variables with two predefined users/passwords, one for the admin
2932            and one for a non-privileged user.
2933            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
2934            the non-privileged user to the database and set the admin password
2935            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
2936            Better error reporting
2937            (PostgreSQLServer.connection_params)
2938            (PostgreSQLServer.connection_string): New methods to return
2939            information about how to connect to the server
2940            (PostgreSQLServer.execute_sql): New. Convenience method to execute
2941            SQL statements
2942            (PostgreSQLServer.require_authentication): Toggle whether the
2943            server requires authentication
2944            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
2945            Add or alter users
2946            (PostGISDatabase.initdb): Pass the admin name one the
2947            subprocesses' command lines. Grant select rights on
2948            geometry_columns to everybody.
2949            (upload_shapefile): Use the admin name and password when
2950            connecting. Grant select rights on the new table to everybody.
2951    
2952            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
2953            server's new methods to get the connection parameters.
2954    
2955            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
2956            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
2957            server's new methods to get the connection parameters.
2958    
2959            * test/test_postgis_db.py
2960            (TestPostGISConnection.test_gis_tables_empty)
2961            (TestPostGISConnection.test_gis_tables_non_empty)
2962            (PostGISStaticTests.setUp): Use the server's new methods to get
2963            the connection parameters.
2964    
2965    2003-08-22  Bernhard Herzog  <[email protected]>
2966    
2967            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
2968    
2969            * Thuban/version.py: Add psycopg version
2970    
2971            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
2972            version of the psycopg module
2973    
2974    2003-08-22  Bernhard Herzog  <[email protected]>
2975    
2976            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
2977            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
2978            at the moment. The functionality should probably be implemented
2979            some time, though.
2980            (DBFrame.OnRemove): Display a message if the connection can't be
2981            removed because it's still in use.
2982    
2983    2003-08-22  Jan-Oliver Wagner <[email protected]>
2984    
2985            * Thuban/UI/about.py (About.__init__): split up the huge about
2986            text into elements/lists for easier translation. This fixes bug
2987            https://intevation.de/rt/webrt?serial_num=2058
2988            Also, made some forgotten string available for the i18n.
2989    
2990    2003-08-21  Bernhard Herzog  <[email protected]>
2991    
2992            Make postgis support really optional including insensitive menu
2993            items.
2994    
2995            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
2996            whether the postgis is supported.
2997    
2998            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
2999            to make postgis support optional
3000    
3001            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
3002            version of Thuban.Model.postgisdb.has_postgis_support
3003            (database_management command): Make it only sensitive if postgis
3004            is supported.
3005    
3006    2003-08-21  Jan-Oliver Wagner <[email protected]>
3007    
3008            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
3009            (section Adding and Removing Layers): Added text and described
3010            multi-selection.
3011            (chapter Extensions): New.
3012    
3013    2003-08-21  Jan-Oliver Wagner <[email protected]>
3014    
3015            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
3016            settings to allow multiple files to load into the map.
3017            Also reduced selection to *.shp as a default.
3018    
3019    2003-08-20  Bernhard Herzog  <[email protected]>
3020    
3021            Add dialogs and commands to open database connections and add
3022            database layers.
3023    
3024            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
3025            method to open the database connection management dialog
3026            (MainWindow.AddDBLayer): New method to add a layer from a database
3027            (_has_dbconnections): New helper function to use for sensitivity
3028            (database_management command, layer_add_db command): New commands
3029            that call the above new methods.
3030            (main_menu): Add the new commands to the menu.
3031    
3032            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
3033            (PostGISConnection.connect): Establish the actual connection in a
3034            separate method and call it in __init__. This makes it easier to
3035            override the behavior in test cases
3036            (PostGISConnection.BriefDescription): New method to return a brief
3037            description for use in dialogs.
3038    
3039            * test/test_postgis_db.py (NonConnection): DB connection that
3040            doesn't actually connect
3041            (TestBriefDescription): New class with tests for the new
3042            BriefDescription method
3043    
3044    2003-08-19  Jan-Oliver Wagner <[email protected]>
3045    
3046            Moved anything from extensions to libraries.
3047    
3048            * libraries: New.
3049    
3050            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
3051    
3052            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
3053            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
3054            been moved here from thuban/extensions/pyprojection/
3055            See there in the Attic for the older history.
3056    
3057            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
3058            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
3059            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
3060            have been moved here from thuban/extensions/pyshapelib/
3061            See there in the Attic for the older history.
3062    
3063            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
3064            files have been moved here from thuban/extensions/shapelib/
3065            See there in the Attic for the older history.
3066    
3067            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
3068            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
3069            thuban/extensions/thuban/
3070            See there in the Attic for the older history.
3071    
3072            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
3073    
3074            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
3075            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
3076    
3077            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
3078            Moved to libraries/shapelib.
3079    
3080            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
3081            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
3082            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
3083            Moved to libraries/pyshapelib.
3084    
3085            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
3086            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
3087            Moved to libraries/pyprojection.
3088    
3089            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
3090    
3091            * extensions: Removed.
3092    
3093    2003-08-19  Bernhard Herzog  <[email protected]>
3094    
3095            * test/test_viewport.py (ViewPortTest): We don't use the
3096            facilities of FileTestMixin so don't derive from it.
3097            (TestViewportWithPostGIS): New class with tests for using a
3098            viewport on a map with postgis layers.
3099    
3100    2003-08-19  Bernhard Herzog  <[email protected]>
3101    
3102            Add the db connection management to the session.
3103    
3104            * Thuban/Model/session.py (Session.__init__): New instance
3105            variable db_connections
3106            (Session.AddDBConnection, Session.DBConnections)
3107            (Session.HasDBConnections, Session.CanRemoveDBConnection)
3108            (Session.RemoveDBConnection): New methods to manage and query the
3109            db connections managed by the session
3110            (Session.OpenDBShapeStore): New method to open a shapestore from a
3111            db connection
3112    
3113            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
3114            messages for the db connection handling in the session
3115    
3116            * test/test_postgis_session.py: New. test cases for the session's
3117            db connection handling with postgis connections
3118    
3119    2003-08-19  Bernhard Herzog  <[email protected]>
3120    
3121            Add very basic postgis database support and the corresponding test
3122            cases. The test cases require a PostgreSQL + postgis installation
3123            but no existing database. The database will be created
3124            automatically by the test cases
3125    
3126            * test/README: Add note about skipped tests and the requirements
3127            of the postgis tests.
3128    
3129            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
3130    
3131            * test/test_postgis_db.py: New. Test cases for the postgis
3132            support.
3133    
3134            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
3135            format
3136    
3137            * test/test_wellknowntext.py: New. Test cases for the
3138            wellknowntext parser
3139    
3140            * test/postgissupport.py: New. Support module for tests involving
3141            a postgis database.
3142    
3143            * test/support.py (execute_as_testsuite): Shut down the postmaster
3144            if it's still running after the tests
3145    
3146            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
3147            well known text format
3148    
3149    2003-08-19  Jan-Oliver Wagner <[email protected]>
3150    
3151            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
3152            message dialog.
3153    
3154    2003-08-18  Bernhard Herzog  <[email protected]>
3155    
3156            * test/support.py (ThubanTestResult.printErrors): Indent the
3157            reason for the skips in the output to make it a bit more readable.
3158            (execute_as_testsuite): New helper function to run a test suite
3159            and print some more information.
3160            (run_tests): Use execute_as_testsuite to run the tests
3161    
3162            * test/runtests.py (main): Use execute_as_testsuite to run the
3163            tests
3164    
3165    2003-08-18  Bernhard Herzog  <[email protected]>
3166    
3167            Fix some bugs in Thuban and the test suite that were uncovered by
3168            changes introduced in Python 2.3:
3169    
3170            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
3171            filename is an absolute name
3172    
3173            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
3174            filename is an absolute name
3175    
3176            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
3177            unique filename to save to and use the correct relative filename
3178            in the expected output.
3179            (SaveSessionTest.test_dbf_table): Use the correct relative
3180            filename in the expected output.
3181    
3182            * test/test_layer.py (TestLayer.test_raster_layer): Update the
3183            test to check whether the filename is absolute.
3184    
3185    2003-08-18  Jan-Oliver Wagner <[email protected]>
3186    
3187            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
3188    
3189    2003-08-15  Bernhard Herzog  <[email protected]>
3190    
3191            Change the way shapes are returned by a shape store. The
3192            ShapesInRegion method returns an iterator over actual shape
3193            objects instead of a list of shape ids.
3194    
3195            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
3196            id.
3197            (ShapefileStore.ShapesInRegion): Return an iterator over the
3198            shapes which yields shape objects instead of returning a list of
3199            shape ids
3200            (ShapefileStore.AllShapes): New. Return an iterator over all
3201            shapes in the shape store
3202            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
3203    
3204            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
3205            doc-string.
3206    
3207            * Thuban/UI/baserenderer.py
3208            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
3209            layer_shapes and make it return an iterator containg shapes
3210            instead of a list of ids.
3211            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
3212            layer_shapes() change
3213    
3214            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
3215            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
3216    
3217            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
3218            changes in the ShapesInRegion return value.
3219            (ViewPort._get_hit_tester): Remove commented out code
3220    
3221            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
3222            new return value.
3223            (SimpleShapeStore.AllShapes): New. Implement this method too.
3224    
3225            * test/test_layer.py (TestLayer.test_arc_layer)
3226            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
3227            (TestLayer.test_point_layer_with_projection)
3228            (TestLayer.test_derived_store): Adapt to changes in the
3229            ShapesInRegion return value.
3230    
3231            * test/test_shapefilestore.py
3232            (TestShapefileStoreArc.test_shapes_in_region)
3233            (TestShapefileStorePolygon.test_shapes_in_region)
3234            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
3235            in the ShapesInRegion return value.
3236            (TestShapefileStorePoint.test_all_shapes)
3237            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
3238            methods
3239    
3240            * test/test_derivedshapestore.py
3241            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
3242            the ShapesInRegion return value.
3243            (TestDerivedShapeStore.test_all_shapes)
3244            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
3245            methods
3246    
3247    2003-08-15  Bernhard Herzog  <[email protected]>
3248    
3249            Make the renderers deal correctly with raw vs. python level
3250            representation of shape geometries
3251    
3252            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
3253            Return a flag useraw in addition to the callable and the parameter
3254            to indicate whether the callable can deal with the raw shape data
3255            or uses the higher level python lists of coordinates. The callable
3256            now should accept either the raw data or the return value of the
3257            shape's Points() method.
3258            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
3259            change
3260            (BaseRenderer.projected_points): Instead of the shape id use the
3261            points list as parameter.
3262            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
3263            (BaseRenderer.draw_point_shape): Adapt to projected_points()
3264            change and accept the points list as parameter instead of the
3265            shape id.
3266    
3267            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
3268            the useraw flag as required by the BaseRenderer
3269            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
3270            changes.
3271    
3272            * test/test_baserenderer.py
3273            (TestBaseRenderer.test_point_with_classification): New test for
3274            rendering a map with classifications.
3275    
3276    2003-08-15  Bernhard Herzog  <[email protected]>
3277    
3278            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
3279            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
3280            (ViewPort._get_hit_tester, ViewPort.projected_points)
3281            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
3282            (ViewPort._find_label_at): Split the find_shape_at method into
3283            several new methods and use the functions in the hit-test module.
3284    
3285            * Thuban/UI/hittest.py: New module with Python-level hit-testing
3286            functions
3287    
3288            * test/test_hittest.py: New. Test for the new hittest module
3289    
3290    2003-08-15  Bernhard Herzog  <[email protected]>
3291    
3292            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
3293            projection to all corners of the bounding box to get a better
3294            approximation of the projected bounding box
3295    
3296            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
3297            New. Test coordinate handling of a layer with a projection.
3298            Catches the bug fixed in Layer.ShapesInRegion
3299    
3300    2003-08-15  Bernhard Herzog  <[email protected]>
3301    
3302            Move some of the mock objects in test_baserenderer into their own
3303            module so they can easily be used from other tests
3304    
3305            * test/mockgeo.py: New test helper module with some mock objects
3306            for geometry related things like shapes, shapestores and
3307            projections.
3308    
3309            * test/test_mockgeo.py: New. Tests for the new helper module
3310    
3311            * test/test_baserenderer.py: Some of the mock-objects are in
3312            mockgeo now.
3313    
3314    2003-08-12  Jan-Oliver Wagner <[email protected]>
3315    
3316            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
3317    
3318    2003-08-12  Bernhard Herzog  <[email protected]>
3319    
3320            * po/de.po: New. German translations by Bjoern Broscheit
3321    
3322    2003-08-12  Bernhard Herzog  <[email protected]>
3323    
3324            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
3325            strings have to be one string literal.
3326    
3327    2003-08-11  Bernhard Herzog  <[email protected]>
3328    
3329            * test/support.py (FloatComparisonMixin.assertPointListEquals):
3330            New. This method was used in various derived classes, but it's
3331            better to have it here.
3332    
3333            * test/test_shapefilestore.py
3334            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
3335            FloatComparisonMixin
3336    
3337            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
3338            It's now in FloatComparisonMixin
3339    
3340            * test/test_derivedshapestore.py
3341            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
3342            in FloatComparisonMixin
3343    
3344    2003-08-11  Bernhard Herzog  <[email protected]>
3345    
3346            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
3347            error message
3348    
3349    2003-08-08  Jan-Oliver Wagner <[email protected]>
3350    
3351            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
3352            with version number.
3353            Changed title to reflect version number of Thuban.
3354    
3355    2003-08-08  Jan-Oliver Wagner <[email protected]>
3356    
3357            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
3358            the list corresponds to the "About" web page.
3359    
3360    2003-08-08  Bernhard Herzog  <[email protected]>
3361    
3362            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
3363            Make sure translated strings are recognized as one string literal.
3364    
3365            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
3366            Make sure translated strings are recognized as one string literal.
3367    
3368            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
3369            translated strings are recognized as one string literal.
3370    
3371            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
3372            sure translated strings are recognized as one string literal.
3373    
3374    2003-08-07  Bernhard Herzog  <[email protected]>
3375    
3376            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
3377            Simply delegates to the original shapestore.
3378    
3379            * test/test_derivedshapestore.py
3380            (TestDerivedShapeStore.test_raw_format): New. Test case for
3381            DerivedShapeStore.RawShapeFormat
3382    
3383    2003-08-07  Bernhard Herzog  <[email protected]>
3384    
3385            Add raw data interface to shape objects.
3386    
3387            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
3388            class to ShapefileShape which now holds shapefile specific
3389            information.
3390            (ShapefileShape.compute_bbox): Simplified to not cache any
3391            information. The way this method is used that shouldn't matter
3392            performance wise.
3393            (ShapefileShape.RawData): New. Return the shapeid which is the raw
3394            data format for shapes from shapefiles.
3395            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
3396            in the shape objects returned by a shapestore. For a
3397            ShapefileStore this is always RAW_SHAPEFILE.
3398            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
3399            method.
3400    
3401            * test/test_shapefilestore.py
3402            (TestShapefileStore.test_raw_format): New test to test the raw
3403            format feature of shapes.
3404    
3405            * Thuban/Model/layer.py: Remove the unused import of Shape from
3406            data. It was only there for interface compatibility but it's not
3407            used inside of Thuban and the generic Shape class has gone away.
3408    
3409            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
3410            the raw data format and only use an optimized version of its a
3411            shapefile.
3412    
3413    2003-08-07  Bernhard Herzog  <[email protected]>
3414    
3415            * test/test_baserenderer.py (SimpleShape): Shape class for the
3416            tests.
3417            (SimpleShapeStore.Shape): Use SimpleShape instead of
3418            Thuban.Model.data.Shape to make the tests independed of the coming
3419            changes.
3420    
3421    2003-08-07  Bernhard Herzog  <[email protected]>
3422    
3423            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
3424            (ThubanTestProgram): New classes that extend the respective
3425            classes from unittest. These new version support skipping tests
3426            under certain expected conditions. In the Thuban test suite we
3427            uses this for tests that require the optional gdal support.
3428            (run_tests): Use ThubanTestProgram instead of the unittest.main()
3429    
3430            * test/runtests.py (main): Use the new ThubanTestRunner instead of
3431            the normal one from unittest
3432    
3433            * test/test_layer.py (TestLayer.test_raster_layer): If this test
3434            is not run because gdal support isn't available report this to the
3435            runner.
3436    
3437            * test/test_baserenderer.py
3438            (TestBaseRenderer.test_raster_no_projection): Do not run this test
3439            if gdal support isn't available and report this to the runner.
3440    
3441    2003-08-06  Bernhard Herzog  <[email protected]>
3442    
3443            Rearrange the renderers a bit, partly in preparation for changes
3444            required for the postgis merge, partly to make it more testable.
3445            Also make the representation of coordinates in Shapes more
3446            consistent.
3447    
3448            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
3449            this class is now in BaseRenderer. This class is now practically
3450            only a specialization of BaseRenderer for rendering to an actual
3451            wx DC.
3452            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
3453            to get the shapetype specific rendering functions.
3454    
3455            * Thuban/UI/baserenderer.py: New file with the basic rendering
3456            logic. The code in this file is completely independend of wx.
3457            (BaseRenderer): Class with the basic rendering logic
3458    
3459            * test/test_baserenderer.py: New. Test cases for BaseRenderer
3460    
3461            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
3462            error_on_redraw to guard agains endless loops and stack overflows
3463            when there's a bug in the rendering code that raises exceptions.
3464            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
3465            rendering into a separate method _do_redraw so that error handling
3466            is a bit easier. When an exception occurs, set error_on_redraw to
3467            true. When it's true on entry to OnIdle do nothing and return
3468            immediately.
3469    
3470            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
3471            Shape object will always have the coordinates as a list of list of
3472            coordinate pairs (tuples).
3473            (Shape.compute_bbox): Adapt to new representation.
3474    
3475            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
3476            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
3477            Shape objects.
3478    
3479            * test/test_shapefilestore.py
3480            (ShapefileStoreTests.assertFloatTuplesEqual)
3481            (ShapefileStoreTests.assertPointListEquals): Rename to
3482            assertPointListEquals and change purpose to checking equality of
3483            the lists returned by Shape.Points().
3484            (TestShapefileStoreArc.test_shape)
3485            (TestShapefileStorePolygon.test_shape)
3486            (TestShapefileStorePoint.test_shape): Use the new
3487            assertPointListEquals instead of assertFloatTuplesEqual
3488    
3489            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
3490            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
3491            and change purpose to checking equality of the lists returned by
3492            Shape.Points().
3493            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
3494            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
3495            (TestLayer.test_derived_store): Use the new assertPointListEquals
3496            instead of assertFloatTuplesEqual
3497    
3498            * test/test_derivedshapestore.py
3499            (TestDerivedShapeStore.assertFloatTuplesEqual)
3500            (TestDerivedShapeStore.assertPointListEquals): Rename to
3501            assertPointListEquals and change purpose to checking equality of
3502            the lists returned by Shape.Points().
3503            (TestDerivedShapeStore.test_shape): Use the new
3504            assertPointListEquals instead of assertFloatTuplesEqual
3505    
3506    2003-08-06  Jan-Oliver Wagner <[email protected]>
3507    
3508            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
3509            a bounding box. A dialog is raised in case, no bounding box
3510            is found. This fixes bug #2043:
3511            https://intevation.de/rt/webrt?serial_num=2043
3512    
3513    2003-08-05  Bernhard Herzog  <[email protected]>
3514    
3515            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
3516            object look like a Color instantiation. Formerly it looked like a
3517            tuple.
3518    
3519            * test/test_color.py (TestColor.test_repr)
3520            (TestColor.test_equality, TestColor.test_inequality): New. test
3521            some more apects of the Color class
3522            (TestTransparent.test_repr, TestTransparent.test_hex)
3523            (TestTransparent.test_equality): New. Test cases for the
3524            Transparent object.
3525    
3526    2003-08-04  Jan-Oliver Wagner <[email protected]>
3527    
3528            * Doc/manual/thuban-manual.xml: a number of small improvements.
3529            The resulting file is the version submitted for GREAT-ER II.
3530    
3531    2003-08-01  Bernhard Herzog  <[email protected]>
3532    
3533            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
3534            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
3535            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
3536    
3537            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
3538            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
3539            (ThubanEndBusyCursor): Add doc-strings
3540    
3541    2003-08-01  Bernhard Herzog  <[email protected]>
3542    
3543            First step towards PostGIS integration. More abstraction by movin
3544            more code from the layer to the shapestore. More methods of the
3545            layer are now simply delegated to the equivalent method of the
3546            shapestore. The SHAPETYPE_* constants are now in data not in
3547            layer.
3548    
3549            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
3550            (SHAPETYPE_POINT, Shape): Move these constants and classes from
3551            layer.py to data.py
3552            (ShapefileStore.__init__): More Initialization for the new methods
3553            and functionality.
3554            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
3555            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
3556            (ShapefileStore.Shape): New methods that were formerly implemented
3557            in the layer.
3558            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
3559            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
3560            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
3561            equivalents of the new shape methods. These versions are simply
3562            delegated to the original shapstore.
3563    
3564            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
3565            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
3566            (Layer.SetShapeStore): Removed the initializatin of instance
3567            variables that were needed for the stuff that's now in
3568            ShapefileStore
3569            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
3570            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
3571            shapestore.
3572    
3573            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
3574            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
3575            instead of layer.
3576    
3577            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
3578    
3579            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
3580    
3581            * test/test_layer.py: Import the SHAPETYPE_* constants from data
3582            instead of layer.
3583            (TestLayer.test_derived_store): Remove the test for the exception
3584            when instantiating the DerivedShapeStore with an incompatible
3585            table which is now in test_derivedshapestore.py. Add some more
3586            tests of the layer methods to determine whether they work for a
3587            DerivedShapeStore as well.
3588    
3589    2003-07-31  Jonathan Coles   <[email protected]>
3590    
3591            * Doc/manual/thuban-manual.xml: Fix the list of required packages
3592            by just listing the name and where they can be found.
3593    
3594    2003-07-31  Frank Koormann   <[email protected]>
3595    
3596            * Doc/manual/thuban-manual.xml:
3597            Changed the screenshot elements to figure.
3598            Changed some variablelist elements to itemizedlist.
3599            Added section on GDAL formats.
3600    
3601    2003-07-31  Jonathan Coles   <[email protected]>
3602    
3603            * Doc/manual/thuban-manual.xml: Added a few sentences about
3604            the Fix Border Color option when generating classes.
3605    
3606    2003-07-30  Jonathan Coles   <[email protected]>
3607    
3608            * Thuban/Model/classgen.py: Add docstrings. Rename specific
3609            Ramp instances to use lower_case_style.
3610    
3611            * Thuban/UI/classgen.py: Use renamed Ramp instances.
3612            
3613            * Thuban/UI/classifier.py: Add docstrings.
3614    
3615            * Thuban/UI/dock.py: Add docstrings.
3616    
3617            * test/test_classgen.py: Use renamed Ramp instances.
3618    
3619    2003-07-30  Bernhard Herzog  <[email protected]>
3620    
3621            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
3622            was never used in Thuban.
3623    
3624    2003-07-30  Bernhard Herzog  <[email protected]>
3625    
3626            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
3627            method directly instead of going through the transient_table
3628            method. This faster because transient_table may force the copy of
3629            a DBF file into the transient database and setting a table's title
3630            doesnm't affect the title of the associated transient table, so
3631            this fixes RT #2042
3632    
3633            * Thuban/UI/main.py (__version__): Don't import the already
3634            removed show_exception_dialog.
3635    
3636    2003-07-29  Jonathan Coles   <[email protected]>
3637    
3638            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3639            Put back this method and remove the equivalent function since we
3640            are setting the exception hook from within this class (OnInit).
3641    
3642    2003-07-29  Jonathan Coles   <[email protected]>
3643    
3644            * Doc/manual/images/5_2_custom_ramp.png,
3645            Doc/manual/images/5_2_quantiles.png,
3646            Doc/manual/images/5_2_uniform_dist.png,
3647            Doc/manual/images/5_2_unique_values.png,
3648            Doc/manual/images/8_int_error.png: New screen shots.
3649    
3650            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
3651            some points, and added more screen shots.
3652    
3653    2003-07-29  Bernhard Herzog  <[email protected]>
3654    
3655            * Thuban/Model/data.py: Remove the now unused import of warnings
3656    
3657    2003-07-29  Bernhard Herzog  <[email protected]>
3658    
3659            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
3660            deprecated since before the 0.8 release and isn't used in Thuban
3661            itself anymore.
3662    
3663            * Thuban/Model/transientdb.py: Remove some unnecessary imports
3664    
3665    2003-07-29  Jonathan Coles   <[email protected]>
3666    
3667            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
3668            python exception hook here so that we are sure to catch any
3669            Thuban exception that happen during initialization.
3670    
3671            * Thuban/UI/main.py (main): Don't set the exception hook here,
3672            it will get set in ThubanApplication.OnInit.
3673    
3674    2003-07-29  Jonathan Coles   <[email protected]>
3675                                                                                
3676            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3677            Removed and called it show_exception_dialog() so that the exception
3678            handler can be set before the class is created.
3679                                                                                
3680            * Thuban/UI/main.py (main): Install the exception handler before
3681            a ThubanApplication is created.
3682                                                                                    
3683    2003-07-29  Bernhard Herzog  <[email protected]>
3684    
3685            * po/it.po: New. Italian translation by Maurizio Napolitano
3686    
3687            * po/ru.po: New. Russian translation by Alex Shevlakov
3688    
3689    2003-07-29  Frank Koormann   <[email protected]>
3690    
3691            * Doc/manual/thuban-manual.xml: Extended section on supported
3692            projections.
3693            
3694    2003-07-29  Frank Koormann   <[email protected]>
3695    
3696            * Doc/manual/thuban-manual.xml: gaspell-checked.
3697    
3698    2003-07-29  Jonathan Coles   <[email protected]>
3699    
3700            * Doc/manual/images/3_5_legend.png: Added border to improve look
3701            on white background.
3702    
3703    2003-07-29  Jonathan Coles   <[email protected]>
3704    
3705            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
3706            descriptions for the legend toolbar.
3707    
3708            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
3709            cursor from dialog box.
3710    
3711    2003-07-28  Jonathan Coles   <[email protected]>
3712    
3713            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
3714    
3715            * Doc/manual/images/2_4_session_tree.png,
3716            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
3717            Doc/manual/images/4_2_layer_properties.png,
3718            Doc/manual/images/4_2_raster_layer_properties.png,
3719            Doc/manual/images/5_3_genclass.png,
3720            Doc/manual/images/5_classification.png,
3721            Doc/manual/images/6_projection.png,
3722            Doc/manual/images/7_1_table_view.png,
3723            Doc/manual/images/7_2_5_join.png: New screenshots.
3724    
3725    2003-07-24  Jonathan Coles   <[email protected]>
3726    
3727            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
3728    
3729    2003-07-24  Jonathan Coles   <[email protected]>
3730    
3731            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
3732            chapter on Layer Management.
3733    
3734            * Doc/manual/Makefile: New. Makefile to generate all formats for the
3735            manual and images.
3736    
3737    2003-07-24  Bernhard Herzog  <[email protected]>
3738    
3739            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
3740            it annoys lintian which warns about these files not being
3741            executable. The #! isn't necessary here since if you absolutely
3742            must execute them you can always say "python <filename>".
3743    
3744            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
3745            superfluous code to set brush and pen for point shapes
3746    
3747            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
3748            belong in viewport anyway
3749    
3750    2003-07-24  Frank Koormann   <[email protected]>
3751    
3752            * Doc/manual/thuban-manual.xml: Added section on table management.
3753    
3754    2003-07-24  Bernhard Herzog  <[email protected]>
3755    
3756            * test/runtests.py (main): Recognize the long "verbose" option
3757            correctly.
3758    
3759    2003-07-22  Jonathan Coles   <[email protected]>
3760    
3761            * Doc/manual/thuban-manual.xml: Continue to write first revision
3762            of the manual.
3763    
3764            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
3765            with Begin/EndDrawing() calls to ensure we aren't doing to
3766            many updates to the dc during rendering.
3767            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
3768            a pen and brush argument so they need to be passed to the function.
3769    
3770            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
3771            Calculates the minimum and maximum scale values. Factored out
3772            of set_view_transform so that it could be used to zoom all the
3773            way into a single point.
3774            (ViewPort.set_view_transform): Call calc_min_max_scales().
3775            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
3776            if only a single point is selected.
3777    
3778            * Doc/manual/images/1_2_legend_close.png,
3779            Doc/manual/images/1_2_legend_dock.png,
3780            Doc/manual/images/1_2_mainwindow.png,
3781            Doc/manual/images/1_2_mainwindow.ps,
3782            Doc/manual/images/1_2_mainwindow.sk,
3783            Doc/manual/images/3_2_fullextent.png,
3784            Doc/manual/images/3_2_fulllayerextent.png,
3785            Doc/manual/images/3_2_fullshapeextent.png,
3786            Doc/manual/images/3_2_pan.png,
3787            Doc/manual/images/3_2_zoomin.png,
3788            Doc/manual/images/3_2_zoomout.png,
3789            Doc/manual/images/3_3_identify.png,
3790            Doc/manual/images/3_3_label.png,
3791            Doc/manual/images/3_5_invisible.png,
3792            Doc/manual/images/3_5_movedown.png,
3793            Doc/manual/images/3_5_moveup.png,
3794            Doc/manual/images/3_5_props.png,
3795            Doc/manual/images/3_5_tobottom.png,
3796            Doc/manual/images/3_5_totop.png,
3797            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
3798    
3799    2003-07-18  Bernhard Herzog  <[email protected]>
3800    
3801            * Thuban/UI/messages.py (MAP_REPLACED): New message.
3802    
3803            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
3804            after the new map has been assigned
3805    
3806            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
3807            Delegate MAP_REPLACED to the canvas too
3808            (MainWindow.prepare_new_session): Removed. Thanks to the new
3809            MAP_REPLACED message it's no longer needed
3810            (MainWindow.OpenSession, MainWindow.NewSession):
3811            prepare_new_session has been removed.
3812    
3813            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
3814            MAP_REPLACED so that we can close the dialog if a new map is set.
3815            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
3816            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
3817            dialog
3818    
3819            * test/test_viewport.py (SimpleViewPortTest)
3820            (SimpleViewPortTest.test_default_size): Add doc-strings
3821            (ViewPortTest.setUp): Bind map to self.map so we can use it in
3822            tests. Subscribe to MAP_REPLACED messages too.
3823            (ViewPortTest.tearDown): No need to explicitly unsubscribe
3824            (ViewPortTest.test_set_map): New test for the SetMap method.
3825    
3826    2003-07-18  Bernhard Herzog  <[email protected]>
3827    
3828            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
3829            Move this test from ViewPortTest.setUp to this new separate test
3830            case. setUp is not the place for the actual tests.
3831            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
3832            more of the test from setUp to the new test test_inital_settings.
3833            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
3834            (ViewPortTest.test_proj_conv): Split test_proj_conv into
3835            test_win_to_proj and test_proj_to_win and make the tests easier to
3836            understand
3837            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
3838            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
3839            (ViewPortTest.test_unprojected_rect_around_point)
3840            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
3841            Reformat to increase readability.
3842    
3843    2003-07-18  Bernhard Herzog  <[email protected]>
3844    
3845            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
3846    
3847    2003-07-18  Bernhard Herzog  <[email protected]>
3848    
3849            * test/runtests.py: The test suite can now be run without an X
3850            connection. To make sure this remains true, remove the DISPLAY
3851            environment variable so that an error occurs if the wxGTK is
3852            imported accidentally
3853    
3854    2003-07-18  Bernhard Herzog  <[email protected]>
3855    
3856            * Thuban/UI/viewport.py: Remove unused imports
3857    
3858            * Thuban/UI/view.py: Remove unused imports
3859    
3860    2003-07-18  Bernhard Herzog  <[email protected]>
3861    
3862            * test/test_export.py Remove unused imports. The OutputTransform
3863            function is now in viewport.py and is called output_transform
3864            (TestScalebar.test_output_transform)
3865            (TestScalebar.test_OutputTransform): Renamed to
3866            test_output_transform and updated to use output_transform instead
3867            of OutputTransform
3868    
3869            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
3870            renamed.
3871            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
3872            renamed to output_transform
3873    
3874            * Thuban/UI/viewport.py (OutputTransform, output_transform):
3875            Rename to output_transform
3876    
3877    2003-07-18  Bernhard Herzog  <[email protected]>
3878    
3879            * Thuban/Model/layer.py (Layer.__init__): Rename
3880            classificationField to classificatin_column and init it here so
3881            that it can be used in SetClassificationColumn
3882            (Layer.GetClassificationColumn, Layer.GetClassificationField):
3883            Rename to GetClassificationColumn.
3884            (Layer.SetClassificationColumn, Layer.SetClassificationField):
3885            Rename to SetClassificationColumn and issue a LAYER_CHANGED
3886            message if the column changes.
3887            (Layer._classification_changed, Layer.ClassChanged): Rename to
3888            _classification_changed. Update the callers.
3889            (Layer.SetShapeStore): Further field->column renames.
3890    
3891            * Thuban/Model/load.py (SessionLoader.start_classification)
3892            (SessionLoader.start_clpoint): Updates because of
3893            field->column method name changes in the Layer class
3894    
3895            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
3896            because of field->column method name changes in the Layer class
3897    
3898            * Thuban/UI/classifier.py (Classifier.__init__)
3899            (Classifier._OnTry, Classifier._OnRevert): Updates because of
3900            field->column method name changes in the Layer class
3901    
3902            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
3903            because of field->column method name changes in the Layer class
3904    
3905            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
3906            of field->column method name changes in the Layer class
3907    
3908            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
3909            (SaveSessionTest.testClassifiedLayer): Update because of
3910            field->column method name changes in the Layer class
3911    
3912            * test/test_layer.py (SetShapeStoreTests.setUp)
3913            (SetShapeStoreTests.test_sanity): Update because of field->column
3914            method name changes in the Layer class
3915            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
3916            (TestLayerModification.test_sanity)
3917            (TestLayerModification.test_initial_settings): remove unsued code
3918            and rename to test_sanity.
3919            (TestLayerModification.test_set_classification): New test for
3920            SetClassification and SetClassificationField.
3921    
3922    2003-07-18  Bernhard Herzog  <[email protected]>
3923    
3924            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
3925            the non-fixed values as well. The old test would have accepted a
3926            fixed ramp that only returnes the fixed properties
3927    
3928    2003-07-17  Jonathan Coles   <[email protected]>
3929    
3930            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
3931            shots for the manual. The XCF file is the source image and
3932            has additional layers to support changes.
3933    
3934            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
3935    
3936            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
3937            Return both the new class and the field name.
3938    
3939            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
3940            fit the map to the window as this changes any zoom level that
3941            the user may have set.
3942    
3943    2003-07-16  Jonathan Coles   <[email protected]>
3944    
3945            * Thuban/Model/classgen.py (generate_singletons,
3946            generate_uniform_distribution, generate_quantiles): Remove
3947            fixes parameter, but maintain the same functionality by having
3948            the calling function pass a FixedRamp object for the ramp.
3949            (FixedRamp): New. Adapts a ramp to have fixed property values.
3950    
3951            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
3952            (Classification): Inherit from Publisher.
3953            (Classification.__init__): Remove the layer parameter.
3954            Classifications no longer need to have a parent layer.
3955            (Classification.GetField, Classification.GetFieldType,
3956            Classification.SetFieldInfo): Removed. The field name is stored
3957            in the layer, and the type can be retreived by calling
3958            Layer.GetFieldType().
3959            (Classification._set_layer, Classification.GetLayer): Removed.
3960            Classifications no longer have a parent layer.
3961    
3962            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
3963            classification.
3964            (Layer.SetShapeStore): Reset the classification first while
3965            we still have the old shape store to work with.
3966            (Layer.GetClassificationField, Layer.SetClassificationField):
3967            New. Method for getting/setting the field to classify on.
3968            (Layer.SetClassification): Simplified now that the layer
3969            simply has to hold a reference to the classification and not
3970            tell the classification who owns it.
3971            Fixes RTbug #2023.
3972    
3973            * Thuban/Model/load.py (SessionLoader.start_classification):
3974            Set the field name on the layer, not the classification.
3975    
3976            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
3977            classification is modified.
3978    
3979            * Thuban/Model/save.py (SessionSaver.write_classification):
3980            Get the field name and type from the layer.
3981    
3982            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
3983            parameter records to rows and add docstring. Fixes RTbug #1997.
3984    
3985            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
3986            ramp when we need to fix certain values of a ramp rather than
3987            using the old fixes parameter. Fixes RTbug #2024.
3988    
3989            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
3990            parameter.
3991            (ClassTable.Reset): Add fieldType parameter and use it, rather
3992            than asking the classification.
3993            (Classifier.__init__): Remember the original class's field
3994            and ask the layer for the field type, rather than the classification.
3995            (Classifier.__SetGridTable): Retrieve the field and field type
3996            for the table because they are not in the classification.
3997            (Classifier._OnTry, Classifier._OnRevert): Set the classification
3998            field on the layer in addition to the classification itself.
3999    
4000            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
4001            classification field from layer.
4002    
4003            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
4004            classification field from layer. Split up tests and remove
4005            *-imports. Fixes RTbug #1992.
4006    
4007            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
4008    
4009            * test/test_classification.py
4010            (TestClassification.test_classification): Remove tests for methods
4011            that no longer exist.
4012    
4013            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
4014            __init__ no longer has a field parameter, use SetClassificationField.
4015            (SetShapeStoreTests.test_sanity): Use layer object to get class
4016            field info.
4017    
4018            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
4019            SetClassificationField on layer to set class field info.
4020    
4021            * test/test_viewport.py: Renamed from test/test_view.py.
4022    
4023    2003-07-16  Jan-Oliver Wagner <[email protected]>
4024    
4025            * Doc/manual/thuban-manual.xml: Added authors and an initial
4026            coarse structure.
4027    
4028    2003-07-15  Bernhard Herzog  <[email protected]>
4029    
4030            * test/support.py (FloatComparisonMixin): This is a mix-in class
4031            and therefore should not be derived from any other class.
4032    
4033            * test/test_range.py (RangeTest): FloatComparisonMixin is a
4034            mix-in, so derive from TestCase as well.
4035    
4036    2003-07-15  Bernhard Herzog  <[email protected]>
4037    
4038            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
4039            draw_func handling a bit to remove one layer of indirection. This
4040            makes the renderer about 10% faster in the non-classifying case
4041            and the code a bit cleaner
4042            (MapRenderer.draw_point_shape): Add the pen and brush parameters
4043            and set them in the dc. Now the draw_point_shape method and
4044            wxproj's draw_polygon_shape function have basically the same
4045            signature so that both can be directly used as draw_func
4046    
4047    2003-07-15  Bernhard Herzog  <[email protected]>
4048    
4049            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
4050            string values (in addition to the labels) as UTF 8
4051    
4052            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
4053            values if the field type is string
4054    
4055            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
4056            saving a session with non-ascii string classification values.
4057    
4058            * test/test_load.py (TestClassification.file_contents)
4059            (TestClassification.test): Check for non-ascii values in string
4060            classifications
4061    
4062    2003-07-14  Jonathan Coles   <[email protected]>
4063    
4064            * test/test_view.py: New. Tests for ViewPort.
4065    
4066    2003-07-14  Frank Koormann   <[email protected]>
4067    
4068            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
4069            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
4070    
4071            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
4072            unicode strings from session file: session title, map title and
4073            projection name.
4074            
4075    2003-07-10  Jonathan Coles   <[email protected]>
4076    
4077            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
4078            drag_stop, not drag_move when the mouse is released.
4079    
4080    2003-07-10  Jonathan Coles   <[email protected]>
4081    
4082            The most important part of this is the seperation of view.py into
4083            two pieces. viewport.py now has a class called ViewPort which
4084            contains all the non-wx parts of view.py and can therefore be
4085            tested. view.py contains only the wx-specific parts and is fairly
4086            simple.
4087    
4088            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
4089            RTTbug #1992.
4090            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
4091            RTTbug #1992.
4092    
4093            * Thuban/Model/classgen.py (generate_singletons,
4094            generate_uniform_distribution, generate_quantiles):
4095            Added 'fixes' parameter so that property attributes can
4096            be held constant over the generated classification groups.
4097            (CustomRamp.GetProperties): Remove unused variables.
4098    
4099            * Thuban/Model/map.py (Map.SetProjection): Send the old
4100            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
4101            event.
4102    
4103            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
4104            parameter which is a list of records that restricts which
4105            records are saved. Fixes RTbug #1997.
4106    
4107            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4108            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
4109    
4110            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
4111            to allow the user to fix line color/width on generated groups.
4112            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
4113            functions to optionally fix group properties.
4114    
4115            * Thuban/UI/main.py (main): Set exception hook to the
4116            ShowExceptionDialog. Fixes RTbug #1993.
4117    
4118            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
4119            the table window when it is selectd to be shown.
4120    
4121            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
4122            Export Selection button and move the export buttons underneath
4123            the table.
4124            (QueryTableFrame.UpdateStatusText): Added event argument so
4125            that it can respond to grid selection events. The status text
4126            is now updated even when the table is not associated with a
4127            layer as was previously assumed.
4128            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
4129            UpdateStatusText responds to these events.
4130            (QueryTableFrame.OnSaveAs): Renamed to doExport.
4131            (QueryTableFrame.doExport): Helper function that saves the
4132            entire table, or selected rows, to a file.
4133            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
4134            Respond to export button events and call doExport.
4135    
4136            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
4137            the function doesn't return NULL without first setting a Python
4138            Error.
4139    
4140            * test/runtests.py (main): Only print "Unknown option" for
4141            unsupported options.
4142    
4143            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
4144            optional epsilon argument to specify floating point accuracy.
4145            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
4146            for each item test.
4147    
4148            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
4149            tests for saving selected records.
4150    
4151            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
4152            tests for saving selected records.
4153    
4154            * test/test_map.py (TestMapWithContents.test_set_projection):
4155            MAP_PROJECTION_CHANGED events send the old projection.
4156    
4157            * test/test_session.py
4158            (TestSessionWithContent.test_forward_map_projection):
4159            MAP_PROJECTION_CHANGED events send the old projection.
4160    
4161            * test/test_table.py (TableTest): Update tests to use non-deprecated
4162            functions.
4163    
4164    2003-07-08  Bernhard Herzog  <[email protected]>
4165    
4166            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
4167            constants in the column objects are the standard ones defined in
4168            the table module.
4169    
4170            * test/test_transientdb.py
4171            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
4172            exporting transient tables as DBF works. This should catch the bug
4173            just fixed in TransientTableBase.Width.
4174    
4175    2003-07-08  Bernhard Herzog  <[email protected]>
4176    
4177            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
4178            interpolated colors correctly.
4179    
4180            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
4181            New. Test case for the fix in classgen.py
4182    
4183    2003-07-08  Bernhard Herzog  <[email protected]>
4184    
4185            * test/runtests.py (main): Make the default output less verbose
4186            and add a verbosity option (-v) to get the old output
4187    
4188    2003-07-08  Bernhard Herzog  <[email protected]>
4189    
4190            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
4191            0.9.
4192    
4193            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
4194            New. Return the join type
4195    
4196            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
4197            DTD
4198            (SessionSaver.write_data_containers): Save the join type for
4199            joined tables
4200    
4201            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
4202            namespace
4203            (SessionLoader.start_jointable): Handle the jointype attribute
4204    
4205            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
4206            as of Thuban 0.8. These are now tests to determine whether Thuban
4207            can still read files generated by Thuban 0.8
4208    
4209            * test/test_load.py (LoadSessionTest.dtd)
4210            (TestSingleLayer.file_contents)
4211            (TestLayerVisibility.file_contents, TestLabels.file_contents)
4212            (TestLayerProjection.file_contents)
4213            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4214            (TestJoinedTable.file_contents)
4215            (TestLoadError.file_contents): Update for new DTD
4216            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
4217            for new join type attribute
4218    
4219            * test/test_save.py (SaveSessionTest.dtd)
4220            (SaveSessionTest.testEmptySession)
4221            (SaveSessionTest.testSingleLayer)
4222            (SaveSessionTest.testLayerProjection)
4223            (SaveSessionTest.testRasterLayer)
4224            (SaveSessionTest.testClassifiedLayer)
4225            (SaveSessionTest.test_dbf_table)
4226            (SaveSessionTest.test_joined_table): Update for new DTD
4227            (SaveSessionTest.test_joined_table): Add test for new join type
4228            attribute
4229    
4230    2003-07-04  Bernhard Herzog  <[email protected]>
4231    
4232            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
4233            function for table_to_dbf
4234            (table_to_dbf): Deal with names longer than the 10 character limit
4235    
4236            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
4237            doc-string
4238            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
4239            long column names
4240    
4241    2003-07-03  Bernhard Herzog  <[email protected]>
4242    
4243            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
4244    
4245    2003-07-03  Bernhard Herzog  <[email protected]>
4246    
4247            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
4248            for the Thuban manual and README with some basic information about
4249            the manual
4250    
4251    2003-07-03  Bernhard Herzog  <[email protected]>
4252    
4253            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
4254            Update doc-string
4255            (TransientJoinedTable.create): Do not modify the column objects of
4256            the input tables in place and copy all columns of the input tables
4257            into the joined table after all.
4258    
4259            * test/test_transientdb.py
4260            (TestTransientTable.test_transient_joined_table_same_column_name):
4261            Update to reflect the new behavior
4262            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
4263            Update to reflect the new behavior
4264            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
4265            New test case for a bug which modified the column objects in place
4266    
4267    2003-07-02  Jonathan Coles   <[email protected]>
4268    
4269            * Thuban/Model/classgen.py (generate_singletons,
4270            generate_uniform_distribution, generate_quantiles,
4271            GenQuantiles0): Make sure maxValue isn't less than
4272            one, otherwise we could divide by zero.
4273    
4274            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
4275            ClassGenTest.doClassSingleTest): Call doBoundsTest to
4276            check the end classification groups against the
4277            proper property values.
4278            (ClassGenTest.doBoundsTest): New. Checks the first and
4279            last classification groups to make sure their properties
4280            are the correct upper and lower bounds for a color ramp.
4281    
4282    2003-07-02  Jonathan Coles   <[email protected]>
4283    
4284            * Thuban/Model/classgen.py (generate_singletons,
4285            generate_uniform_distribution, generate_quantiles,
4286            GenQuantiles0): The denominator was one to high when
4287            calculating the index for the ramp causing the index
4288            to never to reach one.
4289    
4290    2003-07-02  Jonathan Coles   <[email protected]>
4291    
4292            Changed the singature of ClassGroupRange.__init__ and
4293            ClassGroupRange.SetRange() so that the min/max values are
4294            passed as a tuple. This makes a better calling scheme for
4295            when a Range object is passed instead.
4296    
4297            * Thuban/Model/classgen.py: Fixed parameters to
4298            ClassGroupRange constructor.
4299    
4300            * Thuban/Model/classification.py (ClassGroupRange.__init__):
4301            Consolidate the min/max parameters into a single _range which
4302            can either be a tuple or a Range object.
4303            (ClassGroupRange.SetRange): Consolidate the min/max parameters
4304            into a single _range which can either be a tuple or a Range object.
4305    
4306            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
4307            call to ClassGroupRange constructor to use a tuple.
4308    
4309            * Thuban/Model/layer.py (Layer.SetClassification): Switch
4310            the classification instance variable to the new class
4311            before calling _set_layer otherwise subscribers to a
4312            LAYER_CHANGED event will not see any difference.
4313    
4314            * test/test_classification.py: Fix tests of ClassGroupRange
4315            so that they use the new signature.
4316    
4317            * test/test_load.py: Fix use of ClassGroupRange so that it
4318            uses the new signature.
4319    
4320            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
4321            uses the new signature.
4322    
4323            * test/test_save.py: Fix use of ClassGroupRange so that it
4324            uses the new signature.
4325    
4326    
4327    2003-07-01  Jonathan Coles   <[email protected]>
4328    
4329            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
4330            Import used objects/class from color.
4331            (generate_singletons): We don't
4332            need the numGroups parameter anymore because we are using
4333            the new ramps with GetProperties().
4334            (generate_uniform_distribution): Use new ramp method
4335            GetProperties().
4336            (generate_quantiles, GenQuantiles0): Use new ramp method
4337            GetProperties().
4338            (CustomRamp.SetNumGroups): Removed. The ramps now map
4339            a value from 0 to 1 to class properties so the number
4340            of groups is not needed ahead of time.
4341            (CustomRamp.next): Removed. CustomRamp does not support
4342            interation anymore.
4343            (CustomRamp.GetProperties): Returns a ClassGroupProperties
4344            object based on the index value from 0 to 1 that is
4345            passed to it.
4346            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
4347            Made into instances of Monochromatic class instread of
4348            deriving from it.
4349            (HotToCold.SetNumGroups): Removed. See CustomRamp.
4350            (HotToCold.next): Removed. See CustomRamp.
4351    
4352            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
4353            (Classification.SetField, Classification.SetFieldType):
4354            Replaced with SetFieldInfo.
4355            (Classification.SetFieldInfo): New. Does a better job of
4356            what SetField and SetFieldType used to do by combining
4357            their function since they should really always be done
4358            at the same time.
4359            (Classification.SetLayer): Renamed to _set_layer.
4360            (Classification._set_layer): Should only be called from
4361            Layer's SetClassification. This does not cause a recursive
4362            call as SetLayer did because we know that Layer knows about
4363            the classification.
4364    
4365            * Thuban/Model/color.py: Fixes RTbug #1971.
4366            (_Transparent): Renamed from Transparent so it doesn't
4367            conflict with the module variable.
4368            (Transparent, Black): Renamed from Color.Transparent,
4369            Color.Black so they are not class variables.
4370    
4371            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
4372            (Layer.Destroy): We don't need to call SetClassification
4373            anymore to clear out the back reference in the classifcation
4374            to the layer. It's better to set it to None using _set_layer,
4375            and we won't be creating another clas object too.
4376            (Layer.SetClassification): Classification._set_layer is not
4377            recursive so remove all the locking variables. Also clean
4378            up the code so that it remains unchanged if something fails.
4379    
4380            * Thuban/Model/load.py: Fixes RTbug #1971.
4381            (SessionLoader.start_classification): Call
4382            Classification.SetFieldInfo().
4383    
4384            * Thuban/Model/save.py: Removed import of Color which wasn't
4385            being used.
4386    
4387            * Thuban/UI/classgen.py: Fixes RTbug #1972.
4388            (ClassGenDialog.__init__): Color ramps are now instances
4389            already so we don't need to create any new objects.
4390            (ClassGenDialog.OnOK): Check for numGroups is no longer
4391            necessary because we never use it.
4392    
4393            * Thuban/UI/classifier.py: Fixes RTbug #1971.
4394            (Classifier.__BuildClassification, Classifier.__SetGridTable):
4395            Call Classification.SetFieldInfo() instead of SetFieldType.
4396    
4397            * Thuban/UI/renderer.py: Fixes RTbug #1971.
4398    
4399            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
4400            (MapCanvas.__init__): Subscribe to the idle time event. Set
4401            background color to white.
4402            (MapCanvas.OnPaint): Set a flag indicating that we should
4403            render the map during idle time. If we already have a bitmap
4404            just draw it now.
4405            (MapCanvas.OnIdle): New. Render the map only during idle time.
4406            This also fixes a problem with the busy cursor under gtk.
4407    
4408            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
4409            Fix calls to generate_singletons because the signature changed.
4410    
4411            * test/test_classification.py: Fix color references and
4412            change calls to Classification.[SetField|SetFieldType] to
4413            SetFieldInfo.
4414    
4415            * test/test_load.py: Fix color references.
4416    
4417            * test/test_load_0_2.py: Fix color references.
4418    
4419            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
4420            Change calls to Classification.[SetField|SetFieldType] to
4421            SetFieldInfo.
4422    
4423    2003-07-01  Frank Koormann   <[email protected]>
4424    
4425            MERGE from the greater-ms3 branch.
4426    
4427            * test/test_transientdb.py
4428            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
4429            New. Test join of two tables with partly equal column names.
4430    
4431            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
4432            If duplicates in left and right tables column names are found,
4433            append '_' (underscores) to the name until it is unique.
4434            Create always new internal names for the resulting table and reference
4435            columns in the join statement with <table>.<column>
4436    
4437    2003-07-01  Bernhard Herzog  <[email protected]>
4438    
4439            * test/test_transientdb.py
4440            (TestTransientTable.test_transient_joined_table_same_column_name):
4441            New. Test whether joining on columns with the same names in both
4442            tables works.
4443            
4444            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
4445            sure to use the right internal names even when joining on field
4446            with the same names in both tables. Also, detect duplicate names
4447            in the joined table correctly.
4448    
4449    2003-07-01  Frank Koormann   <[email protected]>
4450    
4451            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
4452            Reverse List of layers to render in same order as in desktop legend.
4453    
4454    2003-06-30  Jonathan Coles   <[email protected]>
4455    
4456            * Thuban/version.py (make_tuple): Takes a version string
4457            and splits it into a tuple of at most three integers.
4458            Used make_tuple() to make tuple versions of the version
4459            numbers.
4460    
4461            * Thuban/UI/about.py: Add Thuban email addresses.
4462    
4463    2003-06-30  Jonathan Coles   <[email protected]>
4464    
4465            * Thuban/version.py: SQLite/PySQLite version dependencies
4466            were too high.
4467    
4468    2003-06-30  Jonathan Coles   <[email protected]>
4469    
4470            * Thuban/version.py: Update version to 0.8.1
4471            
4472            * MANIFEST.in: Added Projections so that default.proj is
4473            included.
4474    
4475    2003-06-26  Jonathan Coles   <[email protected]>
4476    
4477            New About box with lots more information including library
4478            versions and credits. More/better version checking before
4479            Thuban starts.
4480    
4481            * Thuban/UI/about.py: New. New About box that displays
4482            library version information and credits.
4483    
4484            * Thuban/version.py: Added new 'versions' dictionary which
4485            contains the verions of various libraries which are checked
4486            when the module loads.
4487            (verify_versions): Check all version numbers and returns
4488            a list of errors.
4489    
4490            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
4491            Reset the status of the buttons as the situation warrants,
4492            but in a better more reliable way by not relying on the
4493            current status to determine what needs to change.
4494    
4495            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
4496            (verify_versions): Remove most of the code since it is
4497            now in Thuban.version.verify_versions.o
4498    
4499            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
4500            About box in Thuban.UI.about.
4501    
4502            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
4503            Returns the version of gdal library being used as a string.
4504    
4505            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
4506            Removed.
4507            (get_proj_version): Return the version of PROJ that the file
4508            was compiled with.
4509            (get_gtk_version): Return th version of GTK that the file
4510            was compiled with.
4511    
4512    2003-06-25  Jonathan Coles   <[email protected]>
4513    
4514            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
4515            of the SelectPropertiesDialog should be self so the window
4516            appears on top.
4517            (ClassGroupPropertiesCtrl.DoEdit): The parent
4518            of the SelectPropertiesDialog should be self so the window
4519            appears on top.
4520    
4521            * Thuban/UI/resource.py: Cleaned up how we determine file
4522            extensions.
4523            (GetImageResource): Return an wxImage from our Resources.
4524    
4525    2003-06-24  Jonathan Coles   <[email protected]>
4526    
4527            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
4528            Check that a layer has a classification before trying
4529            to get it. Raster layers don't have classifications.
4530    
4531    2003-06-23  Jonathan Coles   <[email protected]>
4532            
4533            * setup.py: Add Resources/XML to resource list.
4534        
4535    2003-06-23  Jonathan Coles   <[email protected]>
4536    
4537            * setup.cfg: Fix copyright dates
4538        
4539    2003-06-23  Jonathan Coles   <[email protected]>
4540    
4541            * MANIFEST.in: Update with Resources/XML
4542    
4543            * setup.py: Don't include Locale resources yet as we don't
4544            have any and it causes problems building the distribution
4545            for Windows. Update version to 0.8.0.
4546    
4547            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
4548    
4549            * Thuban/UI/mainwindow.py: Add blank line at the end because
4550            file was not being read correctly building the Windows
4551            distribution.
4552    
4553    2003-06-23  Jonathan Coles   <[email protected]>
4554    
4555            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
4556    
4557            * Thuban/version.py: Temporarily update longversion for
4558            the 0.8 release so that it doesn't have the cvs revision.
4559    
4560    2003-06-23  Jonathan Coles   <[email protected]>
4561    
4562            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
4563            to make sure that we don't create reentrant possibilities with
4564            wxYield.
4565    
4566            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
4567            directly to avoid the wxSafeYield() call which generates an
4568            OnPaint event causing infinite recursion. Don't try to catch
4569            exception anymore. This was for before there were limits on map
4570            scaling.
4571    
4572    2003-06-23  Bernhard Herzog  <[email protected]>
4573    
4574            Bug fix for RT #1961:
4575    
4576            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
4577            Register DerivedShapestores with the session
4578    
4579            * Thuban/Model/session.py (Session.Tables): Make sure each table
4580            is only listed once.
4581    
4582            * test/test_load.py (TestJoinedTable.test): Add check_format call.
4583            Update file contents to match the one written out.
4584    
4585    2003-06-20  Bernhard Herzog  <[email protected]>
4586    
4587            * test/xmlsupport.py (SaxEventLister.startElementNS)
4588            (SaxEventLister.endElementNS): Do not include the qname. Python
4589            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
4590            is (presumably incorrectly) None, whereas it's a string with the
4591            element name in the later versions.
4592    
4593            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
4594            (TestEventList.test_even_list_namespace): Update tests to reflect
4595            the new behaviour
4596            (TestEventList.test_even_list_id_normalization): Fix doc-string
4597    
4598    2003-06-20  Jonathan Coles   <[email protected]>
4599    
4600            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
4601            by deriving classes to determine if that layer supports shapes.
4602            (Layer): Override HasShapes and return true.
4603    
4604            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
4605            instead of a direct call to wx[Begin|End]CusyCursor().
4606            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
4607            table data.
4608    
4609            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
4610            New. Wrappers around the wxWindows functions that allow us to
4611            make additional calls such as wxYield which gives the native
4612            system a chance to update the cursor correctly.
4613    
4614            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
4615            instead of a direct call to wx[Begin|End]CusyCursor().
4616    
4617            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
4618            instead of a direct call to wx[Begin|End]CusyCursor().
4619            (MapCanvas.find_shape_at): Check if the current search layer
4620            support shapes, otherwise go on to the next layer.
4621    
4622            * test/test_layer.py: Add tests in each type of layer for
4623            HasClassification() and HasShapes()
4624    
4625    2003-06-20  Jonathan Coles   <[email protected]>
4626    
4627            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
4628            turning on the busy cursor to allow the system to change the
4629            cursor before we begin painting. This fixes a problem that
4630            was occuring only under GTK. Fixes RTbug #1840.
4631    
4632    2003-06-20  Bernhard Herzog  <[email protected]>
4633    
4634            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
4635            version.
4636    
4637            * Thuban/Model/save.py (sort_data_stores): New. Make topological
4638            sort of the data sources so they can be written with sources that
4639            data sources that depend on other data sources come after the
4640            sources they depend on.
4641            (SessionSaver.__init__): Add idmap instance variable to map from
4642            objects to the ids used in the file.
4643            (SessionSaver.get_id, SessionSaver.define_id)
4644            (SessionSaver.has_id): New. Methods to manage the idmap
4645            (SessionSaver.write): Use thuban-0.8.dtd
4646            (SessionSaver.write_session): Add a namespace on the session and
4647            write out the data sources before the maps.
4648            (SessionSaver.write_data_containers): New. Write the data
4649            containers.
4650            (SessionSaver.write_layer): Layer elements now refer to a
4651            shapestore and don't contain filenames anymore.
4652    
4653            * Thuban/Model/load.py (LoadError): Exception class to raise when
4654            errors in the files are discovered
4655            (SessionLoader.__init__): Define dispatchers for elements with a
4656            thuban-0.8 namespace too.
4657            (SessionLoader.check_attrs): New helper method to check and
4658            convert attributes
4659            (AttrDesc): New. Helper class for SessionLoader.check_attrs
4660            (SessionLoader.start_fileshapesource)
4661            (SessionLoader.start_derivedshapesource)
4662            (SessionLoader.start_filetable, SessionLoader.start_jointable):
4663            Handlers for the new elements in the new fileformat
4664            (SessionLoader.start_layer): Handle the shapestore attribute in
4665            addition to filename.
4666            (SessionLoader.start_table, SessionLoader.end_table): Removed.
4667            They were never used in the old formats and aren't needed for the
4668            new.
4669    
4670            * Thuban/Model/session.py (Session.DataContainers): New method to
4671            return all "data containers", i.e. shapestores and tables
4672    
4673            * test/xmlsupport.py (SaxEventLister.__init__)
4674            (SaxEventLister.startElementNS, sax_eventlist): Add support to
4675            normalize IDs.
4676    
4677            * test/test_xmlsupport.py
4678            (TestEventList.test_even_list_id_normalization): New test case for
4679            id normalization
4680    
4681            * test/test_load.py (LoadSessionTest.check_format): Use ID
4682            normalization
4683            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
4684            class atrributes used for ID normalization
4685            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
4686            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
4687            file format
4688            (TestJoinedTable): New test for loading sessions with joined
4689            tables.
4690            (TestLoadError): New. Test whether missing required attributes
4691            cause a LoadError.
4692    
4693            * test/test_save.py (SaveSessionTest.thubanids)
4694            (SaveSessionTest.thubanidrefs): New class attributes for ID
4695            normalization in .thuban files.
4696            (SaveSessionTest.compare_xml): Use id-normalization.
4697            (SaveSessionTest.testEmptySession)
4698            (SaveSessionTest.testLayerProjection)
4699            (SaveSessionTest.testRasterLayer)
4700            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
4701            (SaveSessionTest.testLayerProjection): The filename used was the
4702            same as for testSingleLayer. Use a different one.
4703            (SaveSessionTest.test_dbf_table)
4704            (SaveSessionTest.test_joined_table): New test cases for saving the
4705            new data sources structures.
4706            (TestStoreSort, MockDataStore): Classes to test the sorting of the
4707            data stores for writing.
4708    
4709            * test/runtests.py: Add CVS keywords
4710    
4711    2003-06-20  Jonathan Coles   <[email protected]>
4712    
4713            * test/test_session.py
4714            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
4715            Use the cultural_landmark-point.dbf file for the store so that
4716            the table rows and shape count match.
4717    
4718    2003-06-20  Jonathan Coles   <[email protected]>
4719    
4720            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
4721            an exception if the number of shapes is different from the
4722            number of rows in the table. Address RTbug #1933.
4723    
4724            * test/test_layer.py (TestLayer.test_derived_store): Add
4725            a test for the new exception in DerivedShapeStore.__init__.
4726    
4727            * test/support.py (FloatTestCase): Removed since there is
4728            already FloatComparisonMixin. Fixes RTbug #1954.
4729            (FloatComparisonMixin.assertFloatEqual): Include test for
4730            infinity that was part of FloatTestCase.
4731    
4732            * test/test_range.py (RangeTest): Inherit from
4733            support.FloatComparisonMixin now that we don't have
4734            support.FloatTestCase.
4735    
4736    2003-06-20  Bernhard Herzog  <[email protected]>
4737    
4738            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
4739            the implementation in xmlsupport instead.
4740            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
4741    
4742            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
4743            of test_save
4744    
4745    2003-06-20  Bernhard Herzog  <[email protected]>
4746    
4747            * test/test_load.py (LoadSessionTest.check_format): New helper
4748            method to make sure the test files we load might have been written
4749            by the current thuban version.
4750            (ClassificationTest.TestLayers, TestSingleLayer.test)
4751            (TestLayerVisibility.test, TestClassification.test)
4752            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
4753            Add check_format() calls and fix the thuban data to match the data
4754            that would be written by saving the session loaded from it.
4755    
4756            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
4757            the same class and function in test_save.
4758    
4759            * test/test_xmlsupport.py (TestEventList): New. test cases for
4760            sax_eventlist
4761    
4762    2003-06-20  Bernhard Herzog  <[email protected]>
4763    
4764            * Resources/XML/thuban.dtd: Add comment about which versions of
4765            Thuban are covered by this DTD
4766            (map): Fix content model for layers and raster layers. There can
4767            be any number or layers and raster layers in any order.
4768    
4769    2003-06-20  Jonathan Coles   <[email protected]>
4770    
4771            This is mainly about fixing RTbug #1949.
4772    
4773            * Thuban/Model/classification.py: Remove "from __future__"
4774            import statement since python 2.2 is the earliest supported
4775            version.
4776    
4777            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
4778            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
4779            depending on the units this projection *forwards* into.
4780    
4781            * Thuban/Model/save.py (SessionSaver.write_classification):
4782            Remove unnecessary use of lambdas and nested functions.
4783    
4784            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
4785            adjustment here if the map projection uses degrees.
4786    
4787            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
4788            scale adjust code since it is now done before calling
4789            this method. Don't do anything if the map projection
4790            is None.
4791    
4792    2003-06-19  Bernhard Herzog  <[email protected]>
4793    
4794            Move version specific load tests to their own file.
4795    
4796            * test/test_load.py: Expand the doc-string to explain a bit how to
4797            handle file format changes.
4798            (TestClassification.test): Update the docstring as this test is
4799            not about Thuban 0.2 anymore.
4800    
4801            * test/test_load_0_2.py: New file with the load tests for thuban
4802            files created with Thuban 0.2 and earlier.
4803    
4804    2003-06-19  Bernhard Herzog  <[email protected]>
4805    
4806            Add XML validation to some of the tests. Validation will only be
4807            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
4808            To make the DTD available to the test cases it's moved into
4809            Resources/XML
4810    
4811            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
4812            for versions up to and including 0.2. Two slight changes: added an
4813            encoding specification and fixed the comment which refered to
4814            GRASS, not Thuban
4815    
4816            * test/xmlsupport.py: New support module for tests involving XML.
4817            Currently there's a mix-in class for XML validation.
4818    
4819            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
4820    
4821            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
4822            so that we can validate the
4823            (SaveSessionTest.testEmptySession)
4824            (SaveSessionTest.testSingleLayer)
4825            (SaveSessionTest.testSingleLayer)
4826            (SaveSessionTest.testLayerProjection)
4827            (SaveSessionTest.testRasterLayer)
4828            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
4829    
4830            * test/runtests.py (main): Call print_additional_summary instead
4831            of print_garbage_information
4832    
4833            * test/support.py (resource_dir): New function to return the
4834            "Resource" subdirectory
4835            (print_additional_summary): New function to combine several
4836            summary functions
4837            (run_tests): Use print_additional_summary instead of calling
4838            print_garbage_information directly
4839    
4840    2003-06-19  Bernhard Herzog  <[email protected]>
4841    
4842            * Doc/thuban.dtd (classification): Correct the content model of
4843            the classification element.
4844            (projection): Add the "name" attribute
4845    
4846    2003-06-19  Frank Koormann   <[email protected]>
4847    
4848            MERGE from the greater-ms3 branch.
4849    
4850            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
4851            scale if projection is latlong to get better estimate.
4852    
4853            Fix problem of hidden properties dialog under windows after double
4854            click on layer tree:
4855            The tree control always gets an Expanded / Collapsed event after
4856            the ItemActivated  on double click, which raises the main window again.
4857            We add a second ItemActivated event to the queue, which simply
4858            raises the already displayed window.
4859    
4860            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
4861            raiseProperties initialized to prevent endless loops
4862            (LegendTree._OnItemActivated): Depending on self.raiseProperties
4863            simply raise the properties or open the dialog and issue a second
4864            event.
4865    
4866    2003-06-18  Jonathan Coles   <[email protected]>
4867    
4868            * setup.py: Fix a few problems that occured under Windows.
4869    
4870    2003-06-18  Jonathan Coles   <[email protected]>
4871    
4872            When Thuban loaded the map was redrawn twice because the
4873            legend was being opened after the mainwindow was created
4874            and not during its creation. This meant the map was drawn
4875            initially and then had to be redrawn when the legend
4876            caused the display to change. Now the legend is opened
4877            in the mainwindow constructor which resolves this issue.
4878    
4879            Also, although we were checking for the existence of
4880            gdal and gdalwarp modules, the gdalwarp extension was
4881            still being compiled (which may fail if the system doesn't
4882            have gdal installed). the build_ext command to setup.py
4883            now accepts the flags --with-gdal and --without-gdal.
4884            If --without-gdal is specified setup.py will try to
4885            use the gdal parameters specified by gdal-config. Under
4886            windows, those parameters have to be set in setup.py
4887            as with proj4 an wxWindows.
4888    
4889            * setup.py: Use a list instead of seperate variables for
4890            extension parameters so we can create a generic function
4891            that runs an appropriate *-config script.
4892            (run_cs_script): Renamed from run_wx_script and modified
4893            to accept a second argument which is a list of lists to
4894            be filled in by the values returned from running the command.
4895            (thuban_build_ext): New. Extends the build_ext command and
4896            provides the options --with-gdal/--without-gdal which then
4897            optionally includes the gdalwarp extension.
4898    
4899            * Thuban/Model/resource.py: First check if we can import
4900            the gdalwarp Thuban extension before checking for gdal.
4901            Also added some comments.
4902            
4903            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
4904            the map is None which may be the case if none has been loaded
4905            yet.
4906    
4907            * Thuban/UI/main.py (main): Remove call to ShowLegend.
4908    
4909            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
4910    
4911            * Thuban/UI/renderer.py: Check for gdal support before importing
4912            gdalwarp.
4913            (MapRenderer.render_map): Only try to optimize if we have gdal
4914            support otherwise nothing will get drawn.
4915    
4916            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
4917            during startup before a map has been created. Check if map is None
4918            before using it and do nothing if it is.
4919    
4920    2003-06-17  Jonathan Coles   <[email protected]>
4921    
4922            Fix the problem with raster layers under Windows that caused
4923            Thuban to crash. The view should respond to layer projection
4924            changed events to update the display. Changes to a projection
4925            should not cause the map to be set to full extent.
4926            
4927            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
4928            current_map_proj to remember the current map projection so that
4929            when the projection changes we know what the previous projection
4930            was.
4931            (MapCanvas.SetMap): Unsubscribe and subscribe to
4932            LAYER_PROJECTION_CHANGED events.
4933            (MapCanvas.projection_changed): Split into two methods that respond
4934            to map and layer projection changes.
4935            (MapCanvas.map_projection_changed): New. Takes the current view and
4936            projects it using the new projection. This does not cause the
4937            map to be redrawn at full extent.
4938            (MapCanvas.layer_projection_changed): New. Cause a redraw which
4939            will draw each layer in its new projection.
4940            
4941            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
4942            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
4943            under Windows.
4944            
4945            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
4946            to twice sizeof(void*) because there are two digits for each
4947            hex byte.
4948    
4949    2003-06-16  Bernhard Herzog  <[email protected]>
4950    
4951            Update to the layer interface: Direct access to the table,
4952            shapetable, shapefile and filename attributes is now actively
4953            deprecated by issuing deprecation warnings for all places where
4954            this happens.
4955    
4956            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
4957            to the instance variables table, shapetable, shapefile and
4958            filename via __getattr__ so that we can issue a deprecation
4959            warning.
4960            (Layer.SetShapeStore): Don't set the deprecated instance variables
4961            any more
4962            (Layer.SetShapeStore): Don't use deprecated layer instance
4963            variables
4964            (Layer.Destroy): No need to explicitly remove the instance
4965            variables any more
4966            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
4967            instance variables
4968    
4969            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
4970            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
4971            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
4972            use deprecated layer instance variables
4973    
4974            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
4975            deprecated layer instance variables
4976    
4977            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
4978            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
4979            instance variables
4980    
4981            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
4982            deprecated layer instance variables
4983    
4984            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
4985            deprecated layer instance variables
4986    
4987            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
4988            deprecated layer instance variables
4989    
4990            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
4991            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
4992            variables
4993    
4994            * test/runtests.py (main): Turn Thuban's deprecation warnings into
4995            errors so that they're cought by the tests
4996    
4997            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
4998            layer instance variables
4999    
5000    2003-06-16  Jonathan Coles   <[email protected]>
5001    
5002            Fix a problem under Windows whereby if the user double-clicks on a
5003            layer in the legend that tree item will expand or collapse as well
5004            as open the layer properties dialog. The state of the tree item
5005            should not be affected.
5006    
5007            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
5008            preventExpandCollapse and subscribe to expanding and collapsing
5009            events.
5010            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
5011            collapsing events and will veto the event if it has been triggered
5012            by the user double clicking on a layer.
5013            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
5014            that an expanding/collapsing event should be vetoed.
5015    
5016    2003-06-13  Bernhard Herzog  <[email protected]>
5017    
5018            * Thuban/UI/classifier.py (Classifier.OnClose)
5019            (Classifier.map_layers_removed)
5020            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
5021            in OnClose and not in map_layers_removed or
5022            layer_shapestore_replaced to make sure it always happens when the
5023            dialog is closed
5024    
5025    2003-06-13  Jonathan Coles   <[email protected]>
5026    
5027            This puts back a fix for Windows where a panel is needed so that
5028            the background of the table view appears correctly.
5029    
5030            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
5031            object that can be used by derived classes to place any
5032            controls (including the grid) onto.
5033            (QueryTableFrame.__init__): Use the panel as the parent window
5034            for all the controls. Reparent the grid so that the panel is
5035            the parent. Call UpdateStatusText() to correctly initialize
5036            the status bar.
5037    
5038    2003-06-13  Jonathan Coles   <[email protected]>
5039    
5040            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
5041            from wxFrame (as opposed to wxDialog like the other classes)
5042            but otherwise behaves like the other classes. This is needed
5043            for the TableView which isn't really a dialog and needs to
5044            have a status bar and control buttons.
5045    
5046            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
5047            instance variable to keep track of how many rows are selected.
5048            Subscribe once to the the events we are interested in.
5049            (ThubanGrid.OnRangeSelect): Only handle event if event handling
5050            hasn't been turned off.
5051            (ThubanGrid.OnSelectCell): Only handle event if event handling
5052            hasn't been turned off.
5053            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
5054            as an event listener (which changes the event handler stack)
5055            simply set an instance variable to False. This is checked in
5056            the event handlers.
5057            (ThubanGrid.GetNumberSelected): Return the number of currently
5058            selected rows.
5059            (TableFrame): Inherit from ThubanFrame so we can have a
5060            status bar and control buttons.
5061            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
5062            Explicitly set which items are selected in the operator choice and
5063            action choice so there is always a valid selection. Fixes RTbug #1941.
5064            Subscribe to grid cell selection events so we can update the
5065            status bar.
5066            (QueryTableFrame.UpdateStatusText): Update the status bar with
5067            how many rows are in the grid, how many columns, and how many
5068            rows are selected.
5069            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
5070            Call UpdateStatusText when cells are (de)selected.
5071            (QueryTableFrame.OnQuery): Use the string value in the value
5072            combo if either the selected item index is 0 or if the string
5073            cannot be found in the predefined list (this happens if the
5074            user changes the text). Fixes RTbug #1940.
5075            Only turn off the grid event listeners if there a query comes
5076            back with a none empty list of ids. in the case that the list
5077            is empty this causes a grid.ClearSelection() call to actually
5078            clear the grid selection which causes the selected items in
5079            the map to be deselected. Fixes RTbug #1939.
5080    
5081            * test/test_save.py (XMLWriterTest.Encode): Check return values.
5082            Fixes RTbug #1851.
5083    
5084    2003-06-13  Bernhard Herzog  <[email protected]>
5085    
5086            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
5087            self.selected_shape with the current selection to make sure the
5088            contents of the dialog are up to date when it's shown for the
5089            first time.
5090            The dialog used to work without this by luck. The recent fix to
5091            the connector module 'broke' a 'feature' the identify view was
5092            relying on, i.e that subscribing to a message in response to
5093            receiving a message of that type would mean that the new
5094            subscriber would also be called for the same message.
5095            
5096    2003-06-12  Jonathan Coles   <[email protected]>
5097    
5098            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
5099            the image is rendered. Fixes RTbug #1937.
5100    
5101    2003-06-12  Jonathan Coles   <[email protected]>
5102    
5103            * Thuban/Lib/fileutil.py: As is done under Windows, create the
5104            user directory if it doesn't exist on a posix system.
5105            Fixes RTbug #1815.
5106    
5107            * Thuban/Model/resource.py (get_user_proj_files): Moved the
5108            called to get_application_dir here, so that the directory
5109            will only be called if this method is invoked.
5110    
5111            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
5112            the projfilepath if no projection is selected.
5113    
5114    2003-06-12  Jonathan Coles   <[email protected]>
5115    
5116            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
5117            the scalebar if the current map has no projection set.
5118    
5119            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
5120            projfilepath label to just the basename of the projection file
5121            rather than include the entire path.
5122    
5123            * Thuban/Model/resource.py: Fix missed proj functions that
5124            needed to be renamed.
5125    
5126    2003-06-12  Jonathan Coles   <[email protected]>
5127    
5128            * Thuban/Model/classification.py: Removed assert statements that
5129            tested if the variable was an instance of Color.
5130    
5131            * Thuban/Model/color.py (Color): Remove commented code that isn't
5132            used.
5133            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
5134            Fixes RTbug #1835.
5135            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
5136            Needed now that the class doesn't inherit from Color.
5137    
5138    2003-06-12  Jonathan Coles   <[email protected]>
5139    
5140            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
5141            check unicode strings.
5142    
5143            * test/test_layer.py: Check for existence of gdal.
5144    
5145    2003-06-12  Jonathan Coles   <[email protected]>
5146        
5147            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
5148            that was in load.py
5149    
5150            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
5151            that was in save.py
5152    
5153    2003-06-12  Jonathan Coles   <[email protected]>
5154    
5155            This is largely a collection of bug fixes. We also handle the
5156            case where gdal is not on the system. The XMLReader and XMLWriter
5157            classes were moved into there own files to resolve some circular
5158            import references and because they shouldn't really be in the
5159            file that is dediciated to reading/writing session files since
5160            they are also used elsewhere.
5161    
5162            * Thuban/Model/classgen.py: Renamed functions to follow the
5163            function_names_with_underscores style. Fixes RTbug #1903.
5164            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
5165    
5166            * Thuban/Model/layer.py: Import gdal only if it available.
5167            (RasterLayer): Handle the case where the gdal library is unavailable.
5168            Addresses RTbug #1877.
5169    
5170            * Thuban/Model/load.py (XMLReader): Moved into seperate file
5171            xmlreader.py.
5172    
5173    2003-06-12  Jonathan Coles   <[email protected]>
5174    
5175            This is largely a collection of bug fixes. We also handle the
5176            case where gdal is not on the system. The XMLReader and XMLWriter
5177            classes were moved into there own files to resolve some circular
5178            import references and because they shouldn't really be in the
5179            file that is dediciated to reading/writing session files since
5180            they are also used elsewhere.
5181    
5182            * Thuban/Model/classgen.py: Renamed functions to follow the
5183            function_names_with_underscores style. Fixes RTbug #1903.
5184            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
5185    
5186            * Thuban/Model/layer.py: Import gdal only if it available.
5187            (RasterLayer): Handle the case where the gdal library is unavailable.
5188            Addresses RTbug #1877.
5189    
5190            * Thuban/Model/load.py (XMLReader): Moved into seperate file
5191            xmlreader.py.
5192    
5193            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
5194            file xmlwriter.py.
5195    
5196            * Thuban/Model/resource.py: Renamed functions to following the
5197            function_names_with_underscores style.
5198            (has_gdal_support): New function that returns true if the gdal
5199            library is available. Addresses RTbug #1877.
5200    
5201            * Thuban/UI/application.py (ThubanApplication.OpenSession):
5202            Display a message box if the gdal library is not available, but
5203            only if there are any layers that would use it. Addresses RTbug #1877.
5204    
5205            * Thuban/UI/classgen.py: Use renamed projection resource functions.
5206            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
5207            when using integers versus floats.
5208    
5209            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
5210            determine if the "Add Image Layer" menu option should be
5211            greyed out or not. Addresses RTbug #1877.
5212    
5213            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
5214    
5215            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
5216            optimize if a raster layer is visible. Fixes RTbug #1931.
5217            Only draw the raster layer if the gdal library is available.
5218            Addresses RTbug #1877.
5219    
5220            * test/test_classgen.py: Add tests for generate_singletons,
5221            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
5222            (test_calculate_quantiles): Fix some tests to catch the new
5223            ValueError that is raised.
5224    
5225            * test/test_proj.py: Use renamed projection resource functions.
5226    
5227            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
5228            test for saving classified layers. Fixes RTbug #1902.
5229            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
5230    
5231    2003-06-12  Jan-Oliver Wagner <[email protected]>
5232    
5233            Fix for http://intevation.de/rt/webrt?serial_num=1900.
5234    
5235            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
5236    
5237            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
5238            multiplechoicedialog.py rather than from the wxPython library.
5239    
5240    2003-06-11  Frank Koormann  <[email protected]>
5241    
5242            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
5243            update.
5244    
5245    2003-06-11  Frank Koormann  <[email protected]>
5246    
5247            * Thuban/Lib/fileutil.py (get_application_dir): New function to
5248            determine the absolute .thuban/thuban directory under
5249            "posix" (os.expanduser) and "nt" (read AppData registry key).
5250    
5251            * Thuban/Model/resource.py: Use get_application_dir
5252    
5253            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
5254            Use get_application_dir.
5255    
5256    2003-06-10  Bernhard Herzog  <[email protected]>
5257    
5258            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
5259            the messages MAP_LAYERS_REMOVED messages
5260            (LayerTableFrame.OnClose): Unsubscribe from it.
5261            (LayerTableFrame.map_layers_removed): New. Receiver for
5262            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
5263            dialog is showing is removed.
5264    
5265    2003-06-10  Bernhard Herzog  <[email protected]>
5266    
5267            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
5268            of the receivers list so that unsubscribing in a receiver doesn't
5269            modify it while iterating over it.
5270    
5271            * test/test_connector.py
5272            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
5273            unsubscribing in a receiver works correctly. See docstring for
5274            details
5275    
5276    2003-06-10  Bernhard Herzog  <[email protected]>
5277    
5278            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
5279            message.
5280    
5281            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
5282            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
5283            LAYER_CHANGED will still be sent if the classification changes.
5284    
5285            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
5286            parameter so we can subscribe to some of its messages
5287            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
5288            and the layer's LAYER_SHAPESTORE_REPLACED
5289            (Classifier.unsubscribe_messages): New. Unsubscribe from message
5290            subscribed to in __init__
5291            (Classifier.map_layers_removed)
5292            (Classifier.layer_shapestore_replaced): receivers for the messages
5293            subscribed to in __init__. Unsubscribe and close the dialog
5294    
5295            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
5296            the map to the Classifier dialog
5297    
5298            * test/test_layer.py (SetShapeStoreTests): Derive from
5299            SubscriberMixin as well so we can test messages
5300            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
5301            messages
5302            (SetShapeStoreTests.tearDown): Clear the messages again
5303            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
5304            for the modified flag too
5305            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
5306            to check whether SetShapeStore sets the modified flag
5307            (SetShapeStoreTests.test_set_shape_store_different_field_name)
5308            (SetShapeStoreTests.test_set_shape_store_same_field)
5309            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
5310            Add tests for the messages. This checks both the new
5311            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
5312    
5313    2003-06-06  Jan-Oliver Wagner <[email protected]>
5314    
5315            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
5316            the menu items.
5317    
5318    2003-06-05  Frank Koormann  <[email protected]>
5319    
5320            * Thuban/UI/identifyview.py (IdentifyView.__init__):
5321            Layout reimplemented without panel. Make life easier to fit the list
5322            in the dialog.
5323    
5324    2003-06-05  Frank Koormann  <[email protected]>
5325    
5326            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
5327            once on initialisation (Former implementation resulted in multiple
5328            entries for each projection).
5329            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
5330            if set, select the projection found under the specified name. This
5331            overwrites any other selection estimate.
5332            Removed projchoice filling from this method.
5333            (ProjFrame._OnSave, ProjFrame._OnAddToList):
5334            Updated call of ProjFrame.__FillAvailList
5335            (LCCPanel._DoLayout): Moved parameter controls in more common order.
5336    
5337            * Resources/Projections/defaults.proj: Extended defaults representing
5338            various common European projections.
5339    
5340    2003-06-05  Frank Koormann  <[email protected]>
5341    
5342            * Thuban/UI/identifyview.py (IdentifyView.__init__):
5343            Use ListCtrl instead of GridCtrl
5344    
5345            * Thuban/Model/resource.py:
5346            Guess location of .thuban directory from tempdir parent directory.
5347    
5348            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
5349            Guess location of .thuban directory from tempdir parent directory.
5350    
5351    2003-06-04  Bernhard Herzog  <[email protected]>
5352    
5353            Do not cache the values returned by the tree widget's
5354            GetFirstChild and GetNextChild methods because it led to lots of
5355            segfaults. The new way requires more brute force but is more
5356            reliable.
5357    
5358            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
5359            variable layer2id
5360            (LegendTree.find_layer): New method to do with brute force what
5361            layer2id tried to accomplish
5362            (LegendTree._OnMsgLayerChanged)
5363            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
5364            Use find_layer instead of layer2id
5365            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
5366            update layer2id anymore
5367            (LegendTree._OnMsgMapLayersRemoved)
5368            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
5369    
5370    2003-06-03  Thomas Koester  <[email protected]>
5371    
5372            * Thuban/Model/classgen.py (GenQuantiles0): New function.
5373    
5374    2003-06-02  Bernhard Herzog  <[email protected]>
5375    
5376            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
5377            New commands.
5378            (main_menu): Add the new commands.
5379            (MainWindow.TableRename): New. Implementation of the table_rename
5380            command.
5381            (MainWindow.RenameLayer): New. Implementation of the layer_rename
5382            command.
5383    
5384            * Thuban/Model/session.py (Session.AddTable): call self.changed to
5385            set the modified flag
5386    
5387            * test/test_session.py (TestSessionSimple.test_add_table): Test
5388            whether the modified flag is set properly
5389    
5390            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
5391            instead of issue so that the modified flags get updated.
5392    
5393            * test/test_base.py (SomeTitledObject): Derive from Modifiable
5394            instead of Publisher to reflect reality better and to accomodate
5395            the fact that SetTitle now calls changed instead of issue
5396    
5397    2003-06-02  Bernhard Herzog  <[email protected]>
5398    
5399            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
5400            acquisition has to happen before the try in a try-finally.
5401    
5402    2003-06-02  Bernhard Herzog  <[email protected]>
5403    
5404            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
5405            possible that a layer is removed that is not currently selected in
5406            the legend so don't check for this.
5407    
5408    2003-05-30  Bernhard Herzog  <[email protected]>
5409    
5410            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
5411            variables to None that have direct or indirect references to
5412            shapefiles or dbf files to make sure that they do go away and the
5413            files are closed.
5414    
5415    2003-05-30  Bernhard Herzog  <[email protected]>
5416    
5417            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
5418            availImgListIndices when a new image list is created
5419            
5420    2003-05-30  Bernhard Herzog  <[email protected]>
5421    
5422            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
5423            changing_selection to indicate whether the LegendTree code itself
5424            is currently changing the selection
5425            (LegendTree.normalize_selection): New method to normalize the
5426            selection by selecting the layer item even if the user clicked on
5427            the classification.
5428            (LegendTree._OnSelChanged): normalize the selection. This works
5429            around a bug in wx which doesn't keep track of the selection
5430            properly when subtrees are deleted.
5431    
5432    2003-05-30  Bernhard Herzog  <[email protected]>
5433    
5434            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
5435            maximum and minimum scale factors.
5436    
5437            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
5438            changes in classgen.py
5439    
5440    2003-05-30  Jonathan Coles   <[email protected]>
5441    
5442            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
5443            all the methods functions. Fixes RTBug #1903.
5444    
5445            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
5446            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
5447            RTBug #1907.
5448    
5449            * Thuban/UI/classgen.py: Use classgen functions that were part
5450            of the ClassGenerator class. Put try/finally blocks around
5451            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
5452            RTBug #1904.
5453    
5454            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
5455    
5456            * Thuban/UI/legend.py: The legend was cleared and repopulated any
5457            time something changed which caused some state to be lost such
5458            as which children were expanded or collapsed. Fixes RTBug #1901.
5459            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
5460            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
5461            the legend but not in the map.
5462            (LegendTree.__FillTree): Move main functionality out into smaller
5463            methods that can be used by other methods.
5464            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
5465            if they are available.
5466            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
5467            that we override the wxTreeCtrl method. Iterate over children
5468            and call __RemoveLayer.
5469            (LegendTree.__AddLayer): New. Add a new layer to the legend.
5470            (LegendTree.__RemoveLayer): Remove a layer from the legend.
5471            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
5472            Should only be called with the id of a layer branch.
5473            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
5474            Returns the root item or creates one if necessary.
5475    
5476            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
5477            ProjectRasterFile with tuple arguments instead of strings.
5478    
5479            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
5480            with try/finally. Fixes RTBug #1904.
5481    
5482            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
5483            with try/finally. Fixes RTBug #1904.
5484            (MapCanvas.FitSelectedToWindow): If a single point is selected
5485            simply center it on the display. Fixes RTBug #1849.
5486    
5487            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
5488            to be compiled as a standalone app. Now the code can only be
5489            called from Python which simplifies the parameter passing.
5490            (ProjectRasterFile): Handle Python arguments. Remove code that
5491            checks for a destination dataset. Add more clean up code.
5492    
5493            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
5494            TestMapWithContents.test_lower_layer_bottom):
5495            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
5496            Fixes RTBug #1907.
5497    
5498            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
5499            extent to the map when the legend is toggled. Fixes RTBug #1881.
5500    
5501    2003-05-29  Jan-Oliver Wagner <[email protected]>
5502    
5503            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
5504            unsubscribes all that is subcribed in __init__.
5505    
5506    2003-05-28  Bernhard Herzog  <[email protected]>
5507    
5508            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
5509            (MainWindow.CanDuplicateLayer): New methods to implement the
5510            Layer/Duplicate command.
5511            (layer_duplicate command): New.
5512            (main_menu): Add layer_duplicate to the Layer menu.
5513    
5514    2003-05-28  Bernhard Herzog  <[email protected]>
5515    
5516            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
5517            renderer so that NULL/None values get displayed differently (by a
5518            gray rectangle).
5519            (TableGrid.__init__): Override the default renderers
5520    
5521    2003-05-28  Bernhard Herzog  <[email protected]>
5522    
5523            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
5524            classification to "None" if the type of the field has changed.
5525    
5526            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
5527            test for the Layer.SetShapeStore method
5528    
5529    2003-05-28  Jan-Oliver Wagner <[email protected]>
5530    
5531            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
5532            does not necessarily have a filename).
5533    
5534    2003-05-28  Jan-Oliver Wagner <[email protected]>
5535    
5536            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
5537            sort the selection list for the dialog.
5538    
5539    2003-05-28  Frank Koormann  <[email protected]>
5540    
5541            * extensions/thuban/wxproj.cpp
5542            (project_point): Removed cast to int for projected point coordinates.
5543            (shape_centroid): Return last point if all polygon vertices fall
5544            to one point.
5545    
5546    2003-05-28  Bernhard Herzog  <[email protected]>
5547    
5548            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
5549            with layers that don't have shapestores, i.e. raster layers.
5550    
5551    2003-05-28  Bernhard Herzog  <[email protected]>
5552    
5553            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
5554            when determining the title from the filename.
5555    
5556            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
5557            reflect changes in the way the title is derived from the filename
5558    
5559    2003-05-28  Frank Koormann  <[email protected]>
5560    
5561            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
5562            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
5563    
5564    2003-05-27  Bernhard Herzog  <[email protected]>
5565    
5566            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
5567            delegate SelectedLayer.
5568            (MainWindow.LayerUnjoinTable): Implement.
5569            (_can_unjoin): New. Helper function for the sensitivity of the
5570            layer/unjoin command.
5571    
5572            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
5573            (DerivedShapeStore.OrigShapeStore): New. Return the original
5574            shapestore. Used to figure out how to unjoin.
5575            (DerivedShapeStore.Shapefile): Fix a typo.
5576    
5577    2003-05-27  Bernhard Herzog  <[email protected]>
5578    
5579            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
5580            well
5581            (JoinDialog.__init__): Use the layer parameter and only build the
5582            left choice when a layer is given
5583            (JoinDialog.OnJoin): Handle layer joins as well
5584            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
5585            that the user selects the "Select..." item. The sensitivitly
5586            updating is now in update_sensitivity
5587            (JoinDialog.y): New method to refactor the sensitivity update of
5588            the join button into its own method.
5589    
5590            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
5591    
5592    2003-05-27  Bernhard Herzog  <[email protected]>
5593    
5594            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
5595            iff there are unreferenced tables in the session
5596    
5597    2003-05-27  Bernhard Herzog  <[email protected]>
5598    
5599            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
5600    
5601            * Thuban/Model/session.py (Session.UnreferencedTables): New method
5602            to return tables that are not referenced by other tables or shape
5603            stores and can be removed.
5604            (Session.RemoveTable): Issue a TABLE_REMOVED message after
5605            removing the table
5606    
5607            * Thuban/UI/mainwindow.py: Remove unused imports
5608            (MainWindow.TableClose): Implement.
5609    
5610            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
5611            messages so that the frame will be automatically closed when a new
5612            session is opened or the table is removed.
5613            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
5614            __init__
5615            (TableFrame.close_on_session_replaced)
5616            (TableFrame.close_on_table_removed): New. Subscribers that close
5617            the window
5618    
5619            * test/test_session.py (TestSessionMessages.test_remove_table)
5620            (TestSessionSimple.test_remove_table): Move the test to
5621            TestSessionSimple and add test for the TABLE_REMOVED message
5622            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
5623            (TestSessionSimple.test_unreferenced_tables) New. Test for the
5624            UnreferencedTables method.
5625            (UnreferencedTablesTests): New. Class with some more sophisticated
5626            tests for UnreferencedTables.
5627    
5628    2003-05-27  Frank Koormann  <[email protected]>
5629    
5630            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
5631            display has some unwanted side effects. Removed again.
5632    
5633    2003-05-27  Frank Koormann  <[email protected]>
5634    
5635            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
5636    
5637            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
5638    
5639    2003-05-27  Jan-Oliver Wagner <[email protected]>
5640    
5641            * test/test_menu.py (MenuTest.test): Added test for
5642            Menu.RemoveItem().
5643    
5644            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
5645            the menu.
5646    
5647    2003-05-27  Frank Koormann  <[email protected]>
5648            
5649            Nonmodal dialogs without parent (i.e. they can fall behind the main
5650            window)
5651    
5652            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
5653            all dialogs in the dialogs dictionary and the canvas.
5654    
5655            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
5656            parent, i.e. can fall behind other windows.
5657            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
5658            dictionary before removing it.
5659    
5660            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
5661    
5662            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
5663            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
5664            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
5665    
5666    2003-05-27  Bernhard Herzog  <[email protected]>
5667    
5668            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
5669            tableview dialog
5670            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
5671            Also, don't use the table's titles as the dialog names. The titles
5672            aren't guaranteed to be unique.
5673            (MainWindow.TableOpen): Open a table view dialog after opening the
5674            table
5675    
5676    2003-05-27  Bernhard Herzog  <[email protected]>
5677    
5678            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
5679            effect can be achieved by simply closing the window showing the
5680            table.
5681            (MainWindow.TableHide): Removed.
5682            (main_menu): Removed "table_hide"
5683    
5684    2003-05-27  Frank Koormann  <[email protected]>
5685    
5686            Fix legend tree display problems under Win32
5687    
5688            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
5689            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
5690            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
5691    
5692            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
5693    
5694    2003-05-27  Jan-Oliver Wagner <[email protected]>
5695    
5696            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
5697            'after' now allows to insert separators almost anywhere in the menu.
5698    
5699    2003-05-27  Frank Koormann  <[email protected]>
5700    
5701            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
5702            "S" of selection box label to hint on hot key (Alt-S). Works under
5703            Win32 but is ignored under GTK.
5704    
5705    2003-05-26  Frank Koormann  <[email protected]>
5706    
5707            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
5708            Center Choices.
5709    
5710    2003-05-26  Bernhard Herzog  <[email protected]>
5711    
5712            Remove the Precision methods again. They're too DBF specific to be
5713            part of the table interface and they're only used in table_to_dbf
5714            anyway.
5715            
5716            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
5717            fixed precision of 12 for doubles.
5718            (TransientTableBase.Precision): Removed
5719            (AutoTransientTable.Width): Delegate to self.table.
5720    
5721            * Thuban/Model/table.py (DBFTable.Precision)
5722            (MemoryTable.Precision): Removed.
5723            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
5724            (table_to_dbf): Use a fixed precision of 12 for floats unless the
5725            column object specifies something else.
5726    
5727            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
5728            test for table_to_dbf
5729    
5730    2003-05-26  Bernhard Herzog  <[email protected]>
5731    
5732            * test/test_transientdb.py
5733            (TestTransientTable.run_iceland_political_tests): Fix a comment.
5734    
5735    2003-05-26  Bernhard Herzog  <[email protected]>
5736    
5737            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
5738            implementation. Mark parts of the file format strings for
5739            localization.
5740    
5741            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
5742            file and add the table to the tables managed by the session
5743    
5744            * test/test_session.py (TestSessionSimple.test_open_table_file):
5745            New. test case for OpenTableFile
5746    
5747    2003-05-26  Jan-Oliver Wagner <[email protected]>
5748    
5749            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
5750            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
5751            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
5752            Replace the true/false of wxWindows by True/False of Python 2.2.1.
5753    
5754    2003-05-26  Jan-Oliver Wagner <[email protected]>
5755    
5756            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
5757            already a selection present, update the grid accordingly.
5758    
5759            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
5760            resizeable and increase its initial size.
5761    
5762    2003-05-26  Frank Koormann  <[email protected]>
5763    
5764            Table export functionality
5765    
5766            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
5767            Return width (in characters) for a column.
5768            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
5769            (table_to_dbf): Write table to dbf file.
5770            (table_to_csv): Write table to csv file.
5771    
5772            * Thuban/Model/transientdb.py (TransientTableBase.Width,
5773            TransientTableBase.Precision): Return column width and precision.
5774    
5775            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
5776            or table_to_csv depending on file selection.
5777    
5778            * test/test_dbf_table.py:
5779            Test table_to_dbf (extension of former part of test).
5780    
5781            * test/test_csv_table.py:
5782            Test table_to_csv.
5783    
5784    2003-05-23  Jan-Oliver Wagner <[email protected]>
5785    
5786            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
5787            Use QueryTableFrame instead of TableFrame.
5788    
5789            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
5790            table window with 'Layer Table:' instead of 'Table:'.
5791    
5792    2003-05-23  Jan-Oliver Wagner <[email protected]>
5793    
5794            Give all tables a title via mix-in TitledObject.LayerShowTable
5795    
5796            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
5797            only if it exists.
5798    
5799            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
5800            and call its init-method with a default title. Remove Title() method.
5801    
5802            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
5803            AutoTransientTable): mix-in TitledObject and call its init-method with
5804            a default title. Remove Title() method.
5805    
5806    2003-05-23  Bernhard Herzog  <[email protected]>
5807    
5808            * Thuban/Model/session.py (Session.AddShapeStore): Define
5809            AddShapeStore analogously to AddTable.
5810    
5811            * test/test_session.py (TestSessionSimple.test_add_shapestore):
5812            New. Test for AddShapeStore
5813    
5814    2003-05-23  Jan-Oliver Wagner <[email protected]>
5815    
5816            Introducing QueryTableFrame and a very coarse ShowTable implementation.
5817    
5818            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
5819            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
5820            The latter implements the selection GUI without dependency on a layer.
5821            LayerTableFrame now is derived from QueryTableFrame and connects
5822            to a layer.
5823    
5824            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
5825            implementation that still needs work.
5826    
5827            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
5828    
5829    2003-05-22  Frank Koormann  <[email protected]>
5830    
5831            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
5832            Added "outer_join = False" as optional parameter.
5833            (TransientJoinedTable.create): If outer join is true, perform a
5834            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
5835            the left table. Records not matching are filled with 0 / None.
5836    
5837            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
5838            (JoinDialog.OnJoin): Consider outer join check box.
5839    
5840    2003-05-22  Bernhard Herzog  <[email protected]>
5841    
5842            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
5843            somewhat safer way. Storing the traceback in a local variable can
5844            lead to memory leaks
5845    
5846    2003-05-22  Bernhard Herzog  <[email protected]>
5847    
5848            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
5849            the wxMessageDialog's Destroy() method.
5850    
5851    2003-05-22  Frank Koormann  <[email protected]>
5852    
5853            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
5854            TransientTable.Title()
5855    
5856    2003-05-22  Frank Koormann  <[email protected]>
5857    
5858            Join Dialog, initial version.
5859    
5860            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
5861    
5862            * Thuban/UI/join.py (JoinDialog): Functional implementation of
5863            former framework. Renamed Table1/Table2 to LeftTable/RightTable
5864            in all occurences.
5865    
5866            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
5867            Typo fixed.
5868    
5869    2003-05-22  Bernhard Herzog  <[email protected]>
5870    
5871            Give the tables titles so that the GUI can display more meaningful
5872            names. For now the titles are fixed but depend on e.g. filenames
5873            or the titles of the joined tables.
5874    
5875            * Thuban/Model/transientdb.py (TransientTable.Title)
5876            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
5877    
5878            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
5879    
5880            * test/test_transientdb.py
5881            (TestTransientTable.test_auto_transient_table_title): New. Test
5882            for the Title method
5883            (TestTransientTable.test_transient_joined_table)
5884            (TestTransientTable.test_transient_table): Add test for the Title
5885            methods
5886    
5887            * test/test_memory_table.py (TestMemoryTable.test_title): New.
5888            Test for the Title method
5889    
5890            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
5891            the Title method
5892    
5893    2003-05-22  Bernhard Herzog  <[email protected]>
5894    
5895            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
5896            Provide a better way to destroy the layers
5897            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
5898            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
5899            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
5900            the new way to destroy the layers.
5901            (TestLayer.test_derived_store): New. Test for using a layer with a
5902            DerivedShapeStore
5903    
5904            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
5905            filename if the shape store actually has one.
5906    
5907    2003-05-22  Bernhard Herzog  <[email protected]>
5908    
5909            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
5910            for the filename
5911    
5912            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
5913            for the FileName method
5914            (TestDBFTableWriting.test_write): Fix spelling of filename
5915    
5916    2003-05-22  Thomas Koester  <[email protected]>
5917    
5918            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
5919            from SciParam that now really is immutable.
5920    
5921    2003-05-22  Frank Koormann  <[email protected]>
5922    
5923            Layer Top/Bottom placement added to legend.
5924    
5925            * Thuban/UI/legend.py
5926            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
5927            bound to tool events.
5928            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
5929            New, methods binding the event methods with the map methods.
5930    
5931            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
5932            layer at top/bottom of layer stack.
5933    
5934            * Resources/Bitmaps/top_layer.xpm: New button icon.
5935    
5936            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
5937    
5938    2003-05-22  Bernhard Herzog  <[email protected]>
5939    
5940            * Thuban/Model/session.py (Session.RemoveTable): New method to
5941            remove tables
5942    
5943            * test/test_session.py (TestSessionSimple.test_remove_table): New.
5944            Test for RemoveTable
5945    
5946    2003-05-22  Thomas Koester  <[email protected]>
5947    
5948            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
5949            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
5950    
5951    2003-05-22  Bernhard Herzog  <[email protected]>
5952    
5953            Implement a way to discover dependencies between tables and
5954            shapestores.
5955    
5956            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
5957            (TransientJoinedTable.Dependencies)
5958            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
5959            interface
5960            (TransientJoinedTable.__init__): Keep tack of the original table
5961            objects in addition to the corresponding transient tables.
5962    
5963            * Thuban/Model/table.py (DBFTable.Dependencies)
5964            (MemoryTable.Dependencies): New. Implement the dependencies
5965            interface
5966    
5967            * Thuban/Model/data.py (ShapeTable): New. Helper class for
5968            ShapefileStore
5969            (ShapefileStore.__init__): Use ShapeTable instead of
5970            AutoTransientTable
5971            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
5972            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
5973            methods for filename and type
5974            (ShapefileStore.Dependencies): New. Implement the dependencies
5975            interface
5976            (DerivedShapeStore): New class to replace SimpleStore. The main
5977            difference to SimpleStore is that it depends not on a shapefile
5978            but another shapestore which expresses the dependencies a bit
5979            better
5980            (SimpleStore.__init__): Add deprecation warning.
5981    
5982            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
5983            Test for the Dependencies method.
5984    
5985            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
5986            New. Test for the Dependencies method.
5987    
5988            * test/test_transientdb.py
5989            (TestTransientTable.test_auto_transient_table_dependencies): New.
5990            Test for the Dependencies method.
5991            (TestTransientTable.test_transient_joined_table): Add test for the
5992            Dependencies method.
5993    
5994            * test/test_session.py (TestSessionSimple.setUp)
5995            (TestSessionSimple.tearDown): New. Implement a better way to
5996            destroy the sessions.
5997            (TestSessionSimple.test_initial_state)
5998            (TestSessionSimple.test_add_table): Bind session to self.session
5999            so that it's destroyed by tearDown
6000            (TestSessionSimple.test_open_shapefile): New. Test for
6001            OpenShapefile and the object it returns
6002    
6003    2003-05-22  Bernhard Herzog  <[email protected]>
6004    
6005            * Thuban/Model/session.py (Session.AddTable): New method to
6006            register tables with the session.
6007            (Session.Tables): Return the tables registered with AddTable too.
6008    
6009            * test/test_session.py (TestSessionSimple.test_add_table): New.
6010            Test case for the AddTable method
6011    
6012    2003-05-22  Frank Koormann  <[email protected]>
6013    
6014            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
6015            lower right corner, center labels for selections, initialize controls
6016            in reasonable order for keyboard navigation.
6017    
6018            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
6019            (ProjFrame.__DoOnProjAvail): Determine position of current projection
6020            using the wxListBox.FindString() method. Still a problem (#1886)
6021    
6022            * Thuban/UI/classifier.py
6023            (Classifier.__init__, SelectPropertiesDialog.__init__)
6024    
6025            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
6026            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
6027            different classification types from here to __init__.
6028            (GenUniquePanel.__init__): Set the column width of the first field
6029            in the Field ListCtrl to the full width.
6030    
6031            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
6032            Button to 'Export'. Center Buttons in Selection Box, set Focus to
6033            Grid.
6034            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
6035            changes focus to the Selection when pressing "Alt-S".
6036    
6037            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
6038            the text if not visible. The italic font sometimes exceeds the
6039            rendering area.
6040    
6041    2003-05-21  Jonathan Coles   <[email protected]>
6042    
6043            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
6044            to OnClose so that Thuban closes correctly.
6045    
6046            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
6047            DockFrame.OnClose, not DockFrame._OnClose.
6048    
6049    2003-05-21  Jonathan Coles   <[email protected]>
6050    
6051            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
6052            references to 'inf' and use new Range __init__ to pass floats
6053            directly rather than converting them to strings first.
6054            Fixes RTBug #1876.
6055    
6056            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
6057            Use new Range ___init__ to pass floats.
6058    
6059            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
6060            filename is a valid image file. Throw IOError otherwise.
6061    
6062            * Thuban/Model/range.py: Brought over new Range from SciParam that
6063            is immutable and has an __init__ which can accept floats.
6064    
6065            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
6066            into try block. AddLayer doesn't throw any exceptions anymore.
6067            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
6068            try block.
6069    
6070            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
6071            the first item in choices. Fixes RTBug #1882.
6072    
6073            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
6074            has gone to 0 which is a serious problem. abort.
6075            (MapRenderer.draw_raster_layer): Catch IOError seperately and
6076            print the error from GDAL.
6077    
6078            * Thuban/UI/tableview.py (TableGrid.__init__): Call
6079            ToggleEventListeners to turn on listening.
6080            (TableGrid.ToggleEventListeners): New. Turns event listening on
6081            and off so as to prevent excessive messages.
6082            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
6083            to suppress excessive messages when selecting many rows.
6084            Fixes RTBug #1880.
6085    
6086            * Thuban/UI/view.py: Added checks against if scale == 0. This
6087            is a serious problem that can occur when an image without
6088            geo data is loading and causes the map projection bounds to
6089            go to infinity. Right now, the solution is to simply try
6090            to recover.
6091    
6092            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
6093            to set the MFILEReceiver attributes even if the data is NULL.
6094    
6095            * extensions/thuban/gdalwarp.cpp: Improved the error handling
6096            and passed GDAL messages back up to the Python layer. Also
6097            tried to fix some memory leaks that were present in the original
6098            utility but didn't matter because the program aborted.
6099    
6100            * test/test_range.py: Copied over tests from SciParam. Removed
6101            tests against importing. Fixes RTBug #1867.
6102    
6103    2003-05-21  Bernhard Herzog  <[email protected]>
6104    
6105            * test/test_load.py: Remove unused imports and restructure the
6106            test code
6107            (LoadSessionTest): Split into one class for each test and turn
6108            LoadSessionTest itself into the base class for all such session
6109            tests.
6110            (ClassificationTest): New base class for load tests that test
6111            classifications
6112            (TestSingleLayer, TestLayerVisibility, TestClassification)
6113            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
6114            for the individual tests
6115    
6116            * test/support.py (FileLoadTestCase.filename): New base class for
6117            file loading tests
6118    
6119    2003-05-21  Jan-Oliver Wagner <[email protected]>
6120    
6121            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
6122            Mercator' to 'UTM Zone 32' as a more convenient example.
6123            Added 'Gauss Krueger Zone 6'.
6124    
6125            * Data/iceland_sample_raster.thuban: political polygon now
6126            filled transparent to have the raster image visible at once.
6127    
6128    2003-05-21  Frank Koormann  <[email protected]>
6129    
6130            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
6131            OnClose() to keep in sync with extensions. Internally Thuban
6132            still uses "underscored" names.
6133    
6134    2003-05-20  Jonathan Coles   <[email protected]>
6135    
6136            This puts back Raster layer support. These layers support projections
6137            through the GDAL library. Currently, the CVS version is being used.
6138            There are no Debian packages available although this may change soon.
6139            A GDAL driver was extended to support writing to memory rather to
6140            files.
6141    
6142            There is still some work that needs to be done, such as some error
6143            handling when loading invalid images or when there is a problem
6144            projecting the image. This putback simply checks in the majority
6145            of the work.
6146    
6147            * setup.py: Add gdalwarp library extension.
6148    
6149            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
6150            Defaults to False, but can be overridden by subclasses if they
6151            support classification.
6152            (RasterLayer): New. Defines a new layer that represents an
6153            image.
6154    
6155            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
6156            tag handler.
6157            (SessionLoader.start_layer): Encode the filename.
6158            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
6159            New. Supports reading a rasterlayer tag.
6160    
6161            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
6162    
6163            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
6164            get a string in Latin1. If we get such as string convert it to
6165            unicode first, otherwise leave if alone before encoding.
6166            (SessionSaver.write_layer): Add support for writing both Layers
6167            and RasterLayers.
6168    
6169            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
6170            The right argument may not be a string, it could also be a Column.
6171    
6172            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
6173            Make initial window size 600x400. Fixes RTBug #1872.
6174    
6175            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
6176            the dialog is constructed so that we can support layers that
6177            do not have classifications.
6178            (Classifier._OnTry): Only build a classification if the layer
6179            supports one.
6180    
6181            * Thuban/UI/legend.py: Change all checks that a layer is an
6182            instance of Layer into checks against BaseLayer.
6183            (LegendTree.__FillTreeLayer): Only add children to a branch if
6184            the layer supports classification.
6185    
6186            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
6187            MainWindow.OpenSession): Don't proceed with an action if the
6188            user chooses Cancel when they are asked to save changes.
6189            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
6190            user to select an image file. Create a new RasterLayer and add
6191            it to the map.
6192    
6193            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
6194            for rendering RasterLayer layers.
6195            (MapRenderer.draw_raster_layer): Actually method that calls
6196            the GDALWarp python wrapper and constructs an image from the
6197            data returned.
6198    
6199            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
6200            Choices symbols to match those used in the table query method.
6201            Replace deprecated method calls on table with new method names.
6202    
6203            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
6204            how small the scale can get. This still needs more testing.
6205    
6206            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
6207            Provides a driver to output in .bmp format.
6208    
6209            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
6210            New. Provides IO routines which write to memory, rather than a file.
6211    
6212            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
6213            of the gdalwarp utility provided in GDAL. Added function calls
6214            that can be accessed from python.
6215    
6216            * Data/iceland_sample_raster.thuban: New. Sample file that uses
6217            a raster layer.
6218    
6219            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
6220            layer image data.
6221    
6222            * Doc/thuban.dtd: Added rasterlayer attribute definition.
6223    
6224            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
6225            tests associated with the raster layer code.
6226    
6227            * test/test_transientdb.py
6228            (TestTransientTable.test_auto_transient_table_query): Added a test
6229            for using a Column object as the "right" parameter to a query.
6230    
6231    2003-05-19  Frank Koormann  <[email protected]>
6232    
6233            * Thuban/version.py (get_changelog_date):
6234            Catch exceptions if ChangeLog does not exist.
6235    
6236            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
6237    
6238  2003-05-19  Frank Koormann  <[email protected]>  2003-05-19  Frank Koormann  <[email protected]>
6239    
6240          Extended version information for Thuban          Extended version information for Thuban

Legend:
Removed from v.924  
changed lines
  Added in v.2242

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26