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

Legend:
Removed from v.1169  
changed lines
  Added in v.2156

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26