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

Legend:
Removed from v.1550  
changed lines
  Added in v.2204

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26