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

Legend:
Removed from v.1418  
changed lines
  Added in v.2255

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26