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

Legend:
Removed from v.1582  
changed lines
  Added in v.2211

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26