/[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 370 by jonathan, Mon Jan 27 12:21:23 2003 UTC revision 2213 by bh, Mon May 17 15:48:53 2004 UTC
# Line 1  Line 1 
1    2004-05-17  Bernhard Herzog  <[email protected]>
2    
3            Update to newest shapelib and get rid of Thuban specific
4            extensions, i.e. use the new DBFUpdateHeader instead of our
5            DBFCommit kludge
6    
7            * libraries/shapelib/shpopen.c: Update to version from current
8            shapelib CVS.
9    
10            * libraries/shapelib/shapefil.h: Update to version from current
11            shapelib CVS.
12    
13            * libraries/shapelib/dbfopen.c: Update to version from current
14            shapelib CVS.
15            (DBFCommit): Effectively removed since shapelib itself has
16            DBFUpdateHeader now which is better for what DBFCommit wanted to
17            achieve.  
18            We're now using an unmodified version of dbfopen.
19    
20            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
21            value '1' to the Lib.dbflibc extension.  This simply reflects the
22            shapelib and pyshapelib updates
23    
24    2004-05-16  Jan-Oliver Wagner <[email protected]>
25    
26            Finished introduction of Menu.FindOrInsertMenu.
27    
28            * Extensions/drawshape/drawshape.py: Add the command
29            to the experimental menu additionally to the toolbar.
30    
31            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
32            finding menu on its own.
33    
34            * Doc/manual/thuban-manual.xml: updated sample file
35            to use FindOrInsertMenu().
36    
37            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
38            instead of finding menu on its own.
39    
40    2004-05-11  Jan-Oliver Wagner <[email protected]>
41    
42            * test/test_menu.py (MenuTest.test): Added testing
43            of method Menu.FindOrInsertMenu.
44    
45    2004-05-10  Jan-Oliver Wagner <[email protected]>
46    
47            Introduce and use Menu.FindOrInsertMenu.
48    
49            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
50              given menu or, if not found, insert it.
51    
52            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
53            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
54            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
55            menu on its own.
56    
57    2004-05-06  Jan-Oliver Wagner <[email protected]>
58    
59            Introduce a abstract ColorDialog class and remove
60            and outdated file.
61    
62            * Thuban/UI/proj4dialog.py: Removed. It is has been
63            replaced by projdialog for quite a while and is not used
64            anymore.
65    
66            * Thuban/UI/colordialog.py: New. Abstraction for color selection
67            dialog(s).
68    
69            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
70            Now calls the abstract ColorDialog instead of wxColourDialog.
71            This also removed the dependency to Color class conversion
72            from this function.
73    
74    2004-05-04  Frank Koormann  <[email protected]>
75    
76            * Extensions/bboxdump/__init__.py: Fixed string left over from
77            copying.
78    
79            * Extensions/bboxdump/bboxdump.py (bboxdump):
80            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
81            xrange(layer.NumShapes()). Compile the bboxmessage from a list
82            of formatted outputs (string.join) instead of appending to the
83            message. Two progress bar dialogs to report progress on the sometimes
84            lenghty processing.
85    
86    2004-04-22  Frank Koormann  <[email protected]>
87    
88            New Extension to dump bounding boxes of all shapes of the selected
89            layer. An optional column can be specified to group the objects,
90            in this case the bounding box is a union of the separate boxes.
91            Dump can be displayed in a ScrolledMessageDialog or written to file.
92            The Extension is simply a combination of available and well tested
93            Thuban functionality.
94    
95            * Extensions/bboxdump/__init__.py: New: Init to make this
96            directory a package.
97    
98            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
99            all shapes of the selected layer.
100    
101    2004-04-22  Jan-Oliver Wagner <[email protected]>
102    
103            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
104            strings to be i18n now.
105    
106    2004-04-18  Jan-Oliver Wagner <[email protected]>
107    
108            Changing popup menu of legend from direct building
109            to using the Menu construction as used for the mainwindow.
110    
111            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
112            layer_to_bottom, layer_visibility
113            (MainWindow.LayerToTop): New. Put current layer to the top.
114            (MainWindow.LayerToBottom): New. Put current layer to bottom.
115            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
116            Replace 1,0 by True, False.
117            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
118            current layer.
119            (MainWindow.LayerShowTable): Removed raising of dialog.
120            (_has_selected_layer_visible): New. Support function.
121    
122            * Thuban/UI/legend.py: ID_POP_xxx: removed.
123            (LegendPanel.__init__): Removed EVT_MENU bindings.
124            (LegendTree._OnRightClick): Replace direct creation of
125            menu via wx Classes by applying the menu definition
126            as of Menu class of menu.py.
127            
128    2004-04-16  Jan-Oliver Wagner <[email protected]>
129    
130            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
131        button string to stronger clearify that Thuban will be closed when hitting
132            the button.
133    
134            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
135            Now for layers without a ShapeStore a corresponding message is given
136            to the user, that this layer has no table to show.
137    
138    2004-04-15  Martin Schulze  <[email protected]>
139    
140            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
141            recalculate the format for the internal render engine as well.
142    
143            * Extensions/wms/properties.py (wmsProperties): First start for a
144            properties dialog.  It's functional for a first selection of
145            layers, but still has some weired wxWidgets/GTK problems but
146            beautification can be done later.
147    
148            * Extensions/wms/layer.py: Added more documentation
149            (WMSLayer.getFormats): New: Return list of supported image formats
150            by the WMS server
151            (WMSLayer.getLayers): New: Return the list of layer names
152            supported by the WMS server
153            (WMSLayer.getLayerTitle): New: Return the title of the named layer
154            (WMSLayer.getWMSFormat): New: Return the image format that is used
155            for WMS GetMap requests
156            (WMSLayer.setWMSFormat): New: Set the image format that is used
157            for WMS GetMap requests
158            (WMSLayer.__init__): Move away from using only one layer to using
159            a list of layers (unsorted at the moment, though).
160            (WMSLayer.getVisibleLayers): New: Return the list of names for all
161            visible layers
162            (WMSLayer.setVisibleLayers): New: Set the list of names for all
163            visible layers
164    
165            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
166            order to establish a clean structure.
167    
168            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
169            own in order to establish a clean structure.
170    
171    2004-04-13  Martin Schulze  <[email protected]>
172    
173            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
174            support for oldstyle (WMS 1.0 apparently) image format
175            specification.
176    
177            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
178            supported graphic formats back to JPEG and BMP, PNG and others are
179            too *cough* experimental...  Sorry, I meant to filter this out
180            before I committed this part.  This should make the WMS extension
181            run from CVS again.
182            (wms_dialog): Reset an empty URL to None so that the subsequent
183            program can depend on this, since the dialog will indeed return an
184            empty URL, causing another declaration of love by Python.
185    
186            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
187            Whenever a native BoundingBox request cannot be fulfilled, check
188            whether the requested SRS is EPSG:3426, in which case return the
189            LatLonBoundingBox values.
190    
191            * Extensions/wms/test/test_parser.py
192            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
193            ignoring AUTO:* SRS.
194            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
195            Added another test method to test whether the LatLonBoundingBox
196            values will be returned if BoundingBox values are requested with
197            SRS set to EPSG:3426.
198    
199            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
200            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
201            the moment by placing them into a variable which is currently
202            unused.  Also test whether the EPSG SRS is numerical as it should
203            be and add an error message if it is not.
204    
205            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
206            appear in the real world as well.  Since we cannot handle them yet
207            (OGCLib can't either), we will ignore them for the moment.
208    
209            * Extensions/wms/parser.py: Use a variable for denoting the sample
210            filename
211            (WMSCapabilitiesParser.peekLayers): Added support for error
212            messages during grok().  They will be aggregated in an array and
213            may be displayed later.  We may have to add a classification
214            "Warning" and "Error" to this.  That requires more experience,
215            though, since not every error may be lethal.
216    
217            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
218            ShowTable() dialog/frame when the user attempts to display it
219            while it has been opened before already and not closed again.
220    
221    2004-04-11  Martin Schulze  <[email protected]>
222    
223            * Extensions/wms/infodialog.py: Adjusted the class documentation
224    
225            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
226            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
227            wxWidgets variants.
228            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
229    
230            * Extensions/wms/infodialog.py: Added an information dialog that
231            will display various information about the WMS current resource,
232            so that additional information such as the title, the abstract,
233            fees and access constraints can be displayed for the user if they
234            are documented in the WMS XML.
235    
236    2004-04-10  Martin Schulze  <[email protected]>
237    
238            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
239            string handling.  It's "foo".lower() and not lower(foo) without
240            lower imported from strings or something.
241    
242            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
243            from capabilities.py and parser.py.  Implement priority list for
244            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
245            and GIF are supported here, but not yet by main Thuban.  Hence,
246            support for them may be removed later.  Special contribution to
247            usability: get wxWidgets to change the cursor when we're waiting
248            for data from the network so the user won't start to worry.  This
249            causes a redrawing error/warning, though.
250    
251            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
252            the DOM object.
253    
254    2004-04-01  Martin Schulze  <[email protected]>
255    
256            * Extensions/wms/capabilities.py: Adjusted documentation
257            (WMSCapabilities.__init__): Improved documentation, fixed syntax
258            (WMSCapabilities.saveCapabilities): Only catch IOError when
259            handling files
260            (WMSCapabilities.loadCapabilities): Only catch IOError when
261            handling files
262            __main__: corrected variable naming
263            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
264            class a specialisation of WMSCapabilitiesParser as well.  Also
265            execute grok() after loading or fetching capabilities, if that
266            went well, so that subsequent calls can already access the data.
267            (WMSCapabilities.getVersion): Export the used version of the
268            GetCapabilities request, so we can use it for subsequent calls,
269            i.e. for GetMap requests.
270            (WMSCapabilities.fetchCapabilities): Added proper error handling
271            when the GetCapabilities request failed, so that the surrounding
272            program can act accordingly.
273    
274    2004-03-30  Martin Schulze  <[email protected]>
275    
276            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
277            Adjusted the getLayerSRS method to return the list of SRSes
278            extracted from <SRS> elements instead of <BoundingBox> elements.
279            Added a bit of documentation as well.
280            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
281            since it was only implemented due to a misunderstanding.
282    
283            * Extensions/wms/test/test_parser.py
284            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
285            reflect the corrected interpretation of the standard: i.e. a layer
286            does not have to define a BoundingBox for all SRSes it supports.
287            Hence the <SRS></SRS> specification is authoritative, not the list
288            of BoundingBoxes.
289            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
290            to ensure None is returned for a non-existing SRS.
291            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
292            since it is not applicable anymore.  Listing more SRSes in <SRS>
293            elements is valid according to the specs.
294    
295    2004-03-26  Bernhard Reiter <[email protected]>
296    
297            * README: Nicer formatting of text. Improved descriptions.
298            Reflected wxWidgets name change.
299            
300            * Thuban/UI/about.py: Extended copyright to 2004 and added
301            information about the thuban-devel mailinglist.
302    
303    2004-03-24  Martin Schulze  <[email protected]>
304    
305            * Extensions/wms/capabilities.py: Renamed the class to contain
306            'WMS', also added a linebreak where required
307    
308            * Extensions/wms/parser.py: Finally added the XML parser for the
309            GetCapabilities response.
310    
311            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
312            <SRS> elements match the <BoundingBox> elements, except for the
313            layer 'beschriftung'.
314    
315            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
316            since Python uses unicode strings internally, otherwise
317            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
318            the SRS will be calculated anyway and this method is obsoleted by
319            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
320            Move loading the sample file into the setUp method.  Added a test
321            for finding the integrity problem in the sample response.
322            Improved formatting.
323    
324            * Extensions/wms/domutils.py: Added convenience routines for
325            handling of Document Object Model (DOM) nodes.
326    
327            * Extensions/wms/test/test_domutils.py: Added a test for the
328            domutils module
329    
330    2004-03-19  Martin Schulze  <[email protected]>
331    
332            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
333            Moved path detection and adding into a module of its own,
334            adjustpath, which exports thubandir as main Thuban directory.
335    
336            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
337            detection and adding into a module of its own, adjustpath, which
338            exports thubandir as main Thuban directory.  Reorganised the
339            module in order to support the SkipTest feature for Thuban test
340            cases.
341    
342            * Extensions/wms/test/adjustpath.py: Moved path detection and
343            adding into a module of its own.
344    
345    2004-03-18  Martin Schulze  <[email protected]>
346    
347            * Extensions/wms/test/test_parser.py: Added another test for
348            checking whether the WMS XML parser (to be implemented) returns
349            the information we expect.  This requires a sample WMS WML file
350            (sample.xml) which has been extracted from the frida server and
351            "improved" manually.
352    
353            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
354            main Thuban directory to the path in order to be able to import
355            random modules.  Adjusted the PyOGCLib detection to reuse the
356            information gathered.  Also added a note about the PYTHONPATH
357            environment variable.
358    
359            * Extensions/wms/test/test_ogclib.py: The format specification is
360            a mime-type, not a graphic format, hence image/jpeg wou ld be the
361            proper format and not JPEG.  We'll also have to take care of the
362            encoding of / as %2F.
363    
364    2004-03-16  Martin Schulze  <[email protected]>
365    
366            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
367            comprehensive test for the getMapURL method, built compare URLs
368            according to the documentation in OGC 01-068r3
369    
370            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
371            class WMSCapabilities to manage capabilites, will incorporate
372            parsing the capabilities response and provide details for other
373            classes.
374    
375    2004-03-12  Bernhard Herzog  <[email protected]>
376    
377            Support views in addition to normal tables in the postgis
378            shapestore
379    
380            * Thuban/Model/postgisdb.py
381            (PostGISShapeStore._fetch_table_information): Add a fallback for
382            the case where the table name is not in the geometry_columns
383            table.  This is usually the case for views.  Also, set
384            self.shapestore here.
385            (PostGISShapeStore.ShapeType): No need to query the database all
386            the time.  The shape type is now determined in
387            _fetch_table_information
388    
389            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
390            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
391            New parameter to specify views.
392            (PostGISDatabase.has_data): Also compare the views.  New views
393            parameter
394            (PostGISDatabase.initdb): Create the views.
395            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
396            view
397    
398            * test/test_postgis_db.py
399            (TestPostGISShapestorePointFromViews): New.  Test a
400            PostGISShapeStore with a view
401            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
402            the geometry_column explicitly to test whether that works
403    
404    2004-03-12  Bernhard Herzog  <[email protected]>
405    
406            Final step for explicit id/geometry columns: Loading and saving
407    
408            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
409            with the following changes:
410            (dbshapesource): Two new attributes id_column and geometry_column
411    
412            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
413            (SessionSaver.write_session): Use the new namespace
414            (SessionSaver.write_data_containers): Write the new dbshapesource
415            parameters
416    
417            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
418            the new file format version
419            (SessionLoader.start_dbshapesource): Handle the new db parameters
420    
421            * test/test_save.py: Update to the new dtd and namespace
422            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
423            mock object to provide a working IDColumn method.
424    
425            * test/test_load_1_0.py: New.  Copy of the test_load.py before
426            today's changes but with the round-trip tests removed.
427    
428            * test/test_load_0_9.py: Update doc-string.
429    
430            * test/test_load.py: Update all .thuban files to the new dtd and
431            namespace.
432            (TestPostGISLayer.file_contents): Add the new dbshapesource
433            paramters
434    
435    2004-03-11  Bernhard Herzog  <[email protected]>
436    
437            Next step for explicit id/geometry columns: User interaction
438    
439            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
440            the dialog is constructed. Add combo boxes to select id and
441            geometry column.  Rename some instance variables.
442            (ChooseDBTableDialog.GetTable): Return id and geometry column
443            names
444            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
445            selections in the table list
446    
447            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
448            and geometry_column
449    
450            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
451            parameters for id_column and geometry column of PostGISShapeStore
452            here as well.
453    
454            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
455            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
456            (PostGISConnection.GeometryTables): Use a better query to
457            determine which relations in the database might be usable for
458            shapestores.  Now supports views as well but is more PostgreSQL
459            specific
460            (PostGISConnection.table_columns): New. Somewhat experimental
461            method to let the db dialogs provide lists of columns to users so
462            that they can select id and geometry columns.
463            (PostGISTable.__init__): The default value of the id_column
464            parameter is now None it still means "gid" effectively, though.
465            (PostGISTable.IDColumn): New introspection method to return a
466            column object for the id column
467            (PostGISShapeStore.GeometryColumn): New introspection method to
468            return a column object for the geometry column
469    
470            * test/test_postgis_db.py
471            (TestPostGISConnection.test_gis_tables_non_empty):
472            Removed. Subsumed by the new:
473            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
474            New. Tes the GeometryTables and table_columns methods with actual
475            tables and views.
476            (PointTests.test_id_column, PointTests.test_geometry_column):
477            New. tests for the new methods.
478            (TestPostGISShapestorePoint.setUp)
479            (TestPostGISShapestorePointSRID.setUp)
480            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
481            instance variables needed by the new tests
482    
483    2004-03-11  Bernhard Herzog  <[email protected]>
484    
485            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
486            numbers given to ReadValue are ordinals.
487    
488    2004-03-11  Bernhard Herzog  <[email protected]>
489    
490            Elimiate the requirement for PostGIS tables to have a column
491            called "gid".
492    
493            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
494            id_column to specify which column to use to identify rows.  Also
495            new instance variables id_column and quoted_id_column
496            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
497            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
498            (PostGISTable.SimpleQuery): Use the id column name provided to the
499            constructor instead of "gid"
500            (PostGISShapeStore.__init__): New parameter id_column analogously
501            to PostGISTable.__init__.  This parameter is simply passed through
502            to the base class constructor
503            (PostGISShapeStore._create_col_from_description): Fix typo in
504            doc-string
505            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
506            (PostGISShapeStore.ShapesInRegion): Use the id column name
507            provided to the constructor instead of "gid"
508    
509            * test/postgissupport.py
510            (PostgreSQLServer.get_default_static_data_db): New static table
511            landmarks_point_id with an id column != "gid.  Update the comments
512            a bit.
513            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
514            doc-
515            (upload_shapefile): New parameter gid_column to use a name other
516            than "gid" for the column to store the shape ids
517    
518            * test/test_postgis_db.py (TableTests): New.  Mixin-class
519            containing all tests previously in TestPostGISTable.  The actual
520            tests are the same but the code is a bit more configurable to
521            allow for different id columns etc.
522            (TestPostGISTable): Derive from TableTests now for the actual
523            tests.
524            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
525            except that it the landmarks_point_id table to test the id_column
526            parameter
527            (PointTests): Extend the doc-string
528            (TestPostGISShapestorePointExplicitGIDColumn)
529            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
530            from PointTests to test the explicit id_column parameter.  One
531            tests with the name of the column holding the shape ids, the other
532            uses PostgreSQL's OID column.  For the latter a number of methods
533            have to be overwritten to make them independent of the actual id
534            values.
535    
536    2004-03-08  Silke Reimer  <[email protected]>
537    
538            Update debian directory:
539    
540            * debian/changelog: Added new version.
541            * deiban/rules: Updated management of patches (with cbds)
542            * debian/control: Added cbds to dependencies
543            * debian/patches/*: New. Adds better support for patches of thuban in
544                            debian
545            * debian/menu: Syntax of menu changed slightly
546            * debian/setup.py.patch: removed because it has been moved to
547                            debian/patechs/setup.py.patch
548            
549    
550    2004-02-26  Bernhard Herzog  <[email protected]>
551    
552            Create the Doc/technotes directory for text files with information
553            for developers
554    
555            * Doc/technotes/README: New. README for the technotes
556    
557            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
558            Thuban
559    
560            * Doc/technotes/release_process.txt: New. Used to be
561            HOWTO-Release.  Now slightly adapted to technote formatting style.
562    
563            * HOWTO-Release: Removed.  It's contents are now in
564            Doc/technotes/release_process.txt
565    
566    2004-02-25  Bernhard Herzog  <[email protected]>
567    
568            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
569            version of wxWindows the module was compiled with so we can check
570            that against the wxPython version.
571    
572            * Thuban/version.py (thuban_branch, thuban_release): New variables
573            controlling which and how Thuban versions are shown.  See the
574            comments for details.
575            (verify_versions): Also check that the wx version that wxproj is
576            compiled against matches that of the wxPython we use at runtime
577    
578    2004-02-20  Bernhard Herzog  <[email protected]>
579    
580            * Extensions/wms/wms.py (epsg_code_to_projection): Use
581            get_system_proj_file to read the epsg projections.  The old way
582            depended on the current directory being the top Thuban directory.
583    
584    2004-02-20  Bernhard Herzog  <[email protected]>
585    
586            * Extensions/svgexport/test/test_svgmapwriter.py
587            (TestVirtualDC.test_clippath): Remove a debug print
588    
589    2004-02-20  Bernhard Herzog  <[email protected]>
590    
591            * Extensions/svgexport/__init__.py: New.  Turn
592            Extensions/svgexport into a package.
593    
594            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
595            doc-string a bit.  The doc-string must come first, otherwise it's
596            not a doc-string.  The __future__ import must be the first thing
597            after the doc-string.  Use only double quotes in doc-strings.
598            Single quotes trip up emacs syntax highlighting if the text
599            contains apostrophes.
600    
601    2004-02-20  Bernhard Herzog  <[email protected]>
602    
603            * Extensions/svgexport/test/__init__.py,
604            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
605            suite for svgexport
606    
607            * test/runtests.py (find_test_modules): New. Function with the
608            module finding code from main.
609            (main): Use find_test_modules to figure out the default test
610            modules and take modules from Extensions.svgexport.test too.
611    
612    2004-02-19  Bernhard Herzog  <[email protected]>
613    
614            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
615            the mainwindow has a reference to the map of the initial session.
616            This fixes a bug introduced with the fix for RT#2245
617    
618    2004-02-19  Bernhard Herzog  <[email protected]>
619    
620            * Extensions/svgexport/svgsaver.py,
621            Extensions/svgexport/svgmapwriter.py,
622            Extensions/svgexport/maplegend.py: Added again.  This time in the
623            correct place.
624    
625    2004-02-17  Bernhard Herzog  <[email protected]>
626    
627            Fix for RT#2245
628    
629            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
630            instance variables before trying to create any windows.  Creating
631            windows can start an event loop if e.g. message boxes are popped
632            up for some reason, and event handlers, especially EVT_UPDATE_UI
633            may want to access things from the application.
634            (ThubanApplication.maps_changed): The mainwindow may not have been
635            created yet, so check whether it has been created before calling
636            its methods
637    
638            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
639            have a map
640    
641    2004-02-17  Bernhard Herzog  <[email protected]>
642    
643            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
644            Extensions/svgmapwriter.py, Extensions/maplegend.py,
645            extensions/svgexport/svgsaver.py,
646            extensions/svgexport/svgmapwriter.py,
647            extensions/svgexport/maplegend.py: Removed.  These files were in
648            the wrong places or didn't work at all.
649    
650    2004-02-16  Bernhard Herzog  <[email protected]>
651    
652            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
653            line
654    
655    2004-02-16  Bernhard Herzog  <[email protected]>
656    
657            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
658    
659    2004-02-15  Markus Rechtien  <[email protected]>
660            
661            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
662            to write a session to a file in SVG format.
663            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
664            to write a SVG map of a session.
665            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
666            in SVG format for the current session.
667    
668    2004-02-13  Bernhard Herzog  <[email protected]>
669    
670            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
671            can't be created, return immediately after displaying the error
672            message.
673    
674    2004-02-11  Bernhard Herzog  <[email protected]>
675    
676            Handle postgis tables with more than one geometry column.
677    
678            * Thuban/Model/postgisdb.py
679            (PostGISTable._fetch_table_information): Delegate the creation of
680            column objects to a different method so that we can extend that in
681            derived classes
682            (PostGISTable._create_col_from_description): New. Column object
683            creation part of _fetch_table_information
684            (PostGISShapeStore._create_col_from_description): New. Extend
685            inherited method to handle geometry columns
686            (PostGISShapeStore.__init__): New parameter geometry_column to
687            specify which geometry column to use.  Optional but mandatory for
688            tables with more than one geometry column
689            (PostGISShapeStore._fetch_table_information): Also use the name of
690            the geometry column when looking for the srid
691            (PostGISShapeStore.ShapeType): Also use the name of the geometry
692            column when looking for the shape type
693    
694            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
695            NonConnectionStore to changes in the PostGISShapeStore
696    
697            * test/test_postgis_db.py
698            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
699            PostGISShapeStore with tables having two geometry columns.
700    
701    2004-02-10  Bernhard Herzog  <[email protected]>
702    
703            Fix some postgis problems.  What remains to be done is real
704            handling of SRIDs as they affect how reprojection is done
705    
706            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
707            doc-string
708            (PostGISShapeStore._fetch_table_information): New. Extend
709            inherited method to retrieve srid
710            (PostGISShapeStore.BoundingBox): Handle tables without data.
711            extent yields NULL for those
712            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
713    
714            * test/test_postgis_db.py
715            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
716            for the special case of a table without any data
717            (TestPostGISShapestorePointSRID): New class with tests for a table
718            that uses srids
719            (PolygonTests): Fix a doc-string typo
720    
721            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
722            reference_systems with a specification of spacial reference
723            systems to create in the new db.
724            (PostgreSQLServer.new_postgis_db)
725            (PostgreSQLServer.get_static_data_db): New parameter
726            reference_systems to be passed through ultimately to
727            PostGISDatabase.  In new_postgis_db also check whether an existing
728            db already has the right srids
729            (PostgreSQLServer.get_default_static_data_db): Add srids and a
730            table that uses srids
731            (PostGISDatabase.initdb): Create the entries for the reference
732            systems
733            (PostGISDatabase.has_data): Add reference_systems parameter to
734            check for those too
735            (upload_shapefile): New parameter srid to create tables with a
736            specific srid
737    
738    2004-02-06  Frank Koormann  <[email protected]>
739    
740            * po/pt_BR.po: Fixed charset
741    
742    2004-02-05  Frank Koormann  <[email protected]>
743    
744            * po/pt_BR.po: Fixed format string for error message, missing %s
745            added (Thuban/UI/application.py:273)
746    
747    2004-02-03  Frank Koormann  <[email protected]>
748            
749            First version of Portuguese (Brazilian) translation
750    
751            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
752            Brazilian Portuguese by Eduardo Patto Kanegae.
753    
754            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
755            translators.
756    
757    
758    2004-01-22  Frank Koormann  <[email protected]>
759    
760            * Doc/manual/thuban-manual.xml: Added section on installation of
761            Thuban under Win32 systems. Fixed image path references in the postgis
762            section. Some minor source formattings.
763    
764    2004-01-21  Frank Koormann  <[email protected]>
765    
766            Make Thuban remember path selections (at least for one application run).
767    
768            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
769            attribute of application object. Path is a dictionary of
770            strings, currently with the items "data" and "projection".  
771            (Application.SetPath): New, stores path for the specified item.
772            (Application.Path): New, return path for the specified item.
773    
774            * Thuban/UI/mainwindow.py
775            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
776            MainWindow.AddLayer, MainWindow.AddRasterLayer,
777            MainWindow.TableOpen): Access "data" path information of the
778            application.
779            
780            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
781            Access "projection" path information of the application.
782    
783    2004-01-05  Bernhard Herzog  <[email protected]>
784    
785            * po/ru.po: Updated translations from Alex Shevlakov
786    
787    2004-01-05  Bernhard Herzog  <[email protected]>
788    
789            * po/Makefile, po/README: Move the description of how to generate
790            the translation statistics to the README.
791    
792    2003-12-23  Bernhard Herzog  <[email protected]>
793    
794            * NEWS: Update for 1.0.0
795    
796            * po/it.po: Another update from Maurizio Napolitano
797    
798    2003-12-23  Bernhard Herzog  <[email protected]>
799    
800            * po/it.po: Updated translation from Maurizio Napolitano
801    
802    2003-12-23  Bernhard Herzog  <[email protected]>
803    
804            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
805            for translation
806    
807            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
808            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
809            strings for translation
810    
811            * po/de.po: Update with the newly marked strings.
812    
813    2003-12-22  Bernhard Herzog  <[email protected]>
814    
815            * HOWTO-Release: Fix the places where version numbers have to be
816            updated
817    
818    2003-12-22  Bernhard Herzog  <[email protected]>
819    
820            * setup.py (setup call): 1.0.0, yeah!
821    
822            * Thuban/version.py (longversion): 1.0.0, yeah!
823    
824            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
825            1.0.0 namespace too
826    
827            * Thuban/Model/save.py (SessionSaver.write_session): Save with
828            1.0.0 namespace
829    
830            * test/test_load.py (LoadSessionTest.dtd)
831            (TestSingleLayer.file_contents)
832            (TestNonAsciiColumnName.file_contents)
833            (TestLayerVisibility.file_contents)
834            (TestClassification.file_contents, TestLabels.file_contents)
835            (TestLayerProjection.file_contents)
836            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
837            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
838            (TestPostGISLayerPassword.file_contents)
839            (TestLoadError.file_contents, TestLoadError.test): Update for
840            1.0.0 namespace
841    
842            * test/test_save.py (SaveSessionTest.dtd)
843            (SaveSessionTest.testEmptySession)
844            (SaveSessionTest.testSingleLayer)
845            (SaveSessionTest.testLayerProjection)
846            (SaveSessionTest.testRasterLayer)
847            (SaveSessionTest.testClassifiedLayer)
848            (SaveSessionTest.test_dbf_table)
849            (SaveSessionTest.test_joined_table)
850            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
851    
852    2003-12-22  Bernhard Herzog  <[email protected]>
853    
854            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
855            alignment flags are byte strings not unicode and that they have
856            valid values
857    
858            * test/test_load.py (TestLabelLayer): New. Test loading (and
859            indirectly saving) of maps with labels.
860    
861    2003-12-22  Bernhard Herzog  <[email protected]>
862    
863            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
864            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
865            unsubscribe all subscribers.
866            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
867            self.grid since it may already have been destroyed.
868            Fixes RT #2256
869    
870    2003-12-19  Bernhard Herzog  <[email protected]>
871    
872            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
873    
874    2003-12-16  Bernhard Herzog  <[email protected]>
875            
876            * debian/bitmappath.patch, debian/setup.py.patch:
877                    added to ensure compliance with FHS for debian
878            * debian/rules, debian/changelog:
879                added patches in rules to ensure compliance with FHS for debian
880    
881    2003-12-16  Bernhard Herzog  <[email protected]>
882    
883            * po/Makefile (mo): Make the output a bit nicer so that it prints
884            statistics about the translations. Add a comment how produce even
885            nicer statistics with sed.
886    
887    2003-12-09  Frank Koormann   <[email protected]>
888    
889            * Resources/Projections/defaults.proj:
890            French projection sample with correct accents (UNICODE).
891    
892    2003-12-05  Bernhard Herzog  <[email protected]>
893    
894            * MANIFEST.in: Add the devtools directory
895    
896            * setup.py (setup call): Use license instead of licence. This
897            silences a deprecation warning on Python 2.3
898    
899    2003-12-05  Frank Koormann   <[email protected]>
900    
901            Documentation synced with 1.0rc1
902    
903            * Doc/manual/thuban-manual.xml:
904            Minor formatting changes and references to database layers .
905            Introduction.Internationalization: New section on i18n.
906            MapManagement.AddingandRemovingLayers: Added item on database layers.  
907            MapManagement.TheLegend: Added section and screenshot on popup menu.
908            ProjectionManagement: Updated screenshot and sentence on EPSG.
909            Appendix.SupportedDataSources: Added PostGIS.
910            Appendix.WorkingwithPostGIS: New section.
911    
912            * Doc/manual/images/6_projection.png: Updated screenshot including
913            EPSG checkboxes.
914    
915            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
916    
917            * Doc/manual/images/app_postgis_add_layer.png,
918            Doc/manual/images/app_postgis_db_add.png,
919            Doc/manual/images/app_postgis_db_management.png:
920            New screenshots focussing on database layers
921    
922    2003-12-05  Frank Koormann   <[email protected]>
923    
924            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
925            write warning to stderr instead of rising a warning dialog
926    
927    2003-12-03  Bernhard Herzog  <[email protected]>
928    
929            Fix for RT #2243
930    
931            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
932            New. Like has_selected_layer but for shape layers only
933            (_has_selected_shape_layer): New. Like _has_selected_layer but for
934            shape layers only
935            (layer_show_table command, layer_jointable command): Use these
936            commands should only be available for shape layers
937    
938    2003-12-03  Bernhard Herzog  <[email protected]>
939    
940            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
941            publishers that are wx objects and may have been destroyed by wx
942            already. Fixes RT #2242.
943    
944    2003-12-03  Bernhard Herzog  <[email protected]>
945    
946            * po/ru.po: Updates from Alex Shevlakov
947    
948    2003-12-03  Silke Reimer <silkeintevation.de>
949    
950            * debian/control, debian/changelog: Added gdal-support to
951                    debian package, updated to new thuban version
952    
953    
954    2003-12-03  Bernhard Herzog  <[email protected]>
955    
956            * Thuban/Lib/version.py: New. Module for version number
957            manipulations. The version of make_tuple here also deals better
958            with more unusual version number strings, such as e.g.
959            "1.2+cvs20031111"
960    
961            * Thuban/version.py (make_tuple): Removed. It's now in
962            Thuban.Lib.version. Use that implementation instead.
963    
964            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
965    
966    2003-12-02  Bernhard Herzog  <[email protected]>
967    
968            * MANIFEST.in: Add debian files
969    
970            * setup.py (setup call): Add packages for the Extensions so that
971            they're installed too
972            (data_files): Add READMEs and sample data from some Extensions
973    
974            * NEWS: Add note about the extensions in binary packages
975    
976    2003-12-02  Bernhard Herzog  <[email protected]>
977    
978            * Thuban/Model/save.py (SessionSaver.write_session): Save files
979            with the thuban-1.0rc1
980    
981            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
982            thuban-1.0rc1 namespace too
983    
984            * test/test_save.py (SaveSessionTest.dtd)
985            (SaveSessionTest.testEmptySession)
986            (SaveSessionTest.testSingleLayer)
987            (SaveSessionTest.testLayerProjection)
988            (SaveSessionTest.testRasterLayer)
989            (SaveSessionTest.testClassifiedLayer)
990            (SaveSessionTest.test_dbf_table)
991            (SaveSessionTest.test_joined_table)
992            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
993            namespace
994    
995            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
996            namespace
997            (TestSingleLayer.file_contents)
998            (TestNonAsciiColumnName.file_contents)
999            (TestLayerVisibility.file_contents)
1000            (TestClassification.file_contents, TestLabels.file_contents)
1001            (TestLayerProjection.file_contents)
1002            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1003            (TestPostGISLayer.file_contents)
1004            (TestPostGISLayerPassword.file_contents)
1005            (TestLoadError.file_contents, TestLoadError.test): Update to
1006            thuban-1.0rc1 namespace
1007    
1008    2003-12-01  Bernhard Herzog  <[email protected]>
1009    
1010            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
1011            nt to better match Intevation's current w32 setup
1012    
1013            * HOWTO-Release: Add note about updating MANIFEST.in
1014    
1015            * MANIFEST.in: Add the Extensions
1016    
1017            * NEWS: Update for 1.0rc1
1018    
1019    2003-12-01  Bernhard Herzog  <[email protected]>
1020    
1021            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
1022            cards for the dialog so that shapefiles ending in all uppercase
1023            SHP are listed too
1024    
1025    2003-11-28  Bernhard Herzog  <[email protected]>
1026    
1027            * Thuban/version.py (longversion): Update to 1.0rc1
1028    
1029            * setup.py (setup call): Update version to 1.0rc1. Use the
1030            [email protected] email address as author email instead of my
1031            personal one.
1032    
1033    2003-11-28  Bernhard Herzog  <[email protected]>
1034    
1035            * po/de.po: Update german translation.
1036    
1037    2003-11-28  Bernhard Herzog  <[email protected]>
1038    
1039            Unify the filenames stored in .thuban files so that the .thuban
1040            files are more platform independend
1041    
1042            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
1043            that they can be used on both windows and unix
1044            (SessionSaver.prepare_filename): New. Handle all filename
1045            transformations for filenames stored in the thuban file
1046            (SessionSaver.write_data_containers, SessionSaver.write_layer):
1047            Use prepare_filename
1048    
1049            * test/test_save.py (SaveSessionTest.testSingleLayer)
1050            (SaveSessionTest.testLayerProjection)
1051            (SaveSessionTest.testRasterLayer)
1052            (SaveSessionTest.testClassifiedLayer)
1053            (SaveSessionTest.test_dbf_table)
1054            (SaveSessionTest.test_joined_table): Filenames are always stored
1055            with slashes on all currently supported platforms so adapt all
1056            tests to this
1057    
1058            * test/test_load.py (LoadSessionTest.filenames): With the new
1059            filename scheme the filenames in the tests should be
1060            understandable on all currently supported platforms so we turn
1061            this into an empty list because we don't have to normalize them
1062            anymore
1063    
1064    2003-11-28  Bernhard Herzog  <[email protected]>
1065    
1066            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1067            Add the ellipsoid to the projection since some Proj versions
1068            complain if it's missing.
1069    
1070    2003-11-27  Bernhard Herzog  <[email protected]>
1071    
1072            Corect some bounding box projection problems
1073    
1074            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
1075            version of ForwardBBox
1076            (Projection._transform_bbox): New. common implementation of
1077            ForwardBBox and InverseBBox
1078            (Projection.ForwardBBox): Use _transform_bbox.
1079    
1080            * test/test_proj.py (TestProjection.test): Add test for
1081            InverseBBox
1082    
1083            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
1084            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
1085            new InverseBBox method to determine the unprojected bounding box
1086            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
1087            bbox.
1088    
1089            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
1090            Removed.
1091            (TestLayer.test_arc_layer_with_projection): New. This test is
1092            better able to test whether bounding boxes are projected correctly
1093            than test_point_layer_with_projection
1094    
1095            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
1096            InverseBBox to unproject bboxes
1097    
1098    2003-11-25  Bernhard Herzog  <[email protected]>
1099    
1100            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
1101            source code.
1102    
1103    2003-11-25  Bernhard Herzog  <[email protected]>
1104    
1105            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
1106            there for backwards compatibility and all code relying on that
1107            should have been updated by now.
1108    
1109    2003-11-25  Bernhard Herzog  <[email protected]>
1110    
1111            * test/test_load.py (TestClassification.test): Add the missing
1112            round trip test.
1113            (TestClassification.file_contents): Update to the newest file
1114            format
1115    
1116    2003-11-25  Bernhard Herzog  <[email protected]>
1117    
1118            Add very experimental (and possibly dangerous) extension to draw
1119            polygons:
1120    
1121            * Extensions/drawshape/README: New. Brief installation
1122            instructions
1123    
1124            * Extensions/drawshape/drawshape.py: New. Implementation of the
1125            drawshape extensions
1126    
1127            * Extensions/drawshape/patch.diff: Patch to apply before the
1128            extension can be used.
1129    
1130    2003-11-24  Bernhard Herzog  <[email protected]>
1131    
1132            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
1133            (ShapefileStore.__init__): Factor opening the shapefile into a
1134            separate method (the new _open_shapefile). This makes the code a
1135            bit more readable but the real reason is that it makes some evil
1136            hacks easier. :-)
1137    
1138    2003-11-24  Bernhard Herzog  <[email protected]>
1139    
1140            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
1141            converter is specified for an attribute assume it's a string
1142            containing only Latin1 characters. Update doc-string accordingly.
1143            This change should fix many places where unicode objects might
1144            accidentally enter Thuban.
1145    
1146            * test/test_load.py (TestNonAsciiColumnName): New test to check
1147            what happens with column names in DBF files that contain non-ascii
1148            characters
1149    
1150    2003-11-21  Bernhard Herzog  <[email protected]>
1151    
1152            Enable the experimental attribute editing again and introduce a
1153            command line switch to actually activate it
1154    
1155            * Thuban/UI/main.py (options): New. Container for options set on
1156            the commmand line
1157            (main): Add the --enable-attribute-editing flag.
1158    
1159            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
1160            editing is enabled use the grid ctrl which allows editing of the
1161            values
1162    
1163            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
1164            New. Just delegate this to the underlying table.
1165    
1166    2003-11-20  Bernhard Herzog  <[email protected]>
1167    
1168            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
1169            Skip this test if run under non-posix systems since it only works
1170            there
1171    
1172    2003-11-19  Bernhard Herzog  <[email protected]>
1173    
1174            * Thuban/Model/resource.py: Rework the way gdal support is
1175            determined so that we can give a reason in the about why gdal is
1176            not supported.
1177            (gdal_support_status): New. Variable holding a string with the
1178            reason for no gdal support
1179    
1180            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
1181            not supported to the message
1182    
1183    2003-11-19  Bernhard Herzog  <[email protected]>
1184    
1185            Remove the old table interface and its test cases
1186    
1187            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
1188            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
1189            anymore
1190    
1191            * Thuban/Model/transientdb.py (TransientTableBase)
1192            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
1193            anymore
1194    
1195            * test/test_table.py: Removed since the old interface it tests is
1196            gone.
1197    
1198            * test/runtests.py (main): The old table interface is gone and
1199            with it the deprecation warnings so remove the code that turns
1200            these warnings into errors
1201    
1202    2003-11-19  Bernhard Herzog  <[email protected]>
1203    
1204            * test/test_table.py: Revert to revision 1.5 again. Changing the
1205            tests to use the new table interface is completely wrong since the
1206            whole purpose of the tests in this module is to test the old
1207            interface.
1208    
1209    2003-11-18  Bernhard Herzog  <[email protected]>
1210    
1211            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
1212            New. Test whether the connection matches a set of connection
1213            parameters
1214    
1215            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
1216            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
1217            for existing connections with the same parameters and break out of
1218            the loop correctly.
1219    
1220            * test/test_postgis_db.py (TestBriefDescription)
1221            (TestPostGISSimple.test_brief_description): Rename
1222            TestBriefDescription to TestPostGISSimple and the test method to
1223            test_brief_description so that we can add more test methods.
1224            (TestPostGISSimple.test_matches_parameters): New. Test the new
1225            MatchesParameters method
1226    
1227    2003-11-18  Bernhard Herzog  <[email protected]>
1228    
1229            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
1230            _was_destroyed, to indicate whether an publisher instance has
1231            already been destroyed.
1232            (Publisher.Unsubscribe): Only disconnect if the publisher has not
1233            been destroyed yet.
1234            (Publisher.Destroy): Set the _was_destroyed flag to true.
1235    
1236            * test/test_connector.py
1237            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
1238            calling Unsubscribe after Destroy doesn't raise an exception
1239    
1240    2003-11-14  Bernhard Herzog  <[email protected]>
1241    
1242            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
1243            typo in doc-string
1244    
1245    2003-11-13  Bernhard Herzog  <[email protected]>
1246    
1247            Quote table and column names properly for postgis.
1248    
1249            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
1250            quote an identifier for use in an sql statement
1251            (PostGISColumn.__init__): Add the quoted_name attribute
1252            (PostGISTable.__init__): New instance variable quoted_tablename
1253            (PostGISTable._fetch_table_information): Use the quoted table
1254            name. New isntance variable quoted_geo_col with a quoted version
1255            of geometry_column
1256            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
1257            (PostGISTable.RowOrdinalToId): Use the quoted table name
1258            (PostGISTable.ReadValue, PostGISTable.ValueRange)
1259            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
1260            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
1261            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
1262            Use quoted table and column names
1263    
1264            * test/test_postgis_db.py (TestPostGISSpecialCases)
1265            (TestPostGISIgnoredColumns): Rename the class to
1266            TestPostGISSpecialCases because that better describes the new
1267            cases
1268            (TestPostGISSpecialCases.test_unsupported_types)
1269            (TestPostGISSpecialCases.test): Rename the method to
1270            test_unsupported_types because we need a more descriptive name now
1271            that there are more methods
1272            (TestPostGISSpecialCases.test_table_name_quoting)
1273            (TestPostGISSpecialCases.test_column_name_quoting)
1274            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
1275            cases to test quoting of table and column names in PostGISTable
1276            and PostGISShapeStore
1277    
1278            * test/postgissupport.py
1279            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
1280            AddGeometryColumn desn't support table or column names with sapces
1281            or double quotes
1282    
1283    2003-11-12  Jan-Oliver Wagner <[email protected]>
1284    
1285            * Extensions/wms/__init__.py: New: Init to make this
1286            directory a package.
1287    
1288            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
1289    
1290    2003-11-11  Bernhard Herzog  <[email protected]>
1291    
1292            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
1293            Constant for the file woth deprecated epsg projections
1294            (get_system_proj_file): Update doc-string
1295    
1296            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
1297            above the EPS widgets, introduce a check box for the deprecated
1298            eps projections and a label for the epsg widgets
1299            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
1300            too
1301    
1302    2003-11-11  Bernhard Herzog  <[email protected]>
1303    
1304            Avoid warnings when run under Python 2.3
1305    
1306            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
1307            (BaseRenderer.draw_label_layer): Coordinates must be ints.
1308    
1309            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
1310            real method so that we can convert to int.
1311            (MapRenderer.label_font): The font size mist be an int.
1312    
1313            * Thuban/UI/common.py (Color2wxColour): The color values must be
1314            ints. Also, remove the unnecessary asserts.
1315    
1316            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
1317            (TestUnicodeStrings.test): Python source code should not contain
1318            non-ascii characters unless an encoding is specified in the file.
1319            Therefore use \x escapes in the string literals for non-ascii
1320            characters.
1321    
1322    2003-11-11  Bernhard Herzog  <[email protected]>
1323    
1324            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
1325            parameter so that this function can be used for all proj files in
1326            Resource/Projections
1327            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
1328            get_system_proj_file
1329    
1330            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
1331            ProjFile self.__sysProjFile use a dictionary of system ProjFile
1332            objects self._sys_proj_files
1333            (ProjFrame.build_dialog): Adapt to the new changes in the
1334            ProjectionList constructor. Add a check button to toggle whether
1335            EPSG projections are shown
1336            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
1337            events.
1338            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
1339            the busy cursor if the files have not yet been loaded by the
1340            dialog.
1341            (ProjFrame.load_system_proj): Add a parameter for the name of the
1342            proj file. Maintain the dictionary of system projections
1343            self._sys_proj_files
1344    
1345            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
1346            user_projs parameters into one parameter proj_files which is a
1347            list of proj files.
1348            (ProjectionList._subscribe_proj_files)
1349            (ProjectionList._unsubscribe_proj_files): New. Move
1350            subscription/unsubscription of projfile messages to separate
1351            methods
1352            (ProjectionList.Destroy): The unsubscribe is now done in
1353            _unsubscribe_proj_files
1354            (ProjectionList.update_projections): We now have a list of proj
1355            file objects
1356            (ProjectionList.SetProjFiles): New method to set a new list of
1357            proj file objects
1358    
1359            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
1360            Specify explicitly which system proj file to load.
1361    
1362    2003-11-11  Bernhard Herzog  <[email protected]>
1363    
1364            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
1365            instance variables to cut cyclic references. The GC would have
1366            collected the loader eventually but it can happen that it doesn't
1367            run at all until thuban is closed (2.3 but not 2.2 tries a bit
1368            harder and forces a collection when the interpreter terminates)
1369            (load_session): Call the handler's Destroy method to make sure
1370            that it gets garbage collected early. Otherwise it will be
1371            collected very late if at all and it holds some references to e.g.
1372            shapestores and the session which can lead to leaks (of e.g. the
1373            temporary files)
1374    
1375            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
1376            resource leak in load_session
1377    
1378    2003-11-10  Bernhard Herzog  <[email protected]>
1379    
1380            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
1381            extensions are to be rendered.
1382            (_renderer_extensions): New. List with renderer for layers in
1383            extensions
1384            (add_renderer_extension): New. Add a renderer extension
1385            (init_renderer_extensions): New. Init the renderer extensions
1386            (BaseRenderer.render_map_incrementally): Search
1387            _renderer_extensions for how to draw unknown layer types
1388            (BaseRenderer.draw_raster_data): Add format parameter so that
1389            formats other than BMP can be drawn
1390            (BaseRenderer.draw_raster_layer): Pass an explicit format to
1391            draw_raster_data
1392    
1393            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
1394            strings of the format parameter of draw_raster_data method to wx
1395            constants
1396            (MapRenderer.draw_raster_data): Add the format parameter and use
1397            raster_format_map to map it to the right wxwindows constant for
1398            wxImageFromStream
1399    
1400            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
1401            the format parameter and record it
1402            (TestBaseRenderer.test_raster_no_projection): check the format
1403            paramter of the draw_raster_data method
1404            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
1405            extension facility
1406    
1407    2003-11-07  Bernhard Herzog  <[email protected]>
1408    
1409            Tweak the usage of the sqlite database to make common use cases
1410            more responsive. In most cases copying the data to the sqlite
1411            database takes so long that using sqlite doesn't have enough
1412            advantages.
1413    
1414            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
1415            comments about performance and query the min and max in separate
1416            statements because only that way will indexes be used.
1417            (TransientTableBase.UniqueValues): Add some comments about
1418            performance.
1419            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
1420            Do not copy the data to the transient DB but use the transient
1421            copy if it exists. See the new comments for the performance trade
1422            offs
1423    
1424            * test/test_transientdb.py
1425            (TestTransientTable.test_auto_transient_table): Make sure that the
1426            data is copied to the transient database at some point.
1427    
1428    2003-11-03  Bernhard Herzog  <[email protected]>
1429    
1430            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
1431            globals to locals so that it's a bit faster
1432    
1433    2003-11-03  Bernhard Herzog  <[email protected]>
1434    
1435            * Thuban/UI/baserenderer.py
1436            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
1437            method. ReadValue is faster than ReadRowAsDict since it only reads
1438            one cell especially now that the dbf file objects actually
1439            implement it.
1440    
1441            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
1442            read_attribute method of the dbf objects
1443    
1444    2003-11-03  Bernhard Herzog  <[email protected]>
1445    
1446            * Extensions/profiling/profiling.py (popup_dialog_box): New config
1447            variable to indicate whether the result should be shown in a
1448            dialog box
1449            (profile_screen_renderer, time_screen_renderer): Only show a
1450            dialog box if popup_dialog_box is true.
1451            (profile_screen_renderer): Flush stdout after the printing the
1452            first part of the "profiling..." message
1453    
1454            * Thuban/UI/baserenderer.py
1455            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
1456            brushes for the groups so that they're not created over and over
1457            again
1458    
1459            * Thuban/Model/classification.py (Classification.__getattr__)
1460            (Classification._compile_classification)
1461            (Classification._clear_compiled_classification): New. Methods to
1462            manage a 'compiled' representation of the classification groups
1463            which is created on demand
1464            (Classification.InsertGroup, Classification.RemoveGroup)
1465            (Classification.ReplaceGroup): reset the compiled representation
1466            (Classification.FindGroup): Use the compiled representation to
1467            find the matching group
1468            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
1469    
1470    2003-10-31  Bernhard Herzog  <[email protected]>
1471    
1472            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
1473            Send a CLASS_CHANGED message
1474            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
1475            not return the removed group since it wasn't used.
1476    
1477            * test/test_classification.py
1478            (TestClassification.test_set_default_group): New. Test the
1479            SetDefaultGroup method
1480            (TestClassification.test_insert_group): New. Test the InsertGroup
1481            method
1482            (TestClassification.test_remove_group): New. Test the RemoveGroup
1483            method
1484            (TestClassification.test_replace_group): New. Test the
1485            ReplaceGroup method
1486    
1487    2003-10-31  Bernhard Herzog  <[email protected]>
1488    
1489            * test/test_classification.py (TestClassification.setUp):
1490            Subscribe to the CLASS_CHANGED messages
1491            (TestClassification.tearDown): New. Destroy the classification
1492            properly
1493            (TestClassification.test_defaults): Add tests for the default line
1494            width and whether no messages were sent yet
1495            (TestClassification.test_set_default_properties): Add tests for
1496            messages and setting the default line width
1497            (TestClassification.test_add_singleton)
1498            (TestClassification.test_add_range)
1499            (TestClassification.test_multiple_groups): Add tests for messages
1500    
1501    2003-10-31  Bernhard Herzog  <[email protected]>
1502    
1503            Some more refactoring in preparation for new tests:
1504    
1505            * test/test_classification.py (TestClassification.setUp): New.
1506            Instantiate the classification here. Update the test methods
1507            accordingly.
1508            (TestClassification.test_multiple_groups): Make sure that the two
1509            singletons matching 1 are considered different.
1510    
1511    2003-10-31  Bernhard Herzog  <[email protected]>
1512    
1513            * test/test_classification.py (red, green, blue): New. These
1514            constants were used in several cases. Update the relevant methods.
1515            (TestClassification.test_defaults)
1516            (TestClassification.test_set_default_properties)
1517            (TestClassification.test_add_singleton)
1518            (TestClassification.test_add_range)
1519            (TestClassification.test_multiple_groups)
1520            (TestClassification.test_deepcopy): New. These were formerly all
1521            part of the single method test.
1522            (TestClassification.test_deepcopy): Removed.
1523            (TestClassIterator): Removed. The test case is now a method of
1524            TestClassification since it tests part of the public interface of
1525            Classification
1526            (TestClassification.test_iterator): New. Used to be
1527            TestClassIterator effectively
1528    
1529    2003-10-31  Jan-Oliver Wagner <[email protected]>
1530    
1531            GUIfied the functions of the profiling extension.
1532    
1533            * /Extensions/profiling/__init__.py: New: Init to make this
1534            directory a package.
1535    
1536            * Extensions/profiling/profiling.py: Moved menu entries to
1537            the Extensions menu. Applied _() for strings.
1538            (profile_screen_renderer): Catch the detailed printout and present
1539            it in a dialog.
1540            (time_screen_renderer): Raise a dialog to present the result instead
1541            of printing it to stdout.
1542    
1543    2003-10-31  Bernhard Herzog  <[email protected]>
1544    
1545            * test/test_classification.py (TestClassGroupProperties)
1546            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
1547            (TestClassGroupSingleton, TestClassIterator, TestClassification):
1548            Split TestClassification into several classes, one for each class
1549            being tested. TestClassification itself now only tests
1550            Classification. This split makes changes to the tests a bit easier
1551    
1552    2003-10-31  Bernhard Herzog  <[email protected]>
1553    
1554            * Extensions/profiling/profiling.py: New. Extension to measure
1555            Thuban performance
1556    
1557    2003-10-31  Frank Koormann <[email protected]>
1558    
1559            Added two items to legend popup menu: Remove Layer and Show Layer Table
1560    
1561            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
1562            LegendPanel._OnShowTable): New event handlers, call the corresponding
1563            mainwindow methods.
1564            (LegendTree._OnRightClick): Added items to popup menu.
1565    
1566    2003-10-30  Bernhard Herzog  <[email protected]>
1567    
1568            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
1569            EVT_WINDOW_DESTROY
1570            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
1571            nothing but is convenient for the derived classes.
1572    
1573            * Thuban/UI/tableview.py
1574            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
1575            Unsubscribe the messages here not in OnClose because that might
1576            get called multiple times. Fixes RT #2196
1577            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
1578            anymore.
1579    
1580            * README: Update the minimum requirement for wxPython. Since we
1581            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
1582            the version in which that was introduced for all platforms
1583    
1584    2003-10-30  Frank Koormann <[email protected]>
1585    
1586            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
1587            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
1588            frame.
1589    
1590    2003-10-30  Jan-Oliver Wagner <[email protected]>
1591    
1592            Improved APR import extension, added further EPSG definitions
1593            and some cleanup regarding string class.
1594    
1595            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
1596            Added test for alias 'longlat'.
1597    
1598            * Resources/Projections/epsg-deprecated.proj: New. Contains
1599            deprecated EPSG definitions.
1600    
1601            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
1602            the variable names for objects.
1603    
1604            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
1605            Copied from importAPR and provided with documentation.
1606    
1607            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
1608            Moved to apr.py.
1609            (APR_View): Added object ref 'ITheme'.
1610    
1611            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
1612            split function by corresponding use of the string class method.
1613    
1614            * Thuban/Model/xmlwriter.py: Replaced string replace function by
1615            corresponding string method.
1616    
1617    2003-10-29  Bernhard Herzog  <[email protected]>
1618    
1619            * Thuban/UI/baserenderer.py
1620            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
1621            special case of a classification that only has the default group
1622    
1623    2003-10-27  Bernhard Herzog  <[email protected]>
1624    
1625            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1626    
1627            * po/de.po: Update.
1628    
1629            * Thuban/UI/application.py
1630            (ThubanApplication.ShowExceptionDialog): Handle translation of the
1631            dialog message properly
1632    
1633    2003-10-27  Bernhard Herzog  <[email protected]>
1634    
1635            Rework how localization works so that we use wx's translation
1636            functions when running Thuban as a normal application but not when
1637            we don't need any UI, such as in the test suite. See the comment
1638            in Thuban/__init__.py for details
1639    
1640            * Thuban/__init__.py (_): Add one level of indirection to make the
1641            translation handling more flexible and to make it possible to use
1642            either wx's translation services or not.
1643            (gettext_identity, translation_function_installed)
1644            (install_translation_function): New function to help with this
1645    
1646            * Thuban/UI/__init__.py: Install the wx specific translation
1647            function if it's OK to do that
1648    
1649            * test/support.py (initthuban): Install a dummy translation
1650            function so that importing Thuban.UI doesn't install a wx specific
1651            one for which would need to import wxPython
1652    
1653    2003-10-27  Bernhard Herzog  <[email protected]>
1654    
1655            * HOWTO-Release: Source archives should be created first and the
1656            binary packages should be created from the source archives.
1657            There's an official debian package now so there's no need to test
1658            the rpm on debian anymore
1659    
1660    2003-10-27  Bernhard Herzog  <[email protected]>
1661    
1662            Several rendering changes:
1663    
1664             - Render the selection into a separate bitmap so that only that
1665               bitmap needs to be redrawn when the selection changes
1666    
1667             - Render incrementally showing previews and allowing interaction
1668               before rendering is complete
1669    
1670             - Update the renderer interface a bit. Most parameters of
1671               RenderMap are now parameters of the constructor
1672    
1673            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
1674            and the update region as parameters. Update the doc-string
1675            (BaseRenderer.render_map_incrementally): New. Generator function
1676            to renders the map incrementally
1677            (BaseRenderer.render_map): Remove the map argument (it's now in
1678            the constructor) and simply iterate over the
1679            render_map_incrementally generator to draw the map.
1680            (BaseRenderer.draw_shape_layer_incrementally)
1681            (BaseRenderer.draw_shape_layer): Renamed to
1682            draw_shape_layer_incrementally and changed into a generator that
1683            yields True every 500 shapes. Used by render_map_incrementally to
1684            render shape layers incrementally
1685    
1686            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
1687            map and region parameters which are now in the constructor
1688            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
1689            the inherited render_map_incrementally.
1690            (BaseRenderer.draw_shape_layer): Removed.
1691            (ScreenRenderer.draw_selection_incrementally): New. The selection
1692            drawing part of the removed draw_shape_layer as a generator
1693            (ScreenRenderer.layer_shapes): Update because of the region
1694            parameter change
1695            (ExportRenderer.__init__): New. Extend the inherited constructor
1696            with the destination region for the drawing
1697            (ExportRenderer.RenderMap): Removed the map and region parameters
1698            which are now in the constructor
1699    
1700            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
1701            bitmap suitable for a preview in a tool
1702            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
1703            bitmap
1704            (MapPrintout.draw_on_dc): Adapt to new renderer interface
1705            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
1706            exists
1707            (MapCanvas.OnIdle): Update the logic to deal with incremental
1708            rendering and the selection bitmap
1709            (MapCanvas._do_redraw): Handle the instantiation of the render
1710            iterator and the redraws during rendering
1711            (MapCanvas._render_iterator): New. Generator to incrementally
1712            redraw both bitmaps
1713            (MapCanvas.Export): Adapt to new renderer interface.
1714            (MapCanvas.full_redraw): Reset the selection bitmap and the
1715            renderer iterator too
1716            (MapCanvas.redraw_selection): New. Force a redraw of the selection
1717            bitmap
1718            (MapCanvas.shape_selected): Only redraw the selection bitmap
1719    
1720            * test/test_baserenderer.py
1721            (TestBaseRenderer.test_polygon_no_projection)
1722            (TestBaseRenderer.test_raster_no_projection)
1723            (TestBaseRenderer.test_point_map_projection)
1724            (TestBaseRenderer.test_point_layer_and_map_projection)
1725            (TestBaseRenderer.test_point_layer_projection)
1726            (TestBaseRenderer.test_point_with_classification): Adapt to new
1727            renderer interface
1728    
1729    2003-10-24  Bernhard Herzog  <[email protected]>
1730    
1731            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
1732            (point_in_polygon_shape, shape_centroid): Raise an exception if
1733            the shape can't be read. Previously invalid shape ids would lead
1734            to a segfault.
1735    
1736            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
1737            New. test whether an exception is raised for invalid shape ids
1738    
1739    2003-10-24  Jan-Oliver Wagner <[email protected]>
1740    
1741            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
1742            as alias for 'latlong'.
1743    
1744            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
1745            as alias for 'latlong'.
1746    
1747    2003-10-24  Jan-Oliver Wagner <[email protected]>
1748    
1749            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
1750            the projection even for the UnknownPanel.
1751            (UnknownProjPanel.__init__): Define the text and create the textctrl
1752            widget.
1753            (UnknownProjPanel._DoLayout): Replaced static text widget by the
1754            textctrl created in __init__.
1755            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
1756            including the parameters of the projection.
1757            
1758    2003-10-24  Jan-Oliver Wagner <[email protected]>
1759    
1760            * Resources/Projections/epsg.proj: New. This is a list of
1761            EPSG codes with parameters for proj. The list has been
1762            generated using devtools/create_epsg.py based on the
1763            file nad/epsg of the proj 4.4.7 package. Four projection
1764            definitions have been deleted as they are not accepted by proj:
1765            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
1766            and "HD72 / EOV".
1767    
1768    2003-10-22  Bernhard Herzog  <[email protected]>
1769    
1770            Some more tweaks to the projection dialog which should fix RT
1771            #1886.
1772    
1773            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
1774            the ProjFile's messages and call the base class methods correctly
1775            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
1776            flag on the newly selected item too. Otherwise some other item is
1777            focused and the first time the focus is moved with the keyboard
1778            the selection moves in unexpected ways.
1779    
1780            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
1781            focus on the OK button, only on the projection list. That way the
1782            list really has the focus initially
1783            (ProjFrame.OnClose): Call the projection list's Destroy method to
1784            make it unsubscribe all messages
1785    
1786    2003-10-21  Bernhard Herzog  <[email protected]>
1787    
1788            Rework the projection dialog to fix a few bugs, including RT 2166
1789            and most of 2168
1790    
1791            * Thuban/UI/projlist.py: New. The class ProjectionList is a
1792            special wxListCtrl to show a list of projections in a more MVC
1793            fashion
1794    
1795            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
1796            throughout the class. The main change is to use the ProjectionList
1797            class instead of a normal wxListBox. Also, add an explicit
1798            "Unknown" projection to the projection choice control.
1799            (ProjPanel.__init__): Add an "unknown" ellipsoid
1800            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
1801            instantiation of the panel's controls to make the tab-order more
1802            natural
1803    
1804    2003-10-21  Bernhard Herzog  <[email protected]>
1805    
1806            * test/test_load.py (TestSingleLayer.file_contents)
1807            (TestSingleLayer.test): Add non-ascii characters to the titles of
1808            session, map and layer. This is effectively a port of the
1809            TestUnicodeStrings test in test_load_0_8.py which for some reason
1810            was only added there.
1811    
1812            * test/test_load_0_9.py (TestSingleLayer.file_contents)
1813            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
1814            characters to the titles of session, map and layer,.
1815    
1816    2003-10-21  Bernhard Herzog  <[email protected]>
1817    
1818            Add EPSG projection handling to .thuban files
1819    
1820            * test/test_save.py (SaveSessionTest.dtd)
1821            (SaveSessionTest.testEmptySession)
1822            (SaveSessionTest.testLayerProjection)
1823            (SaveSessionTest.testRasterLayer)
1824            (SaveSessionTest.testClassifiedLayer)
1825            (SaveSessionTest.test_dbf_table)
1826            (SaveSessionTest.test_joined_table)
1827            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
1828            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
1829            use a and epsg projection to test saving them
1830    
1831            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
1832            namespace
1833            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1834            (TestLayerProjection.file_contents)
1835            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1836            (TestPostGISLayer.file_contents)
1837            (TestPostGISLayerPassword.file_contents)
1838            (TestLoadError.file_contents, TestLoadError.test): Update to use
1839            1.0-dev namespace
1840            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
1841            use 1.0-dev namespace and use an EPSG projection to test whether
1842            loading it works
1843    
1844            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
1845            as of Thuban 0.9. These are now tests to determine whether Thuban
1846            can still read files generated by Thuban 0.9
1847    
1848            * Thuban/Model/save.py (SessionSaver.write)
1849            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
1850            namespace
1851            (SessionSaver.write_projection): Write the projection's epsg
1852            attribute
1853    
1854            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
1855            thuban-1.0-dev.dtd namespace
1856            (SessionLoader.check_attrs): Allow a callable object as conversion
1857            too
1858            (SessionLoader.start_projection, SessionLoader.end_projection)
1859            (SessionLoader.start_parameter): Handle the epsg attribute and
1860            rename a few instance variables to lower case
1861    
1862            * Resources/XML/thuban-1.0.dtd: New. Only difference to
1863            thuban-0.9.dtd is the epsg attribute for projections.
1864    
1865    2003-10-21  Bernhard Herzog  <[email protected]>
1866    
1867            * test/runtests.py (main): Let the user specify which tests to run
1868            on the command line
1869    
1870            * test/support.py (ThubanTestResult.getDescription): Override to
1871            give a better short description. The description can be used as a
1872            parameter to run_tests to run that particular test in isolation.
1873    
1874    2003-10-21  Frank Koormann   <[email protected]>
1875    
1876            Popup menu for legend. Scheduled for the 1.2 release this was too
1877            simple to implement: The popup menu is bound to the legend tree, while
1878            the events are hanlded by its anchestor, the legend panel. This
1879            allows reuse of all the event handlers already implemented for the
1880            legend toolbar buttons.
1881    
1882            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
1883            to add handlers for the events issued by the popup menu.
1884            (LegendPanel._OnToggleVisibility): Handler for toggling layer
1885            visibility event
1886            (LegendPanel._OnProjection): Handler for layer projection event.
1887            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
1888            (LegendTree._OnRightClick): Event handler for right click, select item
1889            and pop up menu.
1890            (LegendTree.ToggleVisibility): Toggle layer visibility
1891            (LegendTree.LayerProjection): Raise layer projection dialog for
1892            current layer.
1893    
1894    2003-10-21  Bernhard Herzog  <[email protected]>
1895    
1896            * Resources/Projections/defaults.proj: Use correct DOCTYPE
1897            declaration. The top-level element is projectionlist not projfile
1898    
1899    2003-10-20  Bernhard Herzog  <[email protected]>
1900    
1901            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
1902            method to write a projfile and display a busy cursor and error
1903            dialogs.
1904            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
1905            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
1906            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
1907            busy cursor while loading the user and system prj files.
1908    
1909    2003-10-16  Bernhard Herzog  <[email protected]>
1910    
1911            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
1912            ProjFile objects
1913            (clear_proj_file_cache): New function to clear the cache. Mainly
1914            useful for use by the test suite
1915            (read_proj_file): Use the cache.
1916    
1917            * test/test_proj.py (TestProjFile): Clarify the doc-string
1918            (ProjFileReadTests): Update doc-string
1919            (ProjFileReadTests.test_get_system_proj_file): Check whether the
1920            system proj files is cached.
1921            (ProjFileLoadTestCase): New base class for the proj file tests
1922            derived from support.FileLoadTestCase to provide some common
1923            behavior.
1924            (TestLoadingProjFile)
1925            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
1926            (TestProjFileWithInvalidParameters.file_contents): Derive from
1927            ProjFileLoadTestCase
1928            (TestLoadingProjFile.test_caching): New. Test whether the cache
1929            works
1930    
1931    2003-10-16      Silke Reimer    <[email protected]>
1932    
1933            * debian/*: New directory with configuration files for building a thuban
1934              deb-package.
1935    
1936    2003-10-14  Bernhard Herzog  <[email protected]>
1937    
1938            * test/test_proj.py: Execute support.run_tests when run as
1939            __main__ so that missing unsubscribes are detected
1940            (TestProjFile.tearDown): Destroy the proj_file properly
1941    
1942    2003-10-14  Bernhard Herzog  <[email protected]>
1943    
1944            * Thuban/Model/messages.py (PROJECTION_ADDED)
1945            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
1946            the ProjFile objects
1947    
1948            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
1949            easily send messages when the projections change
1950            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
1951            when the change was successful
1952    
1953            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
1954            proj file messages
1955            (TestProjFile.test_add_remove)
1956            (TestProjFile.test_remove_non_existing)
1957            (TestProjFile.test_replace)
1958            (TestProjFile.test_replace_non_existing): Test whether the right
1959            messages are sent
1960    
1961    2003-10-14  Bernhard Herzog  <[email protected]>
1962    
1963            * test/test_proj.py (TestProjFile.test): Refactor into several
1964            tests
1965            (TestProjFile.test_add_remove)
1966            (TestProjFile.test_remove_non_existing)
1967            (TestProjFile.test_replace)
1968            (TestProjFile.test_replace_non_existing): Some of the new
1969            individual test cases
1970            (TestProjFileSimple): New class for the rest of the test cases
1971            that came out of the refactoring
1972            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
1973            derived classes don't have to
1974    
1975    2003-10-13  Bernhard Herzog  <[email protected]>
1976    
1977            Add an optional EPSG code to the projection objects and extend the
1978            .proj file format accordingly.
1979    
1980            * Resources/XML/projfile.dtd (element projection): Add epsg
1981            attribute
1982    
1983            * Thuban/Model/proj.py (Projection.__init__): New parameter and
1984            instance variable epsg. Update doc-string
1985            (Projection.EPSGCode, Projection.Label): New methods to provide
1986            access to EPSG code and a label for use in dialogs
1987    
1988            * Thuban/Model/resource.py (ProjFileReader.start_projection)
1989            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
1990            Handle the epsg code attribute when reading or writing proj files
1991    
1992            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
1993            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
1994            (ProjFrame.__FillAvailList): Use the projection's Label method to
1995            get the string for the list box
1996    
1997            * test/test_proj.py (TestProjection.test_label)
1998            (TestProjection.test_label_epsg)
1999            (TestProjection.test_epsgcode_for_non_epsg_projection)
2000            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
2001            for the label and EPSGCode methods
2002            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
2003            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
2004            objects in the test cases and put the expected contents into the
2005            test case methods too. Update doTestWrite accordingly
2006            (TestLoadingProjFile)
2007            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
2008            read tests from TestProjFile.
2009            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
2010            tests are now in the new classes.
2011            (sample_projfile, sample_projfile_data)
2012            (sample_projfile2, sample_projfile_data2): Removed. Not used
2013            anymore.
2014            (TestProjFile.test_read_unreadable_file): No need to reset the
2015            permissions at the end anymore since we use a unique filename
2016    
2017    2003-10-13  Bernhard Herzog  <[email protected]>
2018    
2019            * test/test_proj.py: Some more refactoring of the test cases
2020            (ProjFileTest): New base class for the proj file tests.
2021            (TestProjFile): Derive from ProjFileTest
2022            (TestProjFile.test_read_unreadable_file)
2023            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
2024            the new filename method to get a unique filename
2025            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
2026            (WriteProjFileTests): New class for proj file write tests.
2027            Contains the write test that were in TestProjFile originally.
2028    
2029    2003-10-13  Bernhard Herzog  <[email protected]>
2030    
2031            * test/test_proj.py (TestProjFile.testRead)
2032            (TestProjFile.test_read_non_existing_file)
2033            (TestProjFile.test_read_unreadable_file)
2034            (TestProjFile.test_read_empty_file): Split into several methods.
2035    
2036    2003-10-10  Bernhard Herzog  <[email protected]>
2037    
2038            * Thuban/UI/sizers.py: New file with custom sizers.
2039    
2040            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
2041            all projection type specific panels and put them into a
2042            NotebookLikeSizer. This way the dialog doesn't change its size
2043            when a different projection is selected
2044            (ProjFrame.__init__): Rename projection_panels
2045            projection_panel_defs and reuse projection_panels for a list of
2046            the instantiated panels.
2047            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
2048            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
2049            the panels
2050            (UnknownProjPanel._DoLayout): Place the newlines in the message
2051            differently to make the panel narrower.
2052            (TMPanel._DoLayout): Layout the parameters in one column.
2053    
2054    2003-10-10  Bernhard Herzog  <[email protected]>
2055    
2056            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
2057            that contains all the setup for the dialog's widgets, layout and
2058            event handling.
2059            (__): Call build_dialog to build the dialog.
2060            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
2061            Their functionality is now in build_dialog
2062            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
2063            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
2064            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
2065            different widget names and hierarchy introduced with build_dialog.
2066    
2067    2003-10-10  Bernhard Herzog  <[email protected]>
2068    
2069            * README: Fix typo.
2070    
2071    2003-10-09  Bernhard Herzog  <[email protected]>
2072    
2073            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
2074            projection is already in the list. This is *a lot* faster when
2075            loading files with hundreds of projections since it saves a linear
2076            search. OTOH this will allow adding the same projection to the
2077            user.proj file multiple times in the projection dialog but we'll
2078            deal with that later
2079    
2080    2003-10-09  Jan-Oliver Wagner <[email protected]>
2081    
2082            * devtools: New. Directory for developer tools that are not intended
2083            for the regular user.
2084    
2085            * devtools/create_epsg.py: New. Convert the epsg file of proj into
2086            a python .proj file.
2087    
2088    2003-10-09  Bernhard Herzog  <[email protected]>
2089    
2090            * test/test_proj.py
2091            (TestProjection.test_get_parameter_without_equals_sign): New. Test
2092            whether GetParameter handles parameters without "=" sign correctly
2093    
2094            * Thuban/Model/proj.py (Projection.GetParameter): Handle
2095            parameters that do not contain a "=". Update the doc-string
2096    
2097    2003-10-08  Bernhard Herzog  <[email protected]>
2098    
2099            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
2100            length limit on the projname text control
2101    
2102    2003-10-08  Bernhard Herzog  <[email protected]>
2103    
2104            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
2105            (TestProjection.test_get_projection_units_normal): New. Tests for
2106            the Projection.GetProjectedUnits method
2107    
2108    2003-10-08  Jan-Oliver Wagner <[email protected]>
2109    
2110            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
2111            Added missing 'val' parameter.
2112    
2113    2003-10-08  Bernhard Herzog  <[email protected]>
2114    
2115            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
2116            projection type of the currently selected projection is not known,
2117            i.e. there's no panel for it, use the UnknownProjPanel
2118            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
2119            the actual replacing of the proj panel into the new method
2120            _show_proj_panel.
2121            (UnknownProjPanel): Add doc-string.
2122            (UnknownProjPanel._DoLayout): Insert a newline into the text so
2123            that the panel is not so wide.
2124    
2125    2003-10-08  Bernhard Herzog  <[email protected]>
2126    
2127            * Thuban/Model/resource.py (read_proj_file): Return the warnings
2128            too. Update the doc-string
2129            (get_proj_files): Removed. It wasn't used anywhere
2130            (get_system_proj_files, get_system_proj_file): Rename to
2131            get_system_proj_file and return the ProjFile object and not a list
2132            of ProjFile objects. Update the callers.
2133            (get_user_proj_files, get_user_proj_file): Rename to
2134            get_user_proj_file return the ProjFile object and not a list of
2135            ProjFile objects. Update the callers.
2136            (ProjFileReader.__init__): New instance variable for the warnings.
2137            Rename the __pf ivar to projfile. Update the methods referring to
2138            __pf
2139            (ProjFileReader.end_projection): Catch any errors raised when
2140            instantiating the projection and record that as an error. The
2141            projection will not be in the final ProjFile object.
2142            (ProjFileReader.GetWarnings): New method to return the warnings.
2143    
2144            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
2145            show the warnings from the projfile reader
2146            (ProjFrame._OnImport): Deal with any warnings returned by
2147            read_proj_file
2148            (ProjFrame.__FillAvailList): Deal with any warnings returned by
2149            get_system_proj_file or get_user_proj_file.
2150    
2151            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
2152            (TestProjFileWithInvalidParameters.file_contents): New test cases
2153            to test whether read_proj_file handles invalid projection
2154            parameters correctly
2155            (TestProjFile.test_get_system_proj_file): New. Simple test for
2156            resource.get_system_proj_file
2157    
2158    2003-10-07  Bernhard Herzog  <[email protected]>
2159    
2160            * test/test_derivedshapestore.py
2161            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
2162            properly so that the temporary directories get deleted correctly
2163    
2164    2003-10-06  Bernhard Herzog  <[email protected]>
2165    
2166            Handle the title changes in a proper MVC way.
2167    
2168            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
2169            canvas' TITLE_CHANGED messages
2170            (MainWindow.update_title): New. Update the main window's title
2171            (MainWindow.__SetTitle): Removed. Use update_title instead.
2172            (MainWindow.SetMap): Use update_title instead of __SetTitle
2173            (MainWindow.RenameMap): Do change the window title explicitly
2174            here. That's handled in a proper MVC way now.
2175            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
2176            messages
2177    
2178            * Thuban/Lib/connector.py (Conduit): New class to help classes
2179            that forward messages
2180    
2181            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
2182            (ViewPort): Derive from Conduit instead of Publisher
2183            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
2184            when calling the inherited versions
2185            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
2186            methods to subscribe and unsubscribe map messages
2187            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
2188            handle the map subscriptions
2189            (ViewPort.Map, ViewPort.map_projection_changed)
2190            (ViewPort.layer_projection_changed): Add or update doc-strings
2191    
2192            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
2193            typo
2194            (MyConduit): Helper class for the Conduit test.
2195            (TestConduit): Test cases for Conduit
2196    
2197            * test/test_connector.py: Use support.run_tests as main.
2198    
2199            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
2200            the TITLE_CHANGED messages
2201            (ViewPortTest.test_forwarding_title_changed): New test to check
2202            whether the viewport forwards the map's TITLE_CHANGED messages
2203            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
2204            after the port's because the latter may require a still functional
2205            map.
2206    
2207    2003-10-06  Bernhard Herzog  <[email protected]>
2208    
2209            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
2210            doc-string
2211    
2212    2003-10-06  Bernhard Herzog  <[email protected]>
2213    
2214            * test/test_viewport.py (ViewPortTest.setUp)
2215            (SimpleViewPortTest.test_init_with_size): Move the test for the
2216            initial size as a constructor parameter from ViewPortTest.setUp
2217            method to a new separate test in SimpleViewPortTest.
2218    
2219    2003-10-06  Bernhard Herzog  <[email protected]>
2220    
2221            * test/test_viewport.py (MockView): New class derived from
2222            ViewPort with a mock implementation of GetTextExtent to be used in
2223            the test cases
2224            (ViewPortTest.setUp): Use MockView instead of ViewPort
2225    
2226            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
2227            into what would be a "pure virtual function" in C++: always raise
2228            NotImplementedError. Mock implementations for test cases don't
2229            belong into the real code
2230    
2231    2003-10-02  Bernhard Herzog  <[email protected]>
2232    
2233            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
2234            close the dbf file we create so that it's contents have been
2235            written properly.
2236    
2237            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
2238            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
2239            Update to shapelib 1.2.10
2240    
2241    2003-10-01  Jan-Oliver Wagner <[email protected]>
2242    
2243            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
2244            it annoys lintian which warns about these files not being
2245            executable. The #! isn't necessary here since if you absolutely
2246            must execute them you can always say "python <filename>".
2247    
2248    2003-09-26  Bernhard Herzog  <[email protected]>
2249    
2250            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
2251            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
2252            is ported to a newer the import will fail, so it should be noticed
2253            immediately that this function is gone.
2254            Fixes RT#1919
2255    
2256    2003-09-26  Bernhard Herzog  <[email protected]>
2257    
2258            Add a DTD for the projection files and make thuban write valid
2259            projection files
2260    
2261            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
2262            files
2263    
2264            * Thuban/Model/resource.py (ProjFileSaver.write): Use
2265            'projectionlist' as the name in the document type declaration so
2266            that it matches the element type of the root element.
2267    
2268            * test/test_proj.py (sample_projfile, sample_projfile2): Use
2269            'projectionlist' as the name in the document type declaration just
2270            as it is done now in the files thuban would write
2271            (sample_projfile, sample_projfile_data): Fix spelling of
2272            "Mercator"
2273            (TestProjFile.doTestWrite): Validate the written and the expected
2274            XML data
2275            (TestProjFile): Derive from ValidationTest so that we can run xml
2276            validation tests
2277    
2278    2003-09-24  Bernhard Herzog  <[email protected]>
2279    
2280            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
2281            modify the list returned by map.Layers() in place since it is the
2282            actual list of layers used by the map.
2283    
2284    2003-09-23  Jan-Oliver Wagner <[email protected]>
2285    
2286            * Doc/manual/thuban-manual.xml: Added subsection to chapter
2287            Extensions to describe the extensions coming with the Thuban
2288            standard package (gns2shp and importAPR).
2289    
2290    2003-09-23  Bernhard Herzog  <[email protected]>
2291    
2292            * libraries/thuban/wxproj.cpp (project_point): if there's an
2293            inverse but no forward projection, convert to degrees after
2294            applying the inverse projection. Fixes RT#2096
2295    
2296            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
2297            implicitly tests for the fix to RT#2096
2298    
2299            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
2300            Check that the sequences have the same lengths
2301    
2302            * Resources/Projections/defaults.proj (Geographic projection): Use
2303            a much more precise value for the to_meter attribute.
2304    
2305    2003-09-22  Bernhard Herzog  <[email protected]>
2306    
2307            * test/support.py (initthuban): Make sure to unset the LANG env.
2308            var. so that tests that compare translated strings work. Solves RT
2309            #2094
2310    
2311    2003-09-22  Jan-Oliver Wagner <[email protected]>
2312    
2313            Small improvement of APR import.
2314    
2315            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
2316            Added tests for text-ranges.
2317    
2318            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
2319            returns a string object if the range is based on text.
2320    
2321            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
2322            range retrieval.
2323    
2324    2003-09-22  Jan-Oliver Wagner <[email protected]>
2325    
2326            Initial version of the importAPR extension which is in
2327            experimental state.
2328    
2329            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
2330            /Extensions/importAPR/test/: New directories.
2331    
2332            * /Extensions/importAPR/samples/README: New: Howto load the samples.
2333    
2334            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
2335            file which refers to the Thuban Iceland demo data.
2336    
2337            * /Extensions/importAPR/test/README: New: Howto execute the tests.
2338    
2339            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
2340    
2341            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
2342            as in '.apr'-files.
2343    
2344            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
2345            ODB Objects as in '.apr', '.avl' and other files.
2346    
2347            * /Extensions/importAPR/__init__.py: New: Init to make this
2348            directory a package.
2349    
2350            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
2351            project file (.apr) and convert it to Thuban.
2352    
2353    2003-09-22  Jan-Oliver Wagner <[email protected]>
2354    
2355            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
2356    
2357    2003-09-19  Jan-Oliver Wagner <[email protected]>
2358    
2359            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
2360            with description on RPM installation and RPM binary package
2361            creation.
2362    
2363    2003-09-18  Bernhard Herzog  <[email protected]>
2364    
2365            * setup.py (data_files): Only add the mo files if the Locales
2366            directory actually exists, so that setup.py works with a fresh CVS
2367            checkout
2368    
2369    2003-09-12  Jan-Oliver Wagner <[email protected]>
2370    
2371            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
2372            in viewport, not anymore in view
2373    
2374    2003-09-04  Jan-Oliver Wagner <[email protected]>
2375    
2376            Introducing first Extension (gns2shp).
2377    
2378            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
2379    
2380            * Extensions/__init__.py: New. init to make this dir a package.
2381    
2382            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
2383    
2384            * Extensions/gns2shp/test/README: New. some info on this test directory.
2385    
2386            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
2387    
2388            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
2389            of Shapefile from GNS text file format
2390    
2391    2003-09-03  Jan-Oliver Wagner <[email protected]>
2392    
2393            Fix/workaround for bug #2019:
2394            https://intevation.de/rt/webrt?serial_num=2019
2395    
2396            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
2397            (IdentifyView.__init__): Added another button that allows to
2398            stop the identify mode.
2399            (IdentifyView.OnStop): New. Stops the identify mode.
2400    
2401    2003-09-03  Jan-Oliver Wagner <[email protected]>
2402    
2403            Introducing a new exception dialog that allows to exit the
2404            application immediately.
2405            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
2406    
2407            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
2408    
2409            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2410            Made strings available to translations. Exchanged the simple
2411            ScrolledMessageDialog by the new ExceptionDialog.
2412    
2413    2003-09-01  Bernhard Herzog  <[email protected]>
2414    
2415            * NEWS: New. Summary of changes and release notes.
2416    
2417            * MANIFEST.in: Add NEWS
2418    
2419    2003-09-01  Bernhard Herzog  <[email protected]>
2420    
2421            * MANIFEST.in: Correct the include statement for the mo-files and
2422            include the documentation too.
2423    
2424            * setup.py (data_files): Add the .mo files
2425            (setup call): Up to version 0.9.0
2426    
2427    2003-09-01  Bernhard Herzog  <[email protected]>
2428    
2429            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
2430            parameter list to just parent and session
2431            (ChooseDBTableDialog.__set_properties): Removed. Setting the
2432            selection of empty list boxes is not allowed (and produces C++
2433            assertion errors) and the rest of the setup is better done in
2434            __init__ anyway.
2435            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
2436            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
2437            builtins True/False for booleans to avoid warnings from wxPython
2438    
2439            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
2440            ChooseDBTableDialog constructor parameters.
2441    
2442    2003-09-01  Bernhard Herzog  <[email protected]>
2443    
2444            * Thuban/Model/postgisdb.py
2445            (PostGISTable): Extend doc-string
2446            (PostGISTable._fetch_table_information): Set the column index
2447            correctly, pretending ignored columns don't exist.
2448    
2449            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
2450            for postgis tables with data types not yet supported by thuban.
2451    
2452    2003-08-29  Bernhard Herzog  <[email protected]>
2453    
2454            * HOWTO-Release: Tweak item about running the tests.
2455    
2456    2003-08-29  Jan-Oliver Wagner <[email protected]>
2457    
2458            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
2459    
2460    2003-08-29  Bernhard Herzog  <[email protected]>
2461    
2462            Add some missing parameters to projections. Proj complains about
2463            them on windows but for some reason not on Linux.
2464    
2465            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
2466            missing required projection parameters
2467    
2468            * test/test_proj.py (TestProjFile.test): Add missing required
2469            projection parameters
2470    
2471            * test/test_load_0_8.py (TestLayerProjection.file_contents)
2472            (TestLayerProjection.test): Add missing required projection
2473            parameters and tests for them
2474    
2475            * test/test_load.py (TestLayerProjection.file_contents)
2476            (TestLayerProjection.test): Add missing required projection
2477            parameters and tests for them
2478    
2479            * test/test_layer.py (TestLayer.test_base_layer): Add missing
2480            required projection parameters
2481    
2482    2003-08-29  Bernhard Herzog  <[email protected]>
2483    
2484            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
2485            access the pj_errno because directly accessing pj_errno doesn't
2486            work on windows if the proj library is in a DLL
2487    
2488            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
2489    
2490    2003-08-28  Bernhard Herzog  <[email protected]>
2491    
2492            * test/test_proj.py: Import things from Thuban after calling
2493            initthuban
2494    
2495            * test/test_load.py (LoadSessionTest.filenames): New class
2496            variable with the filename attributes to normalize
2497            (LoadSessionTest.check_format): Pass self.filenames to
2498            sax_eventlist to normalize the filename attributes
2499    
2500            * test/xmlsupport.py: Add cvs keywords
2501            (SaxEventLister.__init__): New parameter filenames which indicates
2502            attributes that contain filenames
2503            (SaxEventLister.startElementNS): Normalize the filename attributes
2504            with os.path.normpath
2505            (sax_eventlist): New parameter filenames to pass through to
2506            SaxEventLister
2507    
2508            * test/test_derivedshapestore.py: Make this file callable as a
2509            program to execute the tests
2510            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
2511            the session to self.session so that it gets destroyed properly
2512    
2513            * test/test_layer.py (TestLayer.tearDown): Call the session's
2514            Destroy method
2515    
2516            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
2517            too if it exists
2518            (TestMapAddLayer.test_add_layer): Bind the session to self.session
2519            so that it gets destroyed properly
2520    
2521            * test/postgissupport.py (reason_for_not_running_tests): Add a
2522            test for the existence of popen2.Popen4.
2523    
2524            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
2525            reliable way to destroy the sessions created in the test cases
2526            (SaveSessionTest.test_dbf_table): Bind the session to self.session
2527            so that it gets destroyed properly
2528            (SaveSessionTest.testLayerProjection): Bind the session to
2529            self.session so that it gets destroyed properly
2530    
2531            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
2532            sure that the session is destroyed properly
2533    
2534            * test/test_shapefilestore.py: Make this callable as a program to
2535            execute the tests
2536    
2537            * test/test_scalebar.py: Remove unnecessary import of _ from
2538            Thuban
2539    
2540            * test/support.py (print_garbage_information): Call initthuban
2541            here because it may be called indirectly from test cases that test
2542            test support modules which do not use anything from thuban itself
2543            (ThubanTestProgram.runTests): Remove unnecessary debug print
2544    
2545    2003-08-28  Bernhard Herzog  <[email protected]>
2546    
2547            * Thuban/version.py (longversion): Update to 0.9
2548    
2549            * Thuban/UI/mainwindow.py: Remove some unused imports
2550    
2551            * README: Add section about required additional software. Add date
2552            and revision CVS keywords
2553    
2554            * HOWTO-Release: Add item about the translations. Add date and
2555            revision CVs keywords and change formatting to match README a bit
2556            better
2557    
2558            * po/de.po: Update for 0.9
2559    
2560            * test/README: Tweak the wording a little because many tests are
2561            not really unittest.
2562    
2563    2003-08-27  Bernhard Herzog  <[email protected]>
2564    
2565            As preparation for the 0.9 release, switch thuban files to a
2566            non-dev namespace
2567    
2568            * Thuban/Model/save.py (SessionSaver.write_session): Write files
2569            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
2570            namespace
2571    
2572            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
2573            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
2574    
2575            * test/test_save.py (SaveSessionTest.dtd)
2576            (SaveSessionTest.testEmptySession)
2577            (SaveSessionTest.testSingleLayer)
2578            (SaveSessionTest.testLayerProjection)
2579            (SaveSessionTest.testRasterLayer)
2580            (SaveSessionTest.testClassifiedLayer)
2581            (SaveSessionTest.test_dbf_table)
2582            (SaveSessionTest.test_joined_table)
2583            (SaveSessionTest.test_save_postgis): Update for new namespace
2584    
2585            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
2586            (TestLayerVisibility.file_contents, TestLabels.file_contents)
2587            (TestLayerProjection.file_contents)
2588            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2589            (TestPostGISLayer.file_contents)
2590            (TestPostGISLayerPassword.file_contents)
2591            (TestLoadError.file_contents, TestLoadError.test): Update for new
2592            namespace
2593    
2594    2003-08-27  Bernhard Herzog  <[email protected]>
2595    
2596            Make the table interface distinguish between row ids (an integer
2597            that uniquely identifies a row) and row ordinals (a simple row
2598            count from 0 to NumRows() - 1)
2599    
2600            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
2601            (PostGISTable.RowOrdinalToId): New methods to conver between row
2602            ids and row ordinals
2603            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
2604            parameter row_is_ordinal to indicate whether the row parameter is
2605            the row id or the ordinal
2606    
2607            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
2608            (TransientTableBase.RowOrdinalToId)
2609            (AutoTransientTable.RowIdToOrdinal)
2610            (AutoTransientTable.RowOrdinalToId): Same new methods as in
2611            PostGISTable.
2612            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
2613            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
2614            Same new parameter as in PostGISTable.
2615    
2616            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
2617            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
2618            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
2619            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
2620            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
2621            parameter as in PostGISTable.
2622    
2623            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
2624            (DataTable.RowOrdinalToId): New methods to convert between row ids
2625            and row ordinals.
2626            (TableGrid.SelectRowById): New method to select a row based on its
2627            ID as opposed to its ordinal
2628            (DataTable.GetValue, TableGrid.OnRangeSelect)
2629            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
2630            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
2631            (LayerTableFrame.__init__): Convert between row ids and row
2632            ordinals as appropriate
2633    
2634            * test/postgissupport.py (PostGISDatabase.__init__): Add
2635            doc-string.
2636            (PostGISDatabase.initdb): The optional third item in a tuple in
2637            tables is now a (key, value) list with additional arguments to
2638            pass to upload_shapefile
2639            (upload_shapefile): New parameter gid_offset to allow gids that
2640            are not the same as the shapeids in the shapefile
2641            (PostgreSQLServer.get_default_static_data_db): Use the new
2642            gid_offset to make the gids in landmarks 1000 higher than the
2643            shapeids in the shapefile
2644    
2645            * test/test_viewport.py
2646            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
2647            new shapeids in the landmarks table
2648    
2649            * test/test_transientdb.py
2650            (TestTransientTable.run_iceland_political_tests)
2651            (TestTransientTable.test_transient_joined_table): Add tests for
2652            the new table methods and new keywords arguments.
2653    
2654            * test/test_postgis_db.py
2655            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
2656            (TestPostGISTable.test_read_value_row_count_mode)
2657            (TestPostGISTable.test_row_id_to_ordinal)
2658            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
2659            table methods and the new arguments
2660            (TestPostGISShapestorePoint.test_shapes_in_region)
2661            (TestPostGISShapestorePoint.test_shape_raw_data)
2662            (TestPostGISShapestorePoint.test_shape_points)
2663            (TestPostGISShapestorePoint.test_shape_shapeid)
2664            (TestPostGISShapestorePoint.test_all_shapes)
2665            (TestPostGISTable.test_simple_query)
2666            (TestPostGISTable.test_simple_query)
2667            (TestPostGISTable.test_simple_query)
2668            (TestPostGISTable.test_read_value)
2669            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
2670            shapeids in the landmarks table
2671    
2672            * test/test_memory_table.py
2673            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
2674            (TestMemoryTable.test_read_value_row_count_mode)
2675            (TestMemoryTable.test_row_id_to_ordinal)
2676            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
2677            table methods and the new arguments
2678    
2679            * test/test_dbf_table.py
2680            (TestDBFTable.test_read_row_as_dict_row_count_mode)
2681            (TestDBFTable.test_read_value_row_count_mode)
2682            (TestDBFTable.test_row_id_to_ordinal)
2683            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
2684            methods and the new arguments
2685    
2686    2003-08-26  Bernhard Herzog  <[email protected]>
2687    
2688            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
2689            more postgis specific but much faster method to get the bounding
2690            box
2691    
2692    2003-08-26  Bernhard Herzog  <[email protected]>
2693    
2694            * Thuban/Model/postgisdb.py (PostGISTable.Title)
2695            (PostGISShapeStore.AllShapes): Add these missing methods.
2696            (PostGISShapeStore.ShapesInRegion): No need to raise
2697            StopIteration. We can simply return
2698    
2699            * test/test_postgis_db.py (TestPostGISTable.test_title)
2700            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
2701            new methods
2702    
2703    2003-08-25  Bernhard Herzog  <[email protected]>
2704    
2705            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
2706    
2707            * test/test_postgis_db.py (PolygonTests): New class containing
2708            those tests from TestPostGISShapestorePolygon that can also be
2709            used to test MUTLIPOLYGON tables
2710            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
2711            so derive from that
2712            (TestPostGISShapestoreMultiPolygon): New class with tests for
2713            MUTLIPOLYGON tables
2714    
2715            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
2716            tables argument to have tuples with three items to override the
2717            WKT type used.
2718            (PostgreSQLServer.get_default_static_data_db): Use the above to
2719            create a polygon table with MUTLIPOLYGONs
2720            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
2721            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
2722            coords_to*
2723            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
2724            (wkt_converter): New. Map WKT types to converters
2725            (upload_shapefile): New parameter force_wkt_type to use a
2726            different WKT type than the default
2727    
2728    2003-08-25  Bernhard Herzog  <[email protected]>
2729    
2730            * Thuban/UI/application.py
2731            (ThubanApplication.run_db_param_dialog): New. Suitable as a
2732            db_connection_callback. Main difference is that the dialog run
2733            from this method doesn't have a parent so it can be used even when
2734            there is no main window
2735            (ThubanApplication.OpenSession): Use self.run_db_param_dialog if
2736            no db_connection_callback was given. This way the dialog pops up
2737            even when the .thuban file was given as a command line parameter.
2738    
2739    2003-08-25  Bernhard Herzog  <[email protected]>
2740    
2741            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Release the the mouse
2742            before calling MouseLeftUp. MouseLeftUp may pop up modal dialogs
2743            which leads to an effectively frozen X session because the user
2744            can only interact with the dialog but the mouse is still grabbed
2745            by the canvas.
2746            Also, call the tool's Hide method before MouseLeftUp because
2747            MouseLeftUp may change the tool's coordinates.
2748    
2749    2003-08-25  Bernhard Herzog  <[email protected]>
2750    
2751            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
2752            LoadCancelled exceptions and handle them by returning immediately.
2753    
2754    2003-08-25  Bernhard Herzog  <[email protected]>
2755    
2756            GUI part of loading sessions with postgis connections which may
2757            require user interaction to get passwords or updated parameters
2758    
2759            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
2760            bit nucer and be more generic.
2761            (DBFrame.OnAdd): Adapt to new DBDialog interface
2762    
2763            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
2764            optional parameter db_connection_callback which is passed to
2765            load_session.
2766    
2767            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
2768            Suitable as a db_connection_callback
2769            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
2770            db_connection_callback of the application's OpenSession method
2771    
2772    
2773    2003-08-25  Bernhard Herzog  <[email protected]>
2774    
2775            Basic loading of sessions containing postgis connections:
2776    
2777            * Thuban/Model/load.py (LoadError): Add doc-string
2778            (LoadCancelled): New exception class to indicate a cancelled load
2779            (SessionLoader.__init__): Add the db_connection_callback parameter
2780            which will be used by the loader to get updated parameters and a
2781            password for a database connection
2782            (SessionLoader.__init__): Add the new XML elements to the
2783            dispatchers dictionary
2784            (SessionLoader.check_attrs): Two new conversions, ascii to convert
2785            to a byte-string object and idref as a generic id reference
2786            (SessionLoader.start_dbconnection)
2787            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
2788            elements
2789            (load_session): Add the db_connection_callback to pass through the
2790            SessionLoader
2791    
2792            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
2793            New classes to test loading of sessions with postgis database
2794            connections.
2795    
2796    2003-08-25  Bernhard Herzog  <[email protected]>
2797    
2798            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
2799            replace it and the comment with __BuildDate__ by the Source: and
2800            Id: cvs keywords as used in the other files.
2801    
2802    2003-08-25  Bernhard Herzog  <[email protected]>
2803    
2804            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
2805            LoadError when a required attribute is missing. The code used to
2806            be commented out for some reason, but probably should have been
2807            active.
2808    
2809            * test/test_load.py (TestLoadError.test): Test the message in the
2810            LoadError too to make sure it really is about the missing
2811            attribute
2812    
2813    2003-08-22  Bernhard Herzog  <[email protected]>
2814    
2815            * test/test_save.py (SaveSessionTest.test_dbf_table)
2816            (SaveSessionTest.test_joined_table): Add XML validation tests.
2817    
2818    2003-08-22  Bernhard Herzog  <[email protected]>
2819    
2820            Implement saving a session with a postgis connection
2821    
2822            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
2823            elements for database connections and shapestores using db
2824            connections
2825            (session): Add the dbconnections to the content model
2826    
2827            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
2828            Write the db connections
2829            (SessionSaver.write_session): Call write_db_connections to write
2830            the connection before the data sources
2831            (SessionSaver.write_data_containers): Handle postgis shapestores
2832    
2833            * test/test_save.py (SaveSessionTest.thubanids)
2834            (SaveSessionTest.thubanidrefs): Update for new DTD
2835            (SaveSessionTest.test_save_postgis): New. Test saving a session
2836            with postgis connections
2837    
2838            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
2839            (PostGISTable.TableName): New accessor methods for the connection
2840            and table name
2841    
2842            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
2843            (TestPostGISTable.test_dbname): New methods to test the new
2844            PostGISConnection methods
2845    
2846    2003-08-22  Bernhard Herzog  <[email protected]>
2847    
2848            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
2849            for exceptions occurring when establishing a Database connection
2850            (PostGISConnection.connect): Catch psycopg.OperationalError during
2851            connects and raise ConnectionError.
2852    
2853            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
2854            tests for database exceptions
2855    
2856    2003-08-22  Bernhard Herzog  <[email protected]>
2857    
2858            Prepare the test suite for tests with required authentication
2859    
2860            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
2861            variables with two predefined users/passwords, one for the admin
2862            and one for a non-privileged user.
2863            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
2864            the non-privileged user to the database and set the admin password
2865            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
2866            Better error reporting
2867            (PostgreSQLServer.connection_params)
2868            (PostgreSQLServer.connection_string): New methods to return
2869            information about how to connect to the server
2870            (PostgreSQLServer.execute_sql): New. Convenience method to execute
2871            SQL statements
2872            (PostgreSQLServer.require_authentication): Toggle whether the
2873            server requires authentication
2874            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
2875            Add or alter users
2876            (PostGISDatabase.initdb): Pass the admin name one the
2877            subprocesses' command lines. Grant select rights on
2878            geometry_columns to everybody.
2879            (upload_shapefile): Use the admin name and password when
2880            connecting. Grant select rights on the new table to everybody.
2881    
2882            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
2883            server's new methods to get the connection parameters.
2884    
2885            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
2886            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
2887            server's new methods to get the connection parameters.
2888    
2889            * test/test_postgis_db.py
2890            (TestPostGISConnection.test_gis_tables_empty)
2891            (TestPostGISConnection.test_gis_tables_non_empty)
2892            (PostGISStaticTests.setUp): Use the server's new methods to get
2893            the connection parameters.
2894    
2895    2003-08-22  Bernhard Herzog  <[email protected]>
2896    
2897            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
2898    
2899            * Thuban/version.py: Add psycopg version
2900    
2901            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
2902            version of the psycopg module
2903    
2904    2003-08-22  Bernhard Herzog  <[email protected]>
2905    
2906            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
2907            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
2908            at the moment. The functionality should probably be implemented
2909            some time, though.
2910            (DBFrame.OnRemove): Display a message if the connection can't be
2911            removed because it's still in use.
2912    
2913    2003-08-22  Jan-Oliver Wagner <[email protected]>
2914    
2915            * Thuban/UI/about.py (About.__init__): split up the huge about
2916            text into elements/lists for easier translation. This fixes bug
2917            https://intevation.de/rt/webrt?serial_num=2058
2918            Also, made some forgotten string available for the i18n.
2919    
2920    2003-08-21  Bernhard Herzog  <[email protected]>
2921    
2922            Make postgis support really optional including insensitive menu
2923            items.
2924    
2925            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
2926            whether the postgis is supported.
2927    
2928            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
2929            to make postgis support optional
2930    
2931            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
2932            version of Thuban.Model.postgisdb.has_postgis_support
2933            (database_management command): Make it only sensitive if postgis
2934            is supported.
2935    
2936    2003-08-21  Jan-Oliver Wagner <[email protected]>
2937    
2938            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
2939            (section Adding and Removing Layers): Added text and described
2940            multi-selection.
2941            (chapter Extensions): New.
2942    
2943    2003-08-21  Jan-Oliver Wagner <[email protected]>
2944    
2945            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
2946            settings to allow multiple files to load into the map.
2947            Also reduced selection to *.shp as a default.
2948    
2949    2003-08-20  Bernhard Herzog  <[email protected]>
2950    
2951            Add dialogs and commands to open database connections and add
2952            database layers.
2953    
2954            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
2955            method to open the database connection management dialog
2956            (MainWindow.AddDBLayer): New method to add a layer from a database
2957            (_has_dbconnections): New helper function to use for sensitivity
2958            (database_management command, layer_add_db command): New commands
2959            that call the above new methods.
2960            (main_menu): Add the new commands to the menu.
2961    
2962            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
2963            (PostGISConnection.connect): Establish the actual connection in a
2964            separate method and call it in __init__. This makes it easier to
2965            override the behavior in test cases
2966            (PostGISConnection.BriefDescription): New method to return a brief
2967            description for use in dialogs.
2968    
2969            * test/test_postgis_db.py (NonConnection): DB connection that
2970            doesn't actually connect
2971            (TestBriefDescription): New class with tests for the new
2972            BriefDescription method
2973    
2974    2003-08-19  Jan-Oliver Wagner <[email protected]>
2975    
2976            Moved anything from extensions to libraries.
2977    
2978            * libraries: New.
2979    
2980            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
2981    
2982            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
2983            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
2984            been moved here from thuban/extensions/pyprojection/
2985            See there in the Attic for the older history.
2986    
2987            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
2988            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
2989            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
2990            have been moved here from thuban/extensions/pyshapelib/
2991            See there in the Attic for the older history.
2992    
2993            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
2994            files have been moved here from thuban/extensions/shapelib/
2995            See there in the Attic for the older history.
2996    
2997            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
2998            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
2999            thuban/extensions/thuban/
3000            See there in the Attic for the older history.
3001    
3002            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
3003    
3004            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
3005            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
3006    
3007            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
3008            Moved to libraries/shapelib.
3009    
3010            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
3011            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
3012            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
3013            Moved to libraries/pyshapelib.
3014    
3015            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
3016            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
3017            Moved to libraries/pyprojection.
3018    
3019            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
3020    
3021            * extensions: Removed.
3022    
3023    2003-08-19  Bernhard Herzog  <[email protected]>
3024    
3025            * test/test_viewport.py (ViewPortTest): We don't use the
3026            facilities of FileTestMixin so don't derive from it.
3027            (TestViewportWithPostGIS): New class with tests for using a
3028            viewport on a map with postgis layers.
3029    
3030    2003-08-19  Bernhard Herzog  <[email protected]>
3031    
3032            Add the db connection management to the session.
3033    
3034            * Thuban/Model/session.py (Session.__init__): New instance
3035            variable db_connections
3036            (Session.AddDBConnection, Session.DBConnections)
3037            (Session.HasDBConnections, Session.CanRemoveDBConnection)
3038            (Session.RemoveDBConnection): New methods to manage and query the
3039            db connections managed by the session
3040            (Session.OpenDBShapeStore): New method to open a shapestore from a
3041            db connection
3042    
3043            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
3044            messages for the db connection handling in the session
3045    
3046            * test/test_postgis_session.py: New. test cases for the session's
3047            db connection handling with postgis connections
3048    
3049    2003-08-19  Bernhard Herzog  <[email protected]>
3050    
3051            Add very basic postgis database support and the corresponding test
3052            cases. The test cases require a PostgreSQL + postgis installation
3053            but no existing database. The database will be created
3054            automatically by the test cases
3055    
3056            * test/README: Add note about skipped tests and the requirements
3057            of the postgis tests.
3058    
3059            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
3060    
3061            * test/test_postgis_db.py: New. Test cases for the postgis
3062            support.
3063    
3064            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
3065            format
3066    
3067            * test/test_wellknowntext.py: New. Test cases for the
3068            wellknowntext parser
3069    
3070            * test/postgissupport.py: New. Support module for tests involving
3071            a postgis database.
3072    
3073            * test/support.py (execute_as_testsuite): Shut down the postmaster
3074            if it's still running after the tests
3075    
3076            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
3077            well known text format
3078    
3079    2003-08-19  Jan-Oliver Wagner <[email protected]>
3080    
3081            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
3082            message dialog.
3083    
3084    2003-08-18  Bernhard Herzog  <[email protected]>
3085    
3086            * test/support.py (ThubanTestResult.printErrors): Indent the
3087            reason for the skips in the output to make it a bit more readable.
3088            (execute_as_testsuite): New helper function to run a test suite
3089            and print some more information.
3090            (run_tests): Use execute_as_testsuite to run the tests
3091    
3092            * test/runtests.py (main): Use execute_as_testsuite to run the
3093            tests
3094    
3095    2003-08-18  Bernhard Herzog  <[email protected]>
3096    
3097            Fix some bugs in Thuban and the test suite that were uncovered by
3098            changes introduced in Python 2.3:
3099    
3100            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
3101            filename is an absolute name
3102    
3103            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
3104            filename is an absolute name
3105    
3106            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
3107            unique filename to save to and use the correct relative filename
3108            in the expected output.
3109            (SaveSessionTest.test_dbf_table): Use the correct relative
3110            filename in the expected output.
3111    
3112            * test/test_layer.py (TestLayer.test_raster_layer): Update the
3113            test to check whether the filename is absolute.
3114    
3115    2003-08-18  Jan-Oliver Wagner <[email protected]>
3116    
3117            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
3118    
3119    2003-08-15  Bernhard Herzog  <[email protected]>
3120    
3121            Change the way shapes are returned by a shape store. The
3122            ShapesInRegion method returns an iterator over actual shape
3123            objects instead of a list of shape ids.
3124    
3125            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
3126            id.
3127            (ShapefileStore.ShapesInRegion): Return an iterator over the
3128            shapes which yields shape objects instead of returning a list of
3129            shape ids
3130            (ShapefileStore.AllShapes): New. Return an iterator over all
3131            shapes in the shape store
3132            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
3133    
3134            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
3135            doc-string.
3136    
3137            * Thuban/UI/baserenderer.py
3138            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
3139            layer_shapes and make it return an iterator containg shapes
3140            instead of a list of ids.
3141            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
3142            layer_shapes() change
3143    
3144            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
3145            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
3146    
3147            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
3148            changes in the ShapesInRegion return value.
3149            (ViewPort._get_hit_tester): Remove commented out code
3150    
3151            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
3152            new return value.
3153            (SimpleShapeStore.AllShapes): New. Implement this method too.
3154    
3155            * test/test_layer.py (TestLayer.test_arc_layer)
3156            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
3157            (TestLayer.test_point_layer_with_projection)
3158            (TestLayer.test_derived_store): Adapt to changes in the
3159            ShapesInRegion return value.
3160    
3161            * test/test_shapefilestore.py
3162            (TestShapefileStoreArc.test_shapes_in_region)
3163            (TestShapefileStorePolygon.test_shapes_in_region)
3164            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
3165            in the ShapesInRegion return value.
3166            (TestShapefileStorePoint.test_all_shapes)
3167            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
3168            methods
3169    
3170            * test/test_derivedshapestore.py
3171            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
3172            the ShapesInRegion return value.
3173            (TestDerivedShapeStore.test_all_shapes)
3174            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
3175            methods
3176    
3177    2003-08-15  Bernhard Herzog  <[email protected]>
3178    
3179            Make the renderers deal correctly with raw vs. python level
3180            representation of shape geometries
3181    
3182            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
3183            Return a flag useraw in addition to the callable and the parameter
3184            to indicate whether the callable can deal with the raw shape data
3185            or uses the higher level python lists of coordinates. The callable
3186            now should accept either the raw data or the return value of the
3187            shape's Points() method.
3188            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
3189            change
3190            (BaseRenderer.projected_points): Instead of the shape id use the
3191            points list as parameter.
3192            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
3193            (BaseRenderer.draw_point_shape): Adapt to projected_points()
3194            change and accept the points list as parameter instead of the
3195            shape id.
3196    
3197            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
3198            the useraw flag as required by the BaseRenderer
3199            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
3200            changes.
3201    
3202            * test/test_baserenderer.py
3203            (TestBaseRenderer.test_point_with_classification): New test for
3204            rendering a map with classifications.
3205    
3206    2003-08-15  Bernhard Herzog  <[email protected]>
3207    
3208            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
3209            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
3210            (ViewPort._get_hit_tester, ViewPort.projected_points)
3211            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
3212            (ViewPort._find_label_at): Split the find_shape_at method into
3213            several new methods and use the functions in the hit-test module.
3214    
3215            * Thuban/UI/hittest.py: New module with Python-level hit-testing
3216            functions
3217    
3218            * test/test_hittest.py: New. Test for the new hittest module
3219    
3220    2003-08-15  Bernhard Herzog  <[email protected]>
3221    
3222            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
3223            projection to all corners of the bounding box to get a better
3224            approximation of the projected bounding box
3225    
3226            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
3227            New. Test coordinate handling of a layer with a projection.
3228            Catches the bug fixed in Layer.ShapesInRegion
3229    
3230    2003-08-15  Bernhard Herzog  <[email protected]>
3231    
3232            Move some of the mock objects in test_baserenderer into their own
3233            module so they can easily be used from other tests
3234    
3235            * test/mockgeo.py: New test helper module with some mock objects
3236            for geometry related things like shapes, shapestores and
3237            projections.
3238    
3239            * test/test_mockgeo.py: New. Tests for the new helper module
3240    
3241            * test/test_baserenderer.py: Some of the mock-objects are in
3242            mockgeo now.
3243    
3244    2003-08-12  Jan-Oliver Wagner <[email protected]>
3245    
3246            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
3247    
3248    2003-08-12  Bernhard Herzog  <[email protected]>
3249    
3250            * po/de.po: New. German translations by Bjoern Broscheit
3251    
3252    2003-08-12  Bernhard Herzog  <[email protected]>
3253    
3254            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
3255            strings have to be one string literal.
3256    
3257    2003-08-11  Bernhard Herzog  <[email protected]>
3258    
3259            * test/support.py (FloatComparisonMixin.assertPointListEquals):
3260            New. This method was used in various derived classes, but it's
3261            better to have it here.
3262    
3263            * test/test_shapefilestore.py
3264            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
3265            FloatComparisonMixin
3266    
3267            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
3268            It's now in FloatComparisonMixin
3269    
3270            * test/test_derivedshapestore.py
3271            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
3272            in FloatComparisonMixin
3273    
3274    2003-08-11  Bernhard Herzog  <[email protected]>
3275    
3276            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
3277            error message
3278    
3279    2003-08-08  Jan-Oliver Wagner <[email protected]>
3280    
3281            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
3282            with version number.
3283            Changed title to reflect version number of Thuban.
3284    
3285    2003-08-08  Jan-Oliver Wagner <[email protected]>
3286    
3287            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
3288            the list corresponds to the "About" web page.
3289    
3290    2003-08-08  Bernhard Herzog  <[email protected]>
3291    
3292            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
3293            Make sure translated strings are recognized as one string literal.
3294    
3295            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
3296            Make sure translated strings are recognized as one string literal.
3297    
3298            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
3299            translated strings are recognized as one string literal.
3300    
3301            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
3302            sure translated strings are recognized as one string literal.
3303    
3304    2003-08-07  Bernhard Herzog  <[email protected]>
3305    
3306            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
3307            Simply delegates to the original shapestore.
3308    
3309            * test/test_derivedshapestore.py
3310            (TestDerivedShapeStore.test_raw_format): New. Test case for
3311            DerivedShapeStore.RawShapeFormat
3312    
3313    2003-08-07  Bernhard Herzog  <[email protected]>
3314    
3315            Add raw data interface to shape objects.
3316    
3317            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
3318            class to ShapefileShape which now holds shapefile specific
3319            information.
3320            (ShapefileShape.compute_bbox): Simplified to not cache any
3321            information. The way this method is used that shouldn't matter
3322            performance wise.
3323            (ShapefileShape.RawData): New. Return the shapeid which is the raw
3324            data format for shapes from shapefiles.
3325            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
3326            in the shape objects returned by a shapestore. For a
3327            ShapefileStore this is always RAW_SHAPEFILE.
3328            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
3329            method.
3330    
3331            * test/test_shapefilestore.py
3332            (TestShapefileStore.test_raw_format): New test to test the raw
3333            format feature of shapes.
3334    
3335            * Thuban/Model/layer.py: Remove the unused import of Shape from
3336            data. It was only there for interface compatibility but it's not
3337            used inside of Thuban and the generic Shape class has gone away.
3338    
3339            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
3340            the raw data format and only use an optimized version of its a
3341            shapefile.
3342    
3343    2003-08-07  Bernhard Herzog  <[email protected]>
3344    
3345            * test/test_baserenderer.py (SimpleShape): Shape class for the
3346            tests.
3347            (SimpleShapeStore.Shape): Use SimpleShape instead of
3348            Thuban.Model.data.Shape to make the tests independed of the coming
3349            changes.
3350    
3351    2003-08-07  Bernhard Herzog  <[email protected]>
3352    
3353            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
3354            (ThubanTestProgram): New classes that extend the respective
3355            classes from unittest. These new version support skipping tests
3356            under certain expected conditions. In the Thuban test suite we
3357            uses this for tests that require the optional gdal support.
3358            (run_tests): Use ThubanTestProgram instead of the unittest.main()
3359    
3360            * test/runtests.py (main): Use the new ThubanTestRunner instead of
3361            the normal one from unittest
3362    
3363            * test/test_layer.py (TestLayer.test_raster_layer): If this test
3364            is not run because gdal support isn't available report this to the
3365            runner.
3366    
3367            * test/test_baserenderer.py
3368            (TestBaseRenderer.test_raster_no_projection): Do not run this test
3369            if gdal support isn't available and report this to the runner.
3370    
3371    2003-08-06  Bernhard Herzog  <[email protected]>
3372    
3373            Rearrange the renderers a bit, partly in preparation for changes
3374            required for the postgis merge, partly to make it more testable.
3375            Also make the representation of coordinates in Shapes more
3376            consistent.
3377    
3378            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
3379            this class is now in BaseRenderer. This class is now practically
3380            only a specialization of BaseRenderer for rendering to an actual
3381            wx DC.
3382            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
3383            to get the shapetype specific rendering functions.
3384    
3385            * Thuban/UI/baserenderer.py: New file with the basic rendering
3386            logic. The code in this file is completely independend of wx.
3387            (BaseRenderer): Class with the basic rendering logic
3388    
3389            * test/test_baserenderer.py: New. Test cases for BaseRenderer
3390    
3391            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
3392            error_on_redraw to guard agains endless loops and stack overflows
3393            when there's a bug in the rendering code that raises exceptions.
3394            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
3395            rendering into a separate method _do_redraw so that error handling
3396            is a bit easier. When an exception occurs, set error_on_redraw to
3397            true. When it's true on entry to OnIdle do nothing and return
3398            immediately.
3399    
3400            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
3401            Shape object will always have the coordinates as a list of list of
3402            coordinate pairs (tuples).
3403            (Shape.compute_bbox): Adapt to new representation.
3404    
3405            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
3406            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
3407            Shape objects.
3408    
3409            * test/test_shapefilestore.py
3410            (ShapefileStoreTests.assertFloatTuplesEqual)
3411            (ShapefileStoreTests.assertPointListEquals): Rename to
3412            assertPointListEquals and change purpose to checking equality of
3413            the lists returned by Shape.Points().
3414            (TestShapefileStoreArc.test_shape)
3415            (TestShapefileStorePolygon.test_shape)
3416            (TestShapefileStorePoint.test_shape): Use the new
3417            assertPointListEquals instead of assertFloatTuplesEqual
3418    
3419            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
3420            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
3421            and change purpose to checking equality of the lists returned by
3422            Shape.Points().
3423            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
3424            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
3425            (TestLayer.test_derived_store): Use the new assertPointListEquals
3426            instead of assertFloatTuplesEqual
3427    
3428            * test/test_derivedshapestore.py
3429            (TestDerivedShapeStore.assertFloatTuplesEqual)
3430            (TestDerivedShapeStore.assertPointListEquals): Rename to
3431            assertPointListEquals and change purpose to checking equality of
3432            the lists returned by Shape.Points().
3433            (TestDerivedShapeStore.test_shape): Use the new
3434            assertPointListEquals instead of assertFloatTuplesEqual
3435    
3436    2003-08-06  Jan-Oliver Wagner <[email protected]>
3437    
3438            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
3439            a bounding box. A dialog is raised in case, no bounding box
3440            is found. This fixes bug #2043:
3441            https://intevation.de/rt/webrt?serial_num=2043
3442    
3443    2003-08-05  Bernhard Herzog  <[email protected]>
3444    
3445            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
3446            object look like a Color instantiation. Formerly it looked like a
3447            tuple.
3448    
3449            * test/test_color.py (TestColor.test_repr)
3450            (TestColor.test_equality, TestColor.test_inequality): New. test
3451            some more apects of the Color class
3452            (TestTransparent.test_repr, TestTransparent.test_hex)
3453            (TestTransparent.test_equality): New. Test cases for the
3454            Transparent object.
3455    
3456    2003-08-04  Jan-Oliver Wagner <[email protected]>
3457    
3458            * Doc/manual/thuban-manual.xml: a number of small improvements.
3459            The resulting file is the version submitted for GREAT-ER II.
3460    
3461    2003-08-01  Bernhard Herzog  <[email protected]>
3462    
3463            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
3464            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
3465            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
3466    
3467            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
3468            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
3469            (ThubanEndBusyCursor): Add doc-strings
3470    
3471    2003-08-01  Bernhard Herzog  <[email protected]>
3472    
3473            First step towards PostGIS integration. More abstraction by movin
3474            more code from the layer to the shapestore. More methods of the
3475            layer are now simply delegated to the equivalent method of the
3476            shapestore. The SHAPETYPE_* constants are now in data not in
3477            layer.
3478    
3479            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
3480            (SHAPETYPE_POINT, Shape): Move these constants and classes from
3481            layer.py to data.py
3482            (ShapefileStore.__init__): More Initialization for the new methods
3483            and functionality.
3484            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
3485            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
3486            (ShapefileStore.Shape): New methods that were formerly implemented
3487            in the layer.
3488            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
3489            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
3490            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
3491            equivalents of the new shape methods. These versions are simply
3492            delegated to the original shapstore.
3493    
3494            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
3495            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
3496            (Layer.SetShapeStore): Removed the initializatin of instance
3497            variables that were needed for the stuff that's now in
3498            ShapefileStore
3499            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
3500            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
3501            shapestore.
3502    
3503            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
3504            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
3505            instead of layer.
3506    
3507            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
3508    
3509            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
3510    
3511            * test/test_layer.py: Import the SHAPETYPE_* constants from data
3512            instead of layer.
3513            (TestLayer.test_derived_store): Remove the test for the exception
3514            when instantiating the DerivedShapeStore with an incompatible
3515            table which is now in test_derivedshapestore.py. Add some more
3516            tests of the layer methods to determine whether they work for a
3517            DerivedShapeStore as well.
3518    
3519    2003-07-31  Jonathan Coles   <[email protected]>
3520    
3521            * Doc/manual/thuban-manual.xml: Fix the list of required packages
3522            by just listing the name and where they can be found.
3523    
3524    2003-07-31  Frank Koormann   <[email protected]>
3525    
3526            * Doc/manual/thuban-manual.xml:
3527            Changed the screenshot elements to figure.
3528            Changed some variablelist elements to itemizedlist.
3529            Added section on GDAL formats.
3530    
3531    2003-07-31  Jonathan Coles   <[email protected]>
3532    
3533            * Doc/manual/thuban-manual.xml: Added a few sentences about
3534            the Fix Border Color option when generating classes.
3535    
3536    2003-07-30  Jonathan Coles   <[email protected]>
3537    
3538            * Thuban/Model/classgen.py: Add docstrings. Rename specific
3539            Ramp instances to use lower_case_style.
3540    
3541            * Thuban/UI/classgen.py: Use renamed Ramp instances.
3542            
3543            * Thuban/UI/classifier.py: Add docstrings.
3544    
3545            * Thuban/UI/dock.py: Add docstrings.
3546    
3547            * test/test_classgen.py: Use renamed Ramp instances.
3548    
3549    2003-07-30  Bernhard Herzog  <[email protected]>
3550    
3551            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
3552            was never used in Thuban.
3553    
3554    2003-07-30  Bernhard Herzog  <[email protected]>
3555    
3556            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
3557            method directly instead of going through the transient_table
3558            method. This faster because transient_table may force the copy of
3559            a DBF file into the transient database and setting a table's title
3560            doesnm't affect the title of the associated transient table, so
3561            this fixes RT #2042
3562    
3563            * Thuban/UI/main.py (__version__): Don't import the already
3564            removed show_exception_dialog.
3565    
3566    2003-07-29  Jonathan Coles   <[email protected]>
3567    
3568            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3569            Put back this method and remove the equivalent function since we
3570            are setting the exception hook from within this class (OnInit).
3571    
3572    2003-07-29  Jonathan Coles   <[email protected]>
3573    
3574            * Doc/manual/images/5_2_custom_ramp.png,
3575            Doc/manual/images/5_2_quantiles.png,
3576            Doc/manual/images/5_2_uniform_dist.png,
3577            Doc/manual/images/5_2_unique_values.png,
3578            Doc/manual/images/8_int_error.png: New screen shots.
3579    
3580            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
3581            some points, and added more screen shots.
3582    
3583    2003-07-29  Bernhard Herzog  <[email protected]>
3584    
3585            * Thuban/Model/data.py: Remove the now unused import of warnings
3586    
3587    2003-07-29  Bernhard Herzog  <[email protected]>
3588    
3589            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
3590            deprecated since before the 0.8 release and isn't used in Thuban
3591            itself anymore.
3592    
3593            * Thuban/Model/transientdb.py: Remove some unnecessary imports
3594    
3595    2003-07-29  Jonathan Coles   <[email protected]>
3596    
3597            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
3598            python exception hook here so that we are sure to catch any
3599            Thuban exception that happen during initialization.
3600    
3601            * Thuban/UI/main.py (main): Don't set the exception hook here,
3602            it will get set in ThubanApplication.OnInit.
3603    
3604    2003-07-29  Jonathan Coles   <[email protected]>
3605                                                                                
3606            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
3607            Removed and called it show_exception_dialog() so that the exception
3608            handler can be set before the class is created.
3609                                                                                
3610            * Thuban/UI/main.py (main): Install the exception handler before
3611            a ThubanApplication is created.
3612                                                                                    
3613    2003-07-29  Bernhard Herzog  <[email protected]>
3614    
3615            * po/it.po: New. Italian translation by Maurizio Napolitano
3616    
3617            * po/ru.po: New. Russian translation by Alex Shevlakov
3618    
3619    2003-07-29  Frank Koormann   <[email protected]>
3620    
3621            * Doc/manual/thuban-manual.xml: Extended section on supported
3622            projections.
3623            
3624    2003-07-29  Frank Koormann   <[email protected]>
3625    
3626            * Doc/manual/thuban-manual.xml: gaspell-checked.
3627    
3628    2003-07-29  Jonathan Coles   <[email protected]>
3629    
3630            * Doc/manual/images/3_5_legend.png: Added border to improve look
3631            on white background.
3632    
3633    2003-07-29  Jonathan Coles   <[email protected]>
3634    
3635            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
3636            descriptions for the legend toolbar.
3637    
3638            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
3639            cursor from dialog box.
3640    
3641    2003-07-28  Jonathan Coles   <[email protected]>
3642    
3643            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
3644    
3645            * Doc/manual/images/2_4_session_tree.png,
3646            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
3647            Doc/manual/images/4_2_layer_properties.png,
3648            Doc/manual/images/4_2_raster_layer_properties.png,
3649            Doc/manual/images/5_3_genclass.png,
3650            Doc/manual/images/5_classification.png,
3651            Doc/manual/images/6_projection.png,
3652            Doc/manual/images/7_1_table_view.png,
3653            Doc/manual/images/7_2_5_join.png: New screenshots.
3654    
3655    2003-07-24  Jonathan Coles   <[email protected]>
3656    
3657            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
3658    
3659    2003-07-24  Jonathan Coles   <[email protected]>
3660    
3661            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
3662            chapter on Layer Management.
3663    
3664            * Doc/manual/Makefile: New. Makefile to generate all formats for the
3665            manual and images.
3666    
3667    2003-07-24  Bernhard Herzog  <[email protected]>
3668    
3669            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
3670            it annoys lintian which warns about these files not being
3671            executable. The #! isn't necessary here since if you absolutely
3672            must execute them you can always say "python <filename>".
3673    
3674            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
3675            superfluous code to set brush and pen for point shapes
3676    
3677            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
3678            belong in viewport anyway
3679    
3680    2003-07-24  Frank Koormann   <[email protected]>
3681    
3682            * Doc/manual/thuban-manual.xml: Added section on table management.
3683    
3684    2003-07-24  Bernhard Herzog  <[email protected]>
3685    
3686            * test/runtests.py (main): Recognize the long "verbose" option
3687            correctly.
3688    
3689    2003-07-22  Jonathan Coles   <[email protected]>
3690    
3691            * Doc/manual/thuban-manual.xml: Continue to write first revision
3692            of the manual.
3693    
3694            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
3695            with Begin/EndDrawing() calls to ensure we aren't doing to
3696            many updates to the dc during rendering.
3697            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
3698            a pen and brush argument so they need to be passed to the function.
3699    
3700            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
3701            Calculates the minimum and maximum scale values. Factored out
3702            of set_view_transform so that it could be used to zoom all the
3703            way into a single point.
3704            (ViewPort.set_view_transform): Call calc_min_max_scales().
3705            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
3706            if only a single point is selected.
3707    
3708            * Doc/manual/images/1_2_legend_close.png,
3709            Doc/manual/images/1_2_legend_dock.png,
3710            Doc/manual/images/1_2_mainwindow.png,
3711            Doc/manual/images/1_2_mainwindow.ps,
3712            Doc/manual/images/1_2_mainwindow.sk,
3713            Doc/manual/images/3_2_fullextent.png,
3714            Doc/manual/images/3_2_fulllayerextent.png,
3715            Doc/manual/images/3_2_fullshapeextent.png,
3716            Doc/manual/images/3_2_pan.png,
3717            Doc/manual/images/3_2_zoomin.png,
3718            Doc/manual/images/3_2_zoomout.png,
3719            Doc/manual/images/3_3_identify.png,
3720            Doc/manual/images/3_3_label.png,
3721            Doc/manual/images/3_5_invisible.png,
3722            Doc/manual/images/3_5_movedown.png,
3723            Doc/manual/images/3_5_moveup.png,
3724            Doc/manual/images/3_5_props.png,
3725            Doc/manual/images/3_5_tobottom.png,
3726            Doc/manual/images/3_5_totop.png,
3727            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
3728    
3729    2003-07-18  Bernhard Herzog  <[email protected]>
3730    
3731            * Thuban/UI/messages.py (MAP_REPLACED): New message.
3732    
3733            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
3734            after the new map has been assigned
3735    
3736            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
3737            Delegate MAP_REPLACED to the canvas too
3738            (MainWindow.prepare_new_session): Removed. Thanks to the new
3739            MAP_REPLACED message it's no longer needed
3740            (MainWindow.OpenSession, MainWindow.NewSession):
3741            prepare_new_session has been removed.
3742    
3743            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
3744            MAP_REPLACED so that we can close the dialog if a new map is set.
3745            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
3746            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
3747            dialog
3748    
3749            * test/test_viewport.py (SimpleViewPortTest)
3750            (SimpleViewPortTest.test_default_size): Add doc-strings
3751            (ViewPortTest.setUp): Bind map to self.map so we can use it in
3752            tests. Subscribe to MAP_REPLACED messages too.
3753            (ViewPortTest.tearDown): No need to explicitly unsubscribe
3754            (ViewPortTest.test_set_map): New test for the SetMap method.
3755    
3756    2003-07-18  Bernhard Herzog  <[email protected]>
3757    
3758            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
3759            Move this test from ViewPortTest.setUp to this new separate test
3760            case. setUp is not the place for the actual tests.
3761            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
3762            more of the test from setUp to the new test test_inital_settings.
3763            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
3764            (ViewPortTest.test_proj_conv): Split test_proj_conv into
3765            test_win_to_proj and test_proj_to_win and make the tests easier to
3766            understand
3767            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
3768            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
3769            (ViewPortTest.test_unprojected_rect_around_point)
3770            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
3771            Reformat to increase readability.
3772    
3773    2003-07-18  Bernhard Herzog  <[email protected]>
3774    
3775            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
3776    
3777    2003-07-18  Bernhard Herzog  <[email protected]>
3778    
3779            * test/runtests.py: The test suite can now be run without an X
3780            connection. To make sure this remains true, remove the DISPLAY
3781            environment variable so that an error occurs if the wxGTK is
3782            imported accidentally
3783    
3784    2003-07-18  Bernhard Herzog  <[email protected]>
3785    
3786            * Thuban/UI/viewport.py: Remove unused imports
3787    
3788            * Thuban/UI/view.py: Remove unused imports
3789    
3790    2003-07-18  Bernhard Herzog  <[email protected]>
3791    
3792            * test/test_export.py Remove unused imports. The OutputTransform
3793            function is now in viewport.py and is called output_transform
3794            (TestScalebar.test_output_transform)
3795            (TestScalebar.test_OutputTransform): Renamed to
3796            test_output_transform and updated to use output_transform instead
3797            of OutputTransform
3798    
3799            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
3800            renamed.
3801            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
3802            renamed to output_transform
3803    
3804            * Thuban/UI/viewport.py (OutputTransform, output_transform):
3805            Rename to output_transform
3806    
3807    2003-07-18  Bernhard Herzog  <[email protected]>
3808    
3809            * Thuban/Model/layer.py (Layer.__init__): Rename
3810            classificationField to classificatin_column and init it here so
3811            that it can be used in SetClassificationColumn
3812            (Layer.GetClassificationColumn, Layer.GetClassificationField):
3813            Rename to GetClassificationColumn.
3814            (Layer.SetClassificationColumn, Layer.SetClassificationField):
3815            Rename to SetClassificationColumn and issue a LAYER_CHANGED
3816            message if the column changes.
3817            (Layer._classification_changed, Layer.ClassChanged): Rename to
3818            _classification_changed. Update the callers.
3819            (Layer.SetShapeStore): Further field->column renames.
3820    
3821            * Thuban/Model/load.py (SessionLoader.start_classification)
3822            (SessionLoader.start_clpoint): Updates because of
3823            field->column method name changes in the Layer class
3824    
3825            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
3826            because of field->column method name changes in the Layer class
3827    
3828            * Thuban/UI/classifier.py (Classifier.__init__)
3829            (Classifier._OnTry, Classifier._OnRevert): Updates because of
3830            field->column method name changes in the Layer class
3831    
3832            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
3833            because of field->column method name changes in the Layer class
3834    
3835            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
3836            of field->column method name changes in the Layer class
3837    
3838            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
3839            (SaveSessionTest.testClassifiedLayer): Update because of
3840            field->column method name changes in the Layer class
3841    
3842            * test/test_layer.py (SetShapeStoreTests.setUp)
3843            (SetShapeStoreTests.test_sanity): Update because of field->column
3844            method name changes in the Layer class
3845            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
3846            (TestLayerModification.test_sanity)
3847            (TestLayerModification.test_initial_settings): remove unsued code
3848            and rename to test_sanity.
3849            (TestLayerModification.test_set_classification): New test for
3850            SetClassification and SetClassificationField.
3851    
3852    2003-07-18  Bernhard Herzog  <[email protected]>
3853    
3854            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
3855            the non-fixed values as well. The old test would have accepted a
3856            fixed ramp that only returnes the fixed properties
3857    
3858    2003-07-17  Jonathan Coles   <[email protected]>
3859    
3860            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
3861            shots for the manual. The XCF file is the source image and
3862            has additional layers to support changes.
3863    
3864            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
3865    
3866            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
3867            Return both the new class and the field name.
3868    
3869            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
3870            fit the map to the window as this changes any zoom level that
3871            the user may have set.
3872    
3873    2003-07-16  Jonathan Coles   <[email protected]>
3874    
3875            * Thuban/Model/classgen.py (generate_singletons,
3876            generate_uniform_distribution, generate_quantiles): Remove
3877            fixes parameter, but maintain the same functionality by having
3878            the calling function pass a FixedRamp object for the ramp.
3879            (FixedRamp): New. Adapts a ramp to have fixed property values.
3880    
3881            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
3882            (Classification): Inherit from Publisher.
3883            (Classification.__init__): Remove the layer parameter.
3884            Classifications no longer need to have a parent layer.
3885            (Classification.GetField, Classification.GetFieldType,
3886            Classification.SetFieldInfo): Removed. The field name is stored
3887            in the layer, and the type can be retreived by calling
3888            Layer.GetFieldType().
3889            (Classification._set_layer, Classification.GetLayer): Removed.
3890            Classifications no longer have a parent layer.
3891    
3892            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
3893            classification.
3894            (Layer.SetShapeStore): Reset the classification first while
3895            we still have the old shape store to work with.
3896            (Layer.GetClassificationField, Layer.SetClassificationField):
3897            New. Method for getting/setting the field to classify on.
3898            (Layer.SetClassification): Simplified now that the layer
3899            simply has to hold a reference to the classification and not
3900            tell the classification who owns it.
3901            Fixes RTbug #2023.
3902    
3903            * Thuban/Model/load.py (SessionLoader.start_classification):
3904            Set the field name on the layer, not the classification.
3905    
3906            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
3907            classification is modified.
3908    
3909            * Thuban/Model/save.py (SessionSaver.write_classification):
3910            Get the field name and type from the layer.
3911    
3912            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
3913            parameter records to rows and add docstring. Fixes RTbug #1997.
3914    
3915            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
3916            ramp when we need to fix certain values of a ramp rather than
3917            using the old fixes parameter. Fixes RTbug #2024.
3918    
3919            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
3920            parameter.
3921            (ClassTable.Reset): Add fieldType parameter and use it, rather
3922            than asking the classification.
3923            (Classifier.__init__): Remember the original class's field
3924            and ask the layer for the field type, rather than the classification.
3925            (Classifier.__SetGridTable): Retrieve the field and field type
3926            for the table because they are not in the classification.
3927            (Classifier._OnTry, Classifier._OnRevert): Set the classification
3928            field on the layer in addition to the classification itself.
3929    
3930            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
3931            classification field from layer.
3932    
3933            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
3934            classification field from layer. Split up tests and remove
3935            *-imports. Fixes RTbug #1992.
3936    
3937            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
3938    
3939            * test/test_classification.py
3940            (TestClassification.test_classification): Remove tests for methods
3941            that no longer exist.
3942    
3943            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
3944            __init__ no longer has a field parameter, use SetClassificationField.
3945            (SetShapeStoreTests.test_sanity): Use layer object to get class
3946            field info.
3947    
3948            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
3949            SetClassificationField on layer to set class field info.
3950    
3951            * test/test_viewport.py: Renamed from test/test_view.py.
3952    
3953    2003-07-16  Jan-Oliver Wagner <[email protected]>
3954    
3955            * Doc/manual/thuban-manual.xml: Added authors and an initial
3956            coarse structure.
3957    
3958    2003-07-15  Bernhard Herzog  <[email protected]>
3959    
3960            * test/support.py (FloatComparisonMixin): This is a mix-in class
3961            and therefore should not be derived from any other class.
3962    
3963            * test/test_range.py (RangeTest): FloatComparisonMixin is a
3964            mix-in, so derive from TestCase as well.
3965    
3966    2003-07-15  Bernhard Herzog  <[email protected]>
3967    
3968            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
3969            draw_func handling a bit to remove one layer of indirection. This
3970            makes the renderer about 10% faster in the non-classifying case
3971            and the code a bit cleaner
3972            (MapRenderer.draw_point_shape): Add the pen and brush parameters
3973            and set them in the dc. Now the draw_point_shape method and
3974            wxproj's draw_polygon_shape function have basically the same
3975            signature so that both can be directly used as draw_func
3976    
3977    2003-07-15  Bernhard Herzog  <[email protected]>
3978    
3979            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
3980            string values (in addition to the labels) as UTF 8
3981    
3982            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
3983            values if the field type is string
3984    
3985            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
3986            saving a session with non-ascii string classification values.
3987    
3988            * test/test_load.py (TestClassification.file_contents)
3989            (TestClassification.test): Check for non-ascii values in string
3990            classifications
3991    
3992    2003-07-14  Jonathan Coles   <[email protected]>
3993    
3994            * test/test_view.py: New. Tests for ViewPort.
3995    
3996    2003-07-14  Frank Koormann   <[email protected]>
3997    
3998            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
3999            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
4000    
4001            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
4002            unicode strings from session file: session title, map title and
4003            projection name.
4004            
4005    2003-07-10  Jonathan Coles   <[email protected]>
4006    
4007            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
4008            drag_stop, not drag_move when the mouse is released.
4009    
4010    2003-07-10  Jonathan Coles   <[email protected]>
4011    
4012            The most important part of this is the seperation of view.py into
4013            two pieces. viewport.py now has a class called ViewPort which
4014            contains all the non-wx parts of view.py and can therefore be
4015            tested. view.py contains only the wx-specific parts and is fairly
4016            simple.
4017    
4018            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
4019            RTTbug #1992.
4020            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
4021            RTTbug #1992.
4022    
4023            * Thuban/Model/classgen.py (generate_singletons,
4024            generate_uniform_distribution, generate_quantiles):
4025            Added 'fixes' parameter so that property attributes can
4026            be held constant over the generated classification groups.
4027            (CustomRamp.GetProperties): Remove unused variables.
4028    
4029            * Thuban/Model/map.py (Map.SetProjection): Send the old
4030            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
4031            event.
4032    
4033            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
4034            parameter which is a list of records that restricts which
4035            records are saved. Fixes RTbug #1997.
4036    
4037            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
4038            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
4039    
4040            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
4041            to allow the user to fix line color/width on generated groups.
4042            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
4043            functions to optionally fix group properties.
4044    
4045            * Thuban/UI/main.py (main): Set exception hook to the
4046            ShowExceptionDialog. Fixes RTbug #1993.
4047    
4048            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
4049            the table window when it is selectd to be shown.
4050    
4051            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
4052            Export Selection button and move the export buttons underneath
4053            the table.
4054            (QueryTableFrame.UpdateStatusText): Added event argument so
4055            that it can respond to grid selection events. The status text
4056            is now updated even when the table is not associated with a
4057            layer as was previously assumed.
4058            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
4059            UpdateStatusText responds to these events.
4060            (QueryTableFrame.OnSaveAs): Renamed to doExport.
4061            (QueryTableFrame.doExport): Helper function that saves the
4062            entire table, or selected rows, to a file.
4063            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
4064            Respond to export button events and call doExport.
4065    
4066            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
4067            the function doesn't return NULL without first setting a Python
4068            Error.
4069    
4070            * test/runtests.py (main): Only print "Unknown option" for
4071            unsupported options.
4072    
4073            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
4074            optional epsilon argument to specify floating point accuracy.
4075            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
4076            for each item test.
4077    
4078            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
4079            tests for saving selected records.
4080    
4081            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
4082            tests for saving selected records.
4083    
4084            * test/test_map.py (TestMapWithContents.test_set_projection):
4085            MAP_PROJECTION_CHANGED events send the old projection.
4086    
4087            * test/test_session.py
4088            (TestSessionWithContent.test_forward_map_projection):
4089            MAP_PROJECTION_CHANGED events send the old projection.
4090    
4091            * test/test_table.py (TableTest): Update tests to use non-deprecated
4092            functions.
4093    
4094    2003-07-08  Bernhard Herzog  <[email protected]>
4095    
4096            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
4097            constants in the column objects are the standard ones defined in
4098            the table module.
4099    
4100            * test/test_transientdb.py
4101            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
4102            exporting transient tables as DBF works. This should catch the bug
4103            just fixed in TransientTableBase.Width.
4104    
4105    2003-07-08  Bernhard Herzog  <[email protected]>
4106    
4107            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
4108            interpolated colors correctly.
4109    
4110            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
4111            New. Test case for the fix in classgen.py
4112    
4113    2003-07-08  Bernhard Herzog  <[email protected]>
4114    
4115            * test/runtests.py (main): Make the default output less verbose
4116            and add a verbosity option (-v) to get the old output
4117    
4118    2003-07-08  Bernhard Herzog  <[email protected]>
4119    
4120            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
4121            0.9.
4122    
4123            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
4124            New. Return the join type
4125    
4126            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
4127            DTD
4128            (SessionSaver.write_data_containers): Save the join type for
4129            joined tables
4130    
4131            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
4132            namespace
4133            (SessionLoader.start_jointable): Handle the jointype attribute
4134    
4135            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
4136            as of Thuban 0.8. These are now tests to determine whether Thuban
4137            can still read files generated by Thuban 0.8
4138    
4139            * test/test_load.py (LoadSessionTest.dtd)
4140            (TestSingleLayer.file_contents)
4141            (TestLayerVisibility.file_contents, TestLabels.file_contents)
4142            (TestLayerProjection.file_contents)
4143            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
4144            (TestJoinedTable.file_contents)
4145            (TestLoadError.file_contents): Update for new DTD
4146            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
4147            for new join type attribute
4148    
4149            * test/test_save.py (SaveSessionTest.dtd)
4150            (SaveSessionTest.testEmptySession)
4151            (SaveSessionTest.testSingleLayer)
4152            (SaveSessionTest.testLayerProjection)
4153            (SaveSessionTest.testRasterLayer)
4154            (SaveSessionTest.testClassifiedLayer)
4155            (SaveSessionTest.test_dbf_table)
4156            (SaveSessionTest.test_joined_table): Update for new DTD
4157            (SaveSessionTest.test_joined_table): Add test for new join type
4158            attribute
4159    
4160    2003-07-04  Bernhard Herzog  <[email protected]>
4161    
4162            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
4163            function for table_to_dbf
4164            (table_to_dbf): Deal with names longer than the 10 character limit
4165    
4166            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
4167            doc-string
4168            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
4169            long column names
4170    
4171    2003-07-03  Bernhard Herzog  <[email protected]>
4172    
4173            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
4174    
4175    2003-07-03  Bernhard Herzog  <[email protected]>
4176    
4177            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
4178            for the Thuban manual and README with some basic information about
4179            the manual
4180    
4181    2003-07-03  Bernhard Herzog  <[email protected]>
4182    
4183            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
4184            Update doc-string
4185            (TransientJoinedTable.create): Do not modify the column objects of
4186            the input tables in place and copy all columns of the input tables
4187            into the joined table after all.
4188    
4189            * test/test_transientdb.py
4190            (TestTransientTable.test_transient_joined_table_same_column_name):
4191            Update to reflect the new behavior
4192            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
4193            Update to reflect the new behavior
4194            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
4195            New test case for a bug which modified the column objects in place
4196    
4197    2003-07-02  Jonathan Coles   <[email protected]>
4198    
4199            * Thuban/Model/classgen.py (generate_singletons,
4200            generate_uniform_distribution, generate_quantiles,
4201            GenQuantiles0): Make sure maxValue isn't less than
4202            one, otherwise we could divide by zero.
4203    
4204            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
4205            ClassGenTest.doClassSingleTest): Call doBoundsTest to
4206            check the end classification groups against the
4207            proper property values.
4208            (ClassGenTest.doBoundsTest): New. Checks the first and
4209            last classification groups to make sure their properties
4210            are the correct upper and lower bounds for a color ramp.
4211    
4212    2003-07-02  Jonathan Coles   <[email protected]>
4213    
4214            * Thuban/Model/classgen.py (generate_singletons,
4215            generate_uniform_distribution, generate_quantiles,
4216            GenQuantiles0): The denominator was one to high when
4217            calculating the index for the ramp causing the index
4218            to never to reach one.
4219    
4220    2003-07-02  Jonathan Coles   <[email protected]>
4221    
4222            Changed the singature of ClassGroupRange.__init__ and
4223            ClassGroupRange.SetRange() so that the min/max values are
4224            passed as a tuple. This makes a better calling scheme for
4225            when a Range object is passed instead.
4226    
4227            * Thuban/Model/classgen.py: Fixed parameters to
4228            ClassGroupRange constructor.
4229    
4230            * Thuban/Model/classification.py (ClassGroupRange.__init__):
4231            Consolidate the min/max parameters into a single _range which
4232            can either be a tuple or a Range object.
4233            (ClassGroupRange.SetRange): Consolidate the min/max parameters
4234            into a single _range which can either be a tuple or a Range object.
4235    
4236            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
4237            call to ClassGroupRange constructor to use a tuple.
4238    
4239            * Thuban/Model/layer.py (Layer.SetClassification): Switch
4240            the classification instance variable to the new class
4241            before calling _set_layer otherwise subscribers to a
4242            LAYER_CHANGED event will not see any difference.
4243    
4244            * test/test_classification.py: Fix tests of ClassGroupRange
4245            so that they use the new signature.
4246    
4247            * test/test_load.py: Fix use of ClassGroupRange so that it
4248            uses the new signature.
4249    
4250            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
4251            uses the new signature.
4252    
4253            * test/test_save.py: Fix use of ClassGroupRange so that it
4254            uses the new signature.
4255    
4256    
4257    2003-07-01  Jonathan Coles   <[email protected]>
4258    
4259            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
4260            Import used objects/class from color.
4261            (generate_singletons): We don't
4262            need the numGroups parameter anymore because we are using
4263            the new ramps with GetProperties().
4264            (generate_uniform_distribution): Use new ramp method
4265            GetProperties().
4266            (generate_quantiles, GenQuantiles0): Use new ramp method
4267            GetProperties().
4268            (CustomRamp.SetNumGroups): Removed. The ramps now map
4269            a value from 0 to 1 to class properties so the number
4270            of groups is not needed ahead of time.
4271            (CustomRamp.next): Removed. CustomRamp does not support
4272            interation anymore.
4273            (CustomRamp.GetProperties): Returns a ClassGroupProperties
4274            object based on the index value from 0 to 1 that is
4275            passed to it.
4276            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
4277            Made into instances of Monochromatic class instread of
4278            deriving from it.
4279            (HotToCold.SetNumGroups): Removed. See CustomRamp.
4280            (HotToCold.next): Removed. See CustomRamp.
4281    
4282            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
4283            (Classification.SetField, Classification.SetFieldType):
4284            Replaced with SetFieldInfo.
4285            (Classification.SetFieldInfo): New. Does a better job of
4286            what SetField and SetFieldType used to do by combining
4287            their function since they should really always be done
4288            at the same time.
4289            (Classification.SetLayer): Renamed to _set_layer.
4290            (Classification._set_layer): Should only be called from
4291            Layer's SetClassification. This does not cause a recursive
4292            call as SetLayer did because we know that Layer knows about
4293            the classification.
4294    
4295            * Thuban/Model/color.py: Fixes RTbug #1971.
4296            (_Transparent): Renamed from Transparent so it doesn't
4297            conflict with the module variable.
4298            (Transparent, Black): Renamed from Color.Transparent,
4299            Color.Black so they are not class variables.
4300    
4301            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
4302            (Layer.Destroy): We don't need to call SetClassification
4303            anymore to clear out the back reference in the classifcation
4304            to the layer. It's better to set it to None using _set_layer,
4305            and we won't be creating another clas object too.
4306            (Layer.SetClassification): Classification._set_layer is not
4307            recursive so remove all the locking variables. Also clean
4308            up the code so that it remains unchanged if something fails.
4309    
4310            * Thuban/Model/load.py: Fixes RTbug #1971.
4311            (SessionLoader.start_classification): Call
4312            Classification.SetFieldInfo().
4313    
4314            * Thuban/Model/save.py: Removed import of Color which wasn't
4315            being used.
4316    
4317            * Thuban/UI/classgen.py: Fixes RTbug #1972.
4318            (ClassGenDialog.__init__): Color ramps are now instances
4319            already so we don't need to create any new objects.
4320            (ClassGenDialog.OnOK): Check for numGroups is no longer
4321            necessary because we never use it.
4322    
4323            * Thuban/UI/classifier.py: Fixes RTbug #1971.
4324            (Classifier.__BuildClassification, Classifier.__SetGridTable):
4325            Call Classification.SetFieldInfo() instead of SetFieldType.
4326    
4327            * Thuban/UI/renderer.py: Fixes RTbug #1971.
4328    
4329            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
4330            (MapCanvas.__init__): Subscribe to the idle time event. Set
4331            background color to white.
4332            (MapCanvas.OnPaint): Set a flag indicating that we should
4333            render the map during idle time. If we already have a bitmap
4334            just draw it now.
4335            (MapCanvas.OnIdle): New. Render the map only during idle time.
4336            This also fixes a problem with the busy cursor under gtk.
4337    
4338            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
4339            Fix calls to generate_singletons because the signature changed.
4340    
4341            * test/test_classification.py: Fix color references and
4342            change calls to Classification.[SetField|SetFieldType] to
4343            SetFieldInfo.
4344    
4345            * test/test_load.py: Fix color references.
4346    
4347            * test/test_load_0_2.py: Fix color references.
4348    
4349            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
4350            Change calls to Classification.[SetField|SetFieldType] to
4351            SetFieldInfo.
4352    
4353    2003-07-01  Frank Koormann   <[email protected]>
4354    
4355            MERGE from the greater-ms3 branch.
4356    
4357            * test/test_transientdb.py
4358            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
4359            New. Test join of two tables with partly equal column names.
4360    
4361            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
4362            If duplicates in left and right tables column names are found,
4363            append '_' (underscores) to the name until it is unique.
4364            Create always new internal names for the resulting table and reference
4365            columns in the join statement with <table>.<column>
4366    
4367    2003-07-01  Bernhard Herzog  <[email protected]>
4368    
4369            * test/test_transientdb.py
4370            (TestTransientTable.test_transient_joined_table_same_column_name):
4371            New. Test whether joining on columns with the same names in both
4372            tables works.
4373            
4374            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
4375            sure to use the right internal names even when joining on field
4376            with the same names in both tables. Also, detect duplicate names
4377            in the joined table correctly.
4378    
4379    2003-07-01  Frank Koormann   <[email protected]>
4380    
4381            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
4382            Reverse List of layers to render in same order as in desktop legend.
4383    
4384    2003-06-30  Jonathan Coles   <[email protected]>
4385    
4386            * Thuban/version.py (make_tuple): Takes a version string
4387            and splits it into a tuple of at most three integers.
4388            Used make_tuple() to make tuple versions of the version
4389            numbers.
4390    
4391            * Thuban/UI/about.py: Add Thuban email addresses.
4392    
4393    2003-06-30  Jonathan Coles   <[email protected]>
4394    
4395            * Thuban/version.py: SQLite/PySQLite version dependencies
4396            were too high.
4397    
4398    2003-06-30  Jonathan Coles   <[email protected]>
4399    
4400            * Thuban/version.py: Update version to 0.8.1
4401            
4402            * MANIFEST.in: Added Projections so that default.proj is
4403            included.
4404    
4405    2003-06-26  Jonathan Coles   <[email protected]>
4406    
4407            New About box with lots more information including library
4408            versions and credits. More/better version checking before
4409            Thuban starts.
4410    
4411            * Thuban/UI/about.py: New. New About box that displays
4412            library version information and credits.
4413    
4414            * Thuban/version.py: Added new 'versions' dictionary which
4415            contains the verions of various libraries which are checked
4416            when the module loads.
4417            (verify_versions): Check all version numbers and returns
4418            a list of errors.
4419    
4420            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
4421            Reset the status of the buttons as the situation warrants,
4422            but in a better more reliable way by not relying on the
4423            current status to determine what needs to change.
4424    
4425            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
4426            (verify_versions): Remove most of the code since it is
4427            now in Thuban.version.verify_versions.o
4428    
4429            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
4430            About box in Thuban.UI.about.
4431    
4432            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
4433            Returns the version of gdal library being used as a string.
4434    
4435            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
4436            Removed.
4437            (get_proj_version): Return the version of PROJ that the file
4438            was compiled with.
4439            (get_gtk_version): Return th version of GTK that the file
4440            was compiled with.
4441    
4442    2003-06-25  Jonathan Coles   <[email protected]>
4443    
4444            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
4445            of the SelectPropertiesDialog should be self so the window
4446            appears on top.
4447            (ClassGroupPropertiesCtrl.DoEdit): The parent
4448            of the SelectPropertiesDialog should be self so the window
4449            appears on top.
4450    
4451            * Thuban/UI/resource.py: Cleaned up how we determine file
4452            extensions.
4453            (GetImageResource): Return an wxImage from our Resources.
4454    
4455    2003-06-24  Jonathan Coles   <[email protected]>
4456    
4457            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
4458            Check that a layer has a classification before trying
4459            to get it. Raster layers don't have classifications.
4460    
4461    2003-06-23  Jonathan Coles   <[email protected]>
4462            
4463            * setup.py: Add Resources/XML to resource list.
4464        
4465    2003-06-23  Jonathan Coles   <[email protected]>
4466    
4467            * setup.cfg: Fix copyright dates
4468        
4469    2003-06-23  Jonathan Coles   <[email protected]>
4470    
4471            * MANIFEST.in: Update with Resources/XML
4472    
4473            * setup.py: Don't include Locale resources yet as we don't
4474            have any and it causes problems building the distribution
4475            for Windows. Update version to 0.8.0.
4476    
4477            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
4478    
4479            * Thuban/UI/mainwindow.py: Add blank line at the end because
4480            file was not being read correctly building the Windows
4481            distribution.
4482    
4483    2003-06-23  Jonathan Coles   <[email protected]>
4484    
4485            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
4486    
4487            * Thuban/version.py: Temporarily update longversion for
4488            the 0.8 release so that it doesn't have the cvs revision.
4489    
4490    2003-06-23  Jonathan Coles   <[email protected]>
4491    
4492            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
4493            to make sure that we don't create reentrant possibilities with
4494            wxYield.
4495    
4496            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
4497            directly to avoid the wxSafeYield() call which generates an
4498            OnPaint event causing infinite recursion. Don't try to catch
4499            exception anymore. This was for before there were limits on map
4500            scaling.
4501    
4502    2003-06-23  Bernhard Herzog  <[email protected]>
4503    
4504            Bug fix for RT #1961:
4505    
4506            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
4507            Register DerivedShapestores with the session
4508    
4509            * Thuban/Model/session.py (Session.Tables): Make sure each table
4510            is only listed once.
4511    
4512            * test/test_load.py (TestJoinedTable.test): Add check_format call.
4513            Update file contents to match the one written out.
4514    
4515    2003-06-20  Bernhard Herzog  <[email protected]>
4516    
4517            * test/xmlsupport.py (SaxEventLister.startElementNS)
4518            (SaxEventLister.endElementNS): Do not include the qname. Python
4519            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
4520            is (presumably incorrectly) None, whereas it's a string with the
4521            element name in the later versions.
4522    
4523            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
4524            (TestEventList.test_even_list_namespace): Update tests to reflect
4525            the new behaviour
4526            (TestEventList.test_even_list_id_normalization): Fix doc-string
4527    
4528    2003-06-20  Jonathan Coles   <[email protected]>
4529    
4530            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
4531            by deriving classes to determine if that layer supports shapes.
4532            (Layer): Override HasShapes and return true.
4533    
4534            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
4535            instead of a direct call to wx[Begin|End]CusyCursor().
4536            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
4537            table data.
4538    
4539            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
4540            New. Wrappers around the wxWindows functions that allow us to
4541            make additional calls such as wxYield which gives the native
4542            system a chance to update the cursor correctly.
4543    
4544            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
4545            instead of a direct call to wx[Begin|End]CusyCursor().
4546    
4547            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
4548            instead of a direct call to wx[Begin|End]CusyCursor().
4549            (MapCanvas.find_shape_at): Check if the current search layer
4550            support shapes, otherwise go on to the next layer.
4551    
4552            * test/test_layer.py: Add tests in each type of layer for
4553            HasClassification() and HasShapes()
4554    
4555    2003-06-20  Jonathan Coles   <[email protected]>
4556    
4557            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after
4558            turning on the busy cursor to allow the system to change the
4559            cursor before we begin painting. This fixes a problem that
4560            was occuring only under GTK. Fixes RTbug #1840.
4561    
4562    2003-06-20  Bernhard Herzog  <[email protected]>
4563    
4564            * Resources/XML/thuban-0.8.dtd: New DTD for the new file format
4565            version.
4566    
4567            * Thuban/Model/save.py (sort_data_stores): New. Make topological
4568            sort of the data sources so they can be written with sources that
4569            data sources that depend on other data sources come after the
4570            sources they depend on.
4571            (SessionSaver.__init__): Add idmap instance variable to map from
4572            objects to the ids used in the file.
4573            (SessionSaver.get_id, SessionSaver.define_id)
4574            (SessionSaver.has_id): New. Methods to manage the idmap
4575            (SessionSaver.write): Use thuban-0.8.dtd
4576            (SessionSaver.write_session): Add a namespace on the session and
4577            write out the data sources before the maps.
4578            (SessionSaver.write_data_containers): New. Write the data
4579            containers.
4580            (SessionSaver.write_layer): Layer elements now refer to a
4581            shapestore and don't contain filenames anymore.
4582    
4583            * Thuban/Model/load.py (LoadError): Exception class to raise when
4584            errors in the files are discovered
4585            (SessionLoader.__init__): Define dispatchers for elements with a
4586            thuban-0.8 namespace too.
4587            (SessionLoader.check_attrs): New helper method to check and
4588            convert attributes
4589            (AttrDesc): New. Helper class for SessionLoader.check_attrs
4590            (SessionLoader.start_fileshapesource)
4591            (SessionLoader.start_derivedshapesource)
4592            (SessionLoader.start_filetable, SessionLoader.start_jointable):
4593            Handlers for the new elements in the new fileformat
4594            (SessionLoader.start_layer): Handle the shapestore attribute in
4595            addition to filename.
4596            (SessionLoader.start_table, SessionLoader.end_table): Removed.
4597            They were never used in the old formats and aren't needed for the
4598            new.
4599    
4600            * Thuban/Model/session.py (Session.DataContainers): New method to
4601            return all "data containers", i.e. shapestores and tables
4602    
4603            * test/xmlsupport.py (SaxEventLister.__init__)
4604            (SaxEventLister.startElementNS, sax_eventlist): Add support to
4605            normalize IDs.
4606    
4607            * test/test_xmlsupport.py
4608            (TestEventList.test_even_list_id_normalization): New test case for
4609            id normalization
4610    
4611            * test/test_load.py (LoadSessionTest.check_format): Use ID
4612            normalization
4613            (LoadSessionTest.thubanids, LoadSessionTest.thubanidrefs): New
4614            class atrributes used for ID normalization
4615            (TestSingleLayer, TestLayerVisibility, TestLabels.test)
4616            (TestLayerProjection.test, TestRasterLayer.test): Adapt to new
4617            file format
4618            (TestJoinedTable): New test for loading sessions with joined
4619            tables.
4620            (TestLoadError): New. Test whether missing required attributes
4621            cause a LoadError.
4622    
4623            * test/test_save.py (SaveSessionTest.thubanids)
4624            (SaveSessionTest.thubanidrefs): New class attributes for ID
4625            normalization in .thuban files.
4626            (SaveSessionTest.compare_xml): Use id-normalization.
4627            (SaveSessionTest.testEmptySession)
4628            (SaveSessionTest.testLayerProjection)
4629            (SaveSessionTest.testRasterLayer)
4630            (SaveSessionTest.testClassifiedLayer): Adapt to new file format.
4631            (SaveSessionTest.testLayerProjection): The filename used was the
4632            same as for testSingleLayer. Use a different one.
4633            (SaveSessionTest.test_dbf_table)
4634            (SaveSessionTest.test_joined_table): New test cases for saving the
4635            new data sources structures.
4636            (TestStoreSort, MockDataStore): Classes to test the sorting of the
4637            data stores for writing.
4638    
4639            * test/runtests.py: Add CVS keywords
4640    
4641    2003-06-20  Jonathan Coles   <[email protected]>
4642    
4643            * test/test_session.py
4644            (UnreferencedTablesTests.test_unreferenced_tables_with_joins):
4645            Use the cultural_landmark-point.dbf file for the store so that
4646            the table rows and shape count match.
4647    
4648    2003-06-20  Jonathan Coles   <[email protected]>
4649    
4650            * Thuban/Model/data.py (DerivedShapeStore.__init__): Raise
4651            an exception if the number of shapes is different from the
4652            number of rows in the table. Address RTbug #1933.
4653    
4654            * test/test_layer.py (TestLayer.test_derived_store): Add
4655            a test for the new exception in DerivedShapeStore.__init__.
4656    
4657            * test/support.py (FloatTestCase): Removed since there is
4658            already FloatComparisonMixin. Fixes RTbug #1954.
4659            (FloatComparisonMixin.assertFloatEqual): Include test for
4660            infinity that was part of FloatTestCase.
4661    
4662            * test/test_range.py (RangeTest): Inherit from
4663            support.FloatComparisonMixin now that we don't have
4664            support.FloatTestCase.
4665    
4666    2003-06-20  Bernhard Herzog  <[email protected]>
4667    
4668            * test/test_save.py (SaxEventLister, sax_eventlist): Removed. Use
4669            the implementation in xmlsupport instead.
4670            (SaveSessionTest.compare_xml): sax_eventlist is now in xmlsupport
4671    
4672            * test/test_proj.py: Import sax_eventlist from xmlsupport instead
4673            of test_save
4674    
4675    2003-06-20  Bernhard Herzog  <[email protected]>
4676    
4677            * test/test_load.py (LoadSessionTest.check_format): New helper
4678            method to make sure the test files we load might have been written
4679            by the current thuban version.
4680            (ClassificationTest.TestLayers, TestSingleLayer.test)
4681            (TestLayerVisibility.test, TestClassification.test)
4682            (TestLabels.test, TestLayerProjection.test, TestRasterLayer.test):
4683            Add check_format() calls and fix the thuban data to match the data
4684            that would be written by saving the session loaded from it.
4685    
4686            * test/xmlsupport.py (SaxEventLister, sax_eventlist): Copies of
4687            the same class and function in test_save.
4688    
4689            * test/test_xmlsupport.py (TestEventList): New. test cases for
4690            sax_eventlist
4691    
4692    2003-06-20  Bernhard Herzog  <[email protected]>
4693    
4694            * Resources/XML/thuban.dtd: Add comment about which versions of
4695            Thuban are covered by this DTD
4696            (map): Fix content model for layers and raster layers. There can
4697            be any number or layers and raster layers in any order.
4698    
4699    2003-06-20  Jonathan Coles   <[email protected]>
4700    
4701            This is mainly about fixing RTbug #1949.
4702    
4703            * Thuban/Model/classification.py: Remove "from __future__"
4704            import statement since python 2.2 is the earliest supported
4705            version.
4706    
4707            * Thuban/Model/proj.py (Projection.GetProjectedUnits): New.
4708            Currently returns PROJ_UNITS_METERS or PROJ_UNITS_DEGREES
4709            depending on the units this projection *forwards* into.
4710    
4711            * Thuban/Model/save.py (SessionSaver.write_classification):
4712            Remove unnecessary use of lambdas and nested functions.
4713    
4714            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Do scale
4715            adjustment here if the map projection uses degrees.
4716    
4717            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Remove
4718            scale adjust code since it is now done before calling
4719            this method. Don't do anything if the map projection
4720            is None.
4721    
4722    2003-06-19  Bernhard Herzog  <[email protected]>
4723    
4724            Move version specific load tests to their own file.
4725    
4726            * test/test_load.py: Expand the doc-string to explain a bit how to
4727            handle file format changes.
4728            (TestClassification.test): Update the docstring as this test is
4729            not about Thuban 0.2 anymore.
4730    
4731            * test/test_load_0_2.py: New file with the load tests for thuban
4732            files created with Thuban 0.2 and earlier.
4733    
4734    2003-06-19  Bernhard Herzog  <[email protected]>
4735    
4736            Add XML validation to some of the tests. Validation will only be
4737            done if pyRXP is installed (http://reportlab.com/xml/pyrxp.html).
4738            To make the DTD available to the test cases it's moved into
4739            Resources/XML
4740    
4741            * Resources/XML/thuban.dtd: New. This is now the real Thuban DTD
4742            for versions up to and including 0.2. Two slight changes: added an
4743            encoding specification and fixed the comment which refered to
4744            GRASS, not Thuban
4745    
4746            * test/xmlsupport.py: New support module for tests involving XML.
4747            Currently there's a mix-in class for XML validation.
4748    
4749            * test/test_xmlsupport.py: New. Tests for the xmlsupport module
4750    
4751            * test/test_save.py (SaveSessionTest): Derive from ValidationTest
4752            so that we can validate the
4753            (SaveSessionTest.testEmptySession)
4754            (SaveSessionTest.testSingleLayer)
4755            (SaveSessionTest.testSingleLayer)
4756            (SaveSessionTest.testLayerProjection)
4757            (SaveSessionTest.testRasterLayer)
4758            (SaveSessionTest.testClassifiedLayer): Validate the generated XML
4759    
4760            * test/runtests.py (main): Call print_additional_summary instead
4761            of print_garbage_information
4762    
4763            * test/support.py (resource_dir): New function to return the
4764            "Resource" subdirectory
4765            (print_additional_summary): New function to combine several
4766            summary functions
4767            (run_tests): Use print_additional_summary instead of calling
4768            print_garbage_information directly
4769    
4770    2003-06-19  Bernhard Herzog  <[email protected]>
4771    
4772            * Doc/thuban.dtd (classification): Correct the content model of
4773            the classification element.
4774            (projection): Add the "name" attribute
4775    
4776    2003-06-19  Frank Koormann   <[email protected]>
4777    
4778            MERGE from the greater-ms3 branch.
4779    
4780            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Apply conversion to
4781            scale if projection is latlong to get better estimate.
4782    
4783            Fix problem of hidden properties dialog under windows after double
4784            click on layer tree:
4785            The tree control always gets an Expanded / Collapsed event after
4786            the ItemActivated  on double click, which raises the main window again.
4787            We add a second ItemActivated event to the queue, which simply
4788            raises the already displayed window.
4789    
4790            * Thuban/UI/legend.py (LegendTree.__init__): Instance variable
4791            raiseProperties initialized to prevent endless loops
4792            (LegendTree._OnItemActivated): Depending on self.raiseProperties
4793            simply raise the properties or open the dialog and issue a second
4794            event.
4795    
4796    2003-06-18  Jonathan Coles   <[email protected]>
4797    
4798            * setup.py: Fix a few problems that occured under Windows.
4799    
4800    2003-06-18  Jonathan Coles   <[email protected]>
4801    
4802            When Thuban loaded the map was redrawn twice because the
4803            legend was being opened after the mainwindow was created
4804            and not during its creation. This meant the map was drawn
4805            initially and then had to be redrawn when the legend
4806            caused the display to change. Now the legend is opened
4807            in the mainwindow constructor which resolves this issue.
4808    
4809            Also, although we were checking for the existence of
4810            gdal and gdalwarp modules, the gdalwarp extension was
4811            still being compiled (which may fail if the system doesn't
4812            have gdal installed). the build_ext command to setup.py
4813            now accepts the flags --with-gdal and --without-gdal.
4814            If --without-gdal is specified setup.py will try to
4815            use the gdal parameters specified by gdal-config. Under
4816            windows, those parameters have to be set in setup.py
4817            as with proj4 an wxWindows.
4818    
4819            * setup.py: Use a list instead of seperate variables for
4820            extension parameters so we can create a generic function
4821            that runs an appropriate *-config script.
4822            (run_cs_script): Renamed from run_wx_script and modified
4823            to accept a second argument which is a list of lists to
4824            be filled in by the values returned from running the command.
4825            (thuban_build_ext): New. Extends the build_ext command and
4826            provides the options --with-gdal/--without-gdal which then
4827            optionally includes the gdalwarp extension.
4828    
4829            * Thuban/Model/resource.py: First check if we can import
4830            the gdalwarp Thuban extension before checking for gdal.
4831            Also added some comments.
4832            
4833            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Check if
4834            the map is None which may be the case if none has been loaded
4835            yet.
4836    
4837            * Thuban/UI/main.py (main): Remove call to ShowLegend.
4838    
4839            * Thuban/UI/mainwindow.py (MainWindow.__init__): Call ShowLegend().
4840    
4841            * Thuban/UI/renderer.py: Check for gdal support before importing
4842            gdalwarp.
4843            (MapRenderer.render_map): Only try to optimize if we have gdal
4844            support otherwise nothing will get drawn.
4845    
4846            * Thuban/UI/view.py (MapCanvas.FitMapToWindow): This may be called
4847            during startup before a map has been created. Check if map is None
4848            before using it and do nothing if it is.
4849    
4850    2003-06-17  Jonathan Coles   <[email protected]>
4851    
4852            Fix the problem with raster layers under Windows that caused
4853            Thuban to crash. The view should respond to layer projection
4854            changed events to update the display. Changes to a projection
4855            should not cause the map to be set to full extent.
4856            
4857            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
4858            current_map_proj to remember the current map projection so that
4859            when the projection changes we know what the previous projection
4860            was.
4861            (MapCanvas.SetMap): Unsubscribe and subscribe to
4862            LAYER_PROJECTION_CHANGED events.
4863            (MapCanvas.projection_changed): Split into two methods that respond
4864            to map and layer projection changes.
4865            (MapCanvas.map_projection_changed): New. Takes the current view and
4866            projects it using the new projection. This does not cause the
4867            map to be redrawn at full extent.
4868            (MapCanvas.layer_projection_changed): New. Cause a redraw which
4869            will draw each layer in its new projection.
4870            
4871            * extensions/thuban/bmpdataset.cpp (BMPDataset::Open): Call
4872            VSIFClose() not VSIFCloseL() to close the file. Fixes a crash
4873            under Windows.
4874            
4875            * extensions/thuban/gdalwarp.cpp (MFILENAME): Padding should be
4876            to twice sizeof(void*) because there are two digits for each
4877            hex byte.
4878    
4879    2003-06-16  Bernhard Herzog  <[email protected]>
4880    
4881            Update to the layer interface: Direct access to the table,
4882            shapetable, shapefile and filename attributes is now actively
4883            deprecated by issuing deprecation warnings for all places where
4884            this happens.
4885    
4886            * Thuban/Model/layer.py (Layer.__getattr__): New. Implement access
4887            to the instance variables table, shapetable, shapefile and
4888            filename via __getattr__ so that we can issue a deprecation
4889            warning.
4890            (Layer.SetShapeStore): Don't set the deprecated instance variables
4891            any more
4892            (Layer.SetShapeStore): Don't use deprecated layer instance
4893            variables
4894            (Layer.Destroy): No need to explicitly remove the instance
4895            variables any more
4896            (Layer.GetFieldType, Layer.Shape): Don't use deprecated layer
4897            instance variables
4898    
4899            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
4900            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve)
4901            (GenQuantilesPanel.GetList, GenQuantilesPanel.OnRetrieve): Don't
4902            use deprecated layer instance variables
4903    
4904            * Thuban/UI/classifier.py (Classifier.__init__): Don't use
4905            deprecated layer instance variables
4906    
4907            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
4908            (IdentifyGridCtrl.selected_shape): Don't set the deprecated layer
4909            instance variables
4910    
4911            * Thuban/UI/tableview.py (LayerTableGrid.select_shapes): Don't use
4912            deprecated layer instance variables
4913    
4914            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Don't use
4915            deprecated layer instance variables
4916    
4917            * Thuban/Model/save.py (SessionSaver.write_layer): Don't use
4918            deprecated layer instance variables
4919    
4920            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer)
4921            (MapRenderer.polygon_render_param): Don't use deprecated layer instance
4922            variables
4923    
4924            * test/runtests.py (main): Turn Thuban's deprecation warnings into
4925            errors so that they're cought by the tests
4926    
4927            * test/test_load.py (TestSingleLayer.test): Don't use deprecated
4928            layer instance variables
4929    
4930    2003-06-16  Jonathan Coles   <[email protected]>
4931    
4932            Fix a problem under Windows whereby if the user double-clicks on a
4933            layer in the legend that tree item will expand or collapse as well
4934            as open the layer properties dialog. The state of the tree item
4935            should not be affected.
4936    
4937            * Thuban/UI/legend.py (LegendTree.__init__): Add instance variable
4938            preventExpandCollapse and subscribe to expanding and collapsing
4939            events.
4940            (LegendTree.OnItemExpandCollapse): New. Responds to expanding and
4941            collapsing events and will veto the event if it has been triggered
4942            by the user double clicking on a layer.
4943            (LegendTree._OnItemActivated): Set preventExpandCollapse to indicate
4944            that an expanding/collapsing event should be vetoed.
4945    
4946    2003-06-13  Bernhard Herzog  <[email protected]>
4947    
4948            * Thuban/UI/classifier.py (Classifier.OnClose)
4949            (Classifier.map_layers_removed)
4950            (Classifier.layer_shapestore_replaced): Unsubscribe the messages
4951            in OnClose and not in map_layers_removed or
4952            layer_shapestore_replaced to make sure it always happens when the
4953            dialog is closed
4954    
4955    2003-06-13  Jonathan Coles   <[email protected]>
4956    
4957            This puts back a fix for Windows where a panel is needed so that
4958            the background of the table view appears correctly.
4959    
4960            * Thuban/UI/tableview.py (TableFrame.__init__): Add a panel
4961            object that can be used by derived classes to place any
4962            controls (including the grid) onto.
4963            (QueryTableFrame.__init__): Use the panel as the parent window
4964            for all the controls. Reparent the grid so that the panel is
4965            the parent. Call UpdateStatusText() to correctly initialize
4966            the status bar.
4967    
4968    2003-06-13  Jonathan Coles   <[email protected]>
4969    
4970            * Thuban/UI/dialogs.py (ThubanFrame): New: a class that inherits
4971            from wxFrame (as opposed to wxDialog like the other classes)
4972            but otherwise behaves like the other classes. This is needed
4973            for the TableView which isn't really a dialog and needs to
4974            have a status bar and control buttons.
4975    
4976            * Thuban/UI/tableview.py (TableGrid.__init__): Create an
4977            instance variable to keep track of how many rows are selected.
4978            Subscribe once to the the events we are interested in.
4979            (ThubanGrid.OnRangeSelect): Only handle event if event handling
4980            hasn't been turned off.
4981            (ThubanGrid.OnSelectCell): Only handle event if event handling
4982            hasn't been turned off.
4983            (ThubanGrid.ToggleEventListeners): Rather than subscribe None
4984            as an event listener (which changes the event handler stack)
4985            simply set an instance variable to False. This is checked in
4986            the event handlers.
4987            (ThubanGrid.GetNumberSelected): Return the number of currently
4988            selected rows.
4989            (TableFrame): Inherit from ThubanFrame so we can have a
4990            status bar and control buttons.
4991            (QueryTableFrame.__init__): Create a status bar. Fixes RTbug #1942.
4992            Explicitly set which items are selected in the operator choice and
4993            action choice so there is always a valid selection. Fixes RTbug #1941.
4994            Subscribe to grid cell selection events so we can update the
4995            status bar.
4996            (QueryTableFrame.UpdateStatusText): Update the status bar with
4997            how many rows are in the grid, how many columns, and how many
4998            rows are selected.
4999            (QueryTableFrame.OnGridSelectRange, QueryTableFrame.OnGridSelectCell):
5000            Call UpdateStatusText when cells are (de)selected.
5001            (QueryTableFrame.OnQuery): Use the string value in the value
5002            combo if either the selected item index is 0 or if the string
5003            cannot be found in the predefined list (this happens if the
5004            user changes the text). Fixes RTbug #1940.
5005            Only turn off the grid event listeners if there a query comes
5006            back with a none empty list of ids. in the case that the list
5007            is empty this causes a grid.ClearSelection() call to actually
5008            clear the grid selection which causes the selected items in
5009            the map to be deselected. Fixes RTbug #1939.
5010    
5011            * test/test_save.py (XMLWriterTest.Encode): Check return values.
5012            Fixes RTbug #1851.
5013    
5014    2003-06-13  Bernhard Herzog  <[email protected]>
5015    
5016            * Thuban/UI/identifyview.py (IdentifyView.__init__): Call
5017            self.selected_shape with the current selection to make sure the
5018            contents of the dialog are up to date when it's shown for the
5019            first time.
5020            The dialog used to work without this by luck. The recent fix to
5021            the connector module 'broke' a 'feature' the identify view was
5022            relying on, i.e that subscribing to a message in response to
5023            receiving a message of that type would mean that the new
5024            subscriber would also be called for the same message.
5025            
5026    2003-06-12  Jonathan Coles   <[email protected]>
5027    
5028            * extensions/thuban/gdalwarp.cpp: Removed debug printing as
5029            the image is rendered. Fixes RTbug #1937.
5030    
5031    2003-06-12  Jonathan Coles   <[email protected]>
5032    
5033            * Thuban/Lib/fileutil.py: As is done under Windows, create the
5034            user directory if it doesn't exist on a posix system.
5035            Fixes RTbug #1815.
5036    
5037            * Thuban/Model/resource.py (get_user_proj_files): Moved the
5038            called to get_application_dir here, so that the directory
5039            will only be called if this method is invoked.
5040    
5041            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Clear
5042            the projfilepath if no projection is selected.
5043    
5044    2003-06-12  Jonathan Coles   <[email protected]>
5045    
5046            * Thuban/UI/legend.py (ScaleBarBitmap.__SetScale): Don't draw
5047            the scalebar if the current map has no projection set.
5048    
5049            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): Set the
5050            projfilepath label to just the basename of the projection file
5051            rather than include the entire path.
5052    
5053            * Thuban/Model/resource.py: Fix missed proj functions that
5054            needed to be renamed.
5055    
5056    2003-06-12  Jonathan Coles   <[email protected]>
5057    
5058            * Thuban/Model/classification.py: Removed assert statements that
5059            tested if the variable was an instance of Color.
5060    
5061            * Thuban/Model/color.py (Color): Remove commented code that isn't
5062            used.
5063            (Transparent): Renamed from NoColor. Doesn't inherit from Color.
5064            Fixes RTbug #1835.
5065            (Transparent.__eq__, Transparent.__ne, Transparent.__repr): New.
5066            Needed now that the class doesn't inherit from Color.
5067    
5068    2003-06-12  Jonathan Coles   <[email protected]>
5069    
5070            * test/test_save.py (XMLWriterTest.testEncode): Explicitly
5071            check unicode strings.
5072    
5073            * test/test_layer.py: Check for existence of gdal.
5074    
5075    2003-06-12  Jonathan Coles   <[email protected]>
5076        
5077            * Thuban/Model/xmlreader.py: New. Contains the XMLReader class
5078            that was in load.py
5079    
5080            * Thuban/Model/xmlwriter.py: New. Contains the XMLWriter class
5081            that was in save.py
5082    
5083    2003-06-12  Jonathan Coles   <[email protected]>
5084    
5085            This is largely a collection of bug fixes. We also handle the
5086            case where gdal is not on the system. The XMLReader and XMLWriter
5087            classes were moved into there own files to resolve some circular
5088            import references and because they shouldn't really be in the
5089            file that is dediciated to reading/writing session files since
5090            they are also used elsewhere.
5091    
5092            * Thuban/Model/classgen.py: Renamed functions to follow the
5093            function_names_with_underscores style. Fixes RTbug #1903.
5094            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
5095    
5096            * Thuban/Model/layer.py: Import gdal only if it available.
5097            (RasterLayer): Handle the case where the gdal library is unavailable.
5098            Addresses RTbug #1877.
5099    
5100            * Thuban/Model/load.py (XMLReader): Moved into seperate file
5101            xmlreader.py.
5102    
5103    2003-06-12  Jonathan Coles   <[email protected]>
5104    
5105            This is largely a collection of bug fixes. We also handle the
5106            case where gdal is not on the system. The XMLReader and XMLWriter
5107            classes were moved into there own files to resolve some circular
5108            import references and because they shouldn't really be in the
5109            file that is dediciated to reading/writing session files since
5110            they are also used elsewhere.
5111    
5112            * Thuban/Model/classgen.py: Renamed functions to follow the
5113            function_names_with_underscores style. Fixes RTbug #1903.
5114            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
5115    
5116            * Thuban/Model/layer.py: Import gdal only if it available.
5117            (RasterLayer): Handle the case where the gdal library is unavailable.
5118            Addresses RTbug #1877.
5119    
5120            * Thuban/Model/load.py (XMLReader): Moved into seperate file
5121            xmlreader.py.
5122    
5123            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
5124            file xmlwriter.py.
5125    
5126            * Thuban/Model/resource.py: Renamed functions to following the
5127            function_names_with_underscores style.
5128            (has_gdal_support): New function that returns true if the gdal
5129            library is available. Addresses RTbug #1877.
5130    
5131            * Thuban/UI/application.py (ThubanApplication.OpenSession):
5132            Display a message box if the gdal library is not available, but
5133            only if there are any layers that would use it. Addresses RTbug #1877.
5134    
5135            * Thuban/UI/classgen.py: Use renamed projection resource functions.
5136            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
5137            when using integers versus floats.
5138    
5139            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
5140            determine if the "Add Image Layer" menu option should be
5141            greyed out or not. Addresses RTbug #1877.
5142    
5143            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
5144    
5145            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
5146            optimize if a raster layer is visible. Fixes RTbug #1931.
5147            Only draw the raster layer if the gdal library is available.
5148            Addresses RTbug #1877.
5149    
5150            * test/test_classgen.py: Add tests for generate_singletons,
5151            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
5152            (test_calculate_quantiles): Fix some tests to catch the new
5153            ValueError that is raised.
5154    
5155            * test/test_proj.py: Use renamed projection resource functions.
5156    
5157            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
5158            test for saving classified layers. Fixes RTbug #1902.
5159            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
5160    
5161    2003-06-12  Jan-Oliver Wagner <[email protected]>
5162    
5163            Fix for http://intevation.de/rt/webrt?serial_num=1900.
5164    
5165            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
5166    
5167            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
5168            multiplechoicedialog.py rather than from the wxPython library.
5169    
5170    2003-06-11  Frank Koormann  <[email protected]>
5171    
5172            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
5173            update.
5174    
5175    2003-06-11  Frank Koormann  <[email protected]>
5176    
5177            * Thuban/Lib/fileutil.py (get_application_dir): New function to
5178            determine the absolute .thuban/thuban directory under
5179            "posix" (os.expanduser) and "nt" (read AppData registry key).
5180    
5181            * Thuban/Model/resource.py: Use get_application_dir
5182    
5183            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
5184            Use get_application_dir.
5185    
5186    2003-06-10  Bernhard Herzog  <[email protected]>
5187    
5188            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
5189            the messages MAP_LAYERS_REMOVED messages
5190            (LayerTableFrame.OnClose): Unsubscribe from it.
5191            (LayerTableFrame.map_layers_removed): New. Receiver for
5192            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
5193            dialog is showing is removed.
5194    
5195    2003-06-10  Bernhard Herzog  <[email protected]>
5196    
5197            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
5198            of the receivers list so that unsubscribing in a receiver doesn't
5199            modify it while iterating over it.
5200    
5201            * test/test_connector.py
5202            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
5203            unsubscribing in a receiver works correctly. See docstring for
5204            details
5205    
5206    2003-06-10  Bernhard Herzog  <[email protected]>
5207    
5208            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
5209            message.
5210    
5211            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
5212            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
5213            LAYER_CHANGED will still be sent if the classification changes.
5214    
5215            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
5216            parameter so we can subscribe to some of its messages
5217            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
5218            and the layer's LAYER_SHAPESTORE_REPLACED
5219            (Classifier.unsubscribe_messages): New. Unsubscribe from message
5220            subscribed to in __init__
5221            (Classifier.map_layers_removed)
5222            (Classifier.layer_shapestore_replaced): receivers for the messages
5223            subscribed to in __init__. Unsubscribe and close the dialog
5224    
5225            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
5226            the map to the Classifier dialog
5227    
5228            * test/test_layer.py (SetShapeStoreTests): Derive from
5229            SubscriberMixin as well so we can test messages
5230            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
5231            messages
5232            (SetShapeStoreTests.tearDown): Clear the messages again
5233            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
5234            for the modified flag too
5235            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
5236            to check whether SetShapeStore sets the modified flag
5237            (SetShapeStoreTests.test_set_shape_store_different_field_name)
5238            (SetShapeStoreTests.test_set_shape_store_same_field)
5239            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
5240            Add tests for the messages. This checks both the new
5241            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
5242    
5243    2003-06-06  Jan-Oliver Wagner <[email protected]>
5244    
5245            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
5246            the menu items.
5247    
5248    2003-06-05  Frank Koormann  <[email protected]>
5249    
5250            * Thuban/UI/identifyview.py (IdentifyView.__init__):
5251            Layout reimplemented without panel. Make life easier to fit the list
5252            in the dialog.
5253    
5254    2003-06-05  Frank Koormann  <[email protected]>
5255    
5256            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
5257            once on initialisation (Former implementation resulted in multiple
5258            entries for each projection).
5259            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
5260            if set, select the projection found under the specified name. This
5261            overwrites any other selection estimate.
5262            Removed projchoice filling from this method.
5263            (ProjFrame._OnSave, ProjFrame._OnAddToList):
5264            Updated call of ProjFrame.__FillAvailList
5265            (LCCPanel._DoLayout): Moved parameter controls in more common order.
5266    
5267            * Resources/Projections/defaults.proj: Extended defaults representing
5268            various common European projections.
5269    
5270    2003-06-05  Frank Koormann  <[email protected]>
5271    
5272            * Thuban/UI/identifyview.py (IdentifyView.__init__):
5273            Use ListCtrl instead of GridCtrl
5274    
5275            * Thuban/Model/resource.py:
5276            Guess location of .thuban directory from tempdir parent directory.
5277    
5278            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
5279            Guess location of .thuban directory from tempdir parent directory.
5280    
5281    2003-06-04  Bernhard Herzog  <[email protected]>
5282    
5283            Do not cache the values returned by the tree widget's
5284            GetFirstChild and GetNextChild methods because it led to lots of
5285            segfaults. The new way requires more brute force but is more
5286            reliable.
5287    
5288            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
5289            variable layer2id
5290            (LegendTree.find_layer): New method to do with brute force what
5291            layer2id tried to accomplish
5292            (LegendTree._OnMsgLayerChanged)
5293            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
5294            Use find_layer instead of layer2id
5295            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
5296            update layer2id anymore
5297            (LegendTree._OnMsgMapLayersRemoved)
5298            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
5299    
5300    2003-06-03  Thomas Koester  <[email protected]>
5301    
5302            * Thuban/Model/classgen.py (GenQuantiles0): New function.
5303    
5304    2003-06-02  Bernhard Herzog  <[email protected]>
5305    
5306            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
5307            New commands.
5308            (main_menu): Add the new commands.
5309            (MainWindow.TableRename): New. Implementation of the table_rename
5310            command.
5311            (MainWindow.RenameLayer): New. Implementation of the layer_rename
5312            command.
5313    
5314            * Thuban/Model/session.py (Session.AddTable): call self.changed to
5315            set the modified flag
5316    
5317            * test/test_session.py (TestSessionSimple.test_add_table): Test
5318            whether the modified flag is set properly
5319    
5320            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
5321            instead of issue so that the modified flags get updated.
5322    
5323            * test/test_base.py (SomeTitledObject): Derive from Modifiable
5324            instead of Publisher to reflect reality better and to accomodate
5325            the fact that SetTitle now calls changed instead of issue
5326    
5327    2003-06-02  Bernhard Herzog  <[email protected]>
5328    
5329            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
5330            acquisition has to happen before the try in a try-finally.
5331    
5332    2003-06-02  Bernhard Herzog  <[email protected]>
5333    
5334            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
5335            possible that a layer is removed that is not currently selected in
5336            the legend so don't check for this.
5337    
5338    2003-05-30  Bernhard Herzog  <[email protected]>
5339    
5340            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
5341            variables to None that have direct or indirect references to
5342            shapefiles or dbf files to make sure that they do go away and the
5343            files are closed.
5344    
5345    2003-05-30  Bernhard Herzog  <[email protected]>
5346    
5347            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
5348            availImgListIndices when a new image list is created
5349            
5350    2003-05-30  Bernhard Herzog  <[email protected]>
5351    
5352            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
5353            changing_selection to indicate whether the LegendTree code itself
5354            is currently changing the selection
5355            (LegendTree.normalize_selection): New method to normalize the
5356            selection by selecting the layer item even if the user clicked on
5357            the classification.
5358            (LegendTree._OnSelChanged): normalize the selection. This works
5359            around a bug in wx which doesn't keep track of the selection
5360            properly when subtrees are deleted.
5361    
5362    2003-05-30  Bernhard Herzog  <[email protected]>
5363    
5364            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
5365            maximum and minimum scale factors.
5366    
5367            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
5368            changes in classgen.py
5369    
5370    2003-05-30  Jonathan Coles   <[email protected]>
5371    
5372            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
5373            all the methods functions. Fixes RTBug #1903.
5374    
5375            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
5376            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
5377            RTBug #1907.
5378    
5379            * Thuban/UI/classgen.py: Use classgen functions that were part
5380            of the ClassGenerator class. Put try/finally blocks around
5381            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
5382            RTBug #1904.
5383    
5384            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
5385    
5386            * Thuban/UI/legend.py: The legend was cleared and repopulated any
5387            time something changed which caused some state to be lost such
5388            as which children were expanded or collapsed. Fixes RTBug #1901.
5389            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
5390            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
5391            the legend but not in the map.
5392            (LegendTree.__FillTree): Move main functionality out into smaller
5393            methods that can be used by other methods.
5394            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
5395            if they are available.
5396            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
5397            that we override the wxTreeCtrl method. Iterate over children
5398            and call __RemoveLayer.
5399            (LegendTree.__AddLayer): New. Add a new layer to the legend.
5400            (LegendTree.__RemoveLayer): Remove a layer from the legend.
5401            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
5402            Should only be called with the id of a layer branch.
5403            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
5404            Returns the root item or creates one if necessary.
5405    
5406            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
5407            ProjectRasterFile with tuple arguments instead of strings.
5408    
5409            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
5410            with try/finally. Fixes RTBug #1904.
5411    
5412            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
5413            with try/finally. Fixes RTBug #1904.
5414            (MapCanvas.FitSelectedToWindow): If a single point is selected
5415            simply center it on the display. Fixes RTBug #1849.
5416    
5417            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
5418            to be compiled as a standalone app. Now the code can only be
5419            called from Python which simplifies the parameter passing.
5420            (ProjectRasterFile): Handle Python arguments. Remove code that
5421            checks for a destination dataset. Add more clean up code.
5422    
5423            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
5424            TestMapWithContents.test_lower_layer_bottom):
5425            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
5426            Fixes RTBug #1907.
5427    
5428            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
5429            extent to the map when the legend is toggled. Fixes RTBug #1881.
5430    
5431    2003-05-29  Jan-Oliver Wagner <[email protected]>
5432    
5433            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
5434            unsubscribes all that is subcribed in __init__.
5435    
5436    2003-05-28  Bernhard Herzog  <[email protected]>
5437    
5438            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
5439            (MainWindow.CanDuplicateLayer): New methods to implement the
5440            Layer/Duplicate command.
5441            (layer_duplicate command): New.
5442            (main_menu): Add layer_duplicate to the Layer menu.
5443    
5444    2003-05-28  Bernhard Herzog  <[email protected]>
5445    
5446            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
5447            renderer so that NULL/None values get displayed differently (by a
5448            gray rectangle).
5449            (TableGrid.__init__): Override the default renderers
5450    
5451    2003-05-28  Bernhard Herzog  <[email protected]>
5452    
5453            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
5454            classification to "None" if the type of the field has changed.
5455    
5456            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
5457            test for the Layer.SetShapeStore method
5458    
5459    2003-05-28  Jan-Oliver Wagner <[email protected]>
5460    
5461            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
5462            does not necessarily have a filename).
5463    
5464    2003-05-28  Jan-Oliver Wagner <[email protected]>
5465    
5466            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
5467            sort the selection list for the dialog.
5468    
5469    2003-05-28  Frank Koormann  <[email protected]>
5470    
5471            * extensions/thuban/wxproj.cpp
5472            (project_point): Removed cast to int for projected point coordinates.
5473            (shape_centroid): Return last point if all polygon vertices fall
5474            to one point.
5475    
5476    2003-05-28  Bernhard Herzog  <[email protected]>
5477    
5478            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
5479            with layers that don't have shapestores, i.e. raster layers.
5480    
5481    2003-05-28  Bernhard Herzog  <[email protected]>
5482    
5483            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
5484            when determining the title from the filename.
5485    
5486            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
5487            reflect changes in the way the title is derived from the filename
5488    
5489    2003-05-28  Frank Koormann  <[email protected]>
5490    
5491            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
5492            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
5493    
5494    2003-05-27  Bernhard Herzog  <[email protected]>
5495    
5496            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
5497            delegate SelectedLayer.
5498            (MainWindow.LayerUnjoinTable): Implement.
5499            (_can_unjoin): New. Helper function for the sensitivity of the
5500            layer/unjoin command.
5501    
5502            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
5503            (DerivedShapeStore.OrigShapeStore): New. Return the original
5504            shapestore. Used to figure out how to unjoin.
5505            (DerivedShapeStore.Shapefile): Fix a typo.
5506    
5507    2003-05-27  Bernhard Herzog  <[email protected]>
5508    
5509            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
5510            well
5511            (JoinDialog.__init__): Use the layer parameter and only build the
5512            left choice when a layer is given
5513            (JoinDialog.OnJoin): Handle layer joins as well
5514            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
5515            that the user selects the "Select..." item. The sensitivitly
5516            updating is now in update_sensitivity
5517            (JoinDialog.y): New method to refactor the sensitivity update of
5518            the join button into its own method.
5519    
5520            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
5521    
5522    2003-05-27  Bernhard Herzog  <[email protected]>
5523    
5524            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
5525            iff there are unreferenced tables in the session
5526    
5527    2003-05-27  Bernhard Herzog  <[email protected]>
5528    
5529            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
5530    
5531            * Thuban/Model/session.py (Session.UnreferencedTables): New method
5532            to return tables that are not referenced by other tables or shape
5533            stores and can be removed.
5534            (Session.RemoveTable): Issue a TABLE_REMOVED message after
5535            removing the table
5536    
5537            * Thuban/UI/mainwindow.py: Remove unused imports
5538            (MainWindow.TableClose): Implement.
5539    
5540            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
5541            messages so that the frame will be automatically closed when a new
5542            session is opened or the table is removed.
5543            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
5544            __init__
5545            (TableFrame.close_on_session_replaced)
5546            (TableFrame.close_on_table_removed): New. Subscribers that close
5547            the window
5548    
5549            * test/test_session.py (TestSessionMessages.test_remove_table)
5550            (TestSessionSimple.test_remove_table): Move the test to
5551            TestSessionSimple and add test for the TABLE_REMOVED message
5552            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
5553            (TestSessionSimple.test_unreferenced_tables) New. Test for the
5554            UnreferencedTables method.
5555            (UnreferencedTablesTests): New. Class with some more sophisticated
5556            tests for UnreferencedTables.
5557    
5558    2003-05-27  Frank Koormann  <[email protected]>
5559    
5560            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
5561            display has some unwanted side effects. Removed again.
5562    
5563    2003-05-27  Frank Koormann  <[email protected]>
5564    
5565            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
5566    
5567            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
5568    
5569    2003-05-27  Jan-Oliver Wagner <[email protected]>
5570    
5571            * test/test_menu.py (MenuTest.test): Added test for
5572            Menu.RemoveItem().
5573    
5574            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
5575            the menu.
5576    
5577    2003-05-27  Frank Koormann  <[email protected]>
5578            
5579            Nonmodal dialogs without parent (i.e. they can fall behind the main
5580            window)
5581    
5582            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
5583            all dialogs in the dialogs dictionary and the canvas.
5584    
5585            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
5586            parent, i.e. can fall behind other windows.
5587            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
5588            dictionary before removing it.
5589    
5590            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
5591    
5592            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
5593            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
5594            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
5595    
5596    2003-05-27  Bernhard Herzog  <[email protected]>
5597    
5598            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
5599            tableview dialog
5600            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
5601            Also, don't use the table's titles as the dialog names. The titles
5602            aren't guaranteed to be unique.
5603            (MainWindow.TableOpen): Open a table view dialog after opening the
5604            table
5605    
5606    2003-05-27  Bernhard Herzog  <[email protected]>
5607    
5608            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
5609            effect can be achieved by simply closing the window showing the
5610            table.
5611            (MainWindow.TableHide): Removed.
5612            (main_menu): Removed "table_hide"
5613    
5614    2003-05-27  Frank Koormann  <[email protected]>
5615    
5616            Fix legend tree display problems under Win32
5617    
5618            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
5619            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
5620            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
5621    
5622            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
5623    
5624    2003-05-27  Jan-Oliver Wagner <[email protected]>
5625    
5626            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
5627            'after' now allows to insert separators almost anywhere in the menu.
5628    
5629    2003-05-27  Frank Koormann  <[email protected]>
5630    
5631            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
5632            "S" of selection box label to hint on hot key (Alt-S). Works under
5633            Win32 but is ignored under GTK.
5634    
5635    2003-05-26  Frank Koormann  <[email protected]>
5636    
5637            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
5638            Center Choices.
5639    
5640    2003-05-26  Bernhard Herzog  <[email protected]>
5641    
5642            Remove the Precision methods again. They're too DBF specific to be
5643            part of the table interface and they're only used in table_to_dbf
5644            anyway.
5645            
5646            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
5647            fixed precision of 12 for doubles.
5648            (TransientTableBase.Precision): Removed
5649            (AutoTransientTable.Width): Delegate to self.table.
5650    
5651            * Thuban/Model/table.py (DBFTable.Precision)
5652            (MemoryTable.Precision): Removed.
5653            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
5654            (table_to_dbf): Use a fixed precision of 12 for floats unless the
5655            column object specifies something else.
5656    
5657            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
5658            test for table_to_dbf
5659    
5660    2003-05-26  Bernhard Herzog  <[email protected]>
5661    
5662            * test/test_transientdb.py
5663            (TestTransientTable.run_iceland_political_tests): Fix a comment.
5664    
5665    2003-05-26  Bernhard Herzog  <[email protected]>
5666    
5667            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
5668            implementation. Mark parts of the file format strings for
5669            localization.
5670    
5671            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
5672            file and add the table to the tables managed by the session
5673    
5674            * test/test_session.py (TestSessionSimple.test_open_table_file):
5675            New. test case for OpenTableFile
5676    
5677    2003-05-26  Jan-Oliver Wagner <[email protected]>
5678    
5679            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
5680            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
5681            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
5682            Replace the true/false of wxWindows by True/False of Python 2.2.1.
5683    
5684    2003-05-26  Jan-Oliver Wagner <[email protected]>
5685    
5686            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
5687            already a selection present, update the grid accordingly.
5688    
5689            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
5690            resizeable and increase its initial size.
5691    
5692    2003-05-26  Frank Koormann  <[email protected]>
5693    
5694            Table export functionality
5695    
5696            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
5697            Return width (in characters) for a column.
5698            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
5699            (table_to_dbf): Write table to dbf file.
5700            (table_to_csv): Write table to csv file.
5701    
5702            * Thuban/Model/transientdb.py (TransientTableBase.Width,
5703            TransientTableBase.Precision): Return column width and precision.
5704    
5705            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
5706            or table_to_csv depending on file selection.
5707    
5708            * test/test_dbf_table.py:
5709            Test table_to_dbf (extension of former part of test).
5710    
5711            * test/test_csv_table.py:
5712            Test table_to_csv.
5713    
5714    2003-05-23  Jan-Oliver Wagner <[email protected]>
5715    
5716            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
5717            Use QueryTableFrame instead of TableFrame.
5718    
5719            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
5720            table window with 'Layer Table:' instead of 'Table:'.
5721    
5722    2003-05-23  Jan-Oliver Wagner <[email protected]>
5723    
5724            Give all tables a title via mix-in TitledObject.LayerShowTable
5725    
5726            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
5727            only if it exists.
5728    
5729            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
5730            and call its init-method with a default title. Remove Title() method.
5731    
5732            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
5733            AutoTransientTable): mix-in TitledObject and call its init-method with
5734            a default title. Remove Title() method.
5735    
5736    2003-05-23  Bernhard Herzog  <[email protected]>
5737    
5738            * Thuban/Model/session.py (Session.AddShapeStore): Define
5739            AddShapeStore analogously to AddTable.
5740    
5741            * test/test_session.py (TestSessionSimple.test_add_shapestore):
5742            New. Test for AddShapeStore
5743    
5744    2003-05-23  Jan-Oliver Wagner <[email protected]>
5745    
5746            Introducing QueryTableFrame and a very coarse ShowTable implementation.
5747    
5748            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
5749            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
5750            The latter implements the selection GUI without dependency on a layer.
5751            LayerTableFrame now is derived from QueryTableFrame and connects
5752            to a layer.
5753    
5754            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
5755            implementation that still needs work.
5756    
5757            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
5758    
5759    2003-05-22  Frank Koormann  <[email protected]>
5760    
5761            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
5762            Added "outer_join = False" as optional parameter.
5763            (TransientJoinedTable.create): If outer join is true, perform a
5764            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
5765            the left table. Records not matching are filled with 0 / None.
5766    
5767            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
5768            (JoinDialog.OnJoin): Consider outer join check box.
5769    
5770    2003-05-22  Bernhard Herzog  <[email protected]>
5771    
5772            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
5773            somewhat safer way. Storing the traceback in a local variable can
5774            lead to memory leaks
5775    
5776    2003-05-22  Bernhard Herzog  <[email protected]>
5777    
5778            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
5779            the wxMessageDialog's Destroy() method.
5780    
5781    2003-05-22  Frank Koormann  <[email protected]>
5782    
5783            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
5784            TransientTable.Title()
5785    
5786    2003-05-22  Frank Koormann  <[email protected]>
5787    
5788            Join Dialog, initial version.
5789    
5790            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
5791    
5792            * Thuban/UI/join.py (JoinDialog): Functional implementation of
5793            former framework. Renamed Table1/Table2 to LeftTable/RightTable
5794            in all occurences.
5795    
5796            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
5797            Typo fixed.
5798    
5799    2003-05-22  Bernhard Herzog  <[email protected]>
5800    
5801            Give the tables titles so that the GUI can display more meaningful
5802            names. For now the titles are fixed but depend on e.g. filenames
5803            or the titles of the joined tables.
5804    
5805            * Thuban/Model/transientdb.py (TransientTable.Title)
5806            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
5807    
5808            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
5809    
5810            * test/test_transientdb.py
5811            (TestTransientTable.test_auto_transient_table_title): New. Test
5812            for the Title method
5813            (TestTransientTable.test_transient_joined_table)
5814            (TestTransientTable.test_transient_table): Add test for the Title
5815            methods
5816    
5817            * test/test_memory_table.py (TestMemoryTable.test_title): New.
5818            Test for the Title method
5819    
5820            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
5821            the Title method
5822    
5823    2003-05-22  Bernhard Herzog  <[email protected]>
5824    
5825            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
5826            Provide a better way to destroy the layers
5827            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
5828            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
5829            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
5830            the new way to destroy the layers.
5831            (TestLayer.test_derived_store): New. Test for using a layer with a
5832            DerivedShapeStore
5833    
5834            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
5835            filename if the shape store actually has one.
5836    
5837    2003-05-22  Bernhard Herzog  <[email protected]>
5838    
5839            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
5840            for the filename
5841    
5842            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
5843            for the FileName method
5844            (TestDBFTableWriting.test_write): Fix spelling of filename
5845    
5846    2003-05-22  Thomas Koester  <[email protected]>
5847    
5848            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
5849            from SciParam that now really is immutable.
5850    
5851    2003-05-22  Frank Koormann  <[email protected]>
5852    
5853            Layer Top/Bottom placement added to legend.
5854    
5855            * Thuban/UI/legend.py
5856            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
5857            bound to tool events.
5858            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
5859            New, methods binding the event methods with the map methods.
5860    
5861            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
5862            layer at top/bottom of layer stack.
5863    
5864            * Resources/Bitmaps/top_layer.xpm: New button icon.
5865    
5866            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
5867    
5868    2003-05-22  Bernhard Herzog  <[email protected]>
5869    
5870            * Thuban/Model/session.py (Session.RemoveTable): New method to
5871            remove tables
5872    
5873            * test/test_session.py (TestSessionSimple.test_remove_table): New.
5874            Test for RemoveTable
5875    
5876    2003-05-22  Thomas Koester  <[email protected]>
5877    
5878            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
5879            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
5880    
5881    2003-05-22  Bernhard Herzog  <[email protected]>
5882    
5883            Implement a way to discover dependencies between tables and
5884            shapestores.
5885    
5886            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
5887            (TransientJoinedTable.Dependencies)
5888            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
5889            interface
5890            (TransientJoinedTable.__init__): Keep tack of the original table
5891            objects in addition to the corresponding transient tables.
5892    
5893            * Thuban/Model/table.py (DBFTable.Dependencies)
5894            (MemoryTable.Dependencies): New. Implement the dependencies
5895            interface
5896    
5897            * Thuban/Model/data.py (ShapeTable): New. Helper class for
5898            ShapefileStore
5899            (ShapefileStore.__init__): Use ShapeTable instead of
5900            AutoTransientTable
5901            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
5902            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
5903            methods for filename and type
5904            (ShapefileStore.Dependencies): New. Implement the dependencies
5905            interface
5906            (DerivedShapeStore): New class to replace SimpleStore. The main
5907            difference to SimpleStore is that it depends not on a shapefile
5908            but another shapestore which expresses the dependencies a bit
5909            better
5910            (SimpleStore.__init__): Add deprecation warning.
5911    
5912            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
5913            Test for the Dependencies method.
5914    
5915            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
5916            New. Test for the Dependencies method.
5917    
5918            * test/test_transientdb.py
5919            (TestTransientTable.test_auto_transient_table_dependencies): New.
5920            Test for the Dependencies method.
5921            (TestTransientTable.test_transient_joined_table): Add test for the
5922            Dependencies method.
5923    
5924            * test/test_session.py (TestSessionSimple.setUp)
5925            (TestSessionSimple.tearDown): New. Implement a better way to
5926            destroy the sessions.
5927            (TestSessionSimple.test_initial_state)
5928            (TestSessionSimple.test_add_table): Bind session to self.session
5929            so that it's destroyed by tearDown
5930            (TestSessionSimple.test_open_shapefile): New. Test for
5931            OpenShapefile and the object it returns
5932    
5933    2003-05-22  Bernhard Herzog  <[email protected]>
5934    
5935            * Thuban/Model/session.py (Session.AddTable): New method to
5936            register tables with the session.
5937            (Session.Tables): Return the tables registered with AddTable too.
5938    
5939            * test/test_session.py (TestSessionSimple.test_add_table): New.
5940            Test case for the AddTable method
5941    
5942    2003-05-22  Frank Koormann  <[email protected]>
5943    
5944            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
5945            lower right corner, center labels for selections, initialize controls
5946            in reasonable order for keyboard navigation.
5947    
5948            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
5949            (ProjFrame.__DoOnProjAvail): Determine position of current projection
5950            using the wxListBox.FindString() method. Still a problem (#1886)
5951    
5952            * Thuban/UI/classifier.py
5953            (Classifier.__init__, SelectPropertiesDialog.__init__)
5954    
5955            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
5956            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
5957            different classification types from here to __init__.
5958            (GenUniquePanel.__init__): Set the column width of the first field
5959            in the Field ListCtrl to the full width.
5960    
5961            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
5962            Button to 'Export'. Center Buttons in Selection Box, set Focus to
5963            Grid.
5964            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
5965            changes focus to the Selection when pressing "Alt-S".
5966    
5967            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
5968            the text if not visible. The italic font sometimes exceeds the
5969            rendering area.
5970    
5971    2003-05-21  Jonathan Coles   <[email protected]>
5972    
5973            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
5974            to OnClose so that Thuban closes correctly.
5975    
5976            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
5977            DockFrame.OnClose, not DockFrame._OnClose.
5978    
5979    2003-05-21  Jonathan Coles   <[email protected]>
5980    
5981            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
5982            references to 'inf' and use new Range __init__ to pass floats
5983            directly rather than converting them to strings first.
5984            Fixes RTBug #1876.
5985    
5986            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
5987            Use new Range ___init__ to pass floats.
5988    
5989            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
5990            filename is a valid image file. Throw IOError otherwise.
5991    
5992            * Thuban/Model/range.py: Brought over new Range from SciParam that
5993            is immutable and has an __init__ which can accept floats.
5994    
5995            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
5996            into try block. AddLayer doesn't throw any exceptions anymore.
5997            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
5998            try block.
5999    
6000            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
6001            the first item in choices. Fixes RTBug #1882.
6002    
6003            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
6004            has gone to 0 which is a serious problem. abort.
6005            (MapRenderer.draw_raster_layer): Catch IOError seperately and
6006            print the error from GDAL.
6007    
6008            * Thuban/UI/tableview.py (TableGrid.__init__): Call
6009            ToggleEventListeners to turn on listening.
6010            (TableGrid.ToggleEventListeners): New. Turns event listening on
6011            and off so as to prevent excessive messages.
6012            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
6013            to suppress excessive messages when selecting many rows.
6014            Fixes RTBug #1880.
6015    
6016            * Thuban/UI/view.py: Added checks against if scale == 0. This
6017            is a serious problem that can occur when an image without
6018            geo data is loading and causes the map projection bounds to
6019            go to infinity. Right now, the solution is to simply try
6020            to recover.
6021    
6022            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
6023            to set the MFILEReceiver attributes even if the data is NULL.
6024    
6025            * extensions/thuban/gdalwarp.cpp: Improved the error handling
6026            and passed GDAL messages back up to the Python layer. Also
6027            tried to fix some memory leaks that were present in the original
6028            utility but didn't matter because the program aborted.
6029    
6030            * test/test_range.py: Copied over tests from SciParam. Removed
6031            tests against importing. Fixes RTBug #1867.
6032    
6033    2003-05-21  Bernhard Herzog  <[email protected]>
6034    
6035            * test/test_load.py: Remove unused imports and restructure the
6036            test code
6037            (LoadSessionTest): Split into one class for each test and turn
6038            LoadSessionTest itself into the base class for all such session
6039            tests.
6040            (ClassificationTest): New base class for load tests that test
6041            classifications
6042            (TestSingleLayer, TestLayerVisibility, TestClassification)
6043            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
6044            for the individual tests
6045    
6046            * test/support.py (FileLoadTestCase.filename): New base class for
6047            file loading tests
6048    
6049    2003-05-21  Jan-Oliver Wagner <[email protected]>
6050    
6051            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
6052            Mercator' to 'UTM Zone 32' as a more convenient example.
6053            Added 'Gauss Krueger Zone 6'.
6054    
6055            * Data/iceland_sample_raster.thuban: political polygon now
6056            filled transparent to have the raster image visible at once.
6057    
6058    2003-05-21  Frank Koormann  <[email protected]>
6059    
6060            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
6061            OnClose() to keep in sync with extensions. Internally Thuban
6062            still uses "underscored" names.
6063    
6064    2003-05-20  Jonathan Coles   <[email protected]>
6065    
6066            This puts back Raster layer support. These layers support projections
6067            through the GDAL library. Currently, the CVS version is being used.
6068            There are no Debian packages available although this may change soon.
6069            A GDAL driver was extended to support writing to memory rather to
6070            files.
6071    
6072            There is still some work that needs to be done, such as some error
6073            handling when loading invalid images or when there is a problem
6074            projecting the image. This putback simply checks in the majority
6075            of the work.
6076    
6077            * setup.py: Add gdalwarp library extension.
6078    
6079            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
6080            Defaults to False, but can be overridden by subclasses if they
6081            support classification.
6082            (RasterLayer): New. Defines a new layer that represents an
6083            image.
6084    
6085            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
6086            tag handler.
6087            (SessionLoader.start_layer): Encode the filename.
6088            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
6089            New. Supports reading a rasterlayer tag.
6090    
6091            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
6092    
6093            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
6094            get a string in Latin1. If we get such as string convert it to
6095            unicode first, otherwise leave if alone before encoding.
6096            (SessionSaver.write_layer): Add support for writing both Layers
6097            and RasterLayers.
6098    
6099            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
6100            The right argument may not be a string, it could also be a Column.
6101    
6102            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
6103            Make initial window size 600x400. Fixes RTBug #1872.
6104    
6105            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
6106            the dialog is constructed so that we can support layers that
6107            do not have classifications.
6108            (Classifier._OnTry): Only build a classification if the layer
6109            supports one.
6110    
6111            * Thuban/UI/legend.py: Change all checks that a layer is an
6112            instance of Layer into checks against BaseLayer.
6113            (LegendTree.__FillTreeLayer): Only add children to a branch if
6114            the layer supports classification.
6115    
6116            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
6117            MainWindow.OpenSession): Don't proceed with an action if the
6118            user chooses Cancel when they are asked to save changes.
6119            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
6120            user to select an image file. Create a new RasterLayer and add
6121            it to the map.
6122    
6123            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
6124            for rendering RasterLayer layers.
6125            (MapRenderer.draw_raster_layer): Actually method that calls
6126            the GDALWarp python wrapper and constructs an image from the
6127            data returned.
6128    
6129            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
6130            Choices symbols to match those used in the table query method.
6131            Replace deprecated method calls on table with new method names.
6132    
6133            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
6134            how small the scale can get. This still needs more testing.
6135    
6136            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
6137            Provides a driver to output in .bmp format.
6138    
6139            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
6140            New. Provides IO routines which write to memory, rather than a file.
6141    
6142            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
6143            of the gdalwarp utility provided in GDAL. Added function calls
6144            that can be accessed from python.
6145    
6146            * Data/iceland_sample_raster.thuban: New. Sample file that uses
6147            a raster layer.
6148    
6149            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
6150            layer image data.
6151    
6152            * Doc/thuban.dtd: Added rasterlayer attribute definition.
6153    
6154            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
6155            tests associated with the raster layer code.
6156    
6157            * test/test_transientdb.py
6158            (TestTransientTable.test_auto_transient_table_query): Added a test
6159            for using a Column object as the "right" parameter to a query.
6160    
6161    2003-05-19  Frank Koormann  <[email protected]>
6162    
6163            * Thuban/version.py (get_changelog_date):
6164            Catch exceptions if ChangeLog does not exist.
6165    
6166            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
6167    
6168    2003-05-19  Frank Koormann  <[email protected]>
6169    
6170            Extended version information for Thuban
6171    
6172            * Thuban/version.py: New, version information for Thuban: Last
6173            modification date and last ChangeLog entry date.
6174    
6175            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
6176            information: Display Thuban, wxPython and Python version.
6177    
6178    2003-05-16  Bernhard Herzog  <[email protected]>
6179    
6180            * Thuban/Model/save.py: Remove some unused imports including the
6181            __future__ import for nested_scopes as Thuban relies on Python 2.2
6182            now.
6183            (XMLWriter.encode): Remove the special case for a None argument.
6184            In the saver encode is always called with a string argument.
6185    
6186    2003-05-16  Bernhard Herzog  <[email protected]>
6187    
6188            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
6189            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
6190            of the bug was that e.g. float("1.2") would fail. Thuban now
6191            requires 2.4.x.
6192            
6193    2003-05-16  Frank Koormann   <[email protected]>
6194    
6195            Printing enhancement and WMF export (under Win32)
6196    
6197            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
6198            ScreenRenderer. Renders Map, Legend and Scalebar for export.
6199            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
6200            PrintRender.
6201    
6202            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
6203            to fullfil information needed for PrinterRenderer.
6204            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
6205            (MapCanvas.Print): Adapted to new MapPrintout.
6206            (OutputTransform): General calculations to transform from canvas
6207            coordinates to export/printing devices.
6208    
6209            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
6210            new method_command to call ExportMap, with platform dependency (only
6211            __WXMSW__)
6212      
6213            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
6214            of scalebar drawing area as new parameters.
6215            
6216            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
6217    
6218            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
6219            Update to extended scalebar.DrawScalebar header.
6220    
6221            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
6222    
6223            * test/test_scalebar.py: Made test executable as standalone.
6224    
6225    2003-05-16  Bernhard Herzog  <[email protected]>
6226    
6227            * Thuban/Model/table.py (Table): Remove this compatibility alias
6228            for DBFTable.
6229    
6230            * test/test_table.py: Import DBFTable as Table because that alias
6231            doesn't exist anymore.
6232    
6233            * Thuban/UI/classgen.py: Remove some unused imports
6234    
6235    2003-05-14  Jonathan Coles   <[email protected]>
6236    
6237            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
6238            Fix docstring.
6239            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
6240            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
6241            values of the supplied range to determine the beginning and end
6242            bounds of the generated classes.
6243    
6244            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
6245            do not have a leading 0 (.5 is now accepted as well as 0.5).
6246    
6247            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
6248            call to ClassGenerator.GenUniformDistribution.
6249    
6250            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
6251            layout bug with the 'Projection' label.
6252    
6253            * test/support.py (FloatTestCase): New. Needed for the Range tests.
6254    
6255            * test/test_range.py: New. Imported from SciParam.
6256    
6257    2003-05-12  Jonathan Coles   <[email protected]>
6258    
6259            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
6260            to table.UniqueValues() with calls that retrieve all the values
6261            from the table. This will need to be replaced by a method on table
6262            which can simply return the list (perhaps more efficiently).
6263    
6264    2003-05-12  Jonathan Coles   <[email protected]>
6265    
6266            The return value of ClassGenerator.CalculateQuantiles has changed.
6267            Refer to the documentation for details.
6268    
6269            * test/test_classgen.py: Modified Quantile tests to use the
6270            new return values.
6271    
6272            * Thuban/Model/classgen.py
6273            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
6274            use new return values from CalculateQuantiles to produce the correct
6275            range bounds in the Classification.
6276            (ClassGenerator.CalculateQuantiles): Add more comments describing
6277            the return values and parameters. Make minor adjustments to improve
6278            the legibility of the code. Fix problem with adjusted not being set
6279            in most cases.
6280    
6281    2003-05-12  Frank Koormann <[email protected]>
6282            
6283            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
6284            and latin1. Fixes #1851 finally.
6285    
6286    2003-05-09  Jonathan Coles   <[email protected]>
6287    
6288            * test/test_classgen.py: New. Tests the Quantile algorithm.
6289    
6290            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
6291            Clean up debugging statement, add comments, fix a small bug in the
6292            returned adjusted percentiles.
6293            
6294    2003-05-09  Jonathan Coles   <[email protected]>
6295    
6296            Introduces Range class from SciParam into the ClassGroupRange class,
6297            and such ranges can now be saved and loaded from disk.
6298    
6299            Quantiles are now available in the Classification Generator.
6300    
6301            Initial support for building Queries on a table. Doesn't do anything
6302            but run some tests.
6303    
6304            * Thuban/Model/classification.py: Explicit imports.
6305            (ClassGroupRange): Use the Range class to store the underlying
6306            range information. The interface remains the same, except for
6307            GetRange(), and you can also supply a Range object as the min
6308            parameter to SetRange or __init__.
6309    
6310            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
6311            string appropriately for use in Thuban. Fixes RTbug #1851.
6312            (SessionLoader.end_projection): Handle the context of the
6313            projection tag a bit better by looking at what objects are not
6314            None. There was an assumption that a projection tag for a map
6315            could occur before any layers.
6316            (SessionLoader.start_clrange): Provide backward compatibility for
6317            reading min/max values as well as the new range parameter.
6318    
6319            * Thuban/Model/map.py: Explicit imports.
6320    
6321            * Thuban/Model/resource.py: Import _.
6322            (ProjFileSaver.write): write header using projfile.dtd.
6323    
6324            * Thuban/Model/save.py: Explicit imports.
6325            (XMLWriter.encode): New. Encode the given string from a format
6326            used by Thuban into UTF-8. Fixes RTbug #1851.
6327    
6328            * Thuban/UI/classgen.py: Explicit imports.
6329            (ClassGenDialog.__init__): Clean up the code and add support
6330            for Quantiles.
6331            (ClassGenDialog.OnOK): Add support for Quantiles.
6332            (GenQuantilesPanel): New. Input panel for Quantiles.
6333            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
6334            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
6335    
6336            * Thuban/Model/classgen.py: New. Contains all the classes named above.
6337    
6338            * Thuban/UI/classifier.py: Explicit imports.
6339            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
6340            ClassTable.SetValueAsCustom): Reworked to use new Range class.
6341    
6342            * Thuban/UI/legend.py: Explicit imports.
6343    
6344            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
6345            a Table menu and associated method calls.
6346            (MainWindow.choose_color): Removed. No longer needed.
6347    
6348            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
6349            should be disabled if no projection is selected in the available
6350            list.
6351    
6352            * Thuban/UI/renderer.py: Explicit imports.
6353    
6354            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
6355            with correctly selecting the rows and issuing the right events.
6356            Be sure to call Skip() to allow the grid to do some of its own
6357            handling which allows the rows to actually be selected.
6358            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
6359            selecting multiple shapes.
6360            (LayerTableFrame): Support for building Queries.
6361            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
6362    
6363            * Thuban/UI/tree.py: Explicit imports.
6364    
6365            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
6366            table view can call it.
6367    
6368            * test/test_classification.py: Explicit imports.
6369            (TestClassification.test_ClassGroupRange): Fix test for new
6370            Range class.
6371    
6372            * Doc/thuban.dtd: Add range parameter for clrange.
6373    
6374            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
6375            object in ClassGroupRange, and also uesd for inputting ranges in
6376            the classifer table and elsewhere.
6377    
6378            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
6379            yet.
6380    
6381    2003-05-09  Frank Koormann <[email protected]>
6382    
6383            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
6384    
6385    2003-05-08  Frank Koormann <[email protected]>
6386    
6387            Coding style updates
6388    
6389            * test/test_scalebar.py: Replaced tab indentation by spaces.
6390    
6391            * Thuban/UI/scalebar.py: Explicit imports.
6392    
6393    2003-05-08  Frank Koormann <[email protected]>
6394    
6395            * Thuban/UI/scalebar.py
6396            (ScaleBar.DrawScalebar): Format string bug fixed.
6397    
6398    2003-05-08  Frank Koormann <[email protected]>
6399    
6400            Reorganization of scalebar component (no wx in Thuban/Model)
6401    
6402            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
6403            (deriveInterval):
6404            Calculate scalebar interval and unit which fits in width for scale.
6405            (roundInterval): Round float.
6406    
6407            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
6408    
6409            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
6410    
6411            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
6412    
6413    2003-05-08  Frank Koormann <[email protected]>
6414    
6415            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
6416            Initialize ScaleBar with canvas.map
6417    
6418            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
6419            round intervals to display smarter lengths
6420            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
6421            layer. If the maps has no projection applied grey the scalebar.
6422    
6423    2003-05-07  Frank Koormann <[email protected]>
6424            
6425            Basic Scalebar features added.
6426    
6427            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
6428    
6429            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
6430            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
6431            and the renderer.
6432    
6433            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
6434    
6435            * Thuban/UI/messages.py: SCALE_CHANGED added.
6436    
6437    2003-05-07  Bernhard Herzog  <[email protected]>
6438    
6439            * Thuban/Model/session.py (Session.__init__): New instance
6440            variable shapestores to hold a list of all open shapestore objects
6441            (Session.ShapeStores): New. Accessor method for the shapestores
6442            list.
6443            (Session._add_shapestore, Session._clean_weak_store_refs): New.
6444            Internal methods to maintain the shapestores list.
6445            (Session.Tables): New. Return all tables open in the session.
6446            (Session.OpenShapefile): Insert the new ShapeStore into the
6447            shapestores list.
6448    
6449            * test/test_session.py (TestSessionSimple.test_initial_state): Add
6450            tests for ShapeStores and Tables
6451            (TestSessionWithContent.test_shape_stores)
6452            (TestSessionWithContent.test_tables): New. Test cases for
6453            ShapeStores and Tables
6454    
6455    2003-05-07  Bernhard Herzog  <[email protected]>
6456    
6457            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
6458            Add comments about the optimizations used.
6459            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
6460            Implement the ReadValue table interface method.
6461    
6462            * test/test_transientdb.py
6463            (TestTransientTable.run_iceland_political_tests)
6464            (TestTransientTable.test_transient_joined_table): Add tests for
6465            ReadValue
6466    
6467    2003-05-07  Frank Koormann <[email protected]>
6468    
6469            * Resources/Bitmaps/fulllayerextent.xpm,
6470            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
6471            new icons.
6472    
6473    2003-05-06  Bernhard Herzog  <[email protected]>
6474    
6475            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
6476            New. Simply delegate to the transient table's version.
6477    
6478            * test/test_transientdb.py
6479            (TestTransientTable.test_auto_transient_table_query): New. Test
6480            case for AutoTransientTable's SimpleQuery
6481    
6482    2003-05-06  Bernhard Herzog  <[email protected]>
6483    
6484            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
6485            Implement a simple query method for the query dialog
6486            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
6487            the row index or shapeid.
6488            (TransientTable.create): Insert the right value of the row index
6489            (TransientJoinedTable.create): Copy the row index of the left
6490            table to the joined result table
6491    
6492            * test/test_transientdb.py
6493            (TestTransientTable.test_transient_table_read_twice): Fix
6494            doc-string
6495            (TestTransientTable.test_transient_table_query): New. Test for the
6496            SimpleQuery method
6497    
6498    2003-05-06  Bernhard Herzog  <[email protected]>
6499    
6500            Convert all table users to use the new table interface. This only
6501            covers Thuban itself, not GREAT-ER or other applications built on
6502            Thuban yet, so the compatibility interface stays in place for the
6503            time being but it now issues DeprecationWarnings.
6504    
6505            Finally, the new Table interface has a new method, HasColumn.
6506    
6507            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
6508            issue deprecation warnings when they're. The warnings refer to the
6509            caller of the method.
6510            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
6511            for the deprecation warnings
6512    
6513            * test/test_table.py: Ignore the deprecation warnings for the old
6514            table in the tests in this module. The purpose of the tests is to
6515            test the old interface, after all.
6516    
6517            * test/test_transientdb.py
6518            (TestTransientTable.run_iceland_political_tests): Use the
6519            constants for the types. Add a test for HasColumn
6520            (TestTransientTable.test_transient_joined_table): Adapt to new
6521            table interface. Add a test for HasColumn
6522            (TestTransientTable.test_transient_table_read_twice): Adapt to new
6523            table interface
6524    
6525            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
6526            Adapt to new table interface
6527    
6528            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
6529            new table interface
6530    
6531            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
6532            (RecordTable.SetTable): Adapt to new table interface
6533    
6534            * Thuban/UI/classifier.py (Classifier.__init__)
6535            (Classifier.__init__): Adapt to new table interface
6536    
6537            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
6538            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
6539            to new table interface
6540    
6541            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
6542            (AutoTransientTable.HasColumn): Implement the new table interface
6543            method
6544            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
6545            (AutoTransientTable.UniqueValues): Adapt to new table interface
6546    
6547            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
6548            Adapt to new table interface
6549    
6550            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
6551            simplify opening shapefiles a bit easier.
6552            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
6553            (TestLayer.test_point_layer): Use the new helper method
6554            (TestLayer.test_get_field_type): New. Test for the GetFieldType
6555            method
6556    
6557            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
6558            the new table method
6559    
6560            * test/test_memory_table.py (TestMemoryTable.test_has_column):
6561            Test for the new table method HasColumn
6562    
6563    2003-05-06  Jonathan Coles   <[email protected]>
6564    
6565            Addresses the "Selection Extent" wish of RTbug #1787.
6566    
6567            * Resources/Bitmaps/fulllayerextent.xpm,
6568            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
6569            extent. These are just place holders for the real bitmaps.
6570    
6571            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
6572            calculate the bounding box once (the first time compute_bbox() is
6573            called).
6574            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
6575            the bounding box for the shapes in lat/long coordinates.
6576    
6577            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
6578            option.
6579            (MainWindow.has_selected_shapes): New. Returns true if there are
6580            any selected shapes.
6581            (MainWindow.FullSelectionExtent): New. Calls
6582            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
6583            (_has_selected_shapes): New. Returns true if there are any
6584            selected shapes.
6585    
6586            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
6587            true if there are any selected shapes.
6588    
6589            * Thuban/UI/view.py (MapCanvas): Added delegated method
6590            HasSelectedShapes.
6591            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
6592            shapes on the canvas using the map projection (if any).
6593    
6594            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
6595            for Layer.ShapesBoundingBox().
6596    
6597    2003-05-06  Bernhard Herzog  <[email protected]>
6598    
6599            * Resources/Projections/defaults.proj: Fix spelling of Mercator
6600    
6601    2003-05-05  Jonathan Coles   <[email protected]>
6602    
6603            Addresses the "Full Layer Extent" wish of RTbug #1787.
6604    
6605            * Resources/Projections/defaults.proj: Added UK National Grid.
6606    
6607            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
6608            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
6609            when the user selects the menu option.
6610    
6611            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
6612            scales the given layer on the canvas using the map projection.
6613    
6614    2003-05-05  Bernhard Herzog  <[email protected]>
6615    
6616            Convert the table implementations to a new table interface. All
6617            tables use a common mixin class to provide backwards compatibility
6618            until all table users have been updated.
6619    
6620            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
6621            provide backwards compatibility for table classes implementing the
6622            new interface
6623            (DBFTable, MemoryTable): Implement the new table interface. Use
6624            OldTableInterfaceMixin as base for compatibility
6625            (DBFColumn, MemoryColumn): New. Column description for DBFTable
6626            and MemoryTable resp.
6627    
6628            * test/test_dbf_table.py: New. Test cases for the DBFTable with
6629            the new table interface.
6630    
6631            * test/test_memory_table.py: New. Test cases for the MemoryTable
6632            with the new table interface.
6633    
6634            * test/test_table.py: Document the all tests in this file as only
6635            for backwards compatibility. The equivalent tests for the new
6636            interface are in test_memory_table.py and test_dbf_table.py
6637            (MemoryTableTest.test_read): field_info should be returning tuples
6638            with four items
6639            (MemoryTableTest.test_write): Make doc-string a more precise.
6640    
6641            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
6642            table interface. Derive from from OldTableInterfaceMixin for
6643            compatibility.
6644            (TransientTableBase.create): New intance variable column_map to
6645            map from names and indices to column objects
6646            (TransientTable.create): Use the new table interface of the input
6647            table
6648            (AutoTransientTable): Convert to new table interface. Derive from
6649            from OldTableInterfaceMixin for compatibility.
6650            (AutoTransientTable.write_record): Removed. It's not implemented
6651            yet and we still have to decide how to handle writing with the new
6652            table and data framework.
6653    
6654            * test/test_transientdb.py
6655            (TestTransientTable.run_iceland_political_tests)
6656            (TestTransientTable.test_transient_joined_table): Use the new
6657            table interface
6658    
6659    2003-05-05  Jonathan Coles   <[email protected]>
6660    
6661            This is namely a collection of UI updates to improve user interactivity.
6662            Tabbing between controls now exists and you can use ESC to close dialog
6663            boxes; ENTER will active the default button.
6664    
6665            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
6666            order that the controls are created so that tabbing works correctly.
6667            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
6668            wxDialog can handle the default button correctly.
6669            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
6670            same reasons as for OnOK.
6671            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
6672            when we ask the table for the maximum/minimum values of a field
6673            which could take a very long time.
6674    
6675            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
6676            order that the controls are created so that tabbing works correctly.
6677            (SelectPropertiesDialog.__init__): Rearrange the order that the
6678            controls are created so that tabbing works correctly.
6679    
6680            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
6681            to derive from a wxDialog but behave like the original implementation
6682            which was derived from a wxFrame. wxDialog provides useful key
6683            handling functionality like ESC calling OnCancel and ENTER calling
6684            OnOK which is lost with wxFrame.
6685    
6686            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
6687            new dialogs.
6688    
6689            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
6690            order that the controls are created so that tabbing works correctly.
6691            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
6692            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
6693            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
6694            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
6695            can provide the "UK National Grid" as a default projection.
6696            (UTMPanel.__init__): Rearrange the order that the controls are
6697            created so that tabbing works correctly.
6698    
6699    2003-05-05  Bernhard Herzog  <[email protected]>
6700    
6701            * extensions/thuban/wxproj.cpp: Fix some of the comments.
6702            (project_point): If a map projection but no layer projection is
6703            given, convert degrees to radians before applying the map
6704            projection.
6705    
6706            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
6707            (TableGrid.allow_messages): New methods to make it possible to
6708            inhibit message sending.
6709            (TableGrid.issue): Only send the message if not inhibited.
6710            (LayerTableGrid.select_shape): Use the new methods to make sure
6711            that no ROW_SELECTED message is sent while we're updating the
6712            selected rows to match the selected shapes.
6713    
6714    2003-05-02  Jan-Oliver Wagner <[email protected]>
6715    
6716            Implementation of MemoryTable.
6717    
6718            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
6719            implementation that operates on a list of tuples. All of the data
6720            are kept in the memory.
6721    
6722            * test/test_table.py (MemoryTableTest): New.
6723    
6724            * test/test_transientdb.py (SimpleTable): Removed.
6725            (TestTransientTable.test_transient_joined_table,
6726            (TestTransientTable.test_transient_table_read_twice): Replaced
6727            SimpleTable by MemoryTable.
6728    
6729    2003-04-30  Jonathan Coles   <[email protected]>
6730    
6731            * Data/iceland_sample.thuban: Now contains correct projections
6732            for each of the layers.
6733    
6734            * Resources/Projections/defaults.proj: Geographic projection
6735            contains unit conversion parameter.
6736    
6737    2003-04-30  Jonathan Coles   <[email protected]>
6738    
6739            The most important part of this putback is the projection changes.
6740            It should now be possible to specify the projection that a layer
6741            is in and then specify a different projection for the map. The
6742            projection dialog has an extra parameter for a geographic projection
6743            which lets the user select if the input is in degrees or radians.
6744    
6745            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
6746            to say that the parameter is a tuple of unprojected
6747            points (which is what the callers to this method were assuming).
6748            Also, since the points are unprojected we need to projected them.
6749    
6750            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
6751            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
6752            groups are selected, move the layer up/down. Fixes RTbug #1833.
6753    
6754            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
6755    
6756            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
6757            parameter in call to SetClientData.
6758            (GeoPanel): Add support for selecting the units that the
6759            source data is in (Radians or Degrees).
6760    
6761            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
6762            the rendering loop by reducing the number of if's, removing the
6763            unnecessary try/except block, and checking if the old group
6764            is the same as the new one (which happens a lot if there is
6765            no classification, or lots of shapes are in the same group).
6766    
6767            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
6768            around the redraw routine to try to catch problems that the user
6769            may create by selecting invalid projections for the data set and
6770            map. Clears the display if there are any problems and prints the
6771            error.
6772            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
6773            rectangle.
6774    
6775            * extensions/thuban/wxproj.cpp (project_point): First invert the
6776            supplied point (which should be in projected coordinates) using
6777            the layer's projection and then project the point using the
6778            map's projection.
6779            (project_points): Use project_point() to project each point.
6780    
6781    2003-04-30  Jan-Oliver Wagner <[email protected]>
6782    
6783            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
6784            don't set the Classification to None if the classfication field
6785            is None (ie only a DEFAULT).
6786    
6787    2003-04-30  Bernhard Herzog  <[email protected]>
6788    
6789            * Thuban/UI/view.py: Fix some typos.
6790    
6791            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
6792            not pop up the dialog if the selection becomes empty (this could
6793            happen if e.g. a new selection is opened while the identify tool
6794            is active and dialog had been closed)
6795    
6796    2003-04-30  Bernhard Herzog  <[email protected]>
6797    
6798            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
6799            instance variable read_record_last_result
6800            (TransientTableBase.read_record): Make sure reading the same
6801            record twice works. The implementation uses the new instance
6802            variable read_record_last_result
6803    
6804            * test/test_transientdb.py
6805            (TestTransientTable.test_transient_table_read_twice): New test
6806            case for the above bug-fix.
6807    
6808    2003-04-29  Jonathan Coles   <[email protected]>
6809    
6810            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
6811    
6812            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
6813    
6814            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
6815            (ClassTable.SetValueAsCustom): Rename keyword argument in
6816            ClassGroup* constructors to match argument name.
6817    
6818    2003-04-29  Bernhard Herzog  <[email protected]>
6819    
6820            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
6821            transient DB if it exists to make sure it doesn't leave a journal
6822            file in the temp directory.
6823    
6824            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
6825            self.conn to None after closing the connection to make sure it's
6826            not closed twice
6827    
6828    2003-04-29  Jonathan Coles   <[email protected]>
6829    
6830            Add a visible parameter in the layer XML tag. The default value is
6831            "true". If anything other than "false" is specified we also assume
6832            "true". Addresses RTbug #1025.
6833    
6834            * Doc/thuban.dtd: Add visible parameter to a layer.
6835    
6836            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
6837            of visible from 1 to True.
6838            (Layer.__init__): Change default value of visible from 1 to True.
6839    
6840            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
6841            parameter.
6842    
6843            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
6844            parameter.
6845    
6846            * test/test_load.py: Add new test data contents_test_visible.
6847            (LoadSessionTest.setUp): save test data.
6848            (LoadSessionTest.testLayerVisibility): Test if the visible flag
6849            is loaded correctly.
6850    
6851            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
6852            for saving an invisible layer.
6853    
6854    2003-04-29  Jonathan Coles   <[email protected]>
6855    
6856            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
6857            legend dialog box and tell it to change its map to the one
6858            supplied to SetMap(). Fixes RTbug #1770.
6859    
6860    2003-04-29  Bernhard Herzog  <[email protected]>
6861    
6862            Next step of table implementation. Introduce a transient database
6863            using SQLite that some of the data is copied to on demand. This
6864            allows us to do joins and other operations that require an index
6865            for good performance with reasonable efficiency. Thuban now needs
6866            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
6867            haven't tested that.
6868            
6869            * Thuban/Model/transientdb.py: New. Transient database
6870            implementation.
6871    
6872            * test/test_transientdb.py: New. Tests for the transient DB
6873            classes.
6874    
6875            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
6876            classes to help automatically remove temporary files and
6877            directories.
6878            (Session.__init__): New instance variables temp_dir for the
6879            temporary directory and transient_db for the SQLite database
6880            (Session.temp_directory): New. Create a temporary directory if not
6881            yet done and return its name. Use AutoRemoveDir to have it
6882            automatically deleted
6883            (Session.TransientDB): Instantiate the transient database if not
6884            done yet and return it.
6885    
6886            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
6887            AutoTransientTable so that data is copied to the transient DB on
6888            demand.
6889            (SimpleStore): New class that simply combines a table and a
6890            shapefile
6891    
6892            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
6893            DBFTable and update its doc-string to reflect the fact that this
6894            is only the table interface to a DBF file. Table is now an alias
6895            for DBFTable for temporary backwards compatibility.
6896    
6897            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
6898            the last reference to the session goes away so that the temporary
6899            files are removed properly.
6900    
6901            * test/test_load.py (LoadSessionTest.tearDown): Remove the
6902            reference to the session to make sure the temporary files are
6903            removed.
6904    
6905    2003-04-29  Bernhard Herzog  <[email protected]>
6906    
6907            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
6908            the __parser instance variable into a normal local variable in
6909            read. It's only used there and read will never be called more than
6910            once. Plus it introduces a reference cycle that keeps can keep the
6911            session object alive for a long time.
6912    
6913    2003-04-29  Jonathan Coles   <[email protected]>
6914    
6915            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
6916            Projection an immutable item. Fixes RTbug #1825.
6917            (Projection.__init__): Initialize instance variables here.
6918            (ProjFile.Replace): New. Replace the given projection object with
6919            the new projection object. This solves the problem of needing the
6920            mutator Projection.SetProjection() in the ProjFrame class and
6921            allows a projection to change parameters without changing its
6922            location in the file.
6923    
6924            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
6925            be of type wxSAVE and should verify overwriting a file.
6926    
6927            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
6928            ProjFile.Replace() method instead of the mutator
6929            Projection.SetProjection(). Also requires that we reassign the
6930            client data to the new projection.
6931    
6932            * test/test_proj.py (TestProjection.test): Test GetName() and
6933            GetAllParameters()
6934            (TestProjFile.test): Remove tests for Set*() methods. Add tests
6935            for Replace().
6936    
6937    2003-04-25  Jonathan Coles   <[email protected]>
6938    
6939            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
6940            to save the name of the projection.
6941    
6942            * test/test_save.py (SaveSessionTest.testLayerProjection): New
6943            test to verify layer projections are saved correctly.
6944    
6945    2003-04-25  Jonathan Coles   <[email protected]>
6946    
6947            * Thuban/Model/proj.py (Projection.SetName): Set the name
6948            to "Unknown" if name is None.
6949            (Projection.SetAllParameters): New. Set the projection's
6950            parameter list to the one supplied.
6951            (Projection.SetProjection): New. Set the projection's
6952            properties to those of the supplied Projection.
6953    
6954            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
6955            the dialog title to include the map's title.
6956            (MainWindow.LayerProjection): Set the dialog title to include
6957            the layer's title.
6958    
6959            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
6960            error dialogs into a single method call.
6961            (ProjFrame.__VerifyButtons): Add more states to check.
6962            (ProjFrame.__GetProjection): Return the current state of an
6963            edited projection or None.
6964            (ProjFrame.__FillAvailList): Remove checks for states that
6965            shouldn't exist.
6966            (ProjFrame._OnNew): Clear all selected items and supply
6967            a projection panel if necessary.
6968    
6969            * test/test_proj.py (TestProjFile.test): Add tests for
6970            ProjFile.SetAllParameters, ProjFile.SetProjection,
6971            ProjFile.SetName.
6972    
6973    2003-04-25  Jonathan Coles   <[email protected]>
6974    
6975            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
6976            takes an optional argument to select the current projection.
6977            This does not guarantee that the item is visible due to
6978            limited wxWindows functionality. Fixes RTBug #1821.
6979    
6980    2003-04-25  Jonathan Coles   <[email protected]>
6981    
6982            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
6983            the projection name and use it when constructing the Projection
6984            object.
6985    
6986            * Thuban/Model/proj.py (Projection.__init__): Change the default
6987            value for 'name' to None and then test if name is equal to None
6988            in the body of the constructor. This way the caller doesn't have to
6989            know what the default value should be. Namely, useful in load.py
6990            where we have to pick a default value if the 'name' parameter
6991            doesn't exist in the XML file.
6992    
6993            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
6994            Tests a file where a layer has a projection.
6995    
6996    2003-04-25  Jonathan Coles   <[email protected]>
6997    
6998            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
6999            tree for projection information.
7000    
7001            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
7002            XMLReader.GetFileName.
7003            (SessionLoader): Added support for loading projection tags that
7004            appear inside a layer.
7005    
7006            * Thuban/Model/proj.py (ProjFile): Document the class. Move
7007            back to using a list because the order of the projections in
7008            the file is important to maintain. Fixes RTbug #1817.
7009    
7010            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
7011            to ProjFile.GetFilename.
7012    
7013            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
7014            information.
7015    
7016            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
7017            ProjFrame._OnSaveAs. Removed old dead code from previous
7018            implementation.
7019            (ProjFrame._OnExport): Add support for exporting more than one
7020            projection to a single file.
7021            (ProjFrame.__FillAvailList): use string formatting (% operator)
7022            to build strings that are (partly) translated. Fixes RTbug #1818.
7023    
7024            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
7025            class.
7026    
7027    2003-04-24  Bernhard Herzog  <[email protected]>
7028    
7029            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
7030    
7031            * po/fr.po: New. French translation by Daniel Calvelo Aros
7032    
7033            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
7034            empty strings.
7035    
7036    2003-04-24  Jonathan Coles   <[email protected]>
7037    
7038            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
7039            implement the interface that the ProjFrame dialog expects.
7040    
7041            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
7042            name of the projection to be changed.
7043            (ProjFile): Use a dictionary instead of a list so that removing
7044            projections is easier and we are sure about uniqueness.
7045            (ProjFile.Remove): Remove the given projection object.
7046    
7047            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
7048            Return a list with only one projection file instead of searching for
7049            any projection file. This simplifies many things if the user can
7050            only have one system file and one user file.
7051    
7052            * Thuban/UI/classgen.py: Change all references to
7053            genCombo to genChoice.
7054    
7055            * Thuban/UI/mainwindow.py: Add a Projection option under the
7056            layer menu.
7057            (MainWindow.LayerProjection): New. Open up a projection window
7058            for a layer.
7059    
7060            * Thuban/UI/projdialog.py: Large changes to how the dialog is
7061            laid out. Use three panels instead of one. One for the list of
7062            projections, one for the edit controls, and one for the buttons.
7063            Fixed resizing problems so that the dialog resizes correctly
7064            when the projection panel changes. Added import/export, save, and
7065            new buttons/functionality.
7066    
7067    2003-04-24  Bernhard Herzog  <[email protected]>
7068    
7069            First step towards table management. Introduce a simple data
7070            abstraction so that we replace the data a layer uses more easily
7071            in the next step.
7072    
7073            * Thuban/Model/data.py: New file with a simple data abstraction
7074            that bundles shapefile and dbffile into one object.
7075    
7076            * Thuban/Model/session.py (Session.OpenShapefile): New method to
7077            open shapefiles and return a shape store object
7078    
7079            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
7080            object instead of a shapefile filename. This introduces a new
7081            instance variable store holding the datastore. For intermediate
7082            backwards compatibility keep the old instance variables.
7083            (open_shapefile): Removed. No longer needed with the shape store.
7084            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
7085            get the shape store used by a layer.
7086            (Layer.Destroy): No need to explicitly destroy the shapefile or
7087            table anymore.
7088    
7089            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
7090            (MainWindow.AddLayer): Use the session's OpenShapefile method to
7091            open shapefiles
7092    
7093            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
7094            session's OpenShapefile method to open shapefiles
7095    
7096            * test/test_classification.py
7097            (TestClassification.test_classification): Use the session's
7098            OpenShapefile method to open shapefiles and build the filename in
7099            a more platform independed way
7100    
7101            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
7102            Implement to have a session to use in the tests
7103            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
7104            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
7105            session's OpenShapefile method to open shapefiles
7106            (TestLayerLegend.setUp): Instantiate a session so that we can use
7107            it to open shapefiles.
7108            (TestLayerLegend.tearDown): Make sure that all references to
7109            layers and session are removed otherwise we may get a resource
7110            leak
7111    
7112            * test/test_map.py (TestMapAddLayer.test_add_layer)
7113            (TestMapWithContents.setUp): Instantiate a session so that we can
7114            use it to open shapefiles.
7115            (TestMapWithContents.tearDown): Make sure that all references to
7116            layers, maps and sessions are removed otherwise we may get a
7117            resource leak
7118            ("__main__"): use support.run_tests() so that more info about
7119            uncollected garbage is printed
7120    
7121            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
7122            session's OpenShapefile method to open shapefiles
7123            ("__main__"): use support.run_tests() so that more info about
7124            uncollected garbage is printed
7125    
7126            * test/test_selection.py (TestSelection.tearDown): Make sure that
7127            all references to the session and the selection are removed
7128            otherwise we may get a resource leak
7129            (TestSelection.get_layer): Instantiate a session so that we can
7130            use it to open shapefiles.
7131            ("__main__"): use support.run_tests() so that more info about
7132            uncollected garbage is printed
7133    
7134            * test/test_session.py (TestSessionBase.tearDown)
7135            (TestSessionWithContent.tearDown): Make sure that all references
7136            to the session and layers are removed otherwise we may get a
7137            resource leak
7138            (TestSessionWithContent.setUp): Use the session's OpenShapefile
7139            method to open shapefiles
7140    
7141    2003-04-24  Jonathan Coles   <[email protected]>
7142    
7143            * Thuban/Model/load.py (XMLReader.read): Should have been checking
7144            if the file_or_filename object had the 'read' attribute.
7145    
7146    2003-04-23  Jonathan Coles   <[email protected]>
7147    
7148            * Thuban/Model/resource.py: Fixes RTbug #1813.
7149            (ReadProjFile): Add documentation about which exceptions are raised.
7150            Always pass the exceptions up to the caller.
7151            (GetProjFiles): If the directory can't be read return an empty list.
7152            If any of the proj files can't be read skip that file and go
7153            on to the next one.
7154    
7155            * test/test_proj.py: Added test cases to handle nonexistent files,
7156            unreadable files, and files that don't parse correctly.
7157    
7158    2003-04-23  Jonathan Coles   <[email protected]>
7159    
7160            Projection dialog. Allows the user to select from a list
7161            of projection templates and optionally edit them and save new ones.
7162    
7163            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
7164            (ProjPanel): Base class for projection specific panels.
7165            (TMPanel): Projection panel for Transverse Mercartor.
7166            (UTMPanel): Projection panel for Universal Transverse Mercartor.
7167            (LCCPanel): Projection panel for Lambert Conic Conformal.
7168            (GeoPanel): Projetion panel for Geographic Projection.
7169    
7170    2003-04-23  Jonathan Coles   <[email protected]>
7171    
7172            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
7173            promote symmetry. There now exists XMLReader and XMLWriter.
7174            (XMLReader.read): New. Call to read the given file descriptor or
7175            filename.
7176            (XMLReader.close): New. Make sure the file is closed.
7177            (XMLReader.GetFileName): New. Return just the file name that is being
7178            read from.
7179            (XMLReader.GetDirectory): New. Return just the directory of the file
7180            that is being read.
7181            (XMLReader.AddDispatchers): New. Take a dictionary which contains
7182            the names of functions to call as the XML tree is parsed.
7183            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
7184            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
7185            (SessionLoader): Removed class variables start_dispatcher and
7186            end_dispatcher since this functionality is now part of a class
7187            instance. Fixes RTbug #1808.
7188            (SessionLoader.__init__): Add dispatcher functions.
7189            (load_xmlfile): Code was moved into the XMLReader.read().
7190            (load_session): Use modified SessionLoader.
7191    
7192            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
7193            map's projection.
7194    
7195            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
7196            GetAllParameters.
7197            (Projection.GetParameter): Returns the value for the given parameter.
7198    
7199            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
7200            (GetProjFiles): Renamed from GetProjections. Now returns a list
7201            of ProjFile objects.
7202            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
7203            a list of ProjFile objects whose files are not user defined.
7204            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
7205            list of ProjFile objects whose files are user defined.
7206            (ProjFileReader): Extend new XMLReader.
7207    
7208            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
7209            promote symmetry.
7210    
7211            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
7212            control instead of a wxComboBox. wxChoice controls do not generate
7213            events as the uses highlights possible choices which fixes problems
7214            with resizing the dialog when the use selects an option.
7215    
7216            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
7217            control instead of a wxComboBox.
7218    
7219            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
7220            dialog.
7221    
7222            * test/test_proj.py (TestProjection.test): New tests for GetParameter
7223            method.
7224    
7225    2003-04-22  Bernhard Herzog  <[email protected]>
7226    
7227            * Thuban/UI/mainwindow.py: Remove some unused imports and global
7228            constants
7229    
7230            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
7231            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
7232    
7233    2003-04-17  Bernhard Herzog  <[email protected]>
7234    
7235            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
7236            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
7237            anymore.
7238            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
7239            (Layer.ShapeType, Layer.Shape): No need to call
7240            self.open_shapefile since it's always called in __init__
7241    
7242            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
7243            In wxPython 2.4 there's no need to extend MainLoop anymore since
7244            wxPython itself makes sure OnExit is called.
7245    
7246    2003-04-16  Jonathan Coles   <[email protected]>
7247    
7248            Initial putback of projection management code. Includes new
7249            classes to read and write projection files. The current load
7250            and save classes were abstracted a bit so they could be reused.
7251            The Projection class was extended to provide new methods and
7252            have a name.
7253    
7254            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
7255            general XML reading methods that were part of ProcessSession.
7256    
7257            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
7258            name.
7259            (ProjFile): New. Represents a file that contains projection
7260            information.
7261    
7262            * Thuban/Model/resource.py: New. Contains general utilities
7263            for read and writing projection files.
7264    
7265            * Thuban/Model/save.py (XMLSaver): New. Contains all the
7266            general XML writing methods that were part of SessionSaver.
7267            (SessionSaver): Renamed from Saver.
7268    
7269            * test/test_proj.py: New test cases for the projection
7270            file read and write functions.
7271    
7272    2003-04-16  Jonathan Coles   <[email protected]>
7273    
7274            * Thuban/Model/classification.py: Use repr() around values
7275            in the ClassGroup*.__repr__() methods so it is clearer when
7276            a value is a string and when it is a number.
7277    
7278            * test/test_load.py: Rework the classification test to test
7279            that we can load old files.
7280            (testLabels): Test a file where the groups have labels.
7281    
7282    2003-04-16  Bernhard Herzog  <[email protected]>
7283    
7284            Safer implementation of the performance enhancements of the
7285            low-level renderer:
7286            
7287            * extensions/thuban/wxproj.cpp (extract_projection)
7288            (extract_pointer): Rename extract_projection to extract_pointer
7289            and redefine its purpose to return the pointer stored in a CObject
7290            returned by the object's cobject method. Update all callers.
7291            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
7292            handling of these low-level parameters so that each s_draw_info
7293            instance is handled as a CObject at python level that also
7294            contains real references to the actual python objects which
7295            contain the values in the struct. Add free_draw_info as the
7296            destructor.
7297            (draw_polygon_shape): Add the py_draw_info parameter which must a
7298            cobject containing an s_draw_info pointer.
7299    
7300            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
7301            method to instantiat the low-level render parameter
7302            (MapRenderer.draw_shape_layer): Use the new method. Remove some
7303            commented out code.
7304            (MapRenderer.draw_polygon_shape): Make the first parameter not the
7305            layer but the low-level render parameter
7306            (ScreenRenderer.draw_shape_layer): Use the low-level render
7307            parameter.
7308    
7309    2003-04-15  Jonathan Coles   <[email protected]>
7310    
7311            * Thuban/Model/classification.py: Implemented __repr__ for
7312            the ClassGroup* classes to make debugging a bit easier.
7313            (ClassGroup.SetLabel): Check that the string is an instance
7314            of StringTypes not StringType. Accounts for Unicode strings.
7315    
7316            * Thuban/Model/color.py: Implemented __repr__ to make
7317            debugging a bit easier.
7318    
7319            * Thuban/Model/save.py (Saver.write_classification): Need to
7320            save the group label.
7321    
7322            * test/test_load.py (testClassification): New. Loads the
7323            iceland_sample_test.thuban file and checks if it was loaded
7324            correctly.
7325    
7326    2003-04-15  Jonathan Coles   <[email protected]>
7327    
7328            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
7329            to improve rendering performance by initializing the variables
7330            that are not change each time draw_polygon_shape() is called.
7331            The values are stored in a global struct draw_info.
7332            (draw_polygon_shape): Removed initialization code that is
7333            now in draw_polygon_init().
7334    
7335            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
7336            drawing initialization call to draw_polygon_init()
7337            (MapRenderer.draw_polygon_shape): Use new signature of
7338            draw_polygon_shape.
7339    
7340            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
7341            weirdness by setting the range to (1, maxint).
7342    
7343            * Thuban/Model/classification.py (ClassGroupProperties): Make
7344            instance variables private and optimize comparison operator
7345            by first checking if the color references are the same.
7346            (ClassGroupSingleton): Make instance variables private.
7347            (ClassGroupRange): Make instance variables private.
7348    
7349            * HOWTO-Release: Filled in missing steps for releasing packages.
7350    
7351    2003-04-15  Bernhard Herzog  <[email protected]>
7352    
7353            First stab at internationalized messages:
7354    
7355            * Thuban/__init__.py (_): Implement the translation function for
7356            real using the python gettext module.
7357    
7358            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
7359            translate empty strings.
7360    
7361            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7362            Add a missing space to a warning message
7363    
7364            * po/README: New. Notes about the management of the translation
7365            files.
7366    
7367            * po/Makefile: New. Makefile to help manage the translation files.
7368    
7369            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
7370    
7371            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
7372            translations and support files in po/
7373    
7374            * setup.py (data_files): Add the *.mo files to the data_files too
7375    
7376            * README: Add note about the translations when building from CVS
7377    
7378    2003-04-14  Jonathan Coles   <[email protected]>
7379    
7380            * Thuban/UI/dock.py: Fixes some window resizing problems most
7381            noticable under windows. Always assume the button bitmaps will
7382            be there. Code clean up.
7383            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
7384            images for the dock/undock button to the same images.
7385            Work around for RTbug #1801.
7386    
7387            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
7388            be allowed to grow within the sizer. Fixes a bug under Windows
7389            where the toolbar wasn't being drawn.
7390    
7391    2003-04-14  Frank Koormann   <[email protected]>
7392    
7393            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
7394            Updated design to try to make the button functionality more
7395            transparent.
7396    
7397    2003-04-14  Jonathan Coles   <[email protected]>
7398    
7399            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
7400            finalize the intialization of the panel.
7401    
7402            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
7403            creation of the panel. Should be the last thing called in the
7404            initializer of a subclass.
7405    
7406            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
7407            set the current selections in the combo boxes. This is needed
7408            under Windows.
7409    
7410            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
7411            level panel to the dialog so that the background colors are
7412            consistent under Windows.
7413    
7414    2003-04-11  Jonathan Coles   <[email protected]>
7415    
7416            * Thuban/UI/classgen.py: Change color ramps to start at white
7417            not black.
7418    
7419            * Thuban/UI/legend.py: Enable/disable the legend buttons when
7420            the legend changes. Fixes RTbug #1793.
7421    
7422            * test/test_classification.py: Added test for copying of
7423            classifications.
7424    
7425    2003-04-11  Jonathan Coles   <[email protected]>
7426    
7427            * Thuban/UI/resource.py: New. Centralize the loading of resources
7428            such as bitmaps.
7429    
7430            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
7431            added images to the move buttons, added 'reverse' button.
7432            (CustomRampPanel.__init__): Added images to the move buttons.
7433            (GreyRamp): New. Generates a ramp from white to black.
7434            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
7435    
7436            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
7437            ID_PROPERTY_*.
7438            (Classifier.__init__): Minor changes to the layout.
7439            (Classifier._OnTitleChanged): Listen for when the user edits the
7440            title and update the dialog's title and the layer's title.
7441    
7442            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
7443    
7444            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
7445            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
7446            if the layer's title changes.
7447    
7448            * Thuban/UI/mainwindow.py: Added new menu item and associated code
7449            to open a dialog to rename the map.
7450            (MainWindow): Use new resource class to import bitmaps.
7451    
7452    2003-04-11  Jonathan Coles   <[email protected]>
7453    
7454            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
7455            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
7456            Resources/Bitmaps/group_use_none.xpm,
7457            Resources/Bitmaps/group_use_not.xpm,
7458            Resources/Bitmaps/hide_layer.xpm,
7459            Resources/Bitmaps/layer_properties.xpm,
7460            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
7461            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
7462            New.
7463    
7464    2003-04-10  Jonathan Coles   <[email protected]>
7465    
7466            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
7467            Should pass group to ClassGroup constructor.
7468    
7469    2003-04-10  Jonathan Coles   <[email protected]>
7470    
7471            * Thuban/Model/classification.py: (ClassGroup): Move all the common
7472            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
7473            here. Implement SetVisible(), IsVisible().
7474            (ClassGroup.__init__): Add group parameter which acts as a copy
7475            constructor.
7476    
7477            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
7478            "Visible" check boxes.
7479            (Classifier): Rename the buttons and refactor the code to match
7480            the new labels.
7481    
7482            * Thuban/UI/legend.py: Classify button is now called "Properties".
7483            Refactored the code to change variable names.
7484            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
7485    
7486            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
7487            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
7488            renamed to MainWindow.LayerEditProperties.
7489            (MainWindow.ToggleLegend): Don't include map name in legend title.
7490            (MainWindow.SetMap): Added the map name to the window title.
7491            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
7492            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
7493            Functionality is found in the layer properties dialog.
7494    
7495            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
7496            draw visible groups.
7497    
7498    2003-04-09  Jonathan Coles   <[email protected]>
7499    
7500            * Thuban/UI/classgen.py: Modifications to allow simple
7501            addition and selection of new color schemes.
7502            (MonochromaticRamp): New. Generates a ramp between two colors.
7503            (RedRamp): New. Generates a ramp of all red.
7504            (GreenRamp): New. Generates a ramp of all green.
7505            (BlueRamp): New. Generates a ramp of all blue.
7506    
7507    2003-04-09  Jonathan Coles   <[email protected]>
7508    
7509            * Thuban/Model/classification.py (Classification.__deepcopy__):
7510            Need to copy over field and fieldType attributes.
7511    
7512            * Thuban/Model/table.py (Table.field_range): New. Retrive the
7513            maximum and minimum values over the entire table for a given
7514            field.
7515            (Table.GetUniqueValues): New. Retrieve all the unique values
7516            in the table for a given field.
7517    
7518            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
7519            (GenUniquePanel): New. Controls to allow the user to select
7520            which unique field values they would like in the classification.
7521            (CustomRampPanel): Code that was in ClassGenDialog that allows
7522            the user to select the properties for a custom ramp.
7523            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
7524    
7525            * Thuban/UI/classifier.py: Removed a lot of debugging code.
7526            (Classifier._SetClassification): Callback method so that the
7527            class generator can set the classification in the grid.
7528            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
7529            editing of a group properties class into a wxWindows control.
7530    
7531            * Thuban/UI/dock.py: It was decided that if the user closes
7532            a dockable window the window should simply hide itself. That
7533            way if the user wants to show the dock again it appears in the
7534            same place as it was when it was closed.
7535            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
7536            (DockableWindow._OnButtonClose): Hide the window instead of
7537            destroying it.
7538            (DockableWindow._OnClose): Hide the window instead of
7539            destroying it.
7540    
7541            * Thuban/UI/legend.py (LegendTree): Use a private method to
7542            consistently set the font and style of the text. Fixes RTbug #1786.
7543    
7544            * Thuban/UI/mainwindow.py: Import just the Classifier class.
7545    
7546    2003-04-07  Bernhard Herzog  <[email protected]>
7547    
7548            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
7549            to the map module
7550    
7551    2003-04-07  Bernhard Herzog  <[email protected]>
7552    
7553            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
7554            favor of ToggleSessionTree
7555            (MainWindow.ToggleSessionTree): New method to toggle visibility of
7556            the session tree.
7557            (MainWindow.SessionTreeShown): New method to return whether the
7558            session tree is currently shown.
7559            (MainWindow.ToggleLegend): New method to toggle visibility of the
7560            legend
7561            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
7562            LegendShown
7563            (MainWindow.LegendShown): New method to return whether the legend
7564            is currently shown.
7565            (_method_command): Add checked parameter so we can define check
7566            menu items
7567            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
7568            mainwindow methods.
7569            (show_session_tree, show_legend commands): Removed.
7570            (toggle_session_tree, toggle_legend commands): New commands to
7571            toggle the visibility of the dialogs
7572    
7573    2003-04-07  Jonathan Coles   <[email protected]>
7574    
7575            * Thuban/UI/classgen.py: Fix Windows problem.
7576    
7577            * Thuban/UI/dock.py: Fix Windows problem.
7578    
7579            * Thuban/UI/mainwindow.py: Use False instead of false.
7580            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
7581    
7582    2003-04-07  Jonathan Coles   <[email protected]>
7583    
7584            Since we now say that the order of the groups in a classification
7585            matters, it makes sense to be able to manipulate that order. Most
7586            of the changes to Thuban/Model/classification.py are to that end.
7587    
7588            * Thuban/Model/classification.py (Classification.AppendGroup,
7589            Classification.InsertGroup, Classification.ReplaceGroup,
7590            Classification.RemoveGroup, Classification.GetGroup): Do as the
7591            names imply.
7592            (Classification.FindGroup): This was called GetGroup, but GetGroup
7593            takes an index, while FindGroup takes a value.
7594            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
7595            REFERENCE. Currently there is a cyclic reference between the layer
7596            and its classification. If the classification doesn't need to know
7597            its owning layer we can change this, since it may make sense to be
7598            able to use the same classification with different layers.
7599    
7600            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
7601    
7602            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
7603            not AddGroup()
7604    
7605            * Thuban/UI/classifier.py: Now that we can depend on the order in
7606            a Classification and have methods to manipulate that order we don't
7607            need to use our own data structures in the grid. We can simply make
7608            the grid/table access the information they need from a copy of
7609            the classification object.
7610            (Classifier._OnCloseBtn): Event handler for when the user clicks
7611            'Close'. This is needed so if the user applies changes and then
7612            continues to change the table the user has the option of discarding
7613            the most recent changes and keeping what they applied.
7614    
7615            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
7616            into the same group.
7617    
7618            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
7619            with a really old version of proj, PJ_VERSION won't even be defined.
7620            If it isn't defined then just compile so that the function always
7621            returns Py_False.
7622    
7623            * test/test_classification.py: Fix tests to use the renamed methods.
7624            Still need to write tests for the new methods.
7625    
7626    2003-04-04  Jonathan Coles   <[email protected]>
7627    
7628            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
7629            call to SetSelection out of the method and before the call
7630            to __SelectField in __init__. This prevents a recursion of events
7631            when _OnFieldSelect is triggered by the user.
7632    
7633    2003-04-04  Jonathan Coles   <[email protected]>
7634    
7635            * Thuban/Model/classification.py: Rename Color.None to
7636            Color.Transparent.
7637            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
7638            Don't bother copying the color, since Colors are immutable.
7639    
7640            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
7641            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
7642            Thuban/UI/renderer.py, Thuban/UI/view.py:
7643            Rename Color.None to Color.Transparent.
7644        
7645            * test/test_classification.py, test/test_load.py: Rename Color.None
7646            to Color.Transparent.
7647    
7648    2003-04-04  Jonathan Coles   <[email protected]>
7649    
7650            * Thuban/Model/classification.py: Fix assert calls.
7651            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
7652            Copy the color parameter rather than hold onto a reference.
7653    
7654            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
7655            the color object.
7656            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
7657            are sure there exists only one refernce to Color.None in the system.
7658            This allows us to use 'is' rather than the comparision functions.
7659            
7660            * Thuban/Model/save.py: Fix assert calls.
7661            
7662            * Thuban/UI/classifier.py: Fix assert calls.
7663            (ClassGrid._OnCellDClick): Call up to the classifier to open the
7664            dialog to edit the groups properties.
7665            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
7666            correctly if a cell is resized.
7667            (ClassTable.SetClassification): New. Changes the classification
7668            that is in the table.
7669            (ClassTable.__SetRow): Allow groups to be prepended.
7670            (Classifier): New code for opening the EditProperties and
7671            GenerateRanges dialogs.
7672            (SelectPropertiesDialog.__GetColor): Only set the color in the
7673            color dialog if the current color is not None.
7674            
7675            * Thuban/UI/dock.py: Fix assert calls.
7676            
7677            * Thuban/UI/legend.py: Fix assert calls.
7678            
7679            * Thuban/UI/renderer.py: Fix assert calls.
7680            
7681            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
7682            classifications.
7683            (GenRangePanel): Panel specific to range generation.
7684            (GenSingletonPanel): Panel specific to singleton generation.
7685            (ClassGenerator): Class responsible for actually generating
7686            the classification from the data gathered in the dialog box.
7687            (PropertyRamp): Generates properties whose values range from
7688            a starting property to an ending property.
7689    
7690    2003-04-03  Bernhard Herzog  <[email protected]>
7691    
7692            * test/support.py (print_garbage_information): New function that
7693            prints information about still connected messages and memory
7694            leaks.
7695            (run_suite): Removed.
7696            (run_tests): New function for use as a replacement of
7697            unittest.main in the test_* files. This one calls
7698            print_garbage_information at the end.
7699    
7700            * test/runtests.py (main): Use support.print_garbage_information
7701    
7702            * test/test_layer.py: Use support.run_tests instead of
7703            unittest.main so we get memory leak information
7704            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
7705            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
7706            (TestLayerLegend.test_visibility): Call the layer's Destroy method
7707            to fix a memory leak.
7708    
7709            * test/test_classification.py: Use support.run_tests instead of
7710            unittest.main so we get memory leak information
7711            (TestClassification.test_classification): Call the layer's Destroy
7712            method to fix a memory leak.
7713    
7714    2003-04-02  Bernhard Herzog  <[email protected]>
7715    
7716            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
7717            Handle the reference counts of the return value and errors in
7718            PyArg_ParseTuple correctly.
7719    
7720            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
7721            sure the filename is absolute to avoid problems when saving the
7722            session again
7723    
7724            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
7725    
7726    2003-04-01  Jonathan Coles   <[email protected]>
7727    
7728            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
7729            that there actually are points in the returned list of points
7730            before trying to index into the list. The list may be empty if
7731            the shape is a Null Shape.
7732    
7733    2003-04-01  Bernhard Herzog  <[email protected]>
7734    
7735            * test/test_map.py: Don't use from <module> import *
7736    
7737    2003-04-01  Jonathan Coles   <[email protected]>
7738    
7739            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
7740            LAYER_LEGEND_CHANGED
7741    
7742            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
7743            self.Destroy() to close the window after yesterday's changes.
7744    
7745            * test/test_map.py, test/test_session.py: Fix messages that
7746            are sent from maps and layers.
7747    
7748    2003-03-31  Jonathan Coles   <[email protected]>
7749    
7750            * Thuban/UI/classifier.py: Commented out some debugging statements.
7751            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
7752            RTbug #1769.
7753    
7754            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
7755            position (although position doesn't work yet under GTK).
7756            (DockableWindow.Destroy): New. Called when the window must be
7757            closed. Namely needed when the DockFrame closes and must close
7758            its children.
7759            (DockFrame): Listen for EVT_CLOSE and destroy all children.
7760    
7761            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
7762            when then window is told to close.
7763            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
7764            comment in source for more info.
7765    
7766            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
7767    
7768            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
7769            symmetry with other such methods.
7770            (MainWindow.ShowLegend): Show the legend docked by default.
7771    
7772    2003-03-28  Jonathan Coles   <[email protected]>
7773    
7774            * Thuban/UI/classifier.py: Support for highlighting a specific
7775            group within the grid when the classification dialog is opened.
7776            Also contains a lot of debugging printouts which will later
7777            be removed.
7778    
7779            * Thuban/UI/dock.py: Complete rework on the dock code so that
7780            that it is fairly removed from the rest of the Thuban application.
7781            It is easy to add new docks which the rest of the program having
7782            to be aware of them.
7783    
7784            * Thuban/UI/legend.py: Modifications to support selecting a
7785            specific group in the classification dialog. Changed how layers
7786            are drawn when the layer is visible/invisible.
7787    
7788            * Thuban/UI/mainwindow.py: Removed legend specific code and
7789            replaced it with calls to the new dock code.
7790    
7791            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
7792            to check if scale > 0. Trying to track down a divide by zero.
7793    
7794    2003-03-26  Jonathan Coles   <[email protected]>
7795    
7796            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
7797            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
7798            now part of DockableWindow.
7799            (LegendPanel.DoOnSelChanged): Select the current layer in the
7800            map.
7801            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
7802            with the selected layer and/or group.
7803    
7804    2003-03-26  Jonathan Coles   <[email protected]>
7805    
7806            This putback contains the code for dockable windows. There is
7807            no support in wxWindows as of this date for windows that can
7808            attach themselves to other windows.
7809    
7810            The current model contains a DockableWindow which has a parent
7811            window for when it is detached and a dock window that it puts
7812            its contents in when it is docked. The contents of a DockableWindow
7813            must be a DockPanel. DockPanel itself derives from wxPanel.
7814    
7815            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
7816            message, not a LAYER_LEGEND_CHANGED message.
7817    
7818            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
7819    
7820            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
7821            as one of the style properties for the fieldTypeText item to
7822            be sure that its size is correct when the text changes.
7823    
7824            * Thuban/UI/dock.py: New. Classes for the DockPanel and
7825            DockableWindow.
7826    
7827            * Thuban/UI/legend.py: Added some more buttons and made the
7828            LegendPanel a DockPanel.
7829    
7830            * Thuban/UI/mainwindow.py: Added sash windows to the main window
7831            and supporting functions for manipulating the sashes.
7832            (MainWindow.ShowLegend): Create a DockableWindow with the
7833            LegendPanel as the contents.
7834    
7835            * Thuban/UI/messages.py: Added DOCKABLE_* messages
7836    
7837            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
7838            not LAYER_LEGEND_CHANGED, messages.
7839    
7840    2003-03-25  Jonathan Coles   <[email protected]>
7841    
7842            * setup.py: Added custom script bdist_rpm_build_script so that
7843            when the rpm is built the path to wx-config is correct.
7844    
7845            * setup.cfg: Added line saying to use the custom build script
7846    
7847    2003-03-20  Jonathan Coles   <[email protected]>
7848    
7849            Initial implementation of the Legend.
7850    
7851            * Thuban/UI/legend.py: New. Creates a window that shows the map's
7852            Legend information and allows the user to add/modify classifications
7853            and how the layers are drawn on the map.
7854    
7855            * setup.py: New command 'build_docs' which currently uses
7856            happydoc to generate html documentation for Thuban.
7857    
7858            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
7859            Returns a string which is appropriately describes the group.
7860    
7861            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
7862            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
7863    
7864            * Thuban/Model/map.py (Map): Rename messages and use new, more
7865            specific, messages.
7866    
7867            * Thuban/Model/messages.py: New message to indicate that a layer's
7868            data has changed (LAYER_CHANGED). New map messages to indicate
7869            when layers have been added/removed/changed or if the stacking order
7870            of the layers has changed.
7871    
7872            * Thuban/Model/session.py: Rename and use new messages.
7873    
7874            * Thuban/UI/classifier.py: Remember if any changes have actually
7875            been applied so that if the dialog is cancelled without an application
7876            of changes we don't have to set a new classification.
7877            (ClassDataPreviewer): Pulled out the window specific code and put it
7878            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
7879            symbols on any DC.
7880            
7881            * Thuban/UI/mainwindow.py: New code to open the legend.
7882    
7883            * Thuban/UI/view.py: Use new message names.
7884    
7885    2003-03-19  Jonathan Coles   <[email protected]>
7886    
7887            * Thuban/UI/main.py (verify_versions): New. Checks the versions
7888            of Python, wxPython, and some other libraries.
7889    
7890            * extensions/thuban/wxproj.cpp (check_version): Checks the given
7891            version against what wxproj was compiled with.
7892            (check_version_gtk): If wxproj was compiled with gtk then check
7893            the given version against the version of the gtk library
7894            currently being used.
7895    
7896    2003-03-14  Bernhard Herzog  <[email protected]>
7897    
7898            * test/test_command.py: Run the tests when the module is run as a
7899            script
7900    
7901    2003-03-14  Bernhard Herzog  <[email protected]>
7902    
7903            Implement selection of multiple selected shapes in the same layer:
7904    
7905            - Introduce a new class to hold the selection. This basically
7906              replaces the interactor which was nothing more than the
7907              selection anyway. A major difference is of course that the new
7908              selection class supports multiple selected shapes in one layer
7909            
7910            - Move the object that represents the selection from the
7911              application to the canvas. The canvas is a better place than the
7912              application because the selection represents which shapes and
7913              layer of the map displayed by the canvas are selected and
7914              affects how the map is drawn.
7915    
7916            - Make the selection and its messages publicly available through
7917              the mainwindow.
7918    
7919            - The non-modal dialogs do not get a reference to the interactor
7920              anymore as they can simply refer to their parent, the
7921              mainwindow, for the what the interactor had to offer.
7922    
7923            * Thuban/UI/selection.py: New module with a class to represent the
7924            selection.
7925    
7926            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
7927            these unused messages
7928    
7929            * Thuban/UI/application.py (ThubanApplication.OnInit)
7930            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
7931            interactor is gone now.
7932            (ThubanApplication.CreateMainWindow): There is no interactor
7933            anymore so we pass None as the interactor argument for now for
7934            compatibility.
7935    
7936            * Thuban/UI/view.py (MapCanvas.delegated_messages)
7937            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
7938            Unsubscribe, delegate messages according to the delegated_messages
7939            class variable.
7940            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
7941            attributes from instance variables as described with the
7942            delegated_methods class variable.
7943            (MapCanvas.__init__): New instance variable selection holding the
7944            current selection
7945            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
7946            pass them on to the renderer
7947            (MapCanvas.SetMap): Clear the selection when a different map is
7948            selected.
7949            (MapCanvas.shape_selected): Simple force a complete redraw. The
7950            selection class now takes care of only issueing SHAPES_SELECTED
7951            messages when the set of selected shapes actually does change.
7952            (MapCanvas.SelectShapeAt): The selection is now managed in
7953            self.selection
7954    
7955            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
7956            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
7957            Unsubscribe, delegate messages according to the delegated_messages
7958            class variable.
7959            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
7960            attributes from instance variables as described with the
7961            delegated_methods class variable.
7962            (MainWindow.__init__): The interactor as ivar is gone. The
7963            parameter is still there for compatibility. The selection messages
7964            now come from the canvas.
7965            (MainWindow.current_layer, MainWindow.has_selected_layer):
7966            Delegate to the the canvas.
7967            (MainWindow.LayerShowTable, MainWindow.Classify)
7968            (MainWindow.identify_view_on_demand): The dialogs don't need the
7969            interactor parameter anymore.
7970    
7971            * Thuban/UI/tableview.py (TableFrame.__init__)
7972            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
7973            (LayerTableFrame.row_selected): The interactor is gone. It's job
7974            from the dialog's point of view is now done by the mainwindow,
7975            i.e. the parent. Subscribe to SHAPES_SELECTED instead
7976            of SELECTED_SHAPE
7977            
7978            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
7979            is gone. It's job from the dialog's point of view is now done by
7980            the mainwindow, i.e. the parent.
7981            
7982            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
7983            gone. It's job from the dialog's point of view is now done by the
7984            mainwindow, i.e. the parent.
7985    
7986            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
7987            gone. It's job from the dialog's point of view is now done by the
7988            mainwindow, i.e. the parent.
7989            (SessionTreeCtrl.__init__): New parameter mainwindow which is
7990            stored as self.mainwindow. The mainwindow is need so that the tree
7991            can still subscribe to the selection messages.
7992            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
7993            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
7994            selection is now accessible through the mainwindow. Subscribe to
7995            SHAPES_SELECTED instead of SELECTED_SHAPE
7996    
7997            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
7998            SHAPES_SELECTED message now.
7999            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
8000            so deal with multiple shapes
8001            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
8002            gone. It's job from the dialog's point of view is now done by the
8003            mainwindow, i.e. the parent.
8004    
8005            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
8006            parameter is now a list of shape ids.
8007            (RecordTable.SetTable): The second parameter is now a list of
8008            indices.
8009    
8010            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
8011            selected_shape parameter and ivar to selected_shapes. It's now a
8012            list of shape ids.
8013            (MapRenderer.draw_label_layer): Deal with multiple selected
8014            shapes. Rearrange the code a bit so that the setup and shape type
8015            distinctions are only executed once.
8016    
8017            * test/test_selection.py: Test cases for the selection class
8018    
8019    2003-03-11  Jonathan Coles   <[email protected]>
8020    
8021            * Thuban/Model/load.py: Temporary fix so that the xml reader
8022            doesn't cause Thuban to crash.
8023    
8024            * Thuban/Model/layer.py: Handle the cyclic references between
8025            a layer and its classification better, and be sure to disconnect
8026            the classification from the layer when the layer is destroyed
8027            so that we don't maintain a cyclic reference that may not be
8028            garbage collected.
8029    
8030            * Thuban/Model/classification.py: See comment for layer.py.
8031    
8032    2003-03-12  Jan-Oliver Wagner <[email protected]>
8033    
8034            * HOWTO-Release: New. Information on the steps for releasing
8035            a new version of Thuban.
8036    
8037    2003-03-11  Jonathan Coles   <[email protected]>
8038    
8039            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
8040            Use True instead of true.
8041            (Classifier): Should have a single panel in which all the controls lie.
8042    
8043            * Thuban/UI/proj4dialog.py: Add normal border.
8044    
8045            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
8046    
8047            * Thuban/UI/mainwindow.py: Use True instead of true.
8048    
8049            * setup.py: Update some definitions to use wxWindows2.4 files
8050    
8051            * Data/iceland_sample_class.thuban: Fixed file so that the
8052            field_type information is present.
8053    
8054    2003-03-10  Jonathan Coles   <[email protected]>
8055    
8056            * Thuban/UI/classifier.py (Classifier.__init__): Make the
8057            field type label grow so that when the text changes the
8058            size is updated correctly. This may be a wxWindows bug.
8059    
8060    2003-03-10  Jonathan Coles   <[email protected]>
8061    
8062            * Thuban/UI/application.py: Changed SESSION_CHANGED to
8063            SESSION_REPLACED.
8064    
8065            * Thuban/UI/classifier.py: Wrap text with _().
8066            (ClassGrid.CreateTable): Set dimensions and size hints here,
8067            instead of in Reset, so we only set the size once.
8068    
8069            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
8070    
8071            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
8072            Call Close() instead of Shutdown().
8073    
8074            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
8075    
8076            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
8077            Go back to using OnClose() instead of Shutdown().
8078    
8079    2003-03-10  Jonathan Coles   <[email protected]>
8080    
8081            * Thuban/UI/classifier.py (Classifier): SelectField() needed
8082            to know the old field index as well as the new one.
8083    
8084    2003-03-10  Jonathan Coles   <[email protected]>
8085    
8086            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
8087            to correctly set the table information and call this from
8088            __init__ and from _OnFieldSelect so that all the information
8089            is up to date when the dialog opens and when a field is changed.
8090    
8091    2003-03-10  Jonathan Coles   <[email protected]>
8092    
8093            * Thuban/Model/classification.py (Classification): Don't use
8094            layer's message function directly, use the ClassChanged() method
8095            when then classification changes. SetField/SetFieldType/SetLayer
8096            must keep the information about field name and field type in
8097            sync when an owning layer is set or removed.
8098    
8099            * Thuban/Model/layer.py: Added ClassChanged() so that the
8100            classification can tell the layer when its data has changed.
8101            (Layer.SetClassification): Accepts None as an arguement to
8102            remove the current classification and correctly handles
8103            adding a new classification.
8104    
8105            * Thuban/Model/load.py: Comment out print statement
8106    
8107            * test/test_classification.py, test/test_save.py: New and
8108            improved tests.
8109    
8110    2003-03-07  Jonathan Coles   <[email protected]>
8111    
8112            * Thuban/Model/classification.py: Implemented __copy__ and
8113            __deepcopy__ for ClassGroup* and ClassGroupProperites so
8114            they can easily be copied by the classifier dialog.
8115            (ClassGroupProperites.__init__): The default line color should
8116            have been Color.Black.
8117    
8118            * Thuban/UI/classifier.py: Setting and Getting table values now
8119            uses a consistent set of functions.
8120            (Classifier): Now non-modal. Has field type label which changes
8121            as the field changes. Keep track of buttons in a list so that
8122            we can enable/disable the buttons when the None field is selected.
8123            (SelectPropertiesDialog): Add buttons to make the colors transparent.
8124    
8125            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
8126            does what OnClose did, but can be called by the application to
8127            close a window. Needed when a session changes, and we have to
8128            close the classifier windows.
8129    
8130            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
8131            Shuts down open dialogs. Used when a new session is created
8132            or a session is opened.
8133            (MainWindow.SaveSession): Should only call application.SaveSession()
8134            if we don't call SaveSessionAs first.
8135            (MainWindow.Classify): Allow different classifier dialogs for
8136            different layers.
8137    
8138            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
8139            the parent class handle it. Add Shutdown() to unsubscibe from
8140            event notification and call the parent Shutdown(). This was
8141            necessary so the application can close the tree window.
8142    
8143    2003-03-06  Jonathan Coles   <[email protected]>
8144    
8145            * Thuban/Model/classification.py: Minor documentation changes,
8146            Addition of __eq__ and __ne__ methods.
8147            (Classification.SetLayer): prevent recursion between this method
8148            and Layer.SetClassification().
8149    
8150            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
8151    
8152            * Thuban/Model/layer.py (SetClassification): prevent recursion
8153            between this method and Classification.SetLayer().
8154    
8155            * test/test_classification.py, test/test_load.py,
8156            test/test_session.py: Fixed and added tests for the classification
8157            classes.
8158    
8159    2003-03-06  Bernhard Herzog  <[email protected]>
8160    
8161            * Thuban/UI/classifier.py (ClassGrid.__init__)
8162            (ClassGrid.CreateTable): Move the SetSelectionMode call to
8163            CreateTable because otherwise it triggers an assertion in
8164            wxPython/wxGTK 2.4.
8165    
8166    2003-03-05  Jonathan Coles   <[email protected]>
8167    
8168            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
8169    
8170            * Thuban/Model/load.py: import FIELDTYPE constants from table.
8171    
8172            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
8173    
8174            * Thuban/Model/table.py: Put FIELDTYPE constants back.
8175    
8176    2003-03-05  Jonathan Coles   <[email protected]>
8177    
8178            * Thuban/UI/classifier.py: Added class documentation.
8179            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
8180            Store just the groups in the table and generate the other
8181            column information when it is requested. Add "None" field
8182            to pull-down to select no classification.
8183    
8184            * Thuban/common.py: Moved FIELDTYPE constants from table.py
8185            (Str2Num): Only catch ValueError exceptions.
8186    
8187            * Thuban/Model/classification.py: Class documentation. Renaming
8188            of methods with Stroke to Line. Groups are stored in a single
8189            list with the default as the first element. Groups are searched
8190            in the order they appear in the list.
8191    
8192            * Thuban/Model/color.py: Documentation.
8193    
8194            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
8195            the kind of data represented by a field.
8196    
8197            * Thuban/Model/load.py (ProcessSession): Use proper string
8198            conversion function; fixes RTbug #1713.
8199    
8200            * Thuban/Model/save.py (Saver): Store field type information.
8201    
8202            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
8203            (Table): Add field_info_by_name() to retrieve field information
8204            by specifying the field name, not the number.
8205    
8206            * Thuban/UI/mainwindow.py: Function name changes.
8207    
8208            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
8209            get the layer classification once. Don't try to classify
8210            values when the field is None: just use the default properties.
8211    
8212            * Thuban/UI/view.py: Function name changes.
8213    
8214            * Doc/thuban.dtd: Add field_type attribute to a classification.
8215    
8216    2003-03-04  Bernhard Herzog  <[email protected]>
8217    
8218            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
8219            the fill and stroke layer attributes optional with suitable
8220            default values. Add the stroke_width layer attribute. Use correct
8221            syntax for empty elements. Make the attribute list for labels
8222            refer to the label element.
8223    
8224    2003-03-04  Bernhard Herzog  <[email protected]>
8225    
8226            * setup.py (thuban_build_py.build): Add a comment about distutils in
8227            Python 2.3 containing some of the functionality we implement in
8228            setup.py ourselves.
8229    
8230            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
8231            before the selection mode. Doing it the other way round triggers
8232            an assertion in wxWindows.
8233    
8234            * Thuban/Model/save.py (escape): Fix typo in doc-string
8235    
8236            * Thuban/Model/classification.py: Remove unnecessary wxPython
8237            import
8238    
8239    2003-03-04  Jonathan Coles   <[email protected]>
8240    
8241            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
8242            Parameter 'value' should default to None.
8243    
8244            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
8245            the class attribute __classification is now private.
8246    
8247            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
8248            Classifier to ClassGrid. Added support for removing selected rows,
8249            which including code for keeping track of when cells are selected,
8250            and deselected.
8251            (ClassTable): Support for added/removing rows. Fixed a problem
8252            with __ParseInput whereby it would not allow strings (only numbers)
8253            to be entered.
8254            (Classifier): Added button and supporting code for removing
8255            selected rows.
8256    
8257    2003-02-27  Jonathan Coles   <[email protected]>
8258    
8259            * Thuban/common.py: Moved color conversion functions into
8260            Thuban/UI/common.py.
8261            (Str2Num): Now converts the float (not the string) to a long/int
8262            so that an exception isn't thrown.
8263    
8264            * Thuban/UI/common.py: Common functions used in several UI modules
8265    
8266            * Thuban/Model/classification.py: Changed the class hierarchy
8267            so that a Classification consists of Groups which return
8268            Properties when a value matches a Group.
8269    
8270            * Thuban/Model/layer.py: Fixed name resolution problem.
8271    
8272            * Thuban/Model/load.py: Use new Classification and Group functions.
8273    
8274            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
8275            failure.
8276            (Saver.write_classification): Use new Classification and Group
8277            functions.
8278    
8279            * Thuban/UI/classifier.py: Changes to use new Classification and Group
8280            functions. Fix to create a tuple with a single value instead of
8281            simply returning the value.
8282    
8283            * Thuban/UI/renderer.py: Use new Classification and Group functions.
8284            Use common.py functions.
8285    
8286            * Thuban/UI/tree.py: Use common.py functions.
8287            
8288            * test/test_classification.py: Use new Classification and Group
8289            classes.
8290    
8291    2003-02-24  Jonathan Coles   <[email protected]>
8292    
8293            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
8294            functions from Thuban color objects to wxWindow colour objects.
8295    
8296            * Thuban/Model/classification.py (Classification): Renamed
8297            GetProperties() to GetClassData(). Used the new iterator
8298            in TreeInfo().
8299            (ClassIterator): Iterator implementation to iterate over the
8300            ClassData objects in a classification object.
8301    
8302            * Thuban/Model/save.py (Saver.write_classificaton): Uses
8303            the new iterator to save the classification information.
8304    
8305            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
8306            for changing the stroke and fill colors and previewing the
8307            changes.
8308    
8309            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
8310            MainWindow.SaveSessionAs): Text string changes so the dialogs
8311            have more meaningful titles.
8312    
8313            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
8314            Classification method name from GetProperties to GetClassData.
8315    
8316            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
8317            instead of accessing now non-existent class variables.
8318    
8319    2003-02-24  Bernhard Herzog  <[email protected]>
8320    
8321            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
8322            unneeded Shape() call. Rendering is substantially faster without
8323            it and it avoids some problems with broken shape files.
8324    
8325    2003-02-20  Frank Koormann   <[email protected]>
8326    
8327            Force minimal size of identify and label dialogs. The autosizing
8328            looked too ugly.
8329    
8330            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
8331            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
8332            Set size of listctrl.
8333            * Thuban/UI/identifyview.py (IdentifyView.__init__):
8334            Set size of dialog.
8335    
8336    2003-02-19  Jonathan Coles   <[email protected]>
8337    
8338            * test/test_classification.py, test/test_layer.py,
8339            test/test_load.py, test/test_map.py, test/test_session.py:
8340            Updated the tests to use the new functions that are in the
8341            respective classes.
8342    
8343            * Thuban/Model/classification.py (Classification):
8344            Uses the new ClassData* classes. Modification messages are
8345            passed up to the parent layer (if it exists).
8346            (ClassData): New class to encapsulate the common data in each
8347            classification property.
8348            (ClassDataDefault): Represents the Default class. data.
8349            (ClassDataPoint): Represents a single class. data point
8350            (ClassDataRange): Represents a class. range
8351            (ClassDataMap): Represents a class. map (unused).
8352    
8353            * Thuban/Model/color.py: Added Color.None to represent something
8354            with no color. Color.Black represents the color black.
8355            (NoColor): Helper class derived from Color to represent something
8356            with no color.
8357    
8358            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
8359            stroke_width attributes. Made the 'classification' attribute private.
8360            New methods for setting/getting the classification.
8361    
8362            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
8363            to get the classifcation and use the new ClassData* classes to
8364            hold the classification data. Use Str2Num to convert numbers
8365            properly.
8366    
8367            * Thuban/Model/save.py (Saver): Use new Color and Classification
8368            methods
8369    
8370            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
8371            custom grid.
8372            (ClassTable): Support for editing Values and Labels and for
8373            changing what type (point or range) of data is stored in each
8374            property based on how the user enters the data.
8375            (Classifier): Support for saving the new classifications and
8376            launching the dialog to edit a property.
8377            (SelectPropertiesDialog): New class for editing the visual
8378            properties of a classification (stroke color, width, and fill color)
8379            (ClassPreviewer): Took the Draw method from ClassRenderer and
8380            made most of it into this new class. Intend to use this class in
8381            the SelectPropertiesDialog for previewing changes.
8382    
8383            * Thuban/UI/renderer.py: Use new Color and Classification methods.
8384    
8385            * Thuban/UI/tree.py: Formatting changes.
8386    
8387            * Doc/thuban.dtd: Add 'label' element
8388    
8389            * Thuban/common.py: New. Contains common routines used throughout
8390            the code.
8391            (Str2Num): Takes a string and converts it to the "best" type of
8392            number.
8393    
8394    2003-02-14  Bernhard Herzog  <[email protected]>
8395    
8396            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
8397            dragging flag is always set to 0 even when the tool implementation
8398            raises an exception
8399    
8400    2003-02-11  Bernhard Herzog  <[email protected]>
8401    
8402            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
8403            method to create a splash screen.
8404            (ThubanApplication.ShowMainWindow): New. Show the main window.
8405            Needed so the splash screen can display the mainwindow
8406            (ThubanApplication.OnInit): Call the
8407            new splash_screen method to determine whether the application
8408            should display a splash screen. If it displays a splash screen do
8409            not immediately show the main window.
8410    
8411    2003-02-11  Jonathan Coles  <[email protected]>
8412    
8413            * Thuban/Model/classification.py: Added import line to fix
8414            feature conflicts between running on python2.2 and python2.1.
8415    
8416            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
8417            onto the clinfo parameter, so removed the deepcopy().
8418    
8419    2003-02-10  Jonathan Coles  <[email protected]>
8420    
8421            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
8422            Added element_open variable to track opening and closing of tags
8423            so that tags that don't span more than one line are closed with
8424            /> instead of </tag_name>. Use the GetDefault*() methods of
8425            the Classification class.
8426    
8427            * Thuban/Model/classification.py (Classificaton): Added set and
8428            get methods for the default data. The class also takes a layer
8429            reference so that modification messages can be sent. Fixed the
8430            methods to use the new ClassData class.
8431            (ClassData): New class to encapsulate the classification data
8432    
8433            * Thuban/Model/layer.py (Layer): Remove the
8434            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
8435            SetDefault*() methods on the layer's classification object.
8436            (Layer.__init__): Use the new SetDefault*() methods in the
8437            Classification class.
8438    
8439            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
8440            object instead of a dictionary.
8441    
8442            * Thuban/UI/classifier.py (ClassRenderer): New class to
8443            draw the classifications in the dialog box's table.
8444            (Classifier): Modified to use the ClassRenderer class.
8445    
8446            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
8447            methods of the Classification class.
8448    
8449            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
8450            of the ClassData class.
8451    
8452            * test/test_classification.py, test/test_layer.py,
8453            test/test_map.py, test/test_session.py: Fix the tests to work
8454            with the above code changes.
8455    
8456    2003-02-03  Jonathan Coles  <[email protected]>
8457    
8458            * Thuban/Model/classification.py (Classification): Added getNull()
8459            to return the NullData reference
8460    
8461            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
8462            Layer.SetStrokeWidth): Modified these functions to change the
8463            null data in the classification rather than keep these values
8464            directly in the Layer class. Menu options to change these values
8465            work again.
8466    
8467    2003-01-28  Jonathan Coles  <[email protected]>
8468    
8469            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
8470            Fixed crashing problem on some systems. Dialog box shows
8471            classification data.
8472    
8473            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
8474            Colors in the tree view.
8475    
8476            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
8477            the tree info for classifications. Commented out unnecessary lines.
8478    
8479            * Thuban/Model/classification.py (Classification.TreeInfo): New
8480            function to add information about the classification into the
8481            tree view.
8482    
8483    2003-01-27  Jan-Oliver Wagner <[email protected]>
8484    
8485            * Thuban/__init__.py (_): New.
8486    
8487            * Thuban/Model/classification.py, Thuban/Model/extension.py,
8488            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
8489            Thuban/Model/session.py, Thuban/UI/application.py,
8490            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
8491            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
8492            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
8493            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
8494            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
8495    
8496  2003-01-27  Jonathan Coles  <[email protected]>  2003-01-27  Jonathan Coles  <[email protected]>
8497    
8498    * Thuban/Model/layer.py: Classification initialization calls.          * Thuban/Model/layer.py: Classification initialization calls.
8499    
8500    * Thuban/Model/classification.py: Created class to encapsulate          * Thuban/Model/classification.py: Created class to encapsulate
8501    a layer classification. Supports specific data points and          a layer classification. Supports specific data points and
8502    ranges.          ranges.
8503    
8504    * Thuban/Model/load.py: Added support for loading classification          * Thuban/Model/load.py: Added support for loading classification
8505    information.          information.
8506    
8507    * Thuban/Model/save.py: Added support for saving classification          * Thuban/Model/save.py: Added support for saving classification
8508    information.          information.
8509    
8510    * Thuban/UI/classifier.py: Initial class for a dialog box for          * Thuban/UI/classifier.py: Initial class for a dialog box for
8511    specifying classification information.          specifying classification information.
8512    
8513    * Thuban/UI/mainwindows.py: Support for opening the classifier          * Thuban/UI/mainwindows.py: Support for opening the classifier
8514    dialog.          dialog.
8515    
8516    * Thuban/UI/renderer.py: Support for drawing a layer with the          * Thuban/UI/renderer.py: Support for drawing a layer with the
8517    classification information.          classification information.
8518    
8519    * Data/iceland_sample_class.thuban: iceland_sample with          * Data/iceland_sample_class.thuban: iceland_sample with
8520    classification data.          classification data.
8521    
8522    * test/test_classification: Tests for the Classification class.          * test/test_classification: Tests for the Classification class.
8523    
8524  2002-12-09  Bernhard Herzog  <[email protected]>  2002-12-09  Bernhard Herzog  <[email protected]>
8525    
# Line 60  Line 8555 
8555          * Thuban/UI/mainwindow.py: Altered the order of tools in the          * Thuban/UI/mainwindow.py: Altered the order of tools in the
8556          toolbar: First now are all navigation tools (Zoom In/Out, Pan,          toolbar: First now are all navigation tools (Zoom In/Out, Pan,
8557          Full Extent).          Full Extent).
8558        
8559  2002-10-23  Bernhard Herzog  <[email protected]>  2002-10-23  Bernhard Herzog  <[email protected]>
8560    
8561          * setup.py (setup call): version now 0.1.3          * setup.py (setup call): version now 0.1.3
# Line 171  Line 8666 
8666          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe          * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
8667          VIEW_POSITION          VIEW_POSITION
8668    
8669  2002-09-04  Frank Koormann   <[email protected]>  2002-09-04  Frank Koormann  <[email protected]>
8670    
8671          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")          * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
8672    
# Line 258  Line 8753 
8753    
8754          * Thuban/Model/table.py (Table.write_record): New method to write          * Thuban/Model/table.py (Table.write_record): New method to write
8755          records.          records.
8756          (Table.__init__): Open the DBF file for writing too.          (Table.__init__): Open the DBF file for writing too.
8757    
8758          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value          * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
8759          into the underlying table.          into the underlying table.
# Line 296  Line 8791 
8791          * setup.py (ThubanInstall.run): Don't repr install_lib_orig          * setup.py (ThubanInstall.run): Don't repr install_lib_orig
8792          because thubaninit_contents will do it for us.          because thubaninit_contents will do it for us.
8793    
8794  2002-08-16      Jan-Oliver Wagner <[email protected]>  2002-08-16  Jan-Oliver Wagner <[email protected]>
8795    
8796          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if          * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
8797          tree window already open          tree window already open
# Line 424  Line 8919 
8919          * Thuban/UI/tree.py: We can now simply subscribe to the session's          * Thuban/UI/tree.py: We can now simply subscribe to the session's
8920          CHANGED channel to be informed of changes.          CHANGED channel to be informed of changes.
8921          (SessionTreeCtrl.session_channels): Not needed any longer.          (SessionTreeCtrl.session_channels): Not needed any longer.
8922          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):          (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
8923          Only have to (un)subscribe CHANGED          Only have to (un)subscribe CHANGED
8924    
8925          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.          * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
# Line 485  Line 8980 
8980          * Thuban/Model/layer.py (Layer.TreeInfo),          * Thuban/Model/layer.py (Layer.TreeInfo),
8981          Thuban/Model/extension.py (Extension.TreeInfo),          Thuban/Model/extension.py (Extension.TreeInfo),
8982          Thuban/Model/map.py (Map.TreeInfo),          Thuban/Model/map.py (Map.TreeInfo),
8983          Thuban/Model/session.py (Session.TreeInfo):          Thuban/Model/session.py (Session.TreeInfo):
8984          Add TreeInfo methods to implement the new tree view update scheme          Add TreeInfo methods to implement the new tree view update scheme
8985    
8986  2002-07-16  Bernhard Herzog  <[email protected]>  2002-07-16  Bernhard Herzog  <[email protected]>
# Line 566  Line 9061 
9061          * setup.py: In the setup call, make sure that the library          * setup.py: In the setup call, make sure that the library
9062          directories are under $prefix/lib not directly under $prefix.          directories are under $prefix/lib not directly under $prefix.
9063    
9064  2002-06-20      Jan-Oliver Wagner <[email protected]>  2002-06-20  Jan-Oliver Wagner <[email protected]>
9065    
9066          * Thuban/Model/extension.py: new module to handle extension objects.          * Thuban/Model/extension.py: new module to handle extension objects.
9067          * Thuban/Model/messages.py: new messages for extensions.          * Thuban/Model/messages.py: new messages for extensions.
# Line 795  Line 9290 
9290          * Thuban/UI/messages.py (VIEW_POSITION): New message for the          * Thuban/UI/messages.py (VIEW_POSITION): New message for the
9291          position in the statusbar          position in the statusbar
9292    
9293  2002-04-26      Frank Koormann <[email protected]>  2002-04-26  Frank Koormann <[email protected]>
9294    
9295          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data          * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
9296    
9297  2002-04-24      Frank Koormann <[email protected]>  2002-04-24  Frank Koormann <[email protected]>
9298            
9299          * Resources/Bitmaps/identify.xpm: shadow added          * Resources/Bitmaps/identify.xpm: shadow added
9300    
9301          * Resources/Bitmaps/fullextent.xpm: new          * Resources/Bitmaps/fullextent.xpm: new
           
 2002-04-22      Jan-Oliver Wagner <[email protected]>  
9302    
9303          * Thuban/UI/tree.py (update_tree): added test for None on map bounding box  2002-04-22  Jan-Oliver Wagner <[email protected]>
9304    
9305  2002-04-21      Jan-Oliver Wagner <[email protected]>          * Thuban/UI/tree.py (update_tree): added test for None on map bounding
9306            box
9307    
9308    2002-04-21  Jan-Oliver Wagner <[email protected]>
9309    
9310          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new          * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
9311    
9312          * Thuban/UI/tree.py (update_tree): added added map extent          * Thuban/UI/tree.py (update_tree): added added map extent
9313    
9314          * Thuban/UI/mainwindow.py (_method_command): extended by parameter          * Thuban/UI/mainwindow.py (_method_command): extended by parameter
9315          icon; added map_full_extend as tool          icon; added map_full_extend as tool
9316    
9317  2002-04-19      Jan-Oliver Wagner <[email protected]>  2002-04-19  Jan-Oliver Wagner <[email protected]>
9318    
9319          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for          * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
9320          saving _new_ sessions          saving _new_ sessions
# Line 920  Line 9416 
9416    
9417          * setup.py: increase version number to 0.1          * setup.py: increase version number to 0.1
9418          (data_dist): New command class for data distribution          (data_dist): New command class for data distribution
           
9419    
9420  2001-09-14  Bernhard Herzog  <[email protected]>  2001-09-14  Bernhard Herzog  <[email protected]>
9421    
9422          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):          * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
9423          Handle the case of no layer (i.e. layer is None) properly.          Handle the case of no layer (i.e. layer is None) properly.
9424    
9425          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):          * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
9426          Set the initial selection of the combo boxes to reflect the          Set the initial selection of the combo boxes to reflect the
9427          projection we're starting with in a way that works on windows,          projection we're starting with in a way that works on windows,
9428          too.          too.
# Line 1037  Line 9532 
9532          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
9533          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
9534    
9535          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
9536          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
9537          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
9538          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
9539          the application's OnInit method          the application's OnInit method
# Line 1054  Line 9549 
9549          layer to the tableview dialog.          layer to the tableview dialog.
9550    
9551          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
9552          (TableGrid):          (TableGrid):
9553          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
9554          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
9555          (TableFrame.__init__):          (TableFrame.__init__):
# Line 1121  Line 9616 
9616  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
9617    
9618          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
9619            
9620          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
9621          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
9622            
9623          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
9624          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
9625          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 1171  Line 9666 
9666          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
9667          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
9668          link_file method          link_file method
9669            
9670          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
9671          the window when the first layer is added to the map.          the window when the first layer is added to the map.
9672    
# Line 1208  Line 9703 
9703          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
9704          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
9705          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
9706            
9707          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
9708          installer          installer
9709    

Legend:
Removed from v.370  
changed lines
  Added in v.2213

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26