/[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 1655 by bh, Mon Aug 25 16:05:33 2003 UTC revision 2264 by jschuengel, Thu Jul 1 14:43:26 2004 UTC
# Line 1  Line 1 
1    2004-07-01  Jan Sch�ngel <[email protected]>
2    
3            Added the functionality to handle the content thuban is not
4            able to handle directly.
5    
6            * Extensions/umn_mapserver/mf_handle.py: New. This module extents
7            Thuban with the possibility to edit the mapfile content.        
8            
9            * Extensions/umn_mapserver/mf_import.py: Added the possibility
10            to import mapfiles without any layer selected. So it is possible
11            to edit the other settings in a mapfile.
12            (import_mapfile): Added code to use the editing functions.
13            Added the possibility to import the projection to a layer if one
14            is defined.
15            Status settings (On,Off) will now set in thuban (visible, invisible).
16            fixed a bug with with classnames. If no classname is set in mapfile
17            the value in Thuban will set to the expression.
18            
19            * Extensions/umn_mapserver/mf_export.py(export_mapfile): Added the
20            possibility to save a new mapfile or use the old one which is
21            imported or new created.
22            Added code to use the editing functions.
23            Remove some not needed import statements
24    
25            * Extensions/umn_mapserver/mapfile.py: Added new types which are
26            need for the editing functions.
27            Added needed set-functions for the editing functions.
28            Added the possibility to export rasterimages.
29            Added new classes (MF_Web, MF_Label, MF_Legend, MF_Symbol,
30            MF_SymbolSet). MF_Symbol and MF_SymbolSet are not needed at the
31            moment.
32            (MF_Class.set_thubanstyle): Now point layers will set to a default
33            symbol to show a circle in mapserver and not only a 1px dot.
34            (MF_Style.__init__): Fixed a bug with the color. Color was not set
35            correct before.
36            (MF_Size): Removed, because it is not needed.
37            
38            * Extensions/umn_mapserver/README: Added the hints to use the
39            export and editing functions, too.
40    
41            * Extensions/umn_mapserver/sample/iceland.map: Added the
42            new parameter "UNITS METERS".
43            Change the political layer to status OFF.
44    
45            * Extensions/umn_mapserver/sample/README: Added some
46            more details to setup the sample in the MapServer.
47            
48    2004-06-26  Bernhard Reiter <[email protected]>
49    
50            * Extensions/svgexport/test/test_svgmapwriter.py:
51            Removed class VFile and used standard StringIO instead.
52    
53    2004-06-23  Jan Sch�ngel  <[email protected]>
54    
55            Add the export function to the umn_mapserver extension.
56    
57            * Extension/umn_mapserver/mf_export.py: New. This module extents
58            Thuban with the possibility to export the Thuban content.
59    
60            * Extensions/umn_mapserver/mapfile.py: Expand the classes to use
61            with the export module. Especially added the possibility to
62            add thuban objects directly to the map objects.
63    
64            * Extensions/umn_mapserver/mf_import.py: Removed the wxCHANGE_DIR,
65            because of the hint from Bernhard Herzog.
66            Corrected the handling of absolute pathnames.
67            Changed the Text of the Menu-Item, now the beginning is upper case.
68    
69            * Extensions/umn_mapserver/README: Added the --with-tiff statement.
70    
71    2004-06-16  Jan Sch�ngel  <[email protected]>
72    
73            Add a sample and make some changes.
74    
75            * Extension/umn_mapserver/mf_import.py: Changed the wxPython.wx
76            import from * to explicit used statements. Changed the
77            Thuban.UI.mainwindow import phrase, too.
78            (import_mapfile):Corrected a clerical mistake.
79            Added wxCHANGE_DIR in OpenFile Dialog.
80            Added a MultipleChoiceDialog, to select the layers to load from
81            mapfile into thuban. Thereby the projection is only set if one layer
82            is selected.
83            Added the possibility to handle relative pathnames which uses
84            up-level references.
85            Removed some doubled code.
86            Corrected an error with integer values used as label in thuban
87            ClassGroup.
88            
89            * Extensions/umn_mapserver/sample: New.
90    
91            * Extensions/umn_mapserver/sample/README: New. Describes the
92            usage of the sample files.
93    
94            * Extensions/umn_mapserver/sample/iceland.map: New. This is
95            a suitable .map-file for the iceland data.
96    
97            * Extensions/umn_mapserver/sample/index.html: New. The template
98            for the mapfile.  
99    
100            * Extensions/umn_mapserver/sample/iceland.html: New. Initialisation
101            file for the Iceland Application on web.
102    
103            * Extensions/umn_mapserver/README: Corrected a inaccuracy and added
104            some details.
105    
106            * Extensions/umn_mapserver/test/test_mapserver
107            (mapserver_import_Test_generalClasses.test_MF_Color):
108            Corrected the thubancolor test.
109    
110    2004-06-15  Jan Sch�ngel  <[email protected]>
111    
112            * Extensions/umn_mapserver/README: New. Install instruction.
113    
114    2004-06-14  Bernhard Reiter <[email protected]>
115    
116            * libraries/thuban/cpl_mfile.h: Added copyright header.
117    
118            * libraries/thuban/ cpl_mfile.cpp, cpl_mfile.h: Added non-protecting
119            Free Software License so that it is most useful with gdalwarp
120            and bmpdataset.
121    
122    2004-06-14  Bernhard Herzog  <[email protected]>
123    
124            * Thuban/UI/multiplechoicedialog.py (__version__): Add missing
125            import of wxPython.wx itself (as opposed to the contents of
126            wxPython.wx).  For some reason wxPython.wx is available as
127            wxPython.wx.wx in at least some 2.4 releases.  Fixes RT#2482
128            wrt. wxPython 2.4.
129    
130    2004-06-10  Jan Sch�ngel  <[email protected]>
131    
132            Initial version of new extension "umn_mapserver".  This extension aims
133            to manage configuration for the UMN MapServer application.  This
134            inital version just imports the .map-files and displays all, Thuban is
135            capable of.
136    
137            * Extensions/umn_mapserver, Extensions/umn_mapserver/test: New.
138    
139            * Extensions/umn_mapserver/test/README: New. Describes how to run the
140            tests.
141    
142            * Extensions/umn_mapserver/test/test.map: New. This is a test
143            .map-file for automated tests of the umn_mapserver extension of
144            Thuban.
145    
146            * Extensions/umn_mapserver/test/test_mapserver.py: New. Tests for
147            UMN Mapserver classes.
148    
149            * Extensions/umn_mapserver/__init__.py: New. Init to make this
150            directory a package.
151    
152            * Extensions/umn_mapserver/mapfile.py: New. Classes to represent
153            '.map'-file objects.
154    
155            * Extensions/umn_mapserver/mf_import.py: New. This module extends
156            Thuban with the possibility to handle UMN MapServer mapfiles.
157    
158    2004-06-03  Bernhard Herzog  <[email protected]>
159    
160            * Thuban/Model/layer.py (Layer.TreeInfo): Convert the bounding box
161            to a tuple before using it as arguments to the % operator.  This
162            fixes the formatting issue filed in RT#2239 on 2004-01-13 and
163            reported today on thuban-list by Jan Sch�ngel
164    
165            * test/test_layer.py (TestLayerModification.setUp): Save the
166            filename as an instance variable so we can refer to it in tests
167            (TestLayerModification.test_tree_info): Uncomment this method
168            again and make it work.  This tests for the formatting issue
169            filed in RT#2239 on 2004-01-13
170    
171    2004-05-28  Bernhard Herzog  <[email protected]>
172    
173            * Thuban/UI/baserenderer.py: Fix some typos.
174    
175    2004-05-18  Jan-Oliver Wagner <[email protected]>
176    
177            * Extensions/gns2shp/gns2shp.py (gns2shp): Fixed a bug
178            by increasing a field size.
179    
180    2004-05-17  Bernhard Herzog  <[email protected]>
181    
182            Update to newest shapelib and get rid of Thuban specific
183            extensions, i.e. use the new DBFUpdateHeader instead of our
184            DBFCommit kludge
185    
186            * libraries/shapelib/shpopen.c: Update to version from current
187            shapelib CVS.
188    
189            * libraries/shapelib/shapefil.h: Update to version from current
190            shapelib CVS.
191    
192            * libraries/shapelib/dbfopen.c: Update to version from current
193            shapelib CVS.
194            (DBFCommit): Effectively removed since shapelib itself has
195            DBFUpdateHeader now which is better for what DBFCommit wanted to
196            achieve.  
197            We're now using an unmodified version of dbfopen.
198    
199            * setup.py (extensions): Add the HAVE_UPDATE_HEADER macro with
200            value '1' to the Lib.dbflibc extension.  This simply reflects the
201            shapelib and pyshapelib updates
202    
203    2004-05-16  Jan-Oliver Wagner <[email protected]>
204    
205            Finished introduction of Menu.FindOrInsertMenu.
206    
207            * Extensions/drawshape/drawshape.py: Add the command
208            to the experimental menu additionally to the toolbar.
209    
210            * Extensions/svgexport/svgsaver.py: Use FindOrInsertMenu() instead of
211            finding menu on its own.
212    
213            * Doc/manual/thuban-manual.xml: updated sample file
214            to use FindOrInsertMenu().
215    
216            * Examples/simple_extensions/hello_world.py: Use FindOrInsertMenu()
217            instead of finding menu on its own.
218    
219    2004-05-11  Jan-Oliver Wagner <[email protected]>
220    
221            * test/test_menu.py (MenuTest.test): Added testing
222            of method Menu.FindOrInsertMenu.
223    
224    2004-05-10  Jan-Oliver Wagner <[email protected]>
225    
226            Introduce and use Menu.FindOrInsertMenu.
227    
228            * Thuban/UI/menu.py (Menu.FindOrInsertMenu): New. Find a
229              given menu or, if not found, insert it.
230    
231            * Extensions/bboxdump/bboxdump.py, /Extensions/gns2shp/gns2shp.py,
232            /Extensions/importAPR/importAPR.py, Extensions/profiling/profiling.py,
233            /Extensions/wms/wms.py: Use FindOrInsertMenu() instead of finding
234            menu on its own.
235    
236    2004-05-06  Jan-Oliver Wagner <[email protected]>
237    
238            Introduce a abstract ColorDialog class and remove
239            and outdated file.
240    
241            * Thuban/UI/proj4dialog.py: Removed. It is has been
242            replaced by projdialog for quite a while and is not used
243            anymore.
244    
245            * Thuban/UI/colordialog.py: New. Abstraction for color selection
246            dialog(s).
247    
248            * Thuban/UI/classifier.py (SelectPropertiesDialog.__GetColor):
249            Now calls the abstract ColorDialog instead of wxColourDialog.
250            This also removed the dependency to Color class conversion
251            from this function.
252    
253    2004-05-04  Frank Koormann  <[email protected]>
254    
255            * Extensions/bboxdump/__init__.py: Fixed string left over from
256            copying.
257    
258            * Extensions/bboxdump/bboxdump.py (bboxdump):
259            Use layer.ShapeStore().AllShapes() to loop over shapes instead of
260            xrange(layer.NumShapes()). Compile the bboxmessage from a list
261            of formatted outputs (string.join) instead of appending to the
262            message. Two progress bar dialogs to report progress on the sometimes
263            lenghty processing.
264    
265    2004-04-22  Frank Koormann  <[email protected]>
266    
267            New Extension to dump bounding boxes of all shapes of the selected
268            layer. An optional column can be specified to group the objects,
269            in this case the bounding box is a union of the separate boxes.
270            Dump can be displayed in a ScrolledMessageDialog or written to file.
271            The Extension is simply a combination of available and well tested
272            Thuban functionality.
273    
274            * Extensions/bboxdump/__init__.py: New: Init to make this
275            directory a package.
276    
277            * Extensions/bboxdump/bboxdump.py: New: Dump bounding boxes of
278            all shapes of the selected layer.
279    
280    2004-04-22  Jan-Oliver Wagner <[email protected]>
281    
282            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Fixed two
283            strings to be i18n now.
284    
285    2004-04-18  Jan-Oliver Wagner <[email protected]>
286    
287            Changing popup menu of legend from direct building
288            to using the Menu construction as used for the mainwindow.
289    
290            * Thuban/UI/mainwindow.py: New method commands: layer_to_top,
291            layer_to_bottom, layer_visibility
292            (MainWindow.LayerToTop): New. Put current layer to the top.
293            (MainWindow.LayerToBottom): New. Put current layer to bottom.
294            (MainWindow.HideLayer, MainWindow.ShowLayer, _has_visible_map):
295            Replace 1,0 by True, False.
296            (MainWindow.ToggleLayerVisibility): New. Toggle visibility of
297            current layer.
298            (MainWindow.LayerShowTable): Removed raising of dialog.
299            (_has_selected_layer_visible): New. Support function.
300    
301            * Thuban/UI/legend.py: ID_POP_xxx: removed.
302            (LegendPanel.__init__): Removed EVT_MENU bindings.
303            (LegendTree._OnRightClick): Replace direct creation of
304            menu via wx Classes by applying the menu definition
305            as of Menu class of menu.py.
306            
307    2004-04-16  Jan-Oliver Wagner <[email protected]>
308    
309            * Thuban/UI/exceptiondialog.py (ExceptionDialog.dialog_layout): Improved
310        button string to stronger clearify that Thuban will be closed when hitting
311            the button.
312    
313            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Added docstring.
314            Now for layers without a ShapeStore a corresponding message is given
315            to the user, that this layer has no table to show.
316    
317    2004-04-15  Martin Schulze  <[email protected]>
318    
319            * Extensions/wms/layer.py (WMSLayer.setWMSFormat): Need to
320            recalculate the format for the internal render engine as well.
321    
322            * Extensions/wms/properties.py (wmsProperties): First start for a
323            properties dialog.  It's functional for a first selection of
324            layers, but still has some weired wxWidgets/GTK problems but
325            beautification can be done later.
326    
327            * Extensions/wms/layer.py: Added more documentation
328            (WMSLayer.getFormats): New: Return list of supported image formats
329            by the WMS server
330            (WMSLayer.getLayers): New: Return the list of layer names
331            supported by the WMS server
332            (WMSLayer.getLayerTitle): New: Return the title of the named layer
333            (WMSLayer.getWMSFormat): New: Return the image format that is used
334            for WMS GetMap requests
335            (WMSLayer.setWMSFormat): New: Set the image format that is used
336            for WMS GetMap requests
337            (WMSLayer.__init__): Move away from using only one layer to using
338            a list of layers (unsorted at the moment, though).
339            (WMSLayer.getVisibleLayers): New: Return the list of names for all
340            visible layers
341            (WMSLayer.setVisibleLayers): New: Set the list of names for all
342            visible layers
343    
344            * Extensions/wms/wms.py: Moved the WMS layer into layer.py in
345            order to establish a clean structure.
346    
347            * Extensions/wms/layer.py: Moved the WMS layer into a file on its
348            own in order to establish a clean structure.
349    
350    2004-04-13  Martin Schulze  <[email protected]>
351    
352            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Added
353            support for oldstyle (WMS 1.0 apparently) image format
354            specification.
355    
356            * Extensions/wms/wms.py (WMSLayer.calcFormat): Reduce the list of
357            supported graphic formats back to JPEG and BMP, PNG and others are
358            too *cough* experimental...  Sorry, I meant to filter this out
359            before I committed this part.  This should make the WMS extension
360            run from CVS again.
361            (wms_dialog): Reset an empty URL to None so that the subsequent
362            program can depend on this, since the dialog will indeed return an
363            empty URL, causing another declaration of love by Python.
364    
365            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerBBox):
366            Whenever a native BoundingBox request cannot be fulfilled, check
367            whether the requested SRS is EPSG:3426, in which case return the
368            LatLonBoundingBox values.
369    
370            * Extensions/wms/test/test_parser.py
371            (TestWMSCapabilitiesParser.test_LayerSRS): Added a test for
372            ignoring AUTO:* SRS.
373            (TestWMSCapabilitiesParser.test_LatLonBoundingBoxes_as_bboxes):
374            Added another test method to test whether the LatLonBoundingBox
375            values will be returned if BoundingBox values are requested with
376            SRS set to EPSG:3426.
377    
378            * Extensions/wms/parser.py (WMSCapabilitiesParser.peekLayers):
379            Added rudimentary support for non-EPSG SRS, i.e. ignore them for
380            the moment by placing them into a variable which is currently
381            unused.  Also test whether the EPSG SRS is numerical as it should
382            be and add an error message if it is not.
383    
384            * Extensions/wms/test/sample.xml: Added AUTO:* SRS since they
385            appear in the real world as well.  Since we cannot handle them yet
386            (OGCLib can't either), we will ignore them for the moment.
387    
388            * Extensions/wms/parser.py: Use a variable for denoting the sample
389            filename
390            (WMSCapabilitiesParser.peekLayers): Added support for error
391            messages during grok().  They will be aggregated in an array and
392            may be displayed later.  We may have to add a classification
393            "Warning" and "Error" to this.  That requires more experience,
394            though, since not every error may be lethal.
395    
396            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Raise the
397            ShowTable() dialog/frame when the user attempts to display it
398            while it has been opened before already and not closed again.
399    
400    2004-04-11  Martin Schulze  <[email protected]>
401    
402            * Extensions/wms/infodialog.py: Adjusted the class documentation
403    
404            * Extensions/wms/wms.py (WMSLayer.__init__, WMSLayer.GetMapImg):
405            Switch to using Thuban{Begin,End}BusyCursor instead of the pure
406            wxWidgets variants.
407            (WMSLayer.__init__): The epsg_id variable is named top_srs now.
408    
409            * Extensions/wms/infodialog.py: Added an information dialog that
410            will display various information about the WMS current resource,
411            so that additional information such as the title, the abstract,
412            fees and access constraints can be displayed for the user if they
413            are documented in the WMS XML.
414    
415    2004-04-10  Martin Schulze  <[email protected]>
416    
417            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Adjusted
418            string handling.  It's "foo".lower() and not lower(foo) without
419            lower imported from strings or something.
420    
421            * Extensions/wms/wms.py (WMSLayer): Incorporated WMSCapabilities
422            from capabilities.py and parser.py.  Implement priority list for
423            supported graphics formats, take care of wbmp != bmp.  PNG, TIFF
424            and GIF are supported here, but not yet by main Thuban.  Hence,
425            support for them may be removed later.  Special contribution to
426            usability: get wxWidgets to change the cursor when we're waiting
427            for data from the network so the user won't start to worry.  This
428            causes a redrawing error/warning, though.
429    
430            * Extensions/wms/parser.py (WMSCapabilitiesParser.grok): Unlink
431            the DOM object.
432    
433    2004-04-01  Martin Schulze  <[email protected]>
434    
435            * Extensions/wms/capabilities.py: Adjusted documentation
436            (WMSCapabilities.__init__): Improved documentation, fixed syntax
437            (WMSCapabilities.saveCapabilities): Only catch IOError when
438            handling files
439            (WMSCapabilities.loadCapabilities): Only catch IOError when
440            handling files
441            __main__: corrected variable naming
442            (WMSCapabilities.fetchCapabilities,loadCapabilities): Make this
443            class a specialisation of WMSCapabilitiesParser as well.  Also
444            execute grok() after loading or fetching capabilities, if that
445            went well, so that subsequent calls can already access the data.
446            (WMSCapabilities.getVersion): Export the used version of the
447            GetCapabilities request, so we can use it for subsequent calls,
448            i.e. for GetMap requests.
449            (WMSCapabilities.fetchCapabilities): Added proper error handling
450            when the GetCapabilities request failed, so that the surrounding
451            program can act accordingly.
452    
453    2004-03-30  Martin Schulze  <[email protected]>
454    
455            * Extensions/wms/parser.py (WMSCapabilitiesParser.getLayerSRS):
456            Adjusted the getLayerSRS method to return the list of SRSes
457            extracted from <SRS> elements instead of <BoundingBox> elements.
458            Added a bit of documentation as well.
459            (WMSCapabilitiesParser.checkLayerSRS): Removed integrity test
460            since it was only implemented due to a misunderstanding.
461    
462            * Extensions/wms/test/test_parser.py
463            (TestWMSCapabilitiesParser.test_LayerSRS): Adjust the tests to
464            reflect the corrected interpretation of the standard: i.e. a layer
465            does not have to define a BoundingBox for all SRSes it supports.
466            Hence the <SRS></SRS> specification is authoritative, not the list
467            of BoundingBoxes.
468            (TestWMSCapabilitiesParser.test_BoundingBoxes): Added a new test
469            to ensure None is returned for a non-existing SRS.
470            (TestWMSCapabilitiesParser.test_grok): Removed test_grok method
471            since it is not applicable anymore.  Listing more SRSes in <SRS>
472            elements is valid according to the specs.
473    
474    2004-03-26  Bernhard Reiter <[email protected]>
475    
476            * README: Nicer formatting of text. Improved descriptions.
477            Reflected wxWidgets name change.
478            
479            * Thuban/UI/about.py: Extended copyright to 2004 and added
480            information about the thuban-devel mailinglist.
481    
482    2004-03-24  Martin Schulze  <[email protected]>
483    
484            * Extensions/wms/capabilities.py: Renamed the class to contain
485            'WMS', also added a linebreak where required
486    
487            * Extensions/wms/parser.py: Finally added the XML parser for the
488            GetCapabilities response.
489    
490            * Extensions/wms/test/sample.xml: Adjusted the sample file so that
491            <SRS> elements match the <BoundingBox> elements, except for the
492            layer 'beschriftung'.
493    
494            * Extensions/wms/test/test_parser.py: Encode non-ascii strings
495            since Python uses unicode strings internally, otherwise
496            comparisons will fail.  Removed tests for getLayerBBoxSRS() since
497            the SRS will be calculated anyway and this method is obsoleted by
498            getLayerSRS().  Denote SRS as strings and not as cardinal numbers.
499            Move loading the sample file into the setUp method.  Added a test
500            for finding the integrity problem in the sample response.
501            Improved formatting.
502    
503            * Extensions/wms/domutils.py: Added convenience routines for
504            handling of Document Object Model (DOM) nodes.
505    
506            * Extensions/wms/test/test_domutils.py: Added a test for the
507            domutils module
508    
509    2004-03-19  Martin Schulze  <[email protected]>
510    
511            * Extensions/wms/test/test_parser.py (TestWMSCapabilitiesParser):
512            Moved path detection and adding into a module of its own,
513            adjustpath, which exports thubandir as main Thuban directory.
514    
515            * Extensions/wms/test/test_ogclib.py (TestWMSLib): Moved path
516            detection and adding into a module of its own, adjustpath, which
517            exports thubandir as main Thuban directory.  Reorganised the
518            module in order to support the SkipTest feature for Thuban test
519            cases.
520    
521            * Extensions/wms/test/adjustpath.py: Moved path detection and
522            adding into a module of its own.
523    
524    2004-03-18  Martin Schulze  <[email protected]>
525    
526            * Extensions/wms/test/test_parser.py: Added another test for
527            checking whether the WMS XML parser (to be implemented) returns
528            the information we expect.  This requires a sample WMS WML file
529            (sample.xml) which has been extracted from the frida server and
530            "improved" manually.
531    
532            * Extensions/wms/test/test_ogclib.py: Added legacy code to add the
533            main Thuban directory to the path in order to be able to import
534            random modules.  Adjusted the PyOGCLib detection to reuse the
535            information gathered.  Also added a note about the PYTHONPATH
536            environment variable.
537    
538            * Extensions/wms/test/test_ogclib.py: The format specification is
539            a mime-type, not a graphic format, hence image/jpeg wou ld be the
540            proper format and not JPEG.  We'll also have to take care of the
541            encoding of / as %2F.
542    
543    2004-03-16  Martin Schulze  <[email protected]>
544    
545            * Extensions/wms/test/test_ogclib.py: Added a (hopefully)
546            comprehensive test for the getMapURL method, built compare URLs
547            according to the documentation in OGC 01-068r3
548    
549            * Extensions/wms/capabilities.py (WMSCapabilities): Added the
550            class WMSCapabilities to manage capabilites, will incorporate
551            parsing the capabilities response and provide details for other
552            classes.
553    
554    2004-03-12  Bernhard Herzog  <[email protected]>
555    
556            Support views in addition to normal tables in the postgis
557            shapestore
558    
559            * Thuban/Model/postgisdb.py
560            (PostGISShapeStore._fetch_table_information): Add a fallback for
561            the case where the table name is not in the geometry_columns
562            table.  This is usually the case for views.  Also, set
563            self.shapestore here.
564            (PostGISShapeStore.ShapeType): No need to query the database all
565            the time.  The shape type is now determined in
566            _fetch_table_information
567    
568            * test/postgissupport.py (PostgreSQLServer.new_postgis_db)
569            (PostgreSQLServer.get_static_data_db, PostGISDatabase.__init__):
570            New parameter to specify views.
571            (PostGISDatabase.has_data): Also compare the views.  New views
572            parameter
573            (PostGISDatabase.initdb): Create the views.
574            (PostgreSQLServer.get_default_static_data_db): Add the v_landmarks
575            view
576    
577            * test/test_postgis_db.py
578            (TestPostGISShapestorePointFromViews): New.  Test a
579            PostGISShapeStore with a view
580            (TestPostGISShapestorePointOIDAsGIDColumn.setUp): Pass the name of
581            the geometry_column explicitly to test whether that works
582    
583    2004-03-12  Bernhard Herzog  <[email protected]>
584    
585            Final step for explicit id/geometry columns: Loading and saving
586    
587            * Resources/XML/thuban-1.1.dtd: New.  Derived from thuban-1.0.dtd
588            with the following changes:
589            (dbshapesource): Two new attributes id_column and geometry_column
590    
591            * Thuban/Model/save.py (SessionSaver.write): Use the new dtd
592            (SessionSaver.write_session): Use the new namespace
593            (SessionSaver.write_data_containers): Write the new dbshapesource
594            parameters
595    
596            * Thuban/Model/load.py (SessionLoader.__init__): New namespace for
597            the new file format version
598            (SessionLoader.start_dbshapesource): Handle the new db parameters
599    
600            * test/test_save.py: Update to the new dtd and namespace
601            (SaveSessionTest.test_save_postgis): Update the NonConnectionStore
602            mock object to provide a working IDColumn method.
603    
604            * test/test_load_1_0.py: New.  Copy of the test_load.py before
605            today's changes but with the round-trip tests removed.
606    
607            * test/test_load_0_9.py: Update doc-string.
608    
609            * test/test_load.py: Update all .thuban files to the new dtd and
610            namespace.
611            (TestPostGISLayer.file_contents): Add the new dbshapesource
612            paramters
613    
614    2004-03-11  Bernhard Herzog  <[email protected]>
615    
616            Next step for explicit id/geometry columns: User interaction
617    
618            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Rework how
619            the dialog is constructed. Add combo boxes to select id and
620            geometry column.  Rename some instance variables.
621            (ChooseDBTableDialog.GetTable): Return id and geometry column
622            names
623            (ChooseDBTableDialog.OnTableSelect): New. Event handler for
624            selections in the table list
625    
626            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Use id_column
627            and geometry_column
628    
629            * Thuban/Model/session.py (Session.OpenDBShapeStore): Add the new
630            parameters for id_column and geometry column of PostGISShapeStore
631            here as well.
632    
633            * Thuban/Model/postgisdb.py (type_map): Add ROWID psycog type.
634            (_raw_type_map): New. Map raw PostgreSQL type ints to thuban types
635            (PostGISConnection.GeometryTables): Use a better query to
636            determine which relations in the database might be usable for
637            shapestores.  Now supports views as well but is more PostgreSQL
638            specific
639            (PostGISConnection.table_columns): New. Somewhat experimental
640            method to let the db dialogs provide lists of columns to users so
641            that they can select id and geometry columns.
642            (PostGISTable.__init__): The default value of the id_column
643            parameter is now None it still means "gid" effectively, though.
644            (PostGISTable.IDColumn): New introspection method to return a
645            column object for the id column
646            (PostGISShapeStore.GeometryColumn): New introspection method to
647            return a column object for the geometry column
648    
649            * test/test_postgis_db.py
650            (TestPostGISConnection.test_gis_tables_non_empty):
651            Removed. Subsumed by the new:
652            (TestPostGISConnection.test_gis_tables_with_views_and_tables):
653            New. Tes the GeometryTables and table_columns methods with actual
654            tables and views.
655            (PointTests.test_id_column, PointTests.test_geometry_column):
656            New. tests for the new methods.
657            (TestPostGISShapestorePoint.setUp)
658            (TestPostGISShapestorePointSRID.setUp)
659            (TestPostGISShapestorePointExplicitGIDColumn.setUp): Fill the
660            instance variables needed by the new tests
661    
662    2004-03-11  Bernhard Herzog  <[email protected]>
663    
664            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): The row
665            numbers given to ReadValue are ordinals.
666    
667    2004-03-11  Bernhard Herzog  <[email protected]>
668    
669            Elimiate the requirement for PostGIS tables to have a column
670            called "gid".
671    
672            * Thuban/Model/postgisdb.py (PostGISTable.__init__): New parameter
673            id_column to specify which column to use to identify rows.  Also
674            new instance variables id_column and quoted_id_column
675            (PostGISTable.RowIdToOrdinal, PostGISTable.RowOrdinalToId)
676            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue)
677            (PostGISTable.SimpleQuery): Use the id column name provided to the
678            constructor instead of "gid"
679            (PostGISShapeStore.__init__): New parameter id_column analogously
680            to PostGISTable.__init__.  This parameter is simply passed through
681            to the base class constructor
682            (PostGISShapeStore._create_col_from_description): Fix typo in
683            doc-string
684            (PostGISShapeStore.Shape, PostGISShapeStore.AllShapes)
685            (PostGISShapeStore.ShapesInRegion): Use the id column name
686            provided to the constructor instead of "gid"
687    
688            * test/postgissupport.py
689            (PostgreSQLServer.get_default_static_data_db): New static table
690            landmarks_point_id with an id column != "gid.  Update the comments
691            a bit.
692            (skip_if_addgeometrycolumn_does_not_use_quote_ident): Fix typo in
693            doc-
694            (upload_shapefile): New parameter gid_column to use a name other
695            than "gid" for the column to store the shape ids
696    
697            * test/test_postgis_db.py (TableTests): New.  Mixin-class
698            containing all tests previously in TestPostGISTable.  The actual
699            tests are the same but the code is a bit more configurable to
700            allow for different id columns etc.
701            (TestPostGISTable): Derive from TableTests now for the actual
702            tests.
703            (TestPostGISTableExplicitGIDColumn): New. Like TestPostGISTable
704            except that it the landmarks_point_id table to test the id_column
705            parameter
706            (PointTests): Extend the doc-string
707            (TestPostGISShapestorePointExplicitGIDColumn)
708            (TestPostGISShapestorePointOIDAsGIDColumn): New classes derived
709            from PointTests to test the explicit id_column parameter.  One
710            tests with the name of the column holding the shape ids, the other
711            uses PostgreSQL's OID column.  For the latter a number of methods
712            have to be overwritten to make them independent of the actual id
713            values.
714    
715    2004-03-08  Silke Reimer  <[email protected]>
716    
717            Update debian directory:
718    
719            * debian/changelog: Added new version.
720            * deiban/rules: Updated management of patches (with cbds)
721            * debian/control: Added cbds to dependencies
722            * debian/patches/*: New. Adds better support for patches of thuban in
723                            debian
724            * debian/menu: Syntax of menu changed slightly
725            * debian/setup.py.patch: removed because it has been moved to
726                            debian/patechs/setup.py.patch
727            
728    
729    2004-02-26  Bernhard Herzog  <[email protected]>
730    
731            Create the Doc/technotes directory for text files with information
732            for developers
733    
734            * Doc/technotes/README: New. README for the technotes
735    
736            * Doc/technotes/coding_guidelines.txt: New. Coding guidelines for
737            Thuban
738    
739            * Doc/technotes/release_process.txt: New. Used to be
740            HOWTO-Release.  Now slightly adapted to technote formatting style.
741    
742            * HOWTO-Release: Removed.  It's contents are now in
743            Doc/technotes/release_process.txt
744    
745    2004-02-25  Bernhard Herzog  <[email protected]>
746    
747            * libraries/thuban/wxproj.cpp (get_wx_version): New.  Return the
748            version of wxWindows the module was compiled with so we can check
749            that against the wxPython version.
750    
751            * Thuban/version.py (thuban_branch, thuban_release): New variables
752            controlling which and how Thuban versions are shown.  See the
753            comments for details.
754            (verify_versions): Also check that the wx version that wxproj is
755            compiled against matches that of the wxPython we use at runtime
756    
757    2004-02-20  Bernhard Herzog  <[email protected]>
758    
759            * Extensions/wms/wms.py (epsg_code_to_projection): Use
760            get_system_proj_file to read the epsg projections.  The old way
761            depended on the current directory being the top Thuban directory.
762    
763    2004-02-20  Bernhard Herzog  <[email protected]>
764    
765            * Extensions/svgexport/test/test_svgmapwriter.py
766            (TestVirtualDC.test_clippath): Remove a debug print
767    
768    2004-02-20  Bernhard Herzog  <[email protected]>
769    
770            * Extensions/svgexport/__init__.py: New.  Turn
771            Extensions/svgexport into a package.
772    
773            * Extensions/svgexport/svgmapwriter.py: Reorder the imports and
774            doc-string a bit.  The doc-string must come first, otherwise it's
775            not a doc-string.  The __future__ import must be the first thing
776            after the doc-string.  Use only double quotes in doc-strings.
777            Single quotes trip up emacs syntax highlighting if the text
778            contains apostrophes.
779    
780    2004-02-20  Bernhard Herzog  <[email protected]>
781    
782            * Extensions/svgexport/test/__init__.py,
783            Extensions/svgexport/test/test_svgmapwriter.py: New. Initial test
784            suite for svgexport
785    
786            * test/runtests.py (find_test_modules): New. Function with the
787            module finding code from main.
788            (main): Use find_test_modules to figure out the default test
789            modules and take modules from Extensions.svgexport.test too.
790    
791    2004-02-19  Bernhard Herzog  <[email protected]>
792    
793            * Thuban/UI/application.py (ThubanApplication.OnInit): Make sure
794            the mainwindow has a reference to the map of the initial session.
795            This fixes a bug introduced with the fix for RT#2245
796    
797    2004-02-19  Bernhard Herzog  <[email protected]>
798    
799            * Extensions/svgexport/svgsaver.py,
800            Extensions/svgexport/svgmapwriter.py,
801            Extensions/svgexport/maplegend.py: Added again.  This time in the
802            correct place.
803    
804    2004-02-17  Bernhard Herzog  <[email protected]>
805    
806            Fix for RT#2245
807    
808            * Thuban/UI/application.py (ThubanApplication.OnInit): Initialize
809            instance variables before trying to create any windows.  Creating
810            windows can start an event loop if e.g. message boxes are popped
811            up for some reason, and event handlers, especially EVT_UPDATE_UI
812            may want to access things from the application.
813            (ThubanApplication.maps_changed): The mainwindow may not have been
814            created yet, so check whether it has been created before calling
815            its methods
816    
817            * Thuban/UI/view.py (MapCanvas.OnIdle): Only try to redraw if we
818            have a map
819    
820    2004-02-17  Bernhard Herzog  <[email protected]>
821    
822            * test/test_svgmapwriter.py, Extensions/svgsaver.py,
823            Extensions/svgmapwriter.py, Extensions/maplegend.py,
824            extensions/svgexport/svgsaver.py,
825            extensions/svgexport/svgmapwriter.py,
826            extensions/svgexport/maplegend.py: Removed.  These files were in
827            the wrong places or didn't work at all.
828    
829    2004-02-16  Bernhard Herzog  <[email protected]>
830    
831            * Thuban/UI/view.py (MapCanvas.Export): Remove accidentally added
832            line
833    
834    2004-02-16  Bernhard Herzog  <[email protected]>
835    
836            * Thuban/UI/view.py (MapCanvas.Export): Avoid UnboundLocalError.
837    
838    2004-02-15  Markus Rechtien  <[email protected]>
839            
840            * Extensions/svgexport/svgmapwriter.py: New. Adds the capability
841            to write a session to a file in SVG format.
842            * Extensions/svgexport/svgsaver.py: New. Uses svgmapwriter.py
843            to write a SVG map of a session.
844            * Extensions/svgexport/maplegend: New. Writes a basic maplegend
845            in SVG format for the current session.
846    
847    2004-02-13  Bernhard Herzog  <[email protected]>
848    
849            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): When the layer
850            can't be created, return immediately after displaying the error
851            message.
852    
853    2004-02-11  Bernhard Herzog  <[email protected]>
854    
855            Handle postgis tables with more than one geometry column.
856    
857            * Thuban/Model/postgisdb.py
858            (PostGISTable._fetch_table_information): Delegate the creation of
859            column objects to a different method so that we can extend that in
860            derived classes
861            (PostGISTable._create_col_from_description): New. Column object
862            creation part of _fetch_table_information
863            (PostGISShapeStore._create_col_from_description): New. Extend
864            inherited method to handle geometry columns
865            (PostGISShapeStore.__init__): New parameter geometry_column to
866            specify which geometry column to use.  Optional but mandatory for
867            tables with more than one geometry column
868            (PostGISShapeStore._fetch_table_information): Also use the name of
869            the geometry column when looking for the srid
870            (PostGISShapeStore.ShapeType): Also use the name of the geometry
871            column when looking for the shape type
872    
873            * test/test_save.py (SaveSessionTest.test_save_postgis): Adapt
874            NonConnectionStore to changes in the PostGISShapeStore
875    
876            * test/test_postgis_db.py
877            (TestPostGISSpecialCases.test_shapestore_two_geom_cols): Test
878            PostGISShapeStore with tables having two geometry columns.
879    
880    2004-02-10  Bernhard Herzog  <[email protected]>
881    
882            Fix some postgis problems.  What remains to be done is real
883            handling of SRIDs as they affect how reprojection is done
884    
885            * Thuban/Model/postgisdb.py (quote_identifier): Fix typo in
886            doc-string
887            (PostGISShapeStore._fetch_table_information): New. Extend
888            inherited method to retrieve srid
889            (PostGISShapeStore.BoundingBox): Handle tables without data.
890            extent yields NULL for those
891            (PostGISShapeStore.ShapesInRegion): Use the srid of the table.
892    
893            * test/test_postgis_db.py
894            (TestPostGISSpecialCases.test_shapestore_empty_table): New test
895            for the special case of a table without any data
896            (TestPostGISShapestorePointSRID): New class with tests for a table
897            that uses srids
898            (PolygonTests): Fix a doc-string typo
899    
900            * test/postgissupport.py (PostGISDatabase.__init__): New parameter
901            reference_systems with a specification of spacial reference
902            systems to create in the new db.
903            (PostgreSQLServer.new_postgis_db)
904            (PostgreSQLServer.get_static_data_db): New parameter
905            reference_systems to be passed through ultimately to
906            PostGISDatabase.  In new_postgis_db also check whether an existing
907            db already has the right srids
908            (PostgreSQLServer.get_default_static_data_db): Add srids and a
909            table that uses srids
910            (PostGISDatabase.initdb): Create the entries for the reference
911            systems
912            (PostGISDatabase.has_data): Add reference_systems parameter to
913            check for those too
914            (upload_shapefile): New parameter srid to create tables with a
915            specific srid
916    
917    2004-02-06  Frank Koormann  <[email protected]>
918    
919            * po/pt_BR.po: Fixed charset
920    
921    2004-02-05  Frank Koormann  <[email protected]>
922    
923            * po/pt_BR.po: Fixed format string for error message, missing %s
924            added (Thuban/UI/application.py:273)
925    
926    2004-02-03  Frank Koormann  <[email protected]>
927            
928            First version of Portuguese (Brazilian) translation
929    
930            * po/pt_BR.po: New, translation of pot (2004-01-15 16:07+0300) for
931            Brazilian Portuguese by Eduardo Patto Kanegae.
932    
933            * Thuban/UI/about.py (About.__init.py__): Added Eduardo to the list of
934            translators.
935    
936    
937    2004-01-22  Frank Koormann  <[email protected]>
938    
939            * Doc/manual/thuban-manual.xml: Added section on installation of
940            Thuban under Win32 systems. Fixed image path references in the postgis
941            section. Some minor source formattings.
942    
943    2004-01-21  Frank Koormann  <[email protected]>
944    
945            Make Thuban remember path selections (at least for one application run).
946    
947            * Thuban/UI/application.py (Application.OnInit): Initialize path as a
948            attribute of application object. Path is a dictionary of
949            strings, currently with the items "data" and "projection".  
950            (Application.SetPath): New, stores path for the specified item.
951            (Application.Path): New, return path for the specified item.
952    
953            * Thuban/UI/mainwindow.py
954            (MainWindow.OpenSession, MainWindow.SaveSessionAs,
955            MainWindow.AddLayer, MainWindow.AddRasterLayer,
956            MainWindow.TableOpen): Access "data" path information of the
957            application.
958            
959            * Thuban/UI/projdialog.py (ProjFrame._OnImport, ProjFrame._OnExport):
960            Access "projection" path information of the application.
961    
962    2004-01-05  Bernhard Herzog  <[email protected]>
963    
964            * po/ru.po: Updated translations from Alex Shevlakov
965    
966    2004-01-05  Bernhard Herzog  <[email protected]>
967    
968            * po/Makefile, po/README: Move the description of how to generate
969            the translation statistics to the README.
970    
971    2003-12-23  Bernhard Herzog  <[email protected]>
972    
973            * NEWS: Update for 1.0.0
974    
975            * po/it.po: Another update from Maurizio Napolitano
976    
977    2003-12-23  Bernhard Herzog  <[email protected]>
978    
979            * po/it.po: Updated translation from Maurizio Napolitano
980    
981    2003-12-23  Bernhard Herzog  <[email protected]>
982    
983            * Thuban/UI/join.py (JoinDialog.__init__): Mark one more string
984            for translation
985    
986            * Thuban/UI/mainwindow.py (MainWindow.TableRename)
987            (MainWindow.RenameMap, MainWindow.RenameLayer): Mark some more
988            strings for translation
989    
990            * po/de.po: Update with the newly marked strings.
991    
992    2003-12-22  Bernhard Herzog  <[email protected]>
993    
994            * HOWTO-Release: Fix the places where version numbers have to be
995            updated
996    
997    2003-12-22  Bernhard Herzog  <[email protected]>
998    
999            * setup.py (setup call): 1.0.0, yeah!
1000    
1001            * Thuban/version.py (longversion): 1.0.0, yeah!
1002    
1003            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
1004            1.0.0 namespace too
1005    
1006            * Thuban/Model/save.py (SessionSaver.write_session): Save with
1007            1.0.0 namespace
1008    
1009            * test/test_load.py (LoadSessionTest.dtd)
1010            (TestSingleLayer.file_contents)
1011            (TestNonAsciiColumnName.file_contents)
1012            (TestLayerVisibility.file_contents)
1013            (TestClassification.file_contents, TestLabels.file_contents)
1014            (TestLayerProjection.file_contents)
1015            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1016            (TestLabelLayer.file_contents, TestPostGISLayer.file_contents)
1017            (TestPostGISLayerPassword.file_contents)
1018            (TestLoadError.file_contents, TestLoadError.test): Update for
1019            1.0.0 namespace
1020    
1021            * test/test_save.py (SaveSessionTest.dtd)
1022            (SaveSessionTest.testEmptySession)
1023            (SaveSessionTest.testSingleLayer)
1024            (SaveSessionTest.testLayerProjection)
1025            (SaveSessionTest.testRasterLayer)
1026            (SaveSessionTest.testClassifiedLayer)
1027            (SaveSessionTest.test_dbf_table)
1028            (SaveSessionTest.test_joined_table)
1029            (SaveSessionTest.test_save_postgis): Update for 1.0.0 namespace
1030    
1031    2003-12-22  Bernhard Herzog  <[email protected]>
1032    
1033            * Thuban/Model/load.py (SessionLoader.start_label): Make sure the
1034            alignment flags are byte strings not unicode and that they have
1035            valid values
1036    
1037            * test/test_load.py (TestLabelLayer): New. Test loading (and
1038            indirectly saving) of maps with labels.
1039    
1040    2003-12-22  Bernhard Herzog  <[email protected]>
1041    
1042            * Thuban/UI/tableview.py (TableGrid.OnDestroy)
1043            (TableGrid.__init__): Handle EVT_WINDOW_DESTROY in the grid to
1044            unsubscribe all subscribers.
1045            (LayerTableFrame.OnDestroy): Do not unsubscribe any messages from
1046            self.grid since it may already have been destroyed.
1047            Fixes RT #2256
1048    
1049    2003-12-19  Bernhard Herzog  <[email protected]>
1050    
1051            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1052    
1053    2003-12-16  Bernhard Herzog  <[email protected]>
1054            
1055            * debian/bitmappath.patch, debian/setup.py.patch:
1056                    added to ensure compliance with FHS for debian
1057            * debian/rules, debian/changelog:
1058                added patches in rules to ensure compliance with FHS for debian
1059    
1060    2003-12-16  Bernhard Herzog  <[email protected]>
1061    
1062            * po/Makefile (mo): Make the output a bit nicer so that it prints
1063            statistics about the translations. Add a comment how produce even
1064            nicer statistics with sed.
1065    
1066    2003-12-09  Frank Koormann   <[email protected]>
1067    
1068            * Resources/Projections/defaults.proj:
1069            French projection sample with correct accents (UNICODE).
1070    
1071    2003-12-05  Bernhard Herzog  <[email protected]>
1072    
1073            * MANIFEST.in: Add the devtools directory
1074    
1075            * setup.py (setup call): Use license instead of licence. This
1076            silences a deprecation warning on Python 2.3
1077    
1078    2003-12-05  Frank Koormann   <[email protected]>
1079    
1080            Documentation synced with 1.0rc1
1081    
1082            * Doc/manual/thuban-manual.xml:
1083            Minor formatting changes and references to database layers .
1084            Introduction.Internationalization: New section on i18n.
1085            MapManagement.AddingandRemovingLayers: Added item on database layers.  
1086            MapManagement.TheLegend: Added section and screenshot on popup menu.
1087            ProjectionManagement: Updated screenshot and sentence on EPSG.
1088            Appendix.SupportedDataSources: Added PostGIS.
1089            Appendix.WorkingwithPostGIS: New section.
1090    
1091            * Doc/manual/images/6_projection.png: Updated screenshot including
1092            EPSG checkboxes.
1093    
1094            * Doc/manual/images/3_5_popup_menu.png: New, popup menu screenshot.
1095    
1096            * Doc/manual/images/app_postgis_add_layer.png,
1097            Doc/manual/images/app_postgis_db_add.png,
1098            Doc/manual/images/app_postgis_db_management.png:
1099            New screenshots focussing on database layers
1100    
1101    2003-12-05  Frank Koormann   <[email protected]>
1102    
1103            * Thuban/UI/projdialog.py (load_user_proj): If user.proj is missing
1104            write warning to stderr instead of rising a warning dialog
1105    
1106    2003-12-03  Bernhard Herzog  <[email protected]>
1107    
1108            Fix for RT #2243
1109    
1110            * Thuban/UI/mainwindow.py (MainWindow.has_selected_shape_layer):
1111            New. Like has_selected_layer but for shape layers only
1112            (_has_selected_shape_layer): New. Like _has_selected_layer but for
1113            shape layers only
1114            (layer_show_table command, layer_jointable command): Use these
1115            commands should only be available for shape layers
1116    
1117    2003-12-03  Bernhard Herzog  <[email protected]>
1118    
1119            * Thuban/UI/mainwindow.py (MainWindow.Unsubscribe): Deal with
1120            publishers that are wx objects and may have been destroyed by wx
1121            already. Fixes RT #2242.
1122    
1123    2003-12-03  Bernhard Herzog  <[email protected]>
1124    
1125            * po/ru.po: Updates from Alex Shevlakov
1126    
1127    2003-12-03  Silke Reimer <silkeintevation.de>
1128    
1129            * debian/control, debian/changelog: Added gdal-support to
1130                    debian package, updated to new thuban version
1131    
1132    
1133    2003-12-03  Bernhard Herzog  <[email protected]>
1134    
1135            * Thuban/Lib/version.py: New. Module for version number
1136            manipulations. The version of make_tuple here also deals better
1137            with more unusual version number strings, such as e.g.
1138            "1.2+cvs20031111"
1139    
1140            * Thuban/version.py (make_tuple): Removed. It's now in
1141            Thuban.Lib.version. Use that implementation instead.
1142    
1143            * test/test_lib_version.py: New. Tests for Thuban/Lib/version.py
1144    
1145    2003-12-02  Bernhard Herzog  <[email protected]>
1146    
1147            * MANIFEST.in: Add debian files
1148    
1149            * setup.py (setup call): Add packages for the Extensions so that
1150            they're installed too
1151            (data_files): Add READMEs and sample data from some Extensions
1152    
1153            * NEWS: Add note about the extensions in binary packages
1154    
1155    2003-12-02  Bernhard Herzog  <[email protected]>
1156    
1157            * Thuban/Model/save.py (SessionSaver.write_session): Save files
1158            with the thuban-1.0rc1
1159    
1160            * Thuban/Model/load.py (SessionLoader.__init__): Recognize the
1161            thuban-1.0rc1 namespace too
1162    
1163            * test/test_save.py (SaveSessionTest.dtd)
1164            (SaveSessionTest.testEmptySession)
1165            (SaveSessionTest.testSingleLayer)
1166            (SaveSessionTest.testLayerProjection)
1167            (SaveSessionTest.testRasterLayer)
1168            (SaveSessionTest.testClassifiedLayer)
1169            (SaveSessionTest.test_dbf_table)
1170            (SaveSessionTest.test_joined_table)
1171            (SaveSessionTest.test_save_postgis): Update to thuban-1.0rc1
1172            namespace
1173    
1174            * test/test_load.py (LoadSessionTest.dtd): Update to thuban-1.0rc1
1175            namespace
1176            (TestSingleLayer.file_contents)
1177            (TestNonAsciiColumnName.file_contents)
1178            (TestLayerVisibility.file_contents)
1179            (TestClassification.file_contents, TestLabels.file_contents)
1180            (TestLayerProjection.file_contents)
1181            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1182            (TestPostGISLayer.file_contents)
1183            (TestPostGISLayerPassword.file_contents)
1184            (TestLoadError.file_contents, TestLoadError.test): Update to
1185            thuban-1.0rc1 namespace
1186    
1187    2003-12-01  Bernhard Herzog  <[email protected]>
1188    
1189            * setup.py (proj4_prefix, wx_prefix, gdal_prefix): Fix these for
1190            nt to better match Intevation's current w32 setup
1191    
1192            * HOWTO-Release: Add note about updating MANIFEST.in
1193    
1194            * MANIFEST.in: Add the Extensions
1195    
1196            * NEWS: Update for 1.0rc1
1197    
1198    2003-12-01  Bernhard Herzog  <[email protected]>
1199    
1200            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Change the wild
1201            cards for the dialog so that shapefiles ending in all uppercase
1202            SHP are listed too
1203    
1204    2003-11-28  Bernhard Herzog  <[email protected]>
1205    
1206            * Thuban/version.py (longversion): Update to 1.0rc1
1207    
1208            * setup.py (setup call): Update version to 1.0rc1. Use the
1209            [email protected] email address as author email instead of my
1210            personal one.
1211    
1212    2003-11-28  Bernhard Herzog  <[email protected]>
1213    
1214            * po/de.po: Update german translation.
1215    
1216    2003-11-28  Bernhard Herzog  <[email protected]>
1217    
1218            Unify the filenames stored in .thuban files so that the .thuban
1219            files are more platform independend
1220    
1221            * Thuban/Model/save.py (unify_filename): New. Unify filenames so
1222            that they can be used on both windows and unix
1223            (SessionSaver.prepare_filename): New. Handle all filename
1224            transformations for filenames stored in the thuban file
1225            (SessionSaver.write_data_containers, SessionSaver.write_layer):
1226            Use prepare_filename
1227    
1228            * test/test_save.py (SaveSessionTest.testSingleLayer)
1229            (SaveSessionTest.testLayerProjection)
1230            (SaveSessionTest.testRasterLayer)
1231            (SaveSessionTest.testClassifiedLayer)
1232            (SaveSessionTest.test_dbf_table)
1233            (SaveSessionTest.test_joined_table): Filenames are always stored
1234            with slashes on all currently supported platforms so adapt all
1235            tests to this
1236    
1237            * test/test_load.py (LoadSessionTest.filenames): With the new
1238            filename scheme the filenames in the tests should be
1239            understandable on all currently supported platforms so we turn
1240            this into an empty list because we don't have to normalize them
1241            anymore
1242    
1243    2003-11-28  Bernhard Herzog  <[email protected]>
1244    
1245            * test/test_layer.py (TestLayer.test_arc_layer_with_projection):
1246            Add the ellipsoid to the projection since some Proj versions
1247            complain if it's missing.
1248    
1249    2003-11-27  Bernhard Herzog  <[email protected]>
1250    
1251            Corect some bounding box projection problems
1252    
1253            * Thuban/Model/proj.py (Projection.InverseBBox): New. Inverse
1254            version of ForwardBBox
1255            (Projection._transform_bbox): New. common implementation of
1256            ForwardBBox and InverseBBox
1257            (Projection.ForwardBBox): Use _transform_bbox.
1258    
1259            * test/test_proj.py (TestProjection.test): Add test for
1260            InverseBBox
1261    
1262            * Thuban/Model/layer.py (Layer.LatLongBoundingBox)
1263            (Layer.ShapesBoundingBox, RasterLayer.LatLongBoundingBox): Use the
1264            new InverseBBox method to determine the unprojected bounding box
1265            (Layer.ShapesInRegion): Use the ForwardBBox method to project the
1266            bbox.
1267    
1268            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
1269            Removed.
1270            (TestLayer.test_arc_layer_with_projection): New. This test is
1271            better able to test whether bounding boxes are projected correctly
1272            than test_point_layer_with_projection
1273    
1274            * Thuban/UI/viewport.py (ViewPort.map_projection_changed): Use
1275            InverseBBox to unproject bboxes
1276    
1277    2003-11-25  Bernhard Herzog  <[email protected]>
1278    
1279            * Thuban/UI/about.py (About.__init__): Make sure we have ASCII
1280            source code.
1281    
1282    2003-11-25  Bernhard Herzog  <[email protected]>
1283    
1284            * Thuban/Model/layer.py (Layer.__getattr__): Removed. It was only
1285            there for backwards compatibility and all code relying on that
1286            should have been updated by now.
1287    
1288    2003-11-25  Bernhard Herzog  <[email protected]>
1289    
1290            * test/test_load.py (TestClassification.test): Add the missing
1291            round trip test.
1292            (TestClassification.file_contents): Update to the newest file
1293            format
1294    
1295    2003-11-25  Bernhard Herzog  <[email protected]>
1296    
1297            Add very experimental (and possibly dangerous) extension to draw
1298            polygons:
1299    
1300            * Extensions/drawshape/README: New. Brief installation
1301            instructions
1302    
1303            * Extensions/drawshape/drawshape.py: New. Implementation of the
1304            drawshape extensions
1305    
1306            * Extensions/drawshape/patch.diff: Patch to apply before the
1307            extension can be used.
1308    
1309    2003-11-24  Bernhard Herzog  <[email protected]>
1310    
1311            * Thuban/Model/data.py (ShapefileStore._open_shapefile)
1312            (ShapefileStore.__init__): Factor opening the shapefile into a
1313            separate method (the new _open_shapefile). This makes the code a
1314            bit more readable but the real reason is that it makes some evil
1315            hacks easier. :-)
1316    
1317    2003-11-24  Bernhard Herzog  <[email protected]>
1318    
1319            * Thuban/Model/load.py (SessionLoader.check_attrs): If no
1320            converter is specified for an attribute assume it's a string
1321            containing only Latin1 characters. Update doc-string accordingly.
1322            This change should fix many places where unicode objects might
1323            accidentally enter Thuban.
1324    
1325            * test/test_load.py (TestNonAsciiColumnName): New test to check
1326            what happens with column names in DBF files that contain non-ascii
1327            characters
1328    
1329    2003-11-21  Bernhard Herzog  <[email protected]>
1330    
1331            Enable the experimental attribute editing again and introduce a
1332            command line switch to actually activate it
1333    
1334            * Thuban/UI/main.py (options): New. Container for options set on
1335            the commmand line
1336            (main): Add the --enable-attribute-editing flag.
1337    
1338            * Thuban/UI/identifyview.py (IdentifyView.__init__): If attribute
1339            editing is enabled use the grid ctrl which allows editing of the
1340            values
1341    
1342            * Thuban/Model/transientdb.py (AutoTransientTable.write_record):
1343            New. Just delegate this to the underlying table.
1344    
1345    2003-11-20  Bernhard Herzog  <[email protected]>
1346    
1347            * test/test_proj.py (ProjFileReadTests.test_read_unreadable_file):
1348            Skip this test if run under non-posix systems since it only works
1349            there
1350    
1351    2003-11-19  Bernhard Herzog  <[email protected]>
1352    
1353            * Thuban/Model/resource.py: Rework the way gdal support is
1354            determined so that we can give a reason in the about why gdal is
1355            not supported.
1356            (gdal_support_status): New. Variable holding a string with the
1357            reason for no gdal support
1358    
1359            * Thuban/UI/about.py (About.__init__): Add the reason why gdal is
1360            not supported to the message
1361    
1362    2003-11-19  Bernhard Herzog  <[email protected]>
1363    
1364            Remove the old table interface and its test cases
1365    
1366            * Thuban/Model/table.py (OldTableInterfaceMixin): Removed.
1367            (DBFTable, MemoryTable): Do not derive from OldTableInterfaceMixin
1368            anymore
1369    
1370            * Thuban/Model/transientdb.py (TransientTableBase)
1371            (AutoTransientTable): Do not derive from OldTableInterfaceMixin
1372            anymore
1373    
1374            * test/test_table.py: Removed since the old interface it tests is
1375            gone.
1376    
1377            * test/runtests.py (main): The old table interface is gone and
1378            with it the deprecation warnings so remove the code that turns
1379            these warnings into errors
1380    
1381    2003-11-19  Bernhard Herzog  <[email protected]>
1382    
1383            * test/test_table.py: Revert to revision 1.5 again. Changing the
1384            tests to use the new table interface is completely wrong since the
1385            whole purpose of the tests in this module is to test the old
1386            interface.
1387    
1388    2003-11-18  Bernhard Herzog  <[email protected]>
1389    
1390            * Thuban/Model/postgisdb.py (PostGISConnection.MatchesParameters):
1391            New. Test whether the connection matches a set of connection
1392            parameters
1393    
1394            * Thuban/UI/dbdialog.py (DBFrame.conns_changed): Fix doc-string
1395            (DBFrame.OnAdd): Use the new MatchesParameters method when looking
1396            for existing connections with the same parameters and break out of
1397            the loop correctly.
1398    
1399            * test/test_postgis_db.py (TestBriefDescription)
1400            (TestPostGISSimple.test_brief_description): Rename
1401            TestBriefDescription to TestPostGISSimple and the test method to
1402            test_brief_description so that we can add more test methods.
1403            (TestPostGISSimple.test_matches_parameters): New. Test the new
1404            MatchesParameters method
1405    
1406    2003-11-18  Bernhard Herzog  <[email protected]>
1407    
1408            * Thuban/Lib/connector.py (Publisher): Introduce a new flag,
1409            _was_destroyed, to indicate whether an publisher instance has
1410            already been destroyed.
1411            (Publisher.Unsubscribe): Only disconnect if the publisher has not
1412            been destroyed yet.
1413            (Publisher.Destroy): Set the _was_destroyed flag to true.
1414    
1415            * test/test_connector.py
1416            (TestPublisher.test_unsubscribe_after_destroy): New. Test that
1417            calling Unsubscribe after Destroy doesn't raise an exception
1418    
1419    2003-11-14  Bernhard Herzog  <[email protected]>
1420    
1421            * Thuban/UI/identifyview.py (IdentifyView.selected_shape): Fix
1422            typo in doc-string
1423    
1424    2003-11-13  Bernhard Herzog  <[email protected]>
1425    
1426            Quote table and column names properly for postgis.
1427    
1428            * Thuban/Model/postgisdb.py (quote_identifier): New. Function to
1429            quote an identifier for use in an sql statement
1430            (PostGISColumn.__init__): Add the quoted_name attribute
1431            (PostGISTable.__init__): New instance variable quoted_tablename
1432            (PostGISTable._fetch_table_information): Use the quoted table
1433            name. New isntance variable quoted_geo_col with a quoted version
1434            of geometry_column
1435            (PostGISTable.NumRows, PostGISTable.RowIdToOrdinal)
1436            (PostGISTable.RowOrdinalToId): Use the quoted table name
1437            (PostGISTable.ReadValue, PostGISTable.ValueRange)
1438            (PostGISTable.UniqueValues, PostGISTable.SimpleQuery)
1439            (PostGISShapeStore.BoundingBox, PostGISShapeStore.Shape)
1440            (PostGISShapeStore.AllShapes, PostGISShapeStore.ShapesInRegion):
1441            Use quoted table and column names
1442    
1443            * test/test_postgis_db.py (TestPostGISSpecialCases)
1444            (TestPostGISIgnoredColumns): Rename the class to
1445            TestPostGISSpecialCases because that better describes the new
1446            cases
1447            (TestPostGISSpecialCases.test_unsupported_types)
1448            (TestPostGISSpecialCases.test): Rename the method to
1449            test_unsupported_types because we need a more descriptive name now
1450            that there are more methods
1451            (TestPostGISSpecialCases.test_table_name_quoting)
1452            (TestPostGISSpecialCases.test_column_name_quoting)
1453            (TestPostGISSpecialCases.test_shapestore_name_quoting): New test
1454            cases to test quoting of table and column names in PostGISTable
1455            and PostGISShapeStore
1456    
1457            * test/postgissupport.py
1458            (skip_if_addgeometrycolumn_does_not_use_quote_ident): New. Skip if
1459            AddGeometryColumn desn't support table or column names with sapces
1460            or double quotes
1461    
1462    2003-11-12  Jan-Oliver Wagner <[email protected]>
1463    
1464            * Extensions/wms/__init__.py: New: Init to make this
1465            directory a package.
1466    
1467            * Extensions/wms/wms.py: New: Provide layers via OGC WMS.
1468    
1469    2003-11-11  Bernhard Herzog  <[email protected]>
1470    
1471            * Thuban/Model/resource.py (EPSG_DEPRECATED_PROJ_FILE): New.
1472            Constant for the file woth deprecated epsg projections
1473            (get_system_proj_file): Update doc-string
1474    
1475            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Add a space
1476            above the EPS widgets, introduce a check box for the deprecated
1477            eps projections and a label for the epsg widgets
1478            (ProjFrame._OnShowEPSG): Handle the deprecated EPSG projections
1479            too
1480    
1481    2003-11-11  Bernhard Herzog  <[email protected]>
1482    
1483            Avoid warnings when run under Python 2.3
1484    
1485            * Thuban/UI/baserenderer.py (BaseRenderer.draw_point_shape)
1486            (BaseRenderer.draw_label_layer): Coordinates must be ints.
1487    
1488            * Thuban/UI/renderer.py (MapRenderer.make_point): Turn this into a
1489            real method so that we can convert to int.
1490            (MapRenderer.label_font): The font size mist be an int.
1491    
1492            * Thuban/UI/common.py (Color2wxColour): The color values must be
1493            ints. Also, remove the unnecessary asserts.
1494    
1495            * test/test_load_0_8.py (TestUnicodeStrings.file_contents)
1496            (TestUnicodeStrings.test): Python source code should not contain
1497            non-ascii characters unless an encoding is specified in the file.
1498            Therefore use \x escapes in the string literals for non-ascii
1499            characters.
1500    
1501    2003-11-11  Bernhard Herzog  <[email protected]>
1502    
1503            * Thuban/Model/resource.py (get_system_proj_file): Add a filename
1504            parameter so that this function can be used for all proj files in
1505            Resource/Projections
1506            (DEFAULT_PROJ_FILE, EPSG_PROJ_FILE): New. Predefined filenames for
1507            get_system_proj_file
1508    
1509            * Thuban/UI/projdialog.py (ProjFrame.__init__): Instead of one
1510            ProjFile self.__sysProjFile use a dictionary of system ProjFile
1511            objects self._sys_proj_files
1512            (ProjFrame.build_dialog): Adapt to the new changes in the
1513            ProjectionList constructor. Add a check button to toggle whether
1514            EPSG projections are shown
1515            (ProjFrame._OnShowEPSG): New. Handler for the epsg check button
1516            events.
1517            (ProjFrame.load_user_proj, ProjFrame.load_system_proj): Only show
1518            the busy cursor if the files have not yet been loaded by the
1519            dialog.
1520            (ProjFrame.load_system_proj): Add a parameter for the name of the
1521            proj file. Maintain the dictionary of system projections
1522            self._sys_proj_files
1523    
1524            * Thuban/UI/projlist.py (ProjectionList): Merge the system_projs,
1525            user_projs parameters into one parameter proj_files which is a
1526            list of proj files.
1527            (ProjectionList._subscribe_proj_files)
1528            (ProjectionList._unsubscribe_proj_files): New. Move
1529            subscription/unsubscription of projfile messages to separate
1530            methods
1531            (ProjectionList.Destroy): The unsubscribe is now done in
1532            _unsubscribe_proj_files
1533            (ProjectionList.update_projections): We now have a list of proj
1534            file objects
1535            (ProjectionList.SetProjFiles): New method to set a new list of
1536            proj file objects
1537    
1538            * test/test_proj.py (ProjFileReadTests.test_get_system_proj_file):
1539            Specify explicitly which system proj file to load.
1540    
1541    2003-11-11  Bernhard Herzog  <[email protected]>
1542    
1543            * Thuban/Model/load.py (SessionLoader.Destroy): New. Clear all
1544            instance variables to cut cyclic references. The GC would have
1545            collected the loader eventually but it can happen that it doesn't
1546            run at all until thuban is closed (2.3 but not 2.2 tries a bit
1547            harder and forces a collection when the interpreter terminates)
1548            (load_session): Call the handler's Destroy method to make sure
1549            that it gets garbage collected early. Otherwise it will be
1550            collected very late if at all and it holds some references to e.g.
1551            shapestores and the session which can lead to leaks (of e.g. the
1552            temporary files)
1553    
1554            * test/test_load.py (TestSingleLayer.test_leak): New. test for the
1555            resource leak in load_session
1556    
1557    2003-11-10  Bernhard Herzog  <[email protected]>
1558    
1559            * Thuban/UI/baserenderer.py: Add a way to specify how layers in
1560            extensions are to be rendered.
1561            (_renderer_extensions): New. List with renderer for layers in
1562            extensions
1563            (add_renderer_extension): New. Add a renderer extension
1564            (init_renderer_extensions): New. Init the renderer extensions
1565            (BaseRenderer.render_map_incrementally): Search
1566            _renderer_extensions for how to draw unknown layer types
1567            (BaseRenderer.draw_raster_data): Add format parameter so that
1568            formats other than BMP can be drawn
1569            (BaseRenderer.draw_raster_layer): Pass an explicit format to
1570            draw_raster_data
1571    
1572            * Thuban/UI/renderer.py (raster_format_map): New. Mapping form the
1573            strings of the format parameter of draw_raster_data method to wx
1574            constants
1575            (MapRenderer.draw_raster_data): Add the format parameter and use
1576            raster_format_map to map it to the right wxwindows constant for
1577            wxImageFromStream
1578    
1579            * test/test_baserenderer.py (SimpleRenderer.draw_raster_data): Add
1580            the format parameter and record it
1581            (TestBaseRenderer.test_raster_no_projection): check the format
1582            paramter of the draw_raster_data method
1583            (TestBaseRenderer.test_renderer_extension): New. Test the renderer
1584            extension facility
1585    
1586    2003-11-07  Bernhard Herzog  <[email protected]>
1587    
1588            Tweak the usage of the sqlite database to make common use cases
1589            more responsive. In most cases copying the data to the sqlite
1590            database takes so long that using sqlite doesn't have enough
1591            advantages.
1592    
1593            * Thuban/Model/transientdb.py (TransientTableBase.ValueRange): Add
1594            comments about performance and query the min and max in separate
1595            statements because only that way will indexes be used.
1596            (TransientTableBase.UniqueValues): Add some comments about
1597            performance.
1598            (AutoTransientTable.ValueRange, AutoTransientTable.UniqueValues):
1599            Do not copy the data to the transient DB but use the transient
1600            copy if it exists. See the new comments for the performance trade
1601            offs
1602    
1603            * test/test_transientdb.py
1604            (TestTransientTable.test_auto_transient_table): Make sure that the
1605            data is copied to the transient database at some point.
1606    
1607    2003-11-03  Bernhard Herzog  <[email protected]>
1608    
1609            * Thuban/Model/data.py (ShapefileStore.ShapesInRegion): Bind some
1610            globals to locals so that it's a bit faster
1611    
1612    2003-11-03  Bernhard Herzog  <[email protected]>
1613    
1614            * Thuban/UI/baserenderer.py
1615            (BaseRenderer.draw_shape_layer_incrementally): Use the ReadValue
1616            method. ReadValue is faster than ReadRowAsDict since it only reads
1617            one cell especially now that the dbf file objects actually
1618            implement it.
1619    
1620            * Thuban/Model/table.py (DBFTable.ReadValue): Use the new
1621            read_attribute method of the dbf objects
1622    
1623    2003-11-03  Bernhard Herzog  <[email protected]>
1624    
1625            * Extensions/profiling/profiling.py (popup_dialog_box): New config
1626            variable to indicate whether the result should be shown in a
1627            dialog box
1628            (profile_screen_renderer, time_screen_renderer): Only show a
1629            dialog box if popup_dialog_box is true.
1630            (profile_screen_renderer): Flush stdout after the printing the
1631            first part of the "profiling..." message
1632    
1633            * Thuban/UI/baserenderer.py
1634            (BaseRenderer.draw_shape_layer_incrementally): Cache the pens and
1635            brushes for the groups so that they're not created over and over
1636            again
1637    
1638            * Thuban/Model/classification.py (Classification.__getattr__)
1639            (Classification._compile_classification)
1640            (Classification._clear_compiled_classification): New. Methods to
1641            manage a 'compiled' representation of the classification groups
1642            which is created on demand
1643            (Classification.InsertGroup, Classification.RemoveGroup)
1644            (Classification.ReplaceGroup): reset the compiled representation
1645            (Classification.FindGroup): Use the compiled representation to
1646            find the matching group
1647            (ClassGroupRange.GetRangeTuple): New. Return the range as a tuple
1648    
1649    2003-10-31  Bernhard Herzog  <[email protected]>
1650    
1651            * Thuban/Model/classification.py (Classification.SetDefaultGroup):
1652            Send a CLASS_CHANGED message
1653            (Classification.RemoveGroup): Send a CLASS_CHANGED message and do
1654            not return the removed group since it wasn't used.
1655    
1656            * test/test_classification.py
1657            (TestClassification.test_set_default_group): New. Test the
1658            SetDefaultGroup method
1659            (TestClassification.test_insert_group): New. Test the InsertGroup
1660            method
1661            (TestClassification.test_remove_group): New. Test the RemoveGroup
1662            method
1663            (TestClassification.test_replace_group): New. Test the
1664            ReplaceGroup method
1665    
1666    2003-10-31  Bernhard Herzog  <[email protected]>
1667    
1668            * test/test_classification.py (TestClassification.setUp):
1669            Subscribe to the CLASS_CHANGED messages
1670            (TestClassification.tearDown): New. Destroy the classification
1671            properly
1672            (TestClassification.test_defaults): Add tests for the default line
1673            width and whether no messages were sent yet
1674            (TestClassification.test_set_default_properties): Add tests for
1675            messages and setting the default line width
1676            (TestClassification.test_add_singleton)
1677            (TestClassification.test_add_range)
1678            (TestClassification.test_multiple_groups): Add tests for messages
1679    
1680    2003-10-31  Bernhard Herzog  <[email protected]>
1681    
1682            Some more refactoring in preparation for new tests:
1683    
1684            * test/test_classification.py (TestClassification.setUp): New.
1685            Instantiate the classification here. Update the test methods
1686            accordingly.
1687            (TestClassification.test_multiple_groups): Make sure that the two
1688            singletons matching 1 are considered different.
1689    
1690    2003-10-31  Bernhard Herzog  <[email protected]>
1691    
1692            * test/test_classification.py (red, green, blue): New. These
1693            constants were used in several cases. Update the relevant methods.
1694            (TestClassification.test_defaults)
1695            (TestClassification.test_set_default_properties)
1696            (TestClassification.test_add_singleton)
1697            (TestClassification.test_add_range)
1698            (TestClassification.test_multiple_groups)
1699            (TestClassification.test_deepcopy): New. These were formerly all
1700            part of the single method test.
1701            (TestClassification.test_deepcopy): Removed.
1702            (TestClassIterator): Removed. The test case is now a method of
1703            TestClassification since it tests part of the public interface of
1704            Classification
1705            (TestClassification.test_iterator): New. Used to be
1706            TestClassIterator effectively
1707    
1708    2003-10-31  Jan-Oliver Wagner <[email protected]>
1709    
1710            GUIfied the functions of the profiling extension.
1711    
1712            * /Extensions/profiling/__init__.py: New: Init to make this
1713            directory a package.
1714    
1715            * Extensions/profiling/profiling.py: Moved menu entries to
1716            the Extensions menu. Applied _() for strings.
1717            (profile_screen_renderer): Catch the detailed printout and present
1718            it in a dialog.
1719            (time_screen_renderer): Raise a dialog to present the result instead
1720            of printing it to stdout.
1721    
1722    2003-10-31  Bernhard Herzog  <[email protected]>
1723    
1724            * test/test_classification.py (TestClassGroupProperties)
1725            (TestClassGroup, TestClassGroupDefault, TestClassGroupRange)
1726            (TestClassGroupSingleton, TestClassIterator, TestClassification):
1727            Split TestClassification into several classes, one for each class
1728            being tested. TestClassification itself now only tests
1729            Classification. This split makes changes to the tests a bit easier
1730    
1731    2003-10-31  Bernhard Herzog  <[email protected]>
1732    
1733            * Extensions/profiling/profiling.py: New. Extension to measure
1734            Thuban performance
1735    
1736    2003-10-31  Frank Koormann <[email protected]>
1737    
1738            Added two items to legend popup menu: Remove Layer and Show Layer Table
1739    
1740            * Thuban/UI/legend.py (LegendPanel._OnRemoveLayer,
1741            LegendPanel._OnShowTable): New event handlers, call the corresponding
1742            mainwindow methods.
1743            (LegendTree._OnRightClick): Added items to popup menu.
1744    
1745    2003-10-30  Bernhard Herzog  <[email protected]>
1746    
1747            * Thuban/UI/dialogs.py (ThubanFrame.__init__): Handle
1748            EVT_WINDOW_DESTROY
1749            (ThubanFrame.OnDestroy): New. Handler for EVT_WINDOW_DESTROY. Does
1750            nothing but is convenient for the derived classes.
1751    
1752            * Thuban/UI/tableview.py
1753            (TableFrame.OnDestroy, LayerTableFrame.OnDestroy): New.
1754            Unsubscribe the messages here not in OnClose because that might
1755            get called multiple times. Fixes RT #2196
1756            (TableFrame.OnClose, LayerTableFrame.OnClose): Removed. Not needed
1757            anymore.
1758    
1759            * README: Update the minimum requirement for wxPython. Since we
1760            now use the EVT_WINDOW_DESTROY event, we need at least 2.4.0.4,
1761            the version in which that was introduced for all platforms
1762    
1763    2003-10-30  Frank Koormann <[email protected]>
1764    
1765            * Thuban/UI/join.py (JoinDialog.OnJoin): Wrapped the major parts of
1766            the join process in a ThubanBeginBusyCursor, ThubanEndBusyCursor
1767            frame.
1768    
1769    2003-10-30  Jan-Oliver Wagner <[email protected]>
1770    
1771            Improved APR import extension, added further EPSG definitions
1772            and some cleanup regarding string class.
1773    
1774            * test/test_proj.py (TestProjection.test_get_projection_units_geo):
1775            Added test for alias 'longlat'.
1776    
1777            * Resources/Projections/epsg-deprecated.proj: New. Contains
1778            deprecated EPSG definitions.
1779    
1780            * Extensions/importAPR/odb.py (ODBBaseObject.TreeInfo): Added
1781            the variable names for objects.
1782    
1783            * Extensions/importAPR/apr.py (APR_BLnSym, APR_BMkSym, APR_BShSym): New.
1784            Copied from importAPR and provided with documentation.
1785    
1786            * Extensions/importAPR/importAPR.py (APR_BLnSym, APR_BMkSym, APR_BShSym):
1787            Moved to apr.py.
1788            (APR_View): Added object ref 'ITheme'.
1789    
1790            * Thuban/Lib/fileutil.py, Thuban/UI/proj4dialog.py: Replaced string
1791            split function by corresponding use of the string class method.
1792    
1793            * Thuban/Model/xmlwriter.py: Replaced string replace function by
1794            corresponding string method.
1795    
1796    2003-10-29  Bernhard Herzog  <[email protected]>
1797    
1798            * Thuban/UI/baserenderer.py
1799            (BaseRenderer.draw_shape_layer_incrementally): Speed up the
1800            special case of a classification that only has the default group
1801    
1802    2003-10-27  Bernhard Herzog  <[email protected]>
1803    
1804            * po/fr.po, po/es.po: Updated translations from Daniel Calvelo
1805    
1806            * po/de.po: Update.
1807    
1808            * Thuban/UI/application.py
1809            (ThubanApplication.ShowExceptionDialog): Handle translation of the
1810            dialog message properly
1811    
1812    2003-10-27  Bernhard Herzog  <[email protected]>
1813    
1814            Rework how localization works so that we use wx's translation
1815            functions when running Thuban as a normal application but not when
1816            we don't need any UI, such as in the test suite. See the comment
1817            in Thuban/__init__.py for details
1818    
1819            * Thuban/__init__.py (_): Add one level of indirection to make the
1820            translation handling more flexible and to make it possible to use
1821            either wx's translation services or not.
1822            (gettext_identity, translation_function_installed)
1823            (install_translation_function): New function to help with this
1824    
1825            * Thuban/UI/__init__.py: Install the wx specific translation
1826            function if it's OK to do that
1827    
1828            * test/support.py (initthuban): Install a dummy translation
1829            function so that importing Thuban.UI doesn't install a wx specific
1830            one for which would need to import wxPython
1831    
1832    2003-10-27  Bernhard Herzog  <[email protected]>
1833    
1834            * HOWTO-Release: Source archives should be created first and the
1835            binary packages should be created from the source archives.
1836            There's an official debian package now so there's no need to test
1837            the rpm on debian anymore
1838    
1839    2003-10-27  Bernhard Herzog  <[email protected]>
1840    
1841            Several rendering changes:
1842    
1843             - Render the selection into a separate bitmap so that only that
1844               bitmap needs to be redrawn when the selection changes
1845    
1846             - Render incrementally showing previews and allowing interaction
1847               before rendering is complete
1848    
1849             - Update the renderer interface a bit. Most parameters of
1850               RenderMap are now parameters of the constructor
1851    
1852            * Thuban/UI/baserenderer.py (BaseRenderer.__init__): Add the map
1853            and the update region as parameters. Update the doc-string
1854            (BaseRenderer.render_map_incrementally): New. Generator function
1855            to renders the map incrementally
1856            (BaseRenderer.render_map): Remove the map argument (it's now in
1857            the constructor) and simply iterate over the
1858            render_map_incrementally generator to draw the map.
1859            (BaseRenderer.draw_shape_layer_incrementally)
1860            (BaseRenderer.draw_shape_layer): Renamed to
1861            draw_shape_layer_incrementally and changed into a generator that
1862            yields True every 500 shapes. Used by render_map_incrementally to
1863            render shape layers incrementally
1864    
1865            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Removed the
1866            map and region parameters which are now in the constructor
1867            (ScreenRenderer.RenderMapIncrementally): New. Public frontend for
1868            the inherited render_map_incrementally.
1869            (BaseRenderer.draw_shape_layer): Removed.
1870            (ScreenRenderer.draw_selection_incrementally): New. The selection
1871            drawing part of the removed draw_shape_layer as a generator
1872            (ScreenRenderer.layer_shapes): Update because of the region
1873            parameter change
1874            (ExportRenderer.__init__): New. Extend the inherited constructor
1875            with the destination region for the drawing
1876            (ExportRenderer.RenderMap): Removed the map and region parameters
1877            which are now in the constructor
1878    
1879            * Thuban/UI/view.py (MapCanvas.PreviewBitmap): New. Return a
1880            bitmap suitable for a preview in a tool
1881            (CanvasPanTool.MouseMove): Use the PreviewBitmap method to get the
1882            bitmap
1883            (MapPrintout.draw_on_dc): Adapt to new renderer interface
1884            (MapCanvas.OnPaint): Handle drawing the selection bitmap if it
1885            exists
1886            (MapCanvas.OnIdle): Update the logic to deal with incremental
1887            rendering and the selection bitmap
1888            (MapCanvas._do_redraw): Handle the instantiation of the render
1889            iterator and the redraws during rendering
1890            (MapCanvas._render_iterator): New. Generator to incrementally
1891            redraw both bitmaps
1892            (MapCanvas.Export): Adapt to new renderer interface.
1893            (MapCanvas.full_redraw): Reset the selection bitmap and the
1894            renderer iterator too
1895            (MapCanvas.redraw_selection): New. Force a redraw of the selection
1896            bitmap
1897            (MapCanvas.shape_selected): Only redraw the selection bitmap
1898    
1899            * test/test_baserenderer.py
1900            (TestBaseRenderer.test_polygon_no_projection)
1901            (TestBaseRenderer.test_raster_no_projection)
1902            (TestBaseRenderer.test_point_map_projection)
1903            (TestBaseRenderer.test_point_layer_and_map_projection)
1904            (TestBaseRenderer.test_point_layer_projection)
1905            (TestBaseRenderer.test_point_with_classification): Adapt to new
1906            renderer interface
1907    
1908    2003-10-24  Bernhard Herzog  <[email protected]>
1909    
1910            * libraries/thuban/wxproj.cpp (draw_polygon_shape)
1911            (point_in_polygon_shape, shape_centroid): Raise an exception if
1912            the shape can't be read. Previously invalid shape ids would lead
1913            to a segfault.
1914    
1915            * test/test_wxproj.py (TestShapeCentroid.test_invalid_shape_id):
1916            New. test whether an exception is raised for invalid shape ids
1917    
1918    2003-10-24  Jan-Oliver Wagner <[email protected]>
1919    
1920            * Thuban/Model/proj.py (Projection.GetProjectedUnits): Added 'longlat'
1921            as alias for 'latlong'.
1922    
1923            * Thuban/UI/projdialog.py (ProjFrame.__init__): Added 'longlat'
1924            as alias for 'latlong'.
1925    
1926    2003-10-24  Jan-Oliver Wagner <[email protected]>
1927    
1928            * Thuban/UI/projdialog.py (ProjFrame.proj_selection_changed): Set
1929            the projection even for the UnknownPanel.
1930            (UnknownProjPanel.__init__): Define the text and create the textctrl
1931            widget.
1932            (UnknownProjPanel._DoLayout): Replaced static text widget by the
1933            textctrl created in __init__.
1934            (UnknownProjPanel.SetProjection): Set the text for the text ctrl
1935            including the parameters of the projection.
1936            
1937    2003-10-24  Jan-Oliver Wagner <[email protected]>
1938    
1939            * Resources/Projections/epsg.proj: New. This is a list of
1940            EPSG codes with parameters for proj. The list has been
1941            generated using devtools/create_epsg.py based on the
1942            file nad/epsg of the proj 4.4.7 package. Four projection
1943            definitions have been deleted as they are not accepted by proj:
1944            "CH1903+ / LV95", "Bern 1898 (Bern) / LV03C", "CH1903 / LV03"
1945            and "HD72 / EOV".
1946    
1947    2003-10-22  Bernhard Herzog  <[email protected]>
1948    
1949            Some more tweaks to the projection dialog which should fix RT
1950            #1886.
1951    
1952            * Thuban/UI/projlist.py (ProjectionList.Destroy): Unsubscribe from
1953            the ProjFile's messages and call the base class methods correctly
1954            (ProjectionList.SelectProjection): Set the wxLIST_STATE_FOCUSED
1955            flag on the newly selected item too. Otherwise some other item is
1956            focused and the first time the focus is moved with the keyboard
1957            the selection moves in unexpected ways.
1958    
1959            * Thuban/UI/projdialog.py (ProjFrame.__init__): Do not set the
1960            focus on the OK button, only on the projection list. That way the
1961            list really has the focus initially
1962            (ProjFrame.OnClose): Call the projection list's Destroy method to
1963            make it unsubscribe all messages
1964    
1965    2003-10-21  Bernhard Herzog  <[email protected]>
1966    
1967            Rework the projection dialog to fix a few bugs, including RT 2166
1968            and most of 2168
1969    
1970            * Thuban/UI/projlist.py: New. The class ProjectionList is a
1971            special wxListCtrl to show a list of projections in a more MVC
1972            fashion
1973    
1974            * Thuban/UI/projdialog.py (ProjFrame): Substantial changes
1975            throughout the class. The main change is to use the ProjectionList
1976            class instead of a normal wxListBox. Also, add an explicit
1977            "Unknown" projection to the projection choice control.
1978            (ProjPanel.__init__): Add an "unknown" ellipsoid
1979            (TMPanel.__init__, LCCPanel.__init__): Tweak the order of
1980            instantiation of the panel's controls to make the tab-order more
1981            natural
1982    
1983    2003-10-21  Bernhard Herzog  <[email protected]>
1984    
1985            * test/test_load.py (TestSingleLayer.file_contents)
1986            (TestSingleLayer.test): Add non-ascii characters to the titles of
1987            session, map and layer. This is effectively a port of the
1988            TestUnicodeStrings test in test_load_0_8.py which for some reason
1989            was only added there.
1990    
1991            * test/test_load_0_9.py (TestSingleLayer.file_contents)
1992            (TestSingleLayer.test): Same as in test_load.py: add non-ascii
1993            characters to the titles of session, map and layer,.
1994    
1995    2003-10-21  Bernhard Herzog  <[email protected]>
1996    
1997            Add EPSG projection handling to .thuban files
1998    
1999            * test/test_save.py (SaveSessionTest.dtd)
2000            (SaveSessionTest.testEmptySession)
2001            (SaveSessionTest.testLayerProjection)
2002            (SaveSessionTest.testRasterLayer)
2003            (SaveSessionTest.testClassifiedLayer)
2004            (SaveSessionTest.test_dbf_table)
2005            (SaveSessionTest.test_joined_table)
2006            (SaveSessionTest.test_save_postgis): Update to 1.0-dev namespace
2007            (SaveSessionTest.testSingleLayer): Update to 1.0-dev namespace and
2008            use a and epsg projection to test saving them
2009    
2010            * test/test_load.py (LoadSessionTest.dtd): Update to 1.0-dev
2011            namespace
2012            (TestLayerVisibility.file_contents, TestLabels.file_contents)
2013            (TestLayerProjection.file_contents)
2014            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2015            (TestPostGISLayer.file_contents)
2016            (TestPostGISLayerPassword.file_contents)
2017            (TestLoadError.file_contents, TestLoadError.test): Update to use
2018            1.0-dev namespace
2019            (TestSingleLayer.file_contents, TestSingleLayer.test): Update to
2020            use 1.0-dev namespace and use an EPSG projection to test whether
2021            loading it works
2022    
2023            * test/test_load_0_9.py: New. Effectively a copy of test_load.py
2024            as of Thuban 0.9. These are now tests to determine whether Thuban
2025            can still read files generated by Thuban 0.9
2026    
2027            * Thuban/Model/save.py (SessionSaver.write)
2028            (SessionSaver.write_session): Use the 1.0 dtd and 1.0-dev
2029            namespace
2030            (SessionSaver.write_projection): Write the projection's epsg
2031            attribute
2032    
2033            * Thuban/Model/load.py (SessionLoader.__init__): Also accept the
2034            thuban-1.0-dev.dtd namespace
2035            (SessionLoader.check_attrs): Allow a callable object as conversion
2036            too
2037            (SessionLoader.start_projection, SessionLoader.end_projection)
2038            (SessionLoader.start_parameter): Handle the epsg attribute and
2039            rename a few instance variables to lower case
2040    
2041            * Resources/XML/thuban-1.0.dtd: New. Only difference to
2042            thuban-0.9.dtd is the epsg attribute for projections.
2043    
2044    2003-10-21  Bernhard Herzog  <[email protected]>
2045    
2046            * test/runtests.py (main): Let the user specify which tests to run
2047            on the command line
2048    
2049            * test/support.py (ThubanTestResult.getDescription): Override to
2050            give a better short description. The description can be used as a
2051            parameter to run_tests to run that particular test in isolation.
2052    
2053    2003-10-21  Frank Koormann   <[email protected]>
2054    
2055            Popup menu for legend. Scheduled for the 1.2 release this was too
2056            simple to implement: The popup menu is bound to the legend tree, while
2057            the events are hanlded by its anchestor, the legend panel. This
2058            allows reuse of all the event handlers already implemented for the
2059            legend toolbar buttons.
2060    
2061            * Thuban/UI/legend.py (LegendPanel.__init__): EVT_MENU macros
2062            to add handlers for the events issued by the popup menu.
2063            (LegendPanel._OnToggleVisibility): Handler for toggling layer
2064            visibility event
2065            (LegendPanel._OnProjection): Handler for layer projection event.
2066            (LegendTree.__init__): Added EVT_TREE_ITEM_RIGHT_CLICK
2067            (LegendTree._OnRightClick): Event handler for right click, select item
2068            and pop up menu.
2069            (LegendTree.ToggleVisibility): Toggle layer visibility
2070            (LegendTree.LayerProjection): Raise layer projection dialog for
2071            current layer.
2072    
2073    2003-10-21  Bernhard Herzog  <[email protected]>
2074    
2075            * Resources/Projections/defaults.proj: Use correct DOCTYPE
2076            declaration. The top-level element is projectionlist not projfile
2077    
2078    2003-10-20  Bernhard Herzog  <[email protected]>
2079    
2080            * Thuban/UI/projdialog.py (ProjFrame.write_proj_file): New. helper
2081            method to write a projfile and display a busy cursor and error
2082            dialogs.
2083            (ProjFrame._OnSave, ProjFrame._OnAddToList, ProjFrame._OnImport)
2084            (ProjFrame._OnExport, ProjFrame._OnRemove): Use write_proj_file
2085            (ProjFrame.__FillAvailList): Translate "<None>" too and display a
2086            busy cursor while loading the user and system prj files.
2087    
2088    2003-10-16  Bernhard Herzog  <[email protected]>
2089    
2090            * Thuban/Model/resource.py (projfile_cache): Introduce a cache for
2091            ProjFile objects
2092            (clear_proj_file_cache): New function to clear the cache. Mainly
2093            useful for use by the test suite
2094            (read_proj_file): Use the cache.
2095    
2096            * test/test_proj.py (TestProjFile): Clarify the doc-string
2097            (ProjFileReadTests): Update doc-string
2098            (ProjFileReadTests.test_get_system_proj_file): Check whether the
2099            system proj files is cached.
2100            (ProjFileLoadTestCase): New base class for the proj file tests
2101            derived from support.FileLoadTestCase to provide some common
2102            behavior.
2103            (TestLoadingProjFile)
2104            (TestLoadingProjFileWithEmptyProjectionlist.file_contents)
2105            (TestProjFileWithInvalidParameters.file_contents): Derive from
2106            ProjFileLoadTestCase
2107            (TestLoadingProjFile.test_caching): New. Test whether the cache
2108            works
2109    
2110    2003-10-16      Silke Reimer    <[email protected]>
2111    
2112            * debian/*: New directory with configuration files for building a thuban
2113              deb-package.
2114    
2115    2003-10-14  Bernhard Herzog  <[email protected]>
2116    
2117            * test/test_proj.py: Execute support.run_tests when run as
2118            __main__ so that missing unsubscribes are detected
2119            (TestProjFile.tearDown): Destroy the proj_file properly
2120    
2121    2003-10-14  Bernhard Herzog  <[email protected]>
2122    
2123            * Thuban/Model/messages.py (PROJECTION_ADDED)
2124            (PROJECTION_REPLACED, PROJECTION_REMOVED): New message types for
2125            the ProjFile objects
2126    
2127            * Thuban/Model/proj.py (ProjFile): Derive from Publisher so we can
2128            easily send messages when the projections change
2129            (ProjFile.Add, ProjFile.Remove, ProjFile.Replace): Issue messages
2130            when the change was successful
2131    
2132            * test/test_proj.py (TestProjFile.setUp): Subscribe to some of the
2133            proj file messages
2134            (TestProjFile.test_add_remove)
2135            (TestProjFile.test_remove_non_existing)
2136            (TestProjFile.test_replace)
2137            (TestProjFile.test_replace_non_existing): Test whether the right
2138            messages are sent
2139    
2140    2003-10-14  Bernhard Herzog  <[email protected]>
2141    
2142            * test/test_proj.py (TestProjFile.test): Refactor into several
2143            tests
2144            (TestProjFile.test_add_remove)
2145            (TestProjFile.test_remove_non_existing)
2146            (TestProjFile.test_replace)
2147            (TestProjFile.test_replace_non_existing): Some of the new
2148            individual test cases
2149            (TestProjFileSimple): New class for the rest of the test cases
2150            that came out of the refactoring
2151            (ProjFileTest): Derive from xmlsupport.ValidationTest so that the
2152            derived classes don't have to
2153    
2154    2003-10-13  Bernhard Herzog  <[email protected]>
2155    
2156            Add an optional EPSG code to the projection objects and extend the
2157            .proj file format accordingly.
2158    
2159            * Resources/XML/projfile.dtd (element projection): Add epsg
2160            attribute
2161    
2162            * Thuban/Model/proj.py (Projection.__init__): New parameter and
2163            instance variable epsg. Update doc-string
2164            (Projection.EPSGCode, Projection.Label): New methods to provide
2165            access to EPSG code and a label for use in dialogs
2166    
2167            * Thuban/Model/resource.py (ProjFileReader.start_projection)
2168            (ProjFileReader.end_projection, ProjFileSaver.write_projfile):
2169            Handle the epsg code attribute when reading or writing proj files
2170    
2171            * Thuban/UI/projdialog.py (ProjFrame._OnSave)
2172            (ProjFrame._OnAddToList, ProjFrame.__DoOnProjAvail)
2173            (ProjFrame.__FillAvailList): Use the projection's Label method to
2174            get the string for the list box
2175    
2176            * test/test_proj.py (TestProjection.test_label)
2177            (TestProjection.test_label_epsg)
2178            (TestProjection.test_epsgcode_for_non_epsg_projection)
2179            (TestProjection.test_epsgcode_for_real_epsg_projection): New tests
2180            for the label and EPSGCode methods
2181            (WriteProjFileTests.doTestWrite, WriteProjFileTests.test_write)
2182            (WriteProjFileTests.test_write_empty_file): Create the ProjFile
2183            objects in the test cases and put the expected contents into the
2184            test case methods too. Update doTestWrite accordingly
2185            (TestLoadingProjFile)
2186            (TestLoadingProjFileWithEmptyProjectionlist): New classes with the
2187            read tests from TestProjFile.
2188            (TestProjFile.doTestRead, TestProjFile.testRead): Removed. These
2189            tests are now in the new classes.
2190            (sample_projfile, sample_projfile_data)
2191            (sample_projfile2, sample_projfile_data2): Removed. Not used
2192            anymore.
2193            (TestProjFile.test_read_unreadable_file): No need to reset the
2194            permissions at the end anymore since we use a unique filename
2195    
2196    2003-10-13  Bernhard Herzog  <[email protected]>
2197    
2198            * test/test_proj.py: Some more refactoring of the test cases
2199            (ProjFileTest): New base class for the proj file tests.
2200            (TestProjFile): Derive from ProjFileTest
2201            (TestProjFile.test_read_unreadable_file)
2202            (TestProjFile.test_read_empty_file, TestProjFile.doTestRead): Use
2203            the new filename method to get a unique filename
2204            (TestProjFile.doTestWrite, TestProjFile.testWrite): Removed.
2205            (WriteProjFileTests): New class for proj file write tests.
2206            Contains the write test that were in TestProjFile originally.
2207    
2208    2003-10-13  Bernhard Herzog  <[email protected]>
2209    
2210            * test/test_proj.py (TestProjFile.testRead)
2211            (TestProjFile.test_read_non_existing_file)
2212            (TestProjFile.test_read_unreadable_file)
2213            (TestProjFile.test_read_empty_file): Split into several methods.
2214    
2215    2003-10-10  Bernhard Herzog  <[email protected]>
2216    
2217            * Thuban/UI/sizers.py: New file with custom sizers.
2218    
2219            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): Instantiate
2220            all projection type specific panels and put them into a
2221            NotebookLikeSizer. This way the dialog doesn't change its size
2222            when a different projection is selected
2223            (ProjFrame.__init__): Rename projection_panels
2224            projection_panel_defs and reuse projection_panels for a list of
2225            the instantiated panels.
2226            (ProjFrame._show_proj_panel, ProjFrame.__DoOnProjAvail)
2227            (ProjFrame.__DoOnProjChoice): Changes due to the new handling of
2228            the panels
2229            (UnknownProjPanel._DoLayout): Place the newlines in the message
2230            differently to make the panel narrower.
2231            (TMPanel._DoLayout): Layout the parameters in one column.
2232    
2233    2003-10-10  Bernhard Herzog  <[email protected]>
2234    
2235            * Thuban/UI/projdialog.py (ProjFrame.build_dialog): New method
2236            that contains all the setup for the dialog's widgets, layout and
2237            event handling.
2238            (__): Call build_dialog to build the dialog.
2239            (ProjFrame.__set_properties, ProjFrame.__do_layout): Removed.
2240            Their functionality is now in build_dialog
2241            (ProjFrame.__VerifyButtons, ProjFrame.__VerifyButtons)
2242            (ProjFrame.__DoOnProjAvail, ProjFrame.__DoOnProjAvail)
2243            (ProjFrame.__DoOnProjChoice): Small updates due to slightly
2244            different widget names and hierarchy introduced with build_dialog.
2245    
2246    2003-10-10  Bernhard Herzog  <[email protected]>
2247    
2248            * README: Fix typo.
2249    
2250    2003-10-09  Bernhard Herzog  <[email protected]>
2251    
2252            * Thuban/Model/proj.py (ProjFile.Add): Do not check whether the
2253            projection is already in the list. This is *a lot* faster when
2254            loading files with hundreds of projections since it saves a linear
2255            search. OTOH this will allow adding the same projection to the
2256            user.proj file multiple times in the projection dialog but we'll
2257            deal with that later
2258    
2259    2003-10-09  Jan-Oliver Wagner <[email protected]>
2260    
2261            * devtools: New. Directory for developer tools that are not intended
2262            for the regular user.
2263    
2264            * devtools/create_epsg.py: New. Convert the epsg file of proj into
2265            a python .proj file.
2266    
2267    2003-10-09  Bernhard Herzog  <[email protected]>
2268    
2269            * test/test_proj.py
2270            (TestProjection.test_get_parameter_without_equals_sign): New. Test
2271            whether GetParameter handles parameters without "=" sign correctly
2272    
2273            * Thuban/Model/proj.py (Projection.GetParameter): Handle
2274            parameters that do not contain a "=". Update the doc-string
2275    
2276    2003-10-08  Bernhard Herzog  <[email protected]>
2277    
2278            * Thuban/UI/projdialog.py (ProjFrame.__set_properties): Remove the
2279            length limit on the projname text control
2280    
2281    2003-10-08  Bernhard Herzog  <[email protected]>
2282    
2283            * test/test_proj.py (TestProjection.test_get_projection_units_geo)
2284            (TestProjection.test_get_projection_units_normal): New. Tests for
2285            the Projection.GetProjectedUnits method
2286    
2287    2003-10-08  Jan-Oliver Wagner <[email protected]>
2288    
2289            * Thuban/Model/resource.py (get_user_proj_file): small bug-fix:
2290            Added missing 'val' parameter.
2291    
2292    2003-10-08  Bernhard Herzog  <[email protected]>
2293    
2294            * Thuban/UI/projdialog.py (ProjFrame.__DoOnProjAvail): When the
2295            projection type of the currently selected projection is not known,
2296            i.e. there's no panel for it, use the UnknownProjPanel
2297            (ProjFrame.__DoOnProjChoice, ProjFrame._show_proj_panel): Split
2298            the actual replacing of the proj panel into the new method
2299            _show_proj_panel.
2300            (UnknownProjPanel): Add doc-string.
2301            (UnknownProjPanel._DoLayout): Insert a newline into the text so
2302            that the panel is not so wide.
2303    
2304    2003-10-08  Bernhard Herzog  <[email protected]>
2305    
2306            * Thuban/Model/resource.py (read_proj_file): Return the warnings
2307            too. Update the doc-string
2308            (get_proj_files): Removed. It wasn't used anywhere
2309            (get_system_proj_files, get_system_proj_file): Rename to
2310            get_system_proj_file and return the ProjFile object and not a list
2311            of ProjFile objects. Update the callers.
2312            (get_user_proj_files, get_user_proj_file): Rename to
2313            get_user_proj_file return the ProjFile object and not a list of
2314            ProjFile objects. Update the callers.
2315            (ProjFileReader.__init__): New instance variable for the warnings.
2316            Rename the __pf ivar to projfile. Update the methods referring to
2317            __pf
2318            (ProjFileReader.end_projection): Catch any errors raised when
2319            instantiating the projection and record that as an error. The
2320            projection will not be in the final ProjFile object.
2321            (ProjFileReader.GetWarnings): New method to return the warnings.
2322    
2323            * Thuban/UI/projdialog.py (ProjFrame.show_warnings): New method to
2324            show the warnings from the projfile reader
2325            (ProjFrame._OnImport): Deal with any warnings returned by
2326            read_proj_file
2327            (ProjFrame.__FillAvailList): Deal with any warnings returned by
2328            get_system_proj_file or get_user_proj_file.
2329    
2330            * test/test_proj.py (TestProjFile.doTestRead): Check the warnings.
2331            (TestProjFileWithInvalidParameters.file_contents): New test cases
2332            to test whether read_proj_file handles invalid projection
2333            parameters correctly
2334            (TestProjFile.test_get_system_proj_file): New. Simple test for
2335            resource.get_system_proj_file
2336    
2337    2003-10-07  Bernhard Herzog  <[email protected]>
2338    
2339            * test/test_derivedshapestore.py
2340            (TestDerivedShapeStoreExceptions.tearDown): Clear the session
2341            properly so that the temporary directories get deleted correctly
2342    
2343    2003-10-06  Bernhard Herzog  <[email protected]>
2344    
2345            Handle the title changes in a proper MVC way.
2346    
2347            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
2348            canvas' TITLE_CHANGED messages
2349            (MainWindow.update_title): New. Update the main window's title
2350            (MainWindow.__SetTitle): Removed. Use update_title instead.
2351            (MainWindow.SetMap): Use update_title instead of __SetTitle
2352            (MainWindow.RenameMap): Do change the window title explicitly
2353            here. That's handled in a proper MVC way now.
2354            (MainWindow.title_changed): New. Subscriber for the TITLE_CHANGED
2355            messages
2356    
2357            * Thuban/Lib/connector.py (Conduit): New class to help classes
2358            that forward messages
2359    
2360            * Thuban/UI/viewport.py: Forward the map's TITLE_CHANGED messages
2361            (ViewPort): Derive from Conduit instead of Publisher
2362            (ViewPort.Subscribe, ViewPort.Unsubscribe): Use the new base class
2363            when calling the inherited versions
2364            (ViewPort._subscribe_map, ViewPort._unsubscribe_map): New helper
2365            methods to subscribe and unsubscribe map messages
2366            (ViewPort.SetMap, ViewPort.Destroy): Use the new helper methods to
2367            handle the map subscriptions
2368            (ViewPort.Map, ViewPort.map_projection_changed)
2369            (ViewPort.layer_projection_changed): Add or update doc-strings
2370    
2371            * test/test_connector.py (TestPublisher.test_issue_simple): Fix
2372            typo
2373            (MyConduit): Helper class for the Conduit test.
2374            (TestConduit): Test cases for Conduit
2375    
2376            * test/test_connector.py: Use support.run_tests as main.
2377    
2378            * test/test_viewport.py (ViewPortTest.setUp): Also subscribe to
2379            the TITLE_CHANGED messages
2380            (ViewPortTest.test_forwarding_title_changed): New test to check
2381            whether the viewport forwards the map's TITLE_CHANGED messages
2382            (TestViewportWithPostGIS.tearDown): Call the map's Destroy method
2383            after the port's because the latter may require a still functional
2384            map.
2385    
2386    2003-10-06  Bernhard Herzog  <[email protected]>
2387    
2388            * Thuban/UI/application.py (ThubanApplication.maps_changed): Add
2389            doc-string
2390    
2391    2003-10-06  Bernhard Herzog  <[email protected]>
2392    
2393            * test/test_viewport.py (ViewPortTest.setUp)
2394            (SimpleViewPortTest.test_init_with_size): Move the test for the
2395            initial size as a constructor parameter from ViewPortTest.setUp
2396            method to a new separate test in SimpleViewPortTest.
2397    
2398    2003-10-06  Bernhard Herzog  <[email protected]>
2399    
2400            * test/test_viewport.py (MockView): New class derived from
2401            ViewPort with a mock implementation of GetTextExtent to be used in
2402            the test cases
2403            (ViewPortTest.setUp): Use MockView instead of ViewPort
2404    
2405            * Thuban/UI/viewport.py (ViewPort.GetTextExtent): Turn this method
2406            into what would be a "pure virtual function" in C++: always raise
2407            NotImplementedError. Mock implementations for test cases don't
2408            belong into the real code
2409    
2410    2003-10-02  Bernhard Herzog  <[email protected]>
2411    
2412            * test/test_layer.py (TestLayer.test_empty_layer): Explicitly
2413            close the dbf file we create so that it's contents have been
2414            written properly.
2415    
2416            * libraries/shapelib/shptree.c, libraries/shapelib/shpopen.c,
2417            libraries/shapelib/shapefil.h, libraries/shapelib/dbfopen.c:
2418            Update to shapelib 1.2.10
2419    
2420    2003-10-01  Jan-Oliver Wagner <[email protected]>
2421    
2422            * Thuban/UI/tree.py, Thuban/UI/main.py: Remove the #! line as
2423            it annoys lintian which warns about these files not being
2424            executable. The #! isn't necessary here since if you absolutely
2425            must execute them you can always say "python <filename>".
2426    
2427    2003-09-26  Bernhard Herzog  <[email protected]>
2428    
2429            * Thuban/Model/classgen.py (GenQuantiles0): Removed since it's
2430            only used in GREAT-ER but not used in Thuban itself. When GREAT-ER
2431            is ported to a newer the import will fail, so it should be noticed
2432            immediately that this function is gone.
2433            Fixes RT#1919
2434    
2435    2003-09-26  Bernhard Herzog  <[email protected]>
2436    
2437            Add a DTD for the projection files and make thuban write valid
2438            projection files
2439    
2440            * Resources/XML/projfile.dtd: New. DTD for thuban's projection
2441            files
2442    
2443            * Thuban/Model/resource.py (ProjFileSaver.write): Use
2444            'projectionlist' as the name in the document type declaration so
2445            that it matches the element type of the root element.
2446    
2447            * test/test_proj.py (sample_projfile, sample_projfile2): Use
2448            'projectionlist' as the name in the document type declaration just
2449            as it is done now in the files thuban would write
2450            (sample_projfile, sample_projfile_data): Fix spelling of
2451            "Mercator"
2452            (TestProjFile.doTestWrite): Validate the written and the expected
2453            XML data
2454            (TestProjFile): Derive from ValidationTest so that we can run xml
2455            validation tests
2456    
2457    2003-09-24  Bernhard Herzog  <[email protected]>
2458    
2459            * Thuban/UI/renderer.py (ExportRenderer.render_legend): Do not
2460            modify the list returned by map.Layers() in place since it is the
2461            actual list of layers used by the map.
2462    
2463    2003-09-23  Jan-Oliver Wagner <[email protected]>
2464    
2465            * Doc/manual/thuban-manual.xml: Added subsection to chapter
2466            Extensions to describe the extensions coming with the Thuban
2467            standard package (gns2shp and importAPR).
2468    
2469    2003-09-23  Bernhard Herzog  <[email protected]>
2470    
2471            * libraries/thuban/wxproj.cpp (project_point): if there's an
2472            inverse but no forward projection, convert to degrees after
2473            applying the inverse projection. Fixes RT#2096
2474    
2475            * test/test_wxproj.py: New. Test cases for wxproj.so. One test
2476            implicitly tests for the fix to RT#2096
2477    
2478            * test/support.py (FloatComparisonMixin.assertFloatSeqEqual):
2479            Check that the sequences have the same lengths
2480    
2481            * Resources/Projections/defaults.proj (Geographic projection): Use
2482            a much more precise value for the to_meter attribute.
2483    
2484    2003-09-22  Bernhard Herzog  <[email protected]>
2485    
2486            * test/support.py (initthuban): Make sure to unset the LANG env.
2487            var. so that tests that compare translated strings work. Solves RT
2488            #2094
2489    
2490    2003-09-22  Jan-Oliver Wagner <[email protected]>
2491    
2492            Small improvement of APR import.
2493    
2494            * Extensions/importAPR/test/test_apr.py (aprTest.test_LClass):
2495            Added tests for text-ranges.
2496    
2497            * Extensions/importAPR/apr.py (APR_LClass.GetThubanRange): Now
2498            returns a string object if the range is based on text.
2499    
2500            * Extensions/importAPR/importAPR.py (import_apr_dialog): Unified
2501            range retrieval.
2502    
2503    2003-09-22  Jan-Oliver Wagner <[email protected]>
2504    
2505            Initial version of the importAPR extension which is in
2506            experimental state.
2507    
2508            * /Extensions/importAPR/, /Extensions/importAPR/samples/,
2509            /Extensions/importAPR/test/: New directories.
2510    
2511            * /Extensions/importAPR/samples/README: New: Howto load the samples.
2512    
2513            * /Extensions/importAPR/samples/iceland.apr: New: A sample APR
2514            file which refers to the Thuban Iceland demo data.
2515    
2516            * /Extensions/importAPR/test/README: New: Howto execute the tests.
2517    
2518            * /Extensions/importAPR/test/test_apr.py: New: Tests for APR classes.
2519    
2520            * /Extensions/importAPR/apr.py: New: Classes for ArcView Objects
2521            as in '.apr'-files.
2522    
2523            * /Extensions/importAPR/odb.py: New: Classes for generic ArcView
2524            ODB Objects as in '.apr', '.avl' and other files.
2525    
2526            * /Extensions/importAPR/__init__.py: New: Init to make this
2527            directory a package.
2528    
2529            * /Extensions/importAPR/importAPR.py: New: Import a ArcView
2530            project file (.apr) and convert it to Thuban.
2531    
2532    2003-09-22  Jan-Oliver Wagner <[email protected]>
2533    
2534            * Extensions/gns2shp.gns2shp.py: The main module of gns2shp.
2535    
2536    2003-09-19  Jan-Oliver Wagner <[email protected]>
2537    
2538            * Doc/manual/thuban-manual.xml: Extended section 'Installation'
2539            with description on RPM installation and RPM binary package
2540            creation.
2541    
2542    2003-09-18  Bernhard Herzog  <[email protected]>
2543    
2544            * setup.py (data_files): Only add the mo files if the Locales
2545            directory actually exists, so that setup.py works with a fresh CVS
2546            checkout
2547    
2548    2003-09-12  Jan-Oliver Wagner <[email protected]>
2549    
2550            * Examples/simple_extensions/simple_tool.py: bugfix: Tool is now
2551            in viewport, not anymore in view
2552    
2553    2003-09-04  Jan-Oliver Wagner <[email protected]>
2554    
2555            Introducing first Extension (gns2shp).
2556    
2557            * Extensions, Extensions/gns2shp, Extensions/gns2shp/test: New.
2558    
2559            * Extensions/__init__.py: New. init to make this dir a package.
2560    
2561            * Extensions/gns2shp/__init__.py: New. init to make this dir a package.
2562    
2563            * Extensions/gns2shp/test/README: New. some info on this test directory.
2564    
2565            * Extensions/gns2shp/test/ls.txt: New. test data set (Liechtenstein).
2566    
2567            * Extensions/gns2shp/test/test_gns2shp.py: New. Test for correct creation
2568            of Shapefile from GNS text file format
2569    
2570    2003-09-03  Jan-Oliver Wagner <[email protected]>
2571    
2572            Fix/workaround for bug #2019:
2573            https://intevation.de/rt/webrt?serial_num=2019
2574    
2575            * Thuban/UI/identifyview.py (IdentifyView.ID_STOP): New.
2576            (IdentifyView.__init__): Added another button that allows to
2577            stop the identify mode.
2578            (IdentifyView.OnStop): New. Stops the identify mode.
2579    
2580    2003-09-03  Jan-Oliver Wagner <[email protected]>
2581    
2582            Introducing a new exception dialog that allows to exit the
2583            application immediately.
2584            This fixes bug #2060: https://intevation.de/rt/webrt?serial_num=2060
2585    
2586            * Thuban/UI/exceptiondialog.py: New. A special exception dialog.
2587    
2588            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
2589            Made strings available to translations. Exchanged the simple
2590            ScrolledMessageDialog by the new ExceptionDialog.
2591    
2592    2003-09-01  Bernhard Herzog  <[email protected]>
2593    
2594            * NEWS: New. Summary of changes and release notes.
2595    
2596            * MANIFEST.in: Add NEWS
2597    
2598    2003-09-01  Bernhard Herzog  <[email protected]>
2599    
2600            * MANIFEST.in: Correct the include statement for the mo-files and
2601            include the documentation too.
2602    
2603            * setup.py (data_files): Add the .mo files
2604            (setup call): Up to version 0.9.0
2605    
2606    2003-09-01  Bernhard Herzog  <[email protected]>
2607    
2608            * Thuban/UI/dbdialog.py (ChooseDBTableDialog.__init__): Change the
2609            parameter list to just parent and session
2610            (ChooseDBTableDialog.__set_properties): Removed. Setting the
2611            selection of empty list boxes is not allowed (and produces C++
2612            assertion errors) and the rest of the setup is better done in
2613            __init__ anyway.
2614            (ChooseDBTableDialog.OnCancel, ChooseDBTableDialog.OnOK)
2615            (ChooseDBTableDialog.OnLBDClick, DBDialog.OnOK): Use the Python
2616            builtins True/False for booleans to avoid warnings from wxPython
2617    
2618            * Thuban/UI/mainwindow.py (MainWindow.AddDBLayer): Adapt to new
2619            ChooseDBTableDialog constructor parameters.
2620    
2621    2003-09-01  Bernhard Herzog  <[email protected]>
2622    
2623            * Thuban/Model/postgisdb.py
2624            (PostGISTable): Extend doc-string
2625            (PostGISTable._fetch_table_information): Set the column index
2626            correctly, pretending ignored columns don't exist.
2627    
2628            * test/test_postgis_db.py (TestPostGISIgnoredColumns): New tests
2629            for postgis tables with data types not yet supported by thuban.
2630    
2631    2003-08-29  Bernhard Herzog  <[email protected]>
2632    
2633            * HOWTO-Release: Tweak item about running the tests.
2634    
2635    2003-08-29  Jan-Oliver Wagner <[email protected]>
2636    
2637            * /Doc/manual/thuban-manual.xml: updated to version 1.0pre2.
2638    
2639    2003-08-29  Bernhard Herzog  <[email protected]>
2640    
2641            Add some missing parameters to projections. Proj complains about
2642            them on windows but for some reason not on Linux.
2643    
2644            * test/test_save.py (SaveSessionTest.testLayerProjection): Add
2645            missing required projection parameters
2646    
2647            * test/test_proj.py (TestProjFile.test): Add missing required
2648            projection parameters
2649    
2650            * test/test_load_0_8.py (TestLayerProjection.file_contents)
2651            (TestLayerProjection.test): Add missing required projection
2652            parameters and tests for them
2653    
2654            * test/test_load.py (TestLayerProjection.file_contents)
2655            (TestLayerProjection.test): Add missing required projection
2656            parameters and tests for them
2657    
2658            * test/test_layer.py (TestLayer.test_base_layer): Add missing
2659            required projection parameters
2660    
2661    2003-08-29  Bernhard Herzog  <[email protected]>
2662    
2663            * libraries/pyprojection/Projection.i: Use pj_get_errno_ref to
2664            access the pj_errno because directly accessing pj_errno doesn't
2665            work on windows if the proj library is in a DLL
2666    
2667            * libraries/pyprojection/Projection_wrap.c: Update from Projection.i
2668    
2669    2003-08-28  Bernhard Herzog  <[email protected]>
2670    
2671            * test/test_proj.py: Import things from Thuban after calling
2672            initthuban
2673    
2674            * test/test_load.py (LoadSessionTest.filenames): New class
2675            variable with the filename attributes to normalize
2676            (LoadSessionTest.check_format): Pass self.filenames to
2677            sax_eventlist to normalize the filename attributes
2678    
2679            * test/xmlsupport.py: Add cvs keywords
2680            (SaxEventLister.__init__): New parameter filenames which indicates
2681            attributes that contain filenames
2682            (SaxEventLister.startElementNS): Normalize the filename attributes
2683            with os.path.normpath
2684            (sax_eventlist): New parameter filenames to pass through to
2685            SaxEventLister
2686    
2687            * test/test_derivedshapestore.py: Make this file callable as a
2688            program to execute the tests
2689            (TestDerivedShapeStoreExceptions.test_table_with_wrong_size): Bind
2690            the session to self.session so that it gets destroyed properly
2691    
2692            * test/test_layer.py (TestLayer.tearDown): Call the session's
2693            Destroy method
2694    
2695            * test/test_map.py (TestMapBase.tearDown): Destroy self.session
2696            too if it exists
2697            (TestMapAddLayer.test_add_layer): Bind the session to self.session
2698            so that it gets destroyed properly
2699    
2700            * test/postgissupport.py (reason_for_not_running_tests): Add a
2701            test for the existence of popen2.Popen4.
2702    
2703            * test/test_save.py (SaveSessionTest.tearDown): New. Provide a
2704            reliable way to destroy the sessions created in the test cases
2705            (SaveSessionTest.test_dbf_table): Bind the session to self.session
2706            so that it gets destroyed properly
2707            (SaveSessionTest.testLayerProjection): Bind the session to
2708            self.session so that it gets destroyed properly
2709    
2710            * test/test_session.py (UnreferencedTablesTests.tearDown): Make
2711            sure that the session is destroyed properly
2712    
2713            * test/test_shapefilestore.py: Make this callable as a program to
2714            execute the tests
2715    
2716            * test/test_scalebar.py: Remove unnecessary import of _ from
2717            Thuban
2718    
2719            * test/support.py (print_garbage_information): Call initthuban
2720            here because it may be called indirectly from test cases that test
2721            test support modules which do not use anything from thuban itself
2722            (ThubanTestProgram.runTests): Remove unnecessary debug print
2723    
2724    2003-08-28  Bernhard Herzog  <[email protected]>
2725    
2726            * Thuban/version.py (longversion): Update to 0.9
2727    
2728            * Thuban/UI/mainwindow.py: Remove some unused imports
2729    
2730            * README: Add section about required additional software. Add date
2731            and revision CVS keywords
2732    
2733            * HOWTO-Release: Add item about the translations. Add date and
2734            revision CVs keywords and change formatting to match README a bit
2735            better
2736    
2737            * po/de.po: Update for 0.9
2738    
2739            * test/README: Tweak the wording a little because many tests are
2740            not really unittest.
2741    
2742    2003-08-27  Bernhard Herzog  <[email protected]>
2743    
2744            As preparation for the 0.9 release, switch thuban files to a
2745            non-dev namespace
2746    
2747            * Thuban/Model/save.py (SessionSaver.write_session): Write files
2748            with the http://thuban.intevation.org/dtds/thuban-0.9.dtd
2749            namespace
2750    
2751            * Thuban/Model/load.py (SessionLoader.__init__): Accept the
2752            http://thuban.intevation.org/dtds/thuban-0.9.dtd namespace too
2753    
2754            * test/test_save.py (SaveSessionTest.dtd)
2755            (SaveSessionTest.testEmptySession)
2756            (SaveSessionTest.testSingleLayer)
2757            (SaveSessionTest.testLayerProjection)
2758            (SaveSessionTest.testRasterLayer)
2759            (SaveSessionTest.testClassifiedLayer)
2760            (SaveSessionTest.test_dbf_table)
2761            (SaveSessionTest.test_joined_table)
2762            (SaveSessionTest.test_save_postgis): Update for new namespace
2763    
2764            * test/test_load.py (LoadSessionTest.dtd, TestSingleLayer)
2765            (TestLayerVisibility.file_contents, TestLabels.file_contents)
2766            (TestLayerProjection.file_contents)
2767            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
2768            (TestPostGISLayer.file_contents)
2769            (TestPostGISLayerPassword.file_contents)
2770            (TestLoadError.file_contents, TestLoadError.test): Update for new
2771            namespace
2772    
2773    2003-08-27  Bernhard Herzog  <[email protected]>
2774    
2775            Make the table interface distinguish between row ids (an integer
2776            that uniquely identifies a row) and row ordinals (a simple row
2777            count from 0 to NumRows() - 1)
2778    
2779            * Thuban/Model/postgisdb.py (PostGISTable.RowIdToOrdinal)
2780            (PostGISTable.RowOrdinalToId): New methods to conver between row
2781            ids and row ordinals
2782            (PostGISTable.ReadRowAsDict, PostGISTable.ReadValue): New keyword
2783            parameter row_is_ordinal to indicate whether the row parameter is
2784            the row id or the ordinal
2785    
2786            * Thuban/Model/transientdb.py (TransientTableBase.RowIdToOrdinal)
2787            (TransientTableBase.RowOrdinalToId)
2788            (AutoTransientTable.RowIdToOrdinal)
2789            (AutoTransientTable.RowOrdinalToId): Same new methods as in
2790            PostGISTable.
2791            (TransientTableBase.ReadRowAsDict, TransientTableBase.ReadValue)
2792            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ReadValue):
2793            Same new parameter as in PostGISTable.
2794    
2795            * Thuban/Model/table.py (DBFTable.RowIdToOrdinal)
2796            (DBFTable.RowOrdinalToId, MemoryTable.RowIdToOrdinal)
2797            (MemoryTable.RowOrdinalToId): Same new methods as in PostGISTable.
2798            (DBFTable.ReadValue, DBFTable.ReadRowAsDict)
2799            (MemoryTable.ReadValue, MemoryTable.ReadRowAsDict): Same new
2800            parameter as in PostGISTable.
2801    
2802            * Thuban/UI/tableview.py (DataTable.RowIdToOrdinal)
2803            (DataTable.RowOrdinalToId): New methods to convert between row ids
2804            and row ordinals.
2805            (TableGrid.SelectRowById): New method to select a row based on its
2806            ID as opposed to its ordinal
2807            (DataTable.GetValue, TableGrid.OnRangeSelect)
2808            (TableGrid.OnSelectCell, LayerTableGrid.select_shapes)
2809            (QueryTableFrame.OnQuery, QueryTableFrame.get_selected)
2810            (LayerTableFrame.__init__): Convert between row ids and row
2811            ordinals as appropriate
2812    
2813            * test/postgissupport.py (PostGISDatabase.__init__): Add
2814            doc-string.
2815            (PostGISDatabase.initdb): The optional third item in a tuple in
2816            tables is now a (key, value) list with additional arguments to
2817            pass to upload_shapefile
2818            (upload_shapefile): New parameter gid_offset to allow gids that
2819            are not the same as the shapeids in the shapefile
2820            (PostgreSQLServer.get_default_static_data_db): Use the new
2821            gid_offset to make the gids in landmarks 1000 higher than the
2822            shapeids in the shapefile
2823    
2824            * test/test_viewport.py
2825            (TestViewportWithPostGIS.test_find_shape_at_point): Adapt to the
2826            new shapeids in the landmarks table
2827    
2828            * test/test_transientdb.py
2829            (TestTransientTable.run_iceland_political_tests)
2830            (TestTransientTable.test_transient_joined_table): Add tests for
2831            the new table methods and new keywords arguments.
2832    
2833            * test/test_postgis_db.py
2834            (TestPostGISTable.test_read_row_as_dict_row_count_mode)
2835            (TestPostGISTable.test_read_value_row_count_mode)
2836            (TestPostGISTable.test_row_id_to_ordinal)
2837            (TestPostGISTable.test_row_oridnal_to_id): New test for the new
2838            table methods and the new arguments
2839            (TestPostGISShapestorePoint.test_shapes_in_region)
2840            (TestPostGISShapestorePoint.test_shape_raw_data)
2841            (TestPostGISShapestorePoint.test_shape_points)
2842            (TestPostGISShapestorePoint.test_shape_shapeid)
2843            (TestPostGISShapestorePoint.test_all_shapes)
2844            (TestPostGISTable.test_simple_query)
2845            (TestPostGISTable.test_simple_query)
2846            (TestPostGISTable.test_simple_query)
2847            (TestPostGISTable.test_read_value)
2848            (TestPostGISTable.test_read_row_as_dict): Adapt to the new
2849            shapeids in the landmarks table
2850    
2851            * test/test_memory_table.py
2852            (TestMemoryTable.test_read_row_as_dict_row_count_mode)
2853            (TestMemoryTable.test_read_value_row_count_mode)
2854            (TestMemoryTable.test_row_id_to_ordinal)
2855            (TestMemoryTable.test_row_oridnal_to_id): New test for the new
2856            table methods and the new arguments
2857    
2858            * test/test_dbf_table.py
2859            (TestDBFTable.test_read_row_as_dict_row_count_mode)
2860            (TestDBFTable.test_read_value_row_count_mode)
2861            (TestDBFTable.test_row_id_to_ordinal)
2862            (TestDBFTable.test_row_oridnal_to_id): New test for the new table
2863            methods and the new arguments
2864    
2865    2003-08-26  Bernhard Herzog  <[email protected]>
2866    
2867            * Thuban/Model/postgisdb.py (PostGISShapeStore.BoundingBox): Use a
2868            more postgis specific but much faster method to get the bounding
2869            box
2870    
2871    2003-08-26  Bernhard Herzog  <[email protected]>
2872    
2873            * Thuban/Model/postgisdb.py (PostGISTable.Title)
2874            (PostGISShapeStore.AllShapes): Add these missing methods.
2875            (PostGISShapeStore.ShapesInRegion): No need to raise
2876            StopIteration. We can simply return
2877    
2878            * test/test_postgis_db.py (TestPostGISTable.test_title)
2879            (TestPostGISShapestorePoint.test_all_shapes): New tests for the
2880            new methods
2881    
2882    2003-08-25  Bernhard Herzog  <[email protected]>
2883    
2884            * Thuban/Model/postgisdb.py (shapetype_map): Add MUTLIPOLYGON.
2885    
2886            * test/test_postgis_db.py (PolygonTests): New class containing
2887            those tests from TestPostGISShapestorePolygon that can also be
2888            used to test MUTLIPOLYGON tables
2889            (TestPostGISShapestorePolygon): Most tests are now in PolygonTests
2890            so derive from that
2891            (TestPostGISShapestoreMultiPolygon): New class with tests for
2892            MUTLIPOLYGON tables
2893    
2894            * test/postgissupport.py (PostGISDatabase.initdb): Allow the
2895            tables argument to have tuples with three items to override the
2896            WKT type used.
2897            (PostgreSQLServer.get_default_static_data_db): Use the above to
2898            create a polygon table with MUTLIPOLYGONs
2899            (point_to_wkt, coords_to_point, polygon_to_wkt, coords_to_polygon)
2900            (arc_to_wkt, coords_to_multilinestring): Rename from *_to_wkt to
2901            coords_to*
2902            (coords_to_multipolygon): New. Convert to MUTLIPOLYGON
2903            (wkt_converter): New. Map WKT types to converters
2904            (upload_shapefile): New parameter force_wkt_type to use a
2905            different WKT type than the default
2906    
2907  2003-08-25  Bernhard Herzog  <[email protected]>  2003-08-25  Bernhard Herzog  <[email protected]>
2908    
2909          * Thuban/UI/application.py          * Thuban/UI/application.py
# Line 941  Line 3847 
3847    
3848          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as          * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
3849          it annoys lintian which warns about these files not being          it annoys lintian which warns about these files not being
3850          executable. The #1 isn't necessary here since if you absolutely          executable. The #! isn't necessary here since if you absolutely
3851          must execute them you can always say "python <filename>".          must execute them you can always say "python <filename>".
3852    
3853          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove          * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
# Line 2056  Line 4962 
4962          Fix problem of hidden properties dialog under windows after double          Fix problem of hidden properties dialog under windows after double
4963          click on layer tree:          click on layer tree:
4964          The tree control always gets an Expanded / Collapsed event after          The tree control always gets an Expanded / Collapsed event after
4965          the ItemActivated  on double click, which raises the main window again.         We add a second ItemActivated event to the queue, which simply          the ItemActivated  on double click, which raises the main window again.
4966            We add a second ItemActivated event to the queue, which simply
4967          raises the already displayed window.          raises the already displayed window.
4968    
4969          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable          * Thuban/UI/legend.py (LegendTree.__init__): Instance variable

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26