/[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 59 by bh, Thu Sep 13 13:56:47 2001 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]>
4869    
4870            This is largely a collection of bug fixes. We also handle the
4871            case where gdal is not on the system. The XMLReader and XMLWriter
4872            classes were moved into there own files to resolve some circular
4873            import references and because they shouldn't really be in the
4874            file that is dediciated to reading/writing session files since
4875            they are also used elsewhere.
4876    
4877            * Thuban/Model/classgen.py: Renamed functions to follow the
4878            function_names_with_underscores style. Fixes RTbug #1903.
4879            (calculate_quantiles): Raise ValueError if 'percents' is invalid.
4880    
4881            * Thuban/Model/layer.py: Import gdal only if it available.
4882            (RasterLayer): Handle the case where the gdal library is unavailable.
4883            Addresses RTbug #1877.
4884    
4885            * Thuban/Model/load.py (XMLReader): Moved into seperate file
4886            xmlreader.py.
4887    
4888            * Thuban/Model/save.py (escape, XMLWriter): Moved into seperate
4889            file xmlwriter.py.
4890    
4891            * Thuban/Model/resource.py: Renamed functions to following the
4892            function_names_with_underscores style.
4893            (has_gdal_support): New function that returns true if the gdal
4894            library is available. Addresses RTbug #1877.
4895    
4896            * Thuban/UI/application.py (ThubanApplication.OpenSession):
4897            Display a message box if the gdal library is not available, but
4898            only if there are any layers that would use it. Addresses RTbug #1877.
4899    
4900            * Thuban/UI/classgen.py: Use renamed projection resource functions.
4901            (GenUniformPanel.__CalcStepping): Fix a slight discrepency
4902            when using integers versus floats.
4903    
4904            * Thuban/UI/mainwindow.py (_has_gdal_support): New. Used to
4905            determine if the "Add Image Layer" menu option should be
4906            greyed out or not. Addresses RTbug #1877.
4907    
4908            * Thuban/UI/projdialog.py: Use renamed projection resource functions.
4909    
4910            * Thuban/UI/renderer.py (MapRenderer.render_map): Only try to
4911            optimize if a raster layer is visible. Fixes RTbug #1931.
4912            Only draw the raster layer if the gdal library is available.
4913            Addresses RTbug #1877.
4914    
4915            * test/test_classgen.py: Add tests for generate_singletons,
4916            generate_uniform_distribution, generate_quantiles. Fixes RTbug #1903.
4917            (test_calculate_quantiles): Fix some tests to catch the new
4918            ValueError that is raised.
4919    
4920            * test/test_proj.py: Use renamed projection resource functions.
4921    
4922            * test/test_save.py (SaveSessionTest.testClassifiedLayer): New
4923            test for saving classified layers. Fixes RTbug #1902.
4924            (XMLWriterTest): New. Tests the XMLWriter class. Fixes RTbug #1851.
4925    
4926    2003-06-12  Jan-Oliver Wagner <[email protected]>
4927    
4928            Fix for http://intevation.de/rt/webrt?serial_num=1900.
4929    
4930            * Thuban/UI/multiplechoicedialog.py: New. A multiple choice dialog.
4931    
4932            * Thuban/UI/mainwindow.py: import wxMultipleChoiceDialog from
4933            multiplechoicedialog.py rather than from the wxPython library.
4934    
4935    2003-06-11  Frank Koormann  <[email protected]>
4936    
4937            * Thuban/Lib/fileutil.py (get_application_dir): Minor stability
4938            update.
4939    
4940    2003-06-11  Frank Koormann  <[email protected]>
4941    
4942            * Thuban/Lib/fileutil.py (get_application_dir): New function to
4943            determine the absolute .thuban/thuban directory under
4944            "posix" (os.expanduser) and "nt" (read AppData registry key).
4945    
4946            * Thuban/Model/resource.py: Use get_application_dir
4947    
4948            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
4949            Use get_application_dir.
4950    
4951    2003-06-10  Bernhard Herzog  <[email protected]>
4952    
4953            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Subscribe to
4954            the messages MAP_LAYERS_REMOVED messages
4955            (LayerTableFrame.OnClose): Unsubscribe from it.
4956            (LayerTableFrame.map_layers_removed): New. Receiver for
4957            MAP_LAYERS_REMOVED. Close the dialog when the layer whose the
4958            dialog is showing is removed.
4959    
4960    2003-06-10  Bernhard Herzog  <[email protected]>
4961    
4962            * Thuban/Lib/connector.py (Connector.Issue): Iterate over a copy
4963            of the receivers list so that unsubscribing in a receiver doesn't
4964            modify it while iterating over it.
4965    
4966            * test/test_connector.py
4967            (ConnectorTest.test_disconnect_in_receiver): New. Test whether
4968            unsubscribing in a receiver works correctly. See docstring for
4969            details
4970    
4971    2003-06-10  Bernhard Herzog  <[email protected]>
4972    
4973            * Thuban/Model/messages.py (LAYER_SHAPESTORE_REPLACED): New
4974            message.
4975    
4976            * Thuban/Model/layer.py (Layer.SetShapeStore): Send
4977            LAYER_SHAPESTORE_REPLACED when the shapestore changes. A
4978            LAYER_CHANGED will still be sent if the classification changes.
4979    
4980            * Thuban/UI/classifier.py (Classifier.__init__): Add the map as
4981            parameter so we can subscribe to some of its messages
4982            (Classifier.__init__): Subscribe to the map's MAP_LAYERS_REMOVED
4983            and the layer's LAYER_SHAPESTORE_REPLACED
4984            (Classifier.unsubscribe_messages): New. Unsubscribe from message
4985            subscribed to in __init__
4986            (Classifier.map_layers_removed)
4987            (Classifier.layer_shapestore_replaced): receivers for the messages
4988            subscribed to in __init__. Unsubscribe and close the dialog
4989    
4990            * Thuban/UI/mainwindow.py (MainWindow.OpenLayerProperties): Pass
4991            the map to the Classifier dialog
4992    
4993            * test/test_layer.py (SetShapeStoreTests): Derive from
4994            SubscriberMixin as well so we can test messages
4995            (SetShapeStoreTests.setUp): Subscribe to some of the layer's
4996            messages
4997            (SetShapeStoreTests.tearDown): Clear the messages again
4998            (SetShapeStoreTests.test_sanity): Expand the doc-string and check
4999            for the modified flag too
5000            (SetShapeStoreTests.test_set_shape_store_modified_flag): New test
5001            to check whether SetShapeStore sets the modified flag
5002            (SetShapeStoreTests.test_set_shape_store_different_field_name)
5003            (SetShapeStoreTests.test_set_shape_store_same_field)
5004            (SetShapeStoreTests.test_set_shape_store_same_field_different_type):
5005            Add tests for the messages. This checks both the new
5006            LAYER_SHAPESTORE_REPLACED and the older LAYER_CHANGED
5007    
5008    2003-06-06  Jan-Oliver Wagner <[email protected]>
5009    
5010            * Thuban/UI/mainwindow.py: Improved and partly added help texts for
5011            the menu items.
5012    
5013    2003-06-05  Frank Koormann  <[email protected]>
5014    
5015            * Thuban/UI/identifyview.py (IdentifyView.__init__):
5016            Layout reimplemented without panel. Make life easier to fit the list
5017            in the dialog.
5018    
5019    2003-06-05  Frank Koormann  <[email protected]>
5020    
5021            * Thuban/UI/projdialog.py (ProjFrame.__init__): Fill the projchoice
5022            once on initialisation (Former implementation resulted in multiple
5023            entries for each projection).
5024            (ProjFrame.__FillAvailList): selectProj as second optional parameter,
5025            if set, select the projection found under the specified name. This
5026            overwrites any other selection estimate.
5027            Removed projchoice filling from this method.
5028            (ProjFrame._OnSave, ProjFrame._OnAddToList):
5029            Updated call of ProjFrame.__FillAvailList
5030            (LCCPanel._DoLayout): Moved parameter controls in more common order.
5031    
5032            * Resources/Projections/defaults.proj: Extended defaults representing
5033            various common European projections.
5034    
5035    2003-06-05  Frank Koormann  <[email protected]>
5036    
5037            * Thuban/UI/identifyview.py (IdentifyView.__init__):
5038            Use ListCtrl instead of GridCtrl
5039    
5040            * Thuban/Model/resource.py:
5041            Guess location of .thuban directory from tempdir parent directory.
5042    
5043            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
5044            Guess location of .thuban directory from tempdir parent directory.
5045    
5046    2003-06-04  Bernhard Herzog  <[email protected]>
5047    
5048            Do not cache the values returned by the tree widget's
5049            GetFirstChild and GetNextChild methods because it led to lots of
5050            segfaults. The new way requires more brute force but is more
5051            reliable.
5052    
5053            * Thuban/UI/legend.py (LegendTree.__init__): Remove instance
5054            variable layer2id
5055            (LegendTree.find_layer): New method to do with brute force what
5056            layer2id tried to accomplish
5057            (LegendTree._OnMsgLayerChanged)
5058            (LegendTree._OnMsgLayerTitleChanged, LegendTree.__ShowHideLayer):
5059            Use find_layer instead of layer2id
5060            (LegendTree.__RemoveLayer, LegendTree.__AddLayer): No need to
5061            update layer2id anymore
5062            (LegendTree._OnMsgMapLayersRemoved)
5063            (LegendTree._OnMsgMapLayersAdded): Get by without layer2id.
5064    
5065    2003-06-03  Thomas Koester  <[email protected]>
5066    
5067            * Thuban/Model/classgen.py (GenQuantiles0): New function.
5068    
5069    2003-06-02  Bernhard Herzog  <[email protected]>
5070    
5071            * Thuban/UI/mainwindow.py (layer_rename command, table_rename command):
5072            New commands.
5073            (main_menu): Add the new commands.
5074            (MainWindow.TableRename): New. Implementation of the table_rename
5075            command.
5076            (MainWindow.RenameLayer): New. Implementation of the layer_rename
5077            command.
5078    
5079            * Thuban/Model/session.py (Session.AddTable): call self.changed to
5080            set the modified flag
5081    
5082            * test/test_session.py (TestSessionSimple.test_add_table): Test
5083            whether the modified flag is set properly
5084    
5085            * Thuban/Model/base.py (TitledObject.SetTitle): Call changed
5086            instead of issue so that the modified flags get updated.
5087    
5088            * test/test_base.py (SomeTitledObject): Derive from Modifiable
5089            instead of Publisher to reflect reality better and to accomodate
5090            the fact that SetTitle now calls changed instead of issue
5091    
5092    2003-06-02  Bernhard Herzog  <[email protected]>
5093    
5094            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Resource
5095            acquisition has to happen before the try in a try-finally.
5096    
5097    2003-06-02  Bernhard Herzog  <[email protected]>
5098    
5099            * Thuban/UI/legend.py (LegendTree._OnMsgMapLayersRemoved): It's
5100            possible that a layer is removed that is not currently selected in
5101            the legend so don't check for this.
5102    
5103    2003-05-30  Bernhard Herzog  <[email protected]>
5104    
5105            * Thuban/Model/layer.py (Layer.Destroy): Set all instance
5106            variables to None that have direct or indirect references to
5107            shapefiles or dbf files to make sure that they do go away and the
5108            files are closed.
5109    
5110    2003-05-30  Bernhard Herzog  <[email protected]>
5111    
5112            * Thuban/UI/legend.py (LegendTree.GetRootItem): Reset
5113            availImgListIndices when a new image list is created
5114            
5115    2003-05-30  Bernhard Herzog  <[email protected]>
5116    
5117            * Thuban/UI/legend.py (LegendTree.__init__): New instance variable
5118            changing_selection to indicate whether the LegendTree code itself
5119            is currently changing the selection
5120            (LegendTree.normalize_selection): New method to normalize the
5121            selection by selecting the layer item even if the user clicked on
5122            the classification.
5123            (LegendTree._OnSelChanged): normalize the selection. This works
5124            around a bug in wx which doesn't keep track of the selection
5125            properly when subtrees are deleted.
5126    
5127    2003-05-30  Bernhard Herzog  <[email protected]>
5128    
5129            * Thuban/UI/view.py (MapCanvas.set_view_transform): Limit the
5130            maximum and minimum scale factors.
5131    
5132            * test/test_classgen.py (ClassGenTest.test): Update to reflect the
5133            changes in classgen.py
5134    
5135    2003-05-30  Jonathan Coles   <[email protected]>
5136    
5137            * Thuban/Model/classgen.py: Remove ClassGenerator class but make
5138            all the methods functions. Fixes RTBug #1903.
5139    
5140            * Thuban/Model/map.py (Map.TopLayer, Map.BottomLayer): Renamed
5141            to MoveLayerToTop and MoveLayerToBottom respectively. Fixes
5142            RTBug #1907.
5143    
5144            * Thuban/UI/classgen.py: Use classgen functions that were part
5145            of the ClassGenerator class. Put try/finally blocks around
5146            code that uses wxBeginBusyCursor()/wxEndBusyCursor(). Fixes
5147            RTBug #1904.
5148    
5149            * Thuban/UI/classifier.py: Remove unused import of ClassGenerator.
5150    
5151            * Thuban/UI/legend.py: The legend was cleared and repopulated any
5152            time something changed which caused some state to be lost such
5153            as which children were expanded or collapsed. Fixes RTBug #1901.
5154            (LegendTree._OnMsgMapLayersAdded): Add only new layers.
5155            (LegendTree.__OnMsgMapLayersRemoved): Remove layers that exist in
5156            the legend but not in the map.
5157            (LegendTree.__FillTree): Move main functionality out into smaller
5158            methods that can be used by other methods.
5159            (LegendTree.__FillTreeLayer): Reuse old slots in the image list
5160            if they are available.
5161            (LegendTree.DeleteAllItems): Renamed from __DeleteAllItems so
5162            that we override the wxTreeCtrl method. Iterate over children
5163            and call __RemoveLayer.
5164            (LegendTree.__AddLayer): New. Add a new layer to the legend.
5165            (LegendTree.__RemoveLayer): Remove a layer from the legend.
5166            (LegendTree.DeleteChildren): New, overrides wxTreeCtrl method.
5167            Should only be called with the id of a layer branch.
5168            (LegendTree.GetRootItem): New, overrides wxTreeCtrl method.
5169            Returns the root item or creates one if necessary.
5170    
5171            * Thuban/UI/renderer.py (MapRenderer.draw_raster_layer): Call
5172            ProjectRasterFile with tuple arguments instead of strings.
5173    
5174            * Thuban/UI/tableview.py (QueryTableFrame.OnQuery): Wrap code
5175            with try/finally. Fixes RTBug #1904.
5176    
5177            * Thuban/UI/view.py (MapCanvas.OnPaint): Wrap code
5178            with try/finally. Fixes RTBug #1904.
5179            (MapCanvas.FitSelectedToWindow): If a single point is selected
5180            simply center it on the display. Fixes RTBug #1849.
5181    
5182            * extensions/thuban/gdalwarp.cpp: Removed code that allowed gdalwarp
5183            to be compiled as a standalone app. Now the code can only be
5184            called from Python which simplifies the parameter passing.
5185            (ProjectRasterFile): Handle Python arguments. Remove code that
5186            checks for a destination dataset. Add more clean up code.
5187    
5188            * test/test_map.py (TestMapWithContents.test_raise_layer_top,
5189            TestMapWithContents.test_lower_layer_bottom):
5190            Test Map.MoveLayerToTop() and Map.MoveLayerToBottom() respectively.
5191            Fixes RTBug #1907.
5192    
5193            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Apply a full
5194            extent to the map when the legend is toggled. Fixes RTBug #1881.
5195    
5196    2003-05-29  Jan-Oliver Wagner <[email protected]>
5197    
5198            * Thuban/UI/tableview.py (LayerTableFrame.OnClose): Bug-fix: Now
5199            unsubscribes all that is subcribed in __init__.
5200    
5201    2003-05-28  Bernhard Herzog  <[email protected]>
5202    
5203            * Thuban/UI/mainwindow.py (MainWindow.DuplicateLayer)
5204            (MainWindow.CanDuplicateLayer): New methods to implement the
5205            Layer/Duplicate command.
5206            (layer_duplicate command): New.
5207            (main_menu): Add layer_duplicate to the Layer menu.
5208    
5209    2003-05-28  Bernhard Herzog  <[email protected]>
5210    
5211            * Thuban/UI/tableview.py (NullRenderer.Draw): New. Our own
5212            renderer so that NULL/None values get displayed differently (by a
5213            gray rectangle).
5214            (TableGrid.__init__): Override the default renderers
5215    
5216    2003-05-28  Bernhard Herzog  <[email protected]>
5217    
5218            * Thuban/Model/layer.py (Layer.SetShapeStore): Set the
5219            classification to "None" if the type of the field has changed.
5220    
5221            * test/test_layer.py (SetShapeStoreTests): New. Class with a few
5222            test for the Layer.SetShapeStore method
5223    
5224    2003-05-28  Jan-Oliver Wagner <[email protected]>
5225    
5226            * Thuban/Model/layer.py (Layer.TreeInfo): Fixed a bug (a layer
5227            does not necessarily have a filename).
5228    
5229    2003-05-28  Jan-Oliver Wagner <[email protected]>
5230    
5231            * Thuban/UI/mainwindow.py (MainWindow.TableClose, MainWindow.TableShow):
5232            sort the selection list for the dialog.
5233    
5234    2003-05-28  Frank Koormann  <[email protected]>
5235    
5236            * extensions/thuban/wxproj.cpp
5237            (project_point): Removed cast to int for projected point coordinates.
5238            (shape_centroid): Return last point if all polygon vertices fall
5239            to one point.
5240    
5241    2003-05-28  Bernhard Herzog  <[email protected]>
5242    
5243            * Thuban/UI/mainwindow.py (_can_unjoin): Add doc-string and cope
5244            with layers that don't have shapestores, i.e. raster layers.
5245    
5246    2003-05-28  Bernhard Herzog  <[email protected]>
5247    
5248            * Thuban/Model/table.py (DBFTable.__init__): Omit the extension
5249            when determining the title from the filename.
5250    
5251            * test/test_dbf_table.py (TestDBFTable.test_title): Update to
5252            reflect changes in the way the title is derived from the filename
5253    
5254    2003-05-28  Frank Koormann  <[email protected]>
5255    
5256            * Thuban/UI/mainwindow.py (MainWindow.TableShow):
5257            Added wxDEFAULT_DIALOG_STYLE to show table dialog styles.
5258    
5259    2003-05-27  Bernhard Herzog  <[email protected]>
5260    
5261            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages): Also
5262            delegate SelectedLayer.
5263            (MainWindow.LayerUnjoinTable): Implement.
5264            (_can_unjoin): New. Helper function for the sensitivity of the
5265            layer/unjoin command.
5266    
5267            * Thuban/Model/data.py (ShapefileStore.OrigShapeStore)
5268            (DerivedShapeStore.OrigShapeStore): New. Return the original
5269            shapestore. Used to figure out how to unjoin.
5270            (DerivedShapeStore.Shapefile): Fix a typo.
5271    
5272    2003-05-27  Bernhard Herzog  <[email protected]>
5273    
5274            * Thuban/UI/join.py (JoinDialog): Extend to handle layer joins as
5275            well
5276            (JoinDialog.__init__): Use the layer parameter and only build the
5277            left choice when a layer is given
5278            (JoinDialog.OnJoin): Handle layer joins as well
5279            (JoinDialog.OnLeftTable, JoinDialog.OnRightTable): Handle the case
5280            that the user selects the "Select..." item. The sensitivitly
5281            updating is now in update_sensitivity
5282            (JoinDialog.y): New method to refactor the sensitivity update of
5283            the join button into its own method.
5284    
5285            * Thuban/UI/mainwindow.py (MainWindow.LayerJoinTable): Implement.
5286    
5287    2003-05-27  Bernhard Herzog  <[email protected]>
5288    
5289            * Thuban/UI/mainwindow.py (table_close command): Make it sensitive
5290            iff there are unreferenced tables in the session
5291    
5292    2003-05-27  Bernhard Herzog  <[email protected]>
5293    
5294            * Thuban/Model/messages.py (TABLE_REMOVED): New message.
5295    
5296            * Thuban/Model/session.py (Session.UnreferencedTables): New method
5297            to return tables that are not referenced by other tables or shape
5298            stores and can be removed.
5299            (Session.RemoveTable): Issue a TABLE_REMOVED message after
5300            removing the table
5301    
5302            * Thuban/UI/mainwindow.py: Remove unused imports
5303            (MainWindow.TableClose): Implement.
5304    
5305            * Thuban/UI/tableview.py (TableFrame.__init__): Subscribe to some
5306            messages so that the frame will be automatically closed when a new
5307            session is opened or the table is removed.
5308            (TableFrame.OnClose): Unsubscribe the Subscriptions made in
5309            __init__
5310            (TableFrame.close_on_session_replaced)
5311            (TableFrame.close_on_table_removed): New. Subscribers that close
5312            the window
5313    
5314            * test/test_session.py (TestSessionMessages.test_remove_table)
5315            (TestSessionSimple.test_remove_table): Move the test to
5316            TestSessionSimple and add test for the TABLE_REMOVED message
5317            (TestSessionBase.setUp): Also subscribe to TABLE_REMOVED
5318            (TestSessionSimple.test_unreferenced_tables) New. Test for the
5319            UnreferencedTables method.
5320            (UnreferencedTablesTests): New. Class with some more sophisticated
5321            tests for UnreferencedTables.
5322    
5323    2003-05-27  Frank Koormann  <[email protected]>
5324    
5325            * Thuban/UI/tableview.py (QueryTableFrame.__init__): The "_S_election"
5326            display has some unwanted side effects. Removed again.
5327    
5328    2003-05-27  Frank Koormann  <[email protected]>
5329    
5330            * Resources/Bitmaps/legend_icon_layer.xpm: New, icon for legend.
5331    
5332            * Thuban/UI/legend.py (LegendTree.__FillTree): Use "legend_icon_layer"
5333    
5334    2003-05-27  Jan-Oliver Wagner <[email protected]>
5335    
5336            * test/test_menu.py (MenuTest.test): Added test for
5337            Menu.RemoveItem().
5338    
5339            * Thuban/UI/menu.py (Menu.RemoveItem): New. Remove an item from
5340            the menu.
5341    
5342    2003-05-27  Frank Koormann  <[email protected]>
5343            
5344            Nonmodal dialogs without parent (i.e. they can fall behind the main
5345            window)
5346    
5347            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Explicitly destroy
5348            all dialogs in the dialogs dictionary and the canvas.
5349    
5350            * Thuban/UI/dialogs.py (NonModalNonParentDialog): New class, without
5351            parent, i.e. can fall behind other windows.
5352            (NonModalDialog.OnClose): Check is dialog is in mainwindow.dialog
5353            dictionary before removing it.
5354    
5355            * Thuban/UI/classifier.py: Dialog derived from NonModalNonParentDialog
5356    
5357            * Thuban/UI/projdialog.py: Dialog derived from NonModalNonParentDialog
5358            * Thuban/UI/tableview.py: Dialog derived from NonModalNonParentDialog
5359            * Thuban/UI/tree.py: Dialog derived from NonModalNonParentDialog
5360    
5361    2003-05-27  Bernhard Herzog  <[email protected]>
5362    
5363            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): New. Open a
5364            tableview dialog
5365            (MainWindow.TableShow): Use ShowTableView to open the dialogs.
5366            Also, don't use the table's titles as the dialog names. The titles
5367            aren't guaranteed to be unique.
5368            (MainWindow.TableOpen): Open a table view dialog after opening the
5369            table
5370    
5371    2003-05-27  Bernhard Herzog  <[email protected]>
5372    
5373            * Thuban/UI/mainwindow.py: Remove the Table/Hide menu item. Its
5374            effect can be achieved by simply closing the window showing the
5375            table.
5376            (MainWindow.TableHide): Removed.
5377            (main_menu): Removed "table_hide"
5378    
5379    2003-05-27  Frank Koormann  <[email protected]>
5380    
5381            Fix legend tree display problems under Win32
5382    
5383            * Thuban/UI/legend.py:  BMP_SIZE_W = 15
5384            (LegendTree.__FillTree): Display "legend_icon_map.xpm" with layer title.
5385            (LegendTree.__FillTreeLayer): Explicitely set SelectedImage.
5386    
5387            * Resources/Bitmaps/legend_icon_map.xpm: New icon for legend.
5388    
5389    2003-05-27  Jan-Oliver Wagner <[email protected]>
5390    
5391            * Thuban/UI/menu.py (Menu.InsertSeparator): Additional optional parameter
5392            'after' now allows to insert separators almost anywhere in the menu.
5393    
5394    2003-05-27  Frank Koormann  <[email protected]>
5395    
5396            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Underline the
5397            "S" of selection box label to hint on hot key (Alt-S). Works under
5398            Win32 but is ignored under GTK.
5399    
5400    2003-05-26  Frank Koormann  <[email protected]>
5401    
5402            * Thuban/UI/projdialog.py (ProjFrame.__do_layout, ProjPanel._DoLayout):
5403            Center Choices.
5404    
5405    2003-05-26  Bernhard Herzog  <[email protected]>
5406    
5407            Remove the Precision methods again. They're too DBF specific to be
5408            part of the table interface and they're only used in table_to_dbf
5409            anyway.
5410            
5411            * Thuban/Model/transientdb.py (TransientTableBase.Width):Use a
5412            fixed precision of 12 for doubles.
5413            (TransientTableBase.Precision): Removed
5414            (AutoTransientTable.Width): Delegate to self.table.
5415    
5416            * Thuban/Model/table.py (DBFTable.Precision)
5417            (MemoryTable.Precision): Removed.
5418            (MemoryTable.Width): Use a fixed precision of 12 for doubles.
5419            (table_to_dbf): Use a fixed precision of 12 for floats unless the
5420            column object specifies something else.
5421    
5422            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): New.
5423            test for table_to_dbf
5424    
5425    2003-05-26  Bernhard Herzog  <[email protected]>
5426    
5427            * test/test_transientdb.py
5428            (TestTransientTable.run_iceland_political_tests): Fix a comment.
5429    
5430    2003-05-26  Bernhard Herzog  <[email protected]>
5431    
5432            * Thuban/UI/mainwindow.py (MainWindow.TableOpen): Real
5433            implementation. Mark parts of the file format strings for
5434            localization.
5435    
5436            * Thuban/Model/session.py (Session.OpenTableFile): New. Open a dbf
5437            file and add the table to the tables managed by the session
5438    
5439            * test/test_session.py (TestSessionSimple.test_open_table_file):
5440            New. test case for OpenTableFile
5441    
5442    2003-05-26  Jan-Oliver Wagner <[email protected]>
5443    
5444            * Thuban/UI/controls.py, Thuban/UI/identifyview.py, Thuban/UI/join.py,
5445            Thuban/UI/labeldialog.py, Thuban/UI/mainwindow.py,
5446            Thuban/UI/proj4dialog.py, Thuban/UI/tableview.py, Thuban/UI/view.py:
5447            Replace the true/false of wxWindows by True/False of Python 2.2.1.
5448    
5449    2003-05-26  Jan-Oliver Wagner <[email protected]>
5450    
5451            * Thuban/UI/tableview.py (LayerTableFrame.__init__): If there is
5452            already a selection present, update the grid accordingly.
5453    
5454            * Thuban/UI/mainwindow.py (MainWindow.TableShow): Make the dialog
5455            resizeable and increase its initial size.
5456    
5457    2003-05-26  Frank Koormann  <[email protected]>
5458    
5459            Table export functionality
5460    
5461            * Thuban/Model/table.py (DBFTable.Width, MemoryTable.Width):
5462            Return width (in characters) for a column.
5463            (DBFTable.Precision, MemoryTable.Precision): Return decimal precision.
5464            (table_to_dbf): Write table to dbf file.
5465            (table_to_csv): Write table to csv file.
5466    
5467            * Thuban/Model/transientdb.py (TransientTableBase.Width,
5468            TransientTableBase.Precision): Return column width and precision.
5469    
5470            * Thuban/UI/tableview.py (QueryTableFrame.OnSaveAs): Call table_to_dbf
5471            or table_to_csv depending on file selection.
5472    
5473            * test/test_dbf_table.py:
5474            Test table_to_dbf (extension of former part of test).
5475    
5476            * test/test_csv_table.py:
5477            Test table_to_csv.
5478    
5479    2003-05-23  Jan-Oliver Wagner <[email protected]>
5480    
5481            * Thuban/UI/join.py (JoinDialog.OnJoin): Use _() for strings.
5482            Use QueryTableFrame instead of TableFrame.
5483    
5484            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Prefix the
5485            table window with 'Layer Table:' instead of 'Table:'.
5486    
5487    2003-05-23  Jan-Oliver Wagner <[email protected]>
5488    
5489            Give all tables a title via mix-in TitledObject.LayerShowTable
5490    
5491            * Thuban/Model/base.py (TitledObject.SetTitle): Call method 'issue'
5492            only if it exists.
5493    
5494            * Thuban/Model/table.py (DBFTable, MemoryTable): mix-in TitledObject
5495            and call its init-method with a default title. Remove Title() method.
5496    
5497            * Thuban/Model/transientdb.py (TransientTable, TransientJoinedTable,
5498            AutoTransientTable): mix-in TitledObject and call its init-method with
5499            a default title. Remove Title() method.
5500    
5501    2003-05-23  Bernhard Herzog  <[email protected]>
5502    
5503            * Thuban/Model/session.py (Session.AddShapeStore): Define
5504            AddShapeStore analogously to AddTable.
5505    
5506            * test/test_session.py (TestSessionSimple.test_add_shapestore):
5507            New. Test for AddShapeStore
5508    
5509    2003-05-23  Jan-Oliver Wagner <[email protected]>
5510    
5511            Introducing QueryTableFrame and a very coarse ShowTable implementation.
5512    
5513            * Thuban/UI/tableview.py (LayerTableFrame, QueryTableFrame): Split the
5514            class LayerTableFrame into two classes, LayerTableFrame and QueryTableFrame.
5515            The latter implements the selection GUI without dependency on a layer.
5516            LayerTableFrame now is derived from QueryTableFrame and connects
5517            to a layer.
5518    
5519            * Thuban/UI/mainwindow.py (MainWindow.TableShow): A very coarse
5520            implementation that still needs work.
5521    
5522            * Thuban/Model/layer.py (Layer.TreeInfo): Added filename.
5523    
5524    2003-05-22  Frank Koormann  <[email protected]>
5525    
5526            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
5527            Added "outer_join = False" as optional parameter.
5528            (TransientJoinedTable.create): If outer join is true, perform a
5529            "LEFT OUTER JOIN" instead of "JOIN", which preserves all records of
5530            the left table. Records not matching are filled with 0 / None.
5531    
5532            * Thuban/UI/join.py (JoinDialog.__init__): Checkbox for outer join.
5533            (JoinDialog.OnJoin): Consider outer join check box.
5534    
5535    2003-05-22  Bernhard Herzog  <[email protected]>
5536    
5537            * Thuban/UI/join.py (JoinDialog.OnJoin): Use exc_info in a
5538            somewhat safer way. Storing the traceback in a local variable can
5539            lead to memory leaks
5540    
5541    2003-05-22  Bernhard Herzog  <[email protected]>
5542    
5543            * Thuban/UI/join.py (JoinDialog.OnJoin): Make sure to really call
5544            the wxMessageDialog's Destroy() method.
5545    
5546    2003-05-22  Frank Koormann  <[email protected]>
5547    
5548            * Thuban/UI/join.py (JoinDialog.__init__): Make use of
5549            TransientTable.Title()
5550    
5551    2003-05-22  Frank Koormann  <[email protected]>
5552    
5553            Join Dialog, initial version.
5554    
5555            * Thuban/UI/mainwindow.py (MainWindow.TableJoin): Removed print.
5556    
5557            * Thuban/UI/join.py (JoinDialog): Functional implementation of
5558            former framework. Renamed Table1/Table2 to LeftTable/RightTable
5559            in all occurences.
5560    
5561            * Thuban/Model/transientdb.py (TransientJoinedTable.__doc__):
5562            Typo fixed.
5563    
5564    2003-05-22  Bernhard Herzog  <[email protected]>
5565    
5566            Give the tables titles so that the GUI can display more meaningful
5567            names. For now the titles are fixed but depend on e.g. filenames
5568            or the titles of the joined tables.
5569    
5570            * Thuban/Model/transientdb.py (TransientTable.Title)
5571            (TransientJoinedTable.Title, AutoTransientTable.Title): New.
5572    
5573            * Thuban/Model/table.py (DBFTable.Title, MemoryTable.Title): New.
5574    
5575            * test/test_transientdb.py
5576            (TestTransientTable.test_auto_transient_table_title): New. Test
5577            for the Title method
5578            (TestTransientTable.test_transient_joined_table)
5579            (TestTransientTable.test_transient_table): Add test for the Title
5580            methods
5581    
5582            * test/test_memory_table.py (TestMemoryTable.test_title): New.
5583            Test for the Title method
5584    
5585            * test/test_dbf_table.py (TestDBFTable.test_title): New. Test for
5586            the Title method
5587    
5588    2003-05-22  Bernhard Herzog  <[email protected]>
5589    
5590            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
5591            Provide a better way to destroy the layers
5592            (TestLayer.test_base_layer, TestLayer.test_arc_layer)
5593            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
5594            (TestLayer.test_polygon_layer, TestLayer.test_get_field_type): Use
5595            the new way to destroy the layers.
5596            (TestLayer.test_derived_store): New. Test for using a layer with a
5597            DerivedShapeStore
5598    
5599            * Thuban/Model/layer.py (Layer.SetShapeStore): Only set the
5600            filename if the shape store actually has one.
5601    
5602    2003-05-22  Bernhard Herzog  <[email protected]>
5603    
5604            * Thuban/Model/table.py (DBFTable.FileName): New. Accessor method
5605            for the filename
5606    
5607            * test/test_dbf_table.py (TestDBFTable.test_filename): New. Test
5608            for the FileName method
5609            (TestDBFTableWriting.test_write): Fix spelling of filename
5610    
5611    2003-05-22  Thomas Koester  <[email protected]>
5612    
5613            * Thuban/Model/range.py, test/test_range.py: Brought over new Range
5614            from SciParam that now really is immutable.
5615    
5616    2003-05-22  Frank Koormann  <[email protected]>
5617    
5618            Layer Top/Bottom placement added to legend.
5619    
5620            * Thuban/UI/legend.py
5621            (LegendPanel._OnMoveTop(), LayerPanel._OnMoveBottom): New, methods
5622            bound to tool events.
5623            (LegendTree.MoveCurrentItemTop(), LegendTree.MoveCurrentItemBottom):
5624            New, methods binding the event methods with the map methods.
5625    
5626            * Thuban/Model/map.py (Map.TopLayer(), Map.BottomLayer()): New, place
5627            layer at top/bottom of layer stack.
5628    
5629            * Resources/Bitmaps/top_layer.xpm: New button icon.
5630    
5631            * Resources/Bitmaps/bottom_layer.xpm: New button icon.
5632    
5633    2003-05-22  Bernhard Herzog  <[email protected]>
5634    
5635            * Thuban/Model/session.py (Session.RemoveTable): New method to
5636            remove tables
5637    
5638            * test/test_session.py (TestSessionSimple.test_remove_table): New.
5639            Test for RemoveTable
5640    
5641    2003-05-22  Thomas Koester  <[email protected]>
5642    
5643            * Thuban/Model/classgen.py: Added short module doc string and CVS id.
5644            (ClassGenerator.GenUniformDistribution): Use new Range __init__, too.
5645    
5646    2003-05-22  Bernhard Herzog  <[email protected]>
5647    
5648            Implement a way to discover dependencies between tables and
5649            shapestores.
5650    
5651            * Thuban/Model/transientdb.py (TransientTableBase.Dependencies)
5652            (TransientJoinedTable.Dependencies)
5653            (AutoTransientTable.SimpleQuery): New. Implement the dependencies
5654            interface
5655            (TransientJoinedTable.__init__): Keep tack of the original table
5656            objects in addition to the corresponding transient tables.
5657    
5658            * Thuban/Model/table.py (DBFTable.Dependencies)
5659            (MemoryTable.Dependencies): New. Implement the dependencies
5660            interface
5661    
5662            * Thuban/Model/data.py (ShapeTable): New. Helper class for
5663            ShapefileStore
5664            (ShapefileStore.__init__): Use ShapeTable instead of
5665            AutoTransientTable
5666            (ShapefileStore.Table, ShapefileStore.Shapefile): Add doc-strings
5667            (ShapefileStore.FileName, ShapefileStore.FileType): New. Accessor
5668            methods for filename and type
5669            (ShapefileStore.Dependencies): New. Implement the dependencies
5670            interface
5671            (DerivedShapeStore): New class to replace SimpleStore. The main
5672            difference to SimpleStore is that it depends not on a shapefile
5673            but another shapestore which expresses the dependencies a bit
5674            better
5675            (SimpleStore.__init__): Add deprecation warning.
5676    
5677            * test/test_dbf_table.py (TestDBFTable.test_dependencies): New.
5678            Test for the Dependencies method.
5679    
5680            * test/test_memory_table.py (TestMemoryTable.test_dependencies):
5681            New. Test for the Dependencies method.
5682    
5683            * test/test_transientdb.py
5684            (TestTransientTable.test_auto_transient_table_dependencies): New.
5685            Test for the Dependencies method.
5686            (TestTransientTable.test_transient_joined_table): Add test for the
5687            Dependencies method.
5688    
5689            * test/test_session.py (TestSessionSimple.setUp)
5690            (TestSessionSimple.tearDown): New. Implement a better way to
5691            destroy the sessions.
5692            (TestSessionSimple.test_initial_state)
5693            (TestSessionSimple.test_add_table): Bind session to self.session
5694            so that it's destroyed by tearDown
5695            (TestSessionSimple.test_open_shapefile): New. Test for
5696            OpenShapefile and the object it returns
5697    
5698    2003-05-22  Bernhard Herzog  <[email protected]>
5699    
5700            * Thuban/Model/session.py (Session.AddTable): New method to
5701            register tables with the session.
5702            (Session.Tables): Return the tables registered with AddTable too.
5703    
5704            * test/test_session.py (TestSessionSimple.test_add_table): New.
5705            Test case for the AddTable method
5706    
5707    2003-05-22  Frank Koormann  <[email protected]>
5708    
5709            UI polishing updates: Place main buttons (OK, Cancel, etc) in the
5710            lower right corner, center labels for selections, initialize controls
5711            in reasonable order for keyboard navigation.
5712    
5713            * Thuban/UI/projdialog.py (ProjFrame.__init__, ProjFrame.__doLayout)
5714            (ProjFrame.__DoOnProjAvail): Determine position of current projection
5715            using the wxListBox.FindString() method. Still a problem (#1886)
5716    
5717            * Thuban/UI/classifier.py
5718            (Classifier.__init__, SelectPropertiesDialog.__init__)
5719    
5720            * Thuban/UI/classgen.py (ClassGenDialog.__init__,
5721            (ClassGenDialog.__DoOnGenTypeSelect): Moved initialization of the
5722            different classification types from here to __init__.
5723            (GenUniquePanel.__init__): Set the column width of the first field
5724            in the Field ListCtrl to the full width.
5725    
5726            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Rename 'Save As'
5727            Button to 'Export'. Center Buttons in Selection Box, set Focus to
5728            Grid.
5729            (LayerTableFrame.OnKeyDown()): New, bound to the grid with EVT_KEY_DOWN,
5730            changes focus to the Selection when pressing "Alt-S".
5731    
5732            * Thuban/UI/legend.py (LegendTree.__SetVisibilityStyle): Only gray out
5733            the text if not visible. The italic font sometimes exceeds the
5734            rendering area.
5735    
5736    2003-05-21  Jonathan Coles   <[email protected]>
5737    
5738            * Thuban/UI/dock.py (DockFrame): Rename references to _OnClose
5739            to OnClose so that Thuban closes correctly.
5740    
5741            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Call
5742            DockFrame.OnClose, not DockFrame._OnClose.
5743    
5744    2003-05-21  Jonathan Coles   <[email protected]>
5745    
5746            * Thuban/Model/classgen.py (ClassGenerator.GenQuantiles): Remove
5747            references to 'inf' and use new Range __init__ to pass floats
5748            directly rather than converting them to strings first.
5749            Fixes RTBug #1876.
5750    
5751            * Thuban/Model/classification.py (ClassGroupRange.SetRange):
5752            Use new Range ___init__ to pass floats.
5753    
5754            * Thuban/Model/layer.py (RasterLayer.__init__): Test if the
5755            filename is a valid image file. Throw IOError otherwise.
5756    
5757            * Thuban/Model/range.py: Brought over new Range from SciParam that
5758            is immutable and has an __init__ which can accept floats.
5759    
5760            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Move OpenShapefile
5761            into try block. AddLayer doesn't throw any exceptions anymore.
5762            (MainWindow.AddRasterLayer): Move constructor of RasterLayer into
5763            try block.
5764    
5765            * Thuban/UI/projdialog.py (GeoPanel.__init__): Put Degrees as
5766            the first item in choices. Fixes RTBug #1882.
5767    
5768            * Thuban/UI/renderer.py (MapRenderer.render_map): Check if scale
5769            has gone to 0 which is a serious problem. abort.
5770            (MapRenderer.draw_raster_layer): Catch IOError seperately and
5771            print the error from GDAL.
5772    
5773            * Thuban/UI/tableview.py (TableGrid.__init__): Call
5774            ToggleEventListeners to turn on listening.
5775            (TableGrid.ToggleEventListeners): New. Turns event listening on
5776            and off so as to prevent excessive messages.
5777            (LayerTableFrame.OnQuery): Use TableGrid.ToggleEventListeners
5778            to suppress excessive messages when selecting many rows.
5779            Fixes RTBug #1880.
5780    
5781            * Thuban/UI/view.py: Added checks against if scale == 0. This
5782            is a serious problem that can occur when an image without
5783            geo data is loading and causes the map projection bounds to
5784            go to infinity. Right now, the solution is to simply try
5785            to recover.
5786    
5787            * extensions/thuban/cpl_mfile.cpp (MFILEClose): Make sure
5788            to set the MFILEReceiver attributes even if the data is NULL.
5789    
5790            * extensions/thuban/gdalwarp.cpp: Improved the error handling
5791            and passed GDAL messages back up to the Python layer. Also
5792            tried to fix some memory leaks that were present in the original
5793            utility but didn't matter because the program aborted.
5794    
5795            * test/test_range.py: Copied over tests from SciParam. Removed
5796            tests against importing. Fixes RTBug #1867.
5797    
5798    2003-05-21  Bernhard Herzog  <[email protected]>
5799    
5800            * test/test_load.py: Remove unused imports and restructure the
5801            test code
5802            (LoadSessionTest): Split into one class for each test and turn
5803            LoadSessionTest itself into the base class for all such session
5804            tests.
5805            (ClassificationTest): New base class for load tests that test
5806            classifications
5807            (TestSingleLayer, TestLayerVisibility, TestClassification)
5808            (TestLabels, TestLayerProjection, TestRasterLayer): New classes
5809            for the individual tests
5810    
5811            * test/support.py (FileLoadTestCase.filename): New base class for
5812            file loading tests
5813    
5814    2003-05-21  Jan-Oliver Wagner <[email protected]>
5815    
5816            * Resources/Projections/defaults.proj: Renamed 'Universal Transverse
5817            Mercator' to 'UTM Zone 32' as a more convenient example.
5818            Added 'Gauss Krueger Zone 6'.
5819    
5820            * Data/iceland_sample_raster.thuban: political polygon now
5821            filled transparent to have the raster image visible at once.
5822    
5823    2003-05-21  Frank Koormann  <[email protected]>
5824    
5825            * Thuban/UI/mainwindow.py (MainWindow): Renamed _OnClose() back to
5826            OnClose() to keep in sync with extensions. Internally Thuban
5827            still uses "underscored" names.
5828    
5829    2003-05-20  Jonathan Coles   <[email protected]>
5830    
5831            This puts back Raster layer support. These layers support projections
5832            through the GDAL library. Currently, the CVS version is being used.
5833            There are no Debian packages available although this may change soon.
5834            A GDAL driver was extended to support writing to memory rather to
5835            files.
5836    
5837            There is still some work that needs to be done, such as some error
5838            handling when loading invalid images or when there is a problem
5839            projecting the image. This putback simply checks in the majority
5840            of the work.
5841    
5842            * setup.py: Add gdalwarp library extension.
5843    
5844            * Thuban/Model/layer.py (BaseLayer.HasClassification): New.
5845            Defaults to False, but can be overridden by subclasses if they
5846            support classification.
5847            (RasterLayer): New. Defines a new layer that represents an
5848            image.
5849    
5850            * Thuban/Model/load.py (SessionLoader.__init__): Add rasterlayer
5851            tag handler.
5852            (SessionLoader.start_layer): Encode the filename.
5853            (SessionLoader.start_rasterlayer, SessionLoader.end_rasterlayer):
5854            New. Supports reading a rasterlayer tag.
5855    
5856            * Thuban/Model/map.py (Map.BoundingBox): Fix typo in comment.
5857    
5858            * Thuban/Model/save.py (XMLWriter.encode): Don't assume that we
5859            get a string in Latin1. If we get such as string convert it to
5860            unicode first, otherwise leave if alone before encoding.
5861            (SessionSaver.write_layer): Add support for writing both Layers
5862            and RasterLayers.
5863    
5864            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
5865            The right argument may not be a string, it could also be a Column.
5866    
5867            * Thuban/UI/application.py (ThubanApplication.CreateMainWindow):
5868            Make initial window size 600x400. Fixes RTBug #1872.
5869    
5870            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange how
5871            the dialog is constructed so that we can support layers that
5872            do not have classifications.
5873            (Classifier._OnTry): Only build a classification if the layer
5874            supports one.
5875    
5876            * Thuban/UI/legend.py: Change all checks that a layer is an
5877            instance of Layer into checks against BaseLayer.
5878            (LegendTree.__FillTreeLayer): Only add children to a branch if
5879            the layer supports classification.
5880    
5881            * Thuban/UI/mainwindow.py (MainWindow.NewSession,
5882            MainWindow.OpenSession): Don't proceed with an action if the
5883            user chooses Cancel when they are asked to save changes.
5884            (MainWindow.AddRasterLayer): New. Open a dialog to allow the
5885            user to select an image file. Create a new RasterLayer and add
5886            it to the map.
5887    
5888            * Thuban/UI/renderer.py (MapRenderer.render_map): Add support
5889            for rendering RasterLayer layers.
5890            (MapRenderer.draw_raster_layer): Actually method that calls
5891            the GDALWarp python wrapper and constructs an image from the
5892            data returned.
5893    
5894            * Thuban/UI/tableview.py (LayerTableFrame.__init__): Change the
5895            Choices symbols to match those used in the table query method.
5896            Replace deprecated method calls on table with new method names.
5897    
5898            * Thuban/UI/view.py (MapCanvas.set_view_transform): Try to limit
5899            how small the scale can get. This still needs more testing.
5900    
5901            * extensions/thuban/bmpdataset.cpp: New, but copied from GDAL.
5902            Provides a driver to output in .bmp format.
5903    
5904            * extensions/thuban/cpl_mfile.cpp, extensions/thuban/cpl_mfile.h:
5905            New. Provides IO routines which write to memory, rather than a file.
5906    
5907            * extensions/thuban/gdalwarp.cpp: New, but basically a direct copy
5908            of the gdalwarp utility provided in GDAL. Added function calls
5909            that can be accessed from python.
5910    
5911            * Data/iceland_sample_raster.thuban: New. Sample file that uses
5912            a raster layer.
5913    
5914            * Data/iceland/island.tfw, Data/iceland/island.tif: New. Raster
5915            layer image data.
5916    
5917            * Doc/thuban.dtd: Added rasterlayer attribute definition.
5918    
5919            * test/test_layer.py, test/test_load.py, test/test_save.py: Added
5920            tests associated with the raster layer code.
5921    
5922            * test/test_transientdb.py
5923            (TestTransientTable.test_auto_transient_table_query): Added a test
5924            for using a Column object as the "right" parameter to a query.
5925    
5926    2003-05-19  Frank Koormann  <[email protected]>
5927    
5928            * Thuban/version.py (get_changelog_date):
5929            Catch exceptions if ChangeLog does not exist.
5930    
5931            * Thuban/UI/view.py (MapCanvas.Export): Bugfix
5932    
5933    2003-05-19  Frank Koormann  <[email protected]>
5934    
5935            Extended version information for Thuban
5936    
5937            * Thuban/version.py: New, version information for Thuban: Last
5938            modification date and last ChangeLog entry date.
5939    
5940            * Thuban/UI/mainwindow.py (MainWindow.About()): Extended version
5941            information: Display Thuban, wxPython and Python version.
5942    
5943    2003-05-16  Bernhard Herzog  <[email protected]>
5944    
5945            * Thuban/Model/save.py: Remove some unused imports including the
5946            __future__ import for nested_scopes as Thuban relies on Python 2.2
5947            now.
5948            (XMLWriter.encode): Remove the special case for a None argument.
5949            In the saver encode is always called with a string argument.
5950    
5951    2003-05-16  Bernhard Herzog  <[email protected]>
5952    
5953            * Thuban/UI/__init__.py: Remove the work-around for the locale bug
5954            in wxPython (at least when usinvg wxGTK) prior to 2.4. The symptom
5955            of the bug was that e.g. float("1.2") would fail. Thuban now
5956            requires 2.4.x.
5957            
5958    2003-05-16  Frank Koormann   <[email protected]>
5959    
5960            Printing enhancement and WMF export (under Win32)
5961    
5962            * Thuban/UI/renderer.py (ExportRenderer): New, derived from
5963            ScreenRenderer. Renders Map, Legend and Scalebar for export.
5964            (PrinterRenderer): New, derived from ExportRenderer. Replaces the old
5965            PrintRender.
5966    
5967            * Thuban/UI/view.py (MapPrintout.__init__): Enhanced parameter set
5968            to fullfil information needed for PrinterRenderer.
5969            (MapCanvas.Export): New. Export Map (currently only to WMF on Win32).
5970            (MapCanvas.Print): Adapted to new MapPrintout.
5971            (OutputTransform): General calculations to transform from canvas
5972            coordinates to export/printing devices.
5973    
5974            * Thuban/UI/mainwindow.py (MainWindow.ExportMap()): New. Added also
5975            new method_command to call ExportMap, with platform dependency (only
5976            __WXMSW__)
5977      
5978            * Thuban/UI/scalebar.py (ScaleBar.DrawScaleBar): Position and Size
5979            of scalebar drawing area as new parameters.
5980            
5981            * Thuban/Model/scalebar.py (roundInterval): round long instead of int
5982    
5983            * Thuban/UI/legend.py (ScalebarBitmap.__SetScale):
5984            Update to extended scalebar.DrawScalebar header.
5985    
5986            * test/test_export.py: New, test Thuban.UI.view.OutputTransform()
5987    
5988            * test/test_scalebar.py: Made test executable as standalone.
5989    
5990    2003-05-16  Bernhard Herzog  <[email protected]>
5991    
5992            * Thuban/Model/table.py (Table): Remove this compatibility alias
5993            for DBFTable.
5994    
5995            * test/test_table.py: Import DBFTable as Table because that alias
5996            doesn't exist anymore.
5997    
5998            * Thuban/UI/classgen.py: Remove some unused imports
5999    
6000    2003-05-14  Jonathan Coles   <[email protected]>
6001    
6002            * Thuban/Model/classgen.py (ClassGenerator.GenSingletonsFromList):
6003            Fix docstring.
6004            (ClassGenerator.GenUniformDistribution): Fix spelling of method name.
6005            (ClassGenerator.GenQuantiles): Use the left/right brackets and min/max
6006            values of the supplied range to determine the beginning and end
6007            bounds of the generated classes.
6008    
6009            * Thuban/Model/range.py (Range.number_re): Now accepts floats that
6010            do not have a leading 0 (.5 is now accepted as well as 0.5).
6011    
6012            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Fix name of method
6013            call to ClassGenerator.GenUniformDistribution.
6014    
6015            * Thuban/UI/projdialog.py (ProjFrame.__do_layout): Fix Windows
6016            layout bug with the 'Projection' label.
6017    
6018            * test/support.py (FloatTestCase): New. Needed for the Range tests.
6019    
6020            * test/test_range.py: New. Imported from SciParam.
6021    
6022    2003-05-12  Jonathan Coles   <[email protected]>
6023    
6024            * Thuban/UI/classgen.py (GenQuantilesPanel.GetList): Replace call
6025            to table.UniqueValues() with calls that retrieve all the values
6026            from the table. This will need to be replaced by a method on table
6027            which can simply return the list (perhaps more efficiently).
6028    
6029    2003-05-12  Jonathan Coles   <[email protected]>
6030    
6031            The return value of ClassGenerator.CalculateQuantiles has changed.
6032            Refer to the documentation for details.
6033    
6034            * test/test_classgen.py: Modified Quantile tests to use the
6035            new return values.
6036    
6037            * Thuban/Model/classgen.py
6038            (ClassGenerator.GenQuantiles): Add comments describing the parameters,
6039            use new return values from CalculateQuantiles to produce the correct
6040            range bounds in the Classification.
6041            (ClassGenerator.CalculateQuantiles): Add more comments describing
6042            the return values and parameters. Make minor adjustments to improve
6043            the legibility of the code. Fix problem with adjusted not being set
6044            in most cases.
6045    
6046    2003-05-12  Frank Koormann <[email protected]>
6047            
6048            * Thuban/Model/save.py (XMLWriter.encode()): Explicite call to unicode
6049            and latin1. Fixes #1851 finally.
6050    
6051    2003-05-09  Jonathan Coles   <[email protected]>
6052    
6053            * test/test_classgen.py: New. Tests the Quantile algorithm.
6054    
6055            * Thuban/Model/classgen.py (ClassGenerator.CalculateQuantiles):
6056            Clean up debugging statement, add comments, fix a small bug in the
6057            returned adjusted percentiles.
6058            
6059    2003-05-09  Jonathan Coles   <[email protected]>
6060    
6061            Introduces Range class from SciParam into the ClassGroupRange class,
6062            and such ranges can now be saved and loaded from disk.
6063    
6064            Quantiles are now available in the Classification Generator.
6065    
6066            Initial support for building Queries on a table. Doesn't do anything
6067            but run some tests.
6068    
6069            * Thuban/Model/classification.py: Explicit imports.
6070            (ClassGroupRange): Use the Range class to store the underlying
6071            range information. The interface remains the same, except for
6072            GetRange(), and you can also supply a Range object as the min
6073            parameter to SetRange or __init__.
6074    
6075            * Thuban/Model/load.py (XMLReader.encode): New. Encodes the given
6076            string appropriately for use in Thuban. Fixes RTbug #1851.
6077            (SessionLoader.end_projection): Handle the context of the
6078            projection tag a bit better by looking at what objects are not
6079            None. There was an assumption that a projection tag for a map
6080            could occur before any layers.
6081            (SessionLoader.start_clrange): Provide backward compatibility for
6082            reading min/max values as well as the new range parameter.
6083    
6084            * Thuban/Model/map.py: Explicit imports.
6085    
6086            * Thuban/Model/resource.py: Import _.
6087            (ProjFileSaver.write): write header using projfile.dtd.
6088    
6089            * Thuban/Model/save.py: Explicit imports.
6090            (XMLWriter.encode): New. Encode the given string from a format
6091            used by Thuban into UTF-8. Fixes RTbug #1851.
6092    
6093            * Thuban/UI/classgen.py: Explicit imports.
6094            (ClassGenDialog.__init__): Clean up the code and add support
6095            for Quantiles.
6096            (ClassGenDialog.OnOK): Add support for Quantiles.
6097            (GenQuantilesPanel): New. Input panel for Quantiles.
6098            (ClassGenerator, CustomRamp, MonochromaticRamp, GreyRamp, RedRamp,
6099            GreenRamp, BlueRamp, HotToColdRamp): Move to Thuban/Model/classgen.py
6100    
6101            * Thuban/Model/classgen.py: New. Contains all the classes named above.
6102    
6103            * Thuban/UI/classifier.py: Explicit imports.
6104            (ClassTable.GetValueAsCust, ClassTable.__ParseInput,
6105            ClassTable.SetValueAsCustom): Reworked to use new Range class.
6106    
6107            * Thuban/UI/legend.py: Explicit imports.
6108    
6109            * Thuban/UI/mainwindow.py: Add support for the Join Dialog. Added
6110            a Table menu and associated method calls.
6111            (MainWindow.choose_color): Removed. No longer needed.
6112    
6113            * Thuban/UI/projdialog.py (ProjFrame.__VerifyButtons): Save button
6114            should be disabled if no projection is selected in the available
6115            list.
6116    
6117            * Thuban/UI/renderer.py: Explicit imports.
6118    
6119            * Thuban/UI/tableview.py (TableGrid.OnRangeSelect): Fix some issues
6120            with correctly selecting the rows and issuing the right events.
6121            Be sure to call Skip() to allow the grid to do some of its own
6122            handling which allows the rows to actually be selected.
6123            (LayerTableGrid.select_shapes): Rename from select_shape. Supports
6124            selecting multiple shapes.
6125            (LayerTableFrame): Support for building Queries.
6126            (LayerTableFrame.select_shapes): Allow multiple shapes to be selected.
6127    
6128            * Thuban/UI/tree.py: Explicit imports.
6129    
6130            * Thuban/UI/view.py (MapCanvas): Delegate "SelectedShapes" so the
6131            table view can call it.
6132    
6133            * test/test_classification.py: Explicit imports.
6134            (TestClassification.test_ClassGroupRange): Fix test for new
6135            Range class.
6136    
6137            * Doc/thuban.dtd: Add range parameter for clrange.
6138    
6139            * Thuban/Model/range.py: Taken from SciParam. Used as the underlying
6140            object in ClassGroupRange, and also uesd for inputting ranges in
6141            the classifer table and elsewhere.
6142    
6143            * Thuban/UI/join.py: New. Initial Join dialog. No real functionality
6144            yet.
6145    
6146    2003-05-09  Frank Koormann <[email protected]>
6147    
6148            * Thuban/UI/scalebar.py (DrawScaleBar): Draw only if interval > 0.0.
6149    
6150    2003-05-08  Frank Koormann <[email protected]>
6151    
6152            Coding style updates
6153    
6154            * test/test_scalebar.py: Replaced tab indentation by spaces.
6155    
6156            * Thuban/UI/scalebar.py: Explicit imports.
6157    
6158    2003-05-08  Frank Koormann <[email protected]>
6159    
6160            * Thuban/UI/scalebar.py
6161            (ScaleBar.DrawScalebar): Format string bug fixed.
6162    
6163    2003-05-08  Frank Koormann <[email protected]>
6164    
6165            Reorganization of scalebar component (no wx in Thuban/Model)
6166    
6167            * Thuban/Model/scalebar.py: Rendering moved to Thuban/UI/scalebar.py
6168            (deriveInterval):
6169            Calculate scalebar interval and unit which fits in width for scale.
6170            (roundInterval): Round float.
6171    
6172            * Thuban/UI/scalebar.py (ScaleBar): Scalebar rendering
6173    
6174            * test/test_scalebar.py: Test for Thuban/Model/scalebar.py methods.
6175    
6176            * Thuban/UI/legend.py: Import Thuban.UI.scalebar
6177    
6178    2003-05-08  Frank Koormann <[email protected]>
6179    
6180            * Thuban/UI/legend.py (ScalebarBitmap.SetCanvas):
6181            Initialize ScaleBar with canvas.map
6182    
6183            * Thuban/Model/scalebar.py (ScaleBar.roundInterval()): New,
6184            round intervals to display smarter lengths
6185            (ScaleBar.DrawScalebar): Draw Scalebar only if the map contains a
6186            layer. If the maps has no projection applied grey the scalebar.
6187    
6188    2003-05-07  Frank Koormann <[email protected]>
6189            
6190            Basic Scalebar features added.
6191    
6192            * Thuban/Model/scalebar.py (ScaleBar): New, scalebar rendering.
6193    
6194            * Thuban/UI/legend.py (LegendPanel): Added scalebar bitmap
6195            (ScaleBarBitmap): New, links the scalebar bitmap with view messages
6196            and the renderer.
6197    
6198            * Thuban/UI/view.py (MapCanvas.set_view_transform): Issue SCALE_CHANGED.
6199    
6200            * Thuban/UI/messages.py: SCALE_CHANGED added.
6201    
6202    2003-05-07  Bernhard Herzog  <[email protected]>
6203    
6204            * Thuban/Model/session.py (Session.__init__): New instance
6205            variable shapestores to hold a list of all open shapestore objects
6206            (Session.ShapeStores): New. Accessor method for the shapestores
6207            list.
6208            (Session._add_shapestore, Session._clean_weak_store_refs): New.
6209            Internal methods to maintain the shapestores list.
6210            (Session.Tables): New. Return all tables open in the session.
6211            (Session.OpenShapefile): Insert the new ShapeStore into the
6212            shapestores list.
6213    
6214            * test/test_session.py (TestSessionSimple.test_initial_state): Add
6215            tests for ShapeStores and Tables
6216            (TestSessionWithContent.test_shape_stores)
6217            (TestSessionWithContent.test_tables): New. Test cases for
6218            ShapeStores and Tables
6219    
6220    2003-05-07  Bernhard Herzog  <[email protected]>
6221    
6222            * Thuban/Model/transientdb.py (TransientTableBase.ReadRowAsDict):
6223            Add comments about the optimizations used.
6224            (AutoTransientTable.ReadValue, TransientTableBase.ReadValue): New.
6225            Implement the ReadValue table interface method.
6226    
6227            * test/test_transientdb.py
6228            (TestTransientTable.run_iceland_political_tests)
6229            (TestTransientTable.test_transient_joined_table): Add tests for
6230            ReadValue
6231    
6232    2003-05-07  Frank Koormann <[email protected]>
6233    
6234            * Resources/Bitmaps/fulllayerextent.xpm,
6235            Resources/Bitmaps/fullselextent.xpm: Replaced the place holders with
6236            new icons.
6237    
6238    2003-05-06  Bernhard Herzog  <[email protected]>
6239    
6240            * Thuban/Model/transientdb.py (AutoTransientTable.SimpleQuery):
6241            New. Simply delegate to the transient table's version.
6242    
6243            * test/test_transientdb.py
6244            (TestTransientTable.test_auto_transient_table_query): New. Test
6245            case for AutoTransientTable's SimpleQuery
6246    
6247    2003-05-06  Bernhard Herzog  <[email protected]>
6248    
6249            * Thuban/Model/transientdb.py (TransientTableBase.SimpleQuery):
6250            Implement a simple query method for the query dialog
6251            (TransientTableBase.create): Add an INTEGER PRIMARY KEY that holds
6252            the row index or shapeid.
6253            (TransientTable.create): Insert the right value of the row index
6254            (TransientJoinedTable.create): Copy the row index of the left
6255            table to the joined result table
6256    
6257            * test/test_transientdb.py
6258            (TestTransientTable.test_transient_table_read_twice): Fix
6259            doc-string
6260            (TestTransientTable.test_transient_table_query): New. Test for the
6261            SimpleQuery method
6262    
6263    2003-05-06  Bernhard Herzog  <[email protected]>
6264    
6265            Convert all table users to use the new table interface. This only
6266            covers Thuban itself, not GREAT-ER or other applications built on
6267            Thuban yet, so the compatibility interface stays in place for the
6268            time being but it now issues DeprecationWarnings.
6269    
6270            Finally, the new Table interface has a new method, HasColumn.
6271    
6272            * Thuban/Model/table.py (OldTableInterfaceMixin): All methods
6273            issue deprecation warnings when they're. The warnings refer to the
6274            caller of the method.
6275            (OldTableInterfaceMixin.__deprecation_warning): New. Helper method
6276            for the deprecation warnings
6277    
6278            * test/test_table.py: Ignore the deprecation warnings for the old
6279            table in the tests in this module. The purpose of the tests is to
6280            test the old interface, after all.
6281    
6282            * test/test_transientdb.py
6283            (TestTransientTable.run_iceland_political_tests): Use the
6284            constants for the types. Add a test for HasColumn
6285            (TestTransientTable.test_transient_joined_table): Adapt to new
6286            table interface. Add a test for HasColumn
6287            (TestTransientTable.test_transient_table_read_twice): Adapt to new
6288            table interface
6289    
6290            * Thuban/UI/tableview.py (DataTable.SetTable, DataTable.GetValue):
6291            Adapt to new table interface
6292    
6293            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Adapt to
6294            new table interface
6295    
6296            * Thuban/UI/controls.py (RecordListCtrl.fill_list)
6297            (RecordTable.SetTable): Adapt to new table interface
6298    
6299            * Thuban/UI/classifier.py (Classifier.__init__)
6300            (Classifier.__init__): Adapt to new table interface
6301    
6302            * Thuban/UI/classgen.py (ClassGenDialog.__init__)
6303            (GenUniformPanel._OnRetrieve, GenUniquePanel._OnRetrieve): Adapt
6304            to new table interface
6305    
6306            * Thuban/Model/transientdb.py (TransientTableBase.HasColumn)
6307            (AutoTransientTable.HasColumn): Implement the new table interface
6308            method
6309            (AutoTransientTable.ReadRowAsDict, AutoTransientTable.ValueRange)
6310            (AutoTransientTable.UniqueValues): Adapt to new table interface
6311    
6312            * Thuban/Model/layer.py (Layer.SetShapeStore, Layer.GetFieldType):
6313            Adapt to new table interface
6314    
6315            * test/test_layer.py (TestLayer.open_shapefile): Helper method to
6316            simplify opening shapefiles a bit easier.
6317            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
6318            (TestLayer.test_point_layer): Use the new helper method
6319            (TestLayer.test_get_field_type): New. Test for the GetFieldType
6320            method
6321    
6322            * test/test_dbf_table.py (TestDBFTable.test_has_column): Test for
6323            the new table method
6324    
6325            * test/test_memory_table.py (TestMemoryTable.test_has_column):
6326            Test for the new table method HasColumn
6327    
6328    2003-05-06  Jonathan Coles   <[email protected]>
6329    
6330            Addresses the "Selection Extent" wish of RTbug #1787.
6331    
6332            * Resources/Bitmaps/fulllayerextent.xpm,
6333            Resources/Bitmaps/fullselextent.xpm: Bitmaps for layer and selection
6334            extent. These are just place holders for the real bitmaps.
6335    
6336            * Thuban/Model/layer.py (Shape): Since a Shape is immutable only
6337            calculate the bounding box once (the first time compute_bbox() is
6338            called).
6339            (Layer.ShapesBoundingBox): New. Given a list of shape ids, return
6340            the bounding box for the shapes in lat/long coordinates.
6341    
6342            * Thuban/UI/mainwindow.py: Added new "Full selection extent" menu
6343            option.
6344            (MainWindow.has_selected_shapes): New. Returns true if there are
6345            any selected shapes.
6346            (MainWindow.FullSelectionExtent): New. Calls
6347            MapCanvas.FitSelectedToWindow() when the user selects the menu option.
6348            (_has_selected_shapes): New. Returns true if there are any
6349            selected shapes.
6350    
6351            * Thuban/UI/selection.py (Selection.HasSelectedShapes): New. Returns
6352            true if there are any selected shapes.
6353    
6354            * Thuban/UI/view.py (MapCanvas): Added delegated method
6355            HasSelectedShapes.
6356            (MapCanvas.FitSelectedToWindow): New. Centers and scales any selected
6357            shapes on the canvas using the map projection (if any).
6358    
6359            * test/test_layer.py (TestLayer.test_arc_layer): Add some tests
6360            for Layer.ShapesBoundingBox().
6361    
6362    2003-05-06  Bernhard Herzog  <[email protected]>
6363    
6364            * Resources/Projections/defaults.proj: Fix spelling of Mercator
6365    
6366    2003-05-05  Jonathan Coles   <[email protected]>
6367    
6368            Addresses the "Full Layer Extent" wish of RTbug #1787.
6369    
6370            * Resources/Projections/defaults.proj: Added UK National Grid.
6371    
6372            * Thuban/UI/mainwindow.py: Added new "Full layer extent" menu option.
6373            (MainWindow.FullLayerExtent): New. Calls MapCanvas.FitLayerToWindow()
6374            when the user selects the menu option.
6375    
6376            * Thuban/UI/view.py (MapCanvas.FitLayerToWindow): New. Centers and
6377            scales the given layer on the canvas using the map projection.
6378    
6379    2003-05-05  Bernhard Herzog  <[email protected]>
6380    
6381            Convert the table implementations to a new table interface. All
6382            tables use a common mixin class to provide backwards compatibility
6383            until all table users have been updated.
6384    
6385            * Thuban/Model/table.py (OldTableInterfaceMixin): Mixin class to
6386            provide backwards compatibility for table classes implementing the
6387            new interface
6388            (DBFTable, MemoryTable): Implement the new table interface. Use
6389            OldTableInterfaceMixin as base for compatibility
6390            (DBFColumn, MemoryColumn): New. Column description for DBFTable
6391            and MemoryTable resp.
6392    
6393            * test/test_dbf_table.py: New. Test cases for the DBFTable with
6394            the new table interface.
6395    
6396            * test/test_memory_table.py: New. Test cases for the MemoryTable
6397            with the new table interface.
6398    
6399            * test/test_table.py: Document the all tests in this file as only
6400            for backwards compatibility. The equivalent tests for the new
6401            interface are in test_memory_table.py and test_dbf_table.py
6402            (MemoryTableTest.test_read): field_info should be returning tuples
6403            with four items
6404            (MemoryTableTest.test_write): Make doc-string a more precise.
6405    
6406            * Thuban/Model/transientdb.py (TransientTableBase): Convert to new
6407            table interface. Derive from from OldTableInterfaceMixin for
6408            compatibility.
6409            (TransientTableBase.create): New intance variable column_map to
6410            map from names and indices to column objects
6411            (TransientTable.create): Use the new table interface of the input
6412            table
6413            (AutoTransientTable): Convert to new table interface. Derive from
6414            from OldTableInterfaceMixin for compatibility.
6415            (AutoTransientTable.write_record): Removed. It's not implemented
6416            yet and we still have to decide how to handle writing with the new
6417            table and data framework.
6418    
6419            * test/test_transientdb.py
6420            (TestTransientTable.run_iceland_political_tests)
6421            (TestTransientTable.test_transient_joined_table): Use the new
6422            table interface
6423    
6424    2003-05-05  Jonathan Coles   <[email protected]>
6425    
6426            This is namely a collection of UI updates to improve user interactivity.
6427            Tabbing between controls now exists and you can use ESC to close dialog
6428            boxes; ENTER will active the default button.
6429    
6430            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Rearrange the
6431            order that the controls are created so that tabbing works correctly.
6432            (ClassGenDialog.OnOK): Renamed from _OnGenerate() so that the
6433            wxDialog can handle the default button correctly.
6434            (ClassGenDialog.OnCancel): Renamed from _OnCloseBtn() for the
6435            same reasons as for OnOK.
6436            (GenUniformPanel._OnRetrieve): Call wxBeginBusyCursor/wxEndBusyCursor
6437            when we ask the table for the maximum/minimum values of a field
6438            which could take a very long time.
6439    
6440            * Thuban/UI/classifier.py (Classifier.__init__): Rearrange the
6441            order that the controls are created so that tabbing works correctly.
6442            (SelectPropertiesDialog.__init__): Rearrange the order that the
6443            controls are created so that tabbing works correctly.
6444    
6445            * Thuban/UI/dialogs.py: Copied NonModalDialog box and changed it
6446            to derive from a wxDialog but behave like the original implementation
6447            which was derived from a wxFrame. wxDialog provides useful key
6448            handling functionality like ESC calling OnCancel and ENTER calling
6449            OnOK which is lost with wxFrame.
6450    
6451            * Thuban/UI/mainwindow.py: Add "..." to menu items that will open
6452            new dialogs.
6453    
6454            * Thuban/UI/projdialog.py (ProjFrame.__init__): Rearrange the
6455            order that the controls are created so that tabbing works correctly.
6456            (ProjFrame.OnApply): Renamed from _OnTry() to use wxDialog behaviour.
6457            (ProjFrame.OnOK): Renamed from _OnOK() to use wxDialog behaviour.
6458            (ProjFrame.OnCancel): Renamed from _OnClose() to use wxDialog behaviour.
6459            (ProjPanel.__init__): Add "Airy" to the list of ellipsoids so we
6460            can provide the "UK National Grid" as a default projection.
6461            (UTMPanel.__init__): Rearrange the order that the controls are
6462            created so that tabbing works correctly.
6463    
6464    2003-05-05  Bernhard Herzog  <[email protected]>
6465    
6466            * extensions/thuban/wxproj.cpp: Fix some of the comments.
6467            (project_point): If a map projection but no layer projection is
6468            given, convert degrees to radians before applying the map
6469            projection.
6470    
6471            * Thuban/UI/tableview.py (TableGrid.disallow_messages)
6472            (TableGrid.allow_messages): New methods to make it possible to
6473            inhibit message sending.
6474            (TableGrid.issue): Only send the message if not inhibited.
6475            (LayerTableGrid.select_shape): Use the new methods to make sure
6476            that no ROW_SELECTED message is sent while we're updating the
6477            selected rows to match the selected shapes.
6478    
6479    2003-05-02  Jan-Oliver Wagner <[email protected]>
6480    
6481            Implementation of MemoryTable.
6482    
6483            * Thuban/Model/table.py (MemoryTable): New. Quite simple table
6484            implementation that operates on a list of tuples. All of the data
6485            are kept in the memory.
6486    
6487            * test/test_table.py (MemoryTableTest): New.
6488    
6489            * test/test_transientdb.py (SimpleTable): Removed.
6490            (TestTransientTable.test_transient_joined_table,
6491            (TestTransientTable.test_transient_table_read_twice): Replaced
6492            SimpleTable by MemoryTable.
6493    
6494    2003-04-30  Jonathan Coles   <[email protected]>
6495    
6496            * Data/iceland_sample.thuban: Now contains correct projections
6497            for each of the layers.
6498    
6499            * Resources/Projections/defaults.proj: Geographic projection
6500            contains unit conversion parameter.
6501    
6502    2003-04-30  Jonathan Coles   <[email protected]>
6503    
6504            The most important part of this putback is the projection changes.
6505            It should now be possible to specify the projection that a layer
6506            is in and then specify a different projection for the map. The
6507            projection dialog has an extra parameter for a geographic projection
6508            which lets the user select if the input is in degrees or radians.
6509    
6510            * Thuban/Model/layer.py (Layer.ShapesInRegion): Fix docstring
6511            to say that the parameter is a tuple of unprojected
6512            points (which is what the callers to this method were assuming).
6513            Also, since the points are unprojected we need to projected them.
6514    
6515            * Thuban/UI/legend.py (LegendTree.MoveCurrentItemUp,
6516            LegendTree.MoveCurrentItemDown): If the layer or any of the layer's
6517            groups are selected, move the layer up/down. Fixes RTbug #1833.
6518    
6519            * Thuban/UI/mainwindow.py: Move menu item map_rename up.
6520    
6521            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Add missing
6522            parameter in call to SetClientData.
6523            (GeoPanel): Add support for selecting the units that the
6524            source data is in (Radians or Degrees).
6525    
6526            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Optimize
6527            the rendering loop by reducing the number of if's, removing the
6528            unnecessary try/except block, and checking if the old group
6529            is the same as the new one (which happens a lot if there is
6530            no classification, or lots of shapes are in the same group).
6531    
6532            * Thuban/UI/view.py (MapCanvas.OnPaint): Add a try/except block
6533            around the redraw routine to try to catch problems that the user
6534            may create by selecting invalid projections for the data set and
6535            map. Clears the display if there are any problems and prints the
6536            error.
6537            (MapCanvas.do_redraw): Use DC.Clear() instead of drawing a filled
6538            rectangle.
6539    
6540            * extensions/thuban/wxproj.cpp (project_point): First invert the
6541            supplied point (which should be in projected coordinates) using
6542            the layer's projection and then project the point using the
6543            map's projection.
6544            (project_points): Use project_point() to project each point.
6545    
6546    2003-04-30  Jan-Oliver Wagner <[email protected]>
6547    
6548            * Thuban/Model/layer.py (Layer.SetShapeStore): Fixed a bug:
6549            don't set the Classification to None if the classfication field
6550            is None (ie only a DEFAULT).
6551    
6552    2003-04-30  Bernhard Herzog  <[email protected]>
6553    
6554            * Thuban/UI/view.py: Fix some typos.
6555    
6556            * Thuban/UI/mainwindow.py (MainWindow.identify_view_on_demand): Do
6557            not pop up the dialog if the selection becomes empty (this could
6558            happen if e.g. a new selection is opened while the identify tool
6559            is active and dialog had been closed)
6560    
6561    2003-04-30  Bernhard Herzog  <[email protected]>
6562    
6563            * Thuban/Model/transientdb.py (TransientTableBase.__init__): New
6564            instance variable read_record_last_result
6565            (TransientTableBase.read_record): Make sure reading the same
6566            record twice works. The implementation uses the new instance
6567            variable read_record_last_result
6568    
6569            * test/test_transientdb.py
6570            (TestTransientTable.test_transient_table_read_twice): New test
6571            case for the above bug-fix.
6572    
6573    2003-04-29  Jonathan Coles   <[email protected]>
6574    
6575            * Thuban/common.py: Removed. No longer needed Str2Num. RTbug #1832.
6576    
6577            * Thuban/UI/classgen.py: Remove all uses of Str2Num.
6578    
6579            * Thuban/UI/classifier.py: Remove all uses of Str2Num.
6580            (ClassTable.SetValueAsCustom): Rename keyword argument in
6581            ClassGroup* constructors to match argument name.
6582    
6583    2003-04-29  Bernhard Herzog  <[email protected]>
6584    
6585            * Thuban/Model/session.py (Session.Destroy): Explicitly close the
6586            transient DB if it exists to make sure it doesn't leave a journal
6587            file in the temp directory.
6588    
6589            * Thuban/Model/transientdb.py (TransientDatabase.close): Set
6590            self.conn to None after closing the connection to make sure it's
6591            not closed twice
6592    
6593    2003-04-29  Jonathan Coles   <[email protected]>
6594    
6595            Add a visible parameter in the layer XML tag. The default value is
6596            "true". If anything other than "false" is specified we also assume
6597            "true". Addresses RTbug #1025.
6598    
6599            * Doc/thuban.dtd: Add visible parameter to a layer.
6600    
6601            * Thuban/Model/layer.py (BaseLayer.__init__): Change default value
6602            of visible from 1 to True.
6603            (Layer.__init__): Change default value of visible from 1 to True.
6604    
6605            * Thuban/Model/load.py (SessionLoader.start_layer): Read visible
6606            parameter.
6607    
6608            * Thuban/Model/save.py (SessionSaver.write_layer): Save visible
6609            parameter.
6610    
6611            * test/test_load.py: Add new test data contents_test_visible.
6612            (LoadSessionTest.setUp): save test data.
6613            (LoadSessionTest.testLayerVisibility): Test if the visible flag
6614            is loaded correctly.
6615    
6616            * test/test_save.py (SaveSessionTest.testSingleLayer): Add test
6617            for saving an invisible layer.
6618    
6619    2003-04-29  Jonathan Coles   <[email protected]>
6620    
6621            * Thuban/UI/mainwindow.py (MainWindow.SetMap): Look up the
6622            legend dialog box and tell it to change its map to the one
6623            supplied to SetMap(). Fixes RTbug #1770.
6624    
6625    2003-04-29  Bernhard Herzog  <[email protected]>
6626    
6627            Next step of table implementation. Introduce a transient database
6628            using SQLite that some of the data is copied to on demand. This
6629            allows us to do joins and other operations that require an index
6630            for good performance with reasonable efficiency. Thuban now needs
6631            SQLite 2.8.0 and pysqlite 0.4.1. Older versions may work but I
6632            haven't tested that.
6633            
6634            * Thuban/Model/transientdb.py: New. Transient database
6635            implementation.
6636    
6637            * test/test_transientdb.py: New. Tests for the transient DB
6638            classes.
6639    
6640            * Thuban/Model/session.py (AutoRemoveFile, AutoRemoveDir): New
6641            classes to help automatically remove temporary files and
6642            directories.
6643            (Session.__init__): New instance variables temp_dir for the
6644            temporary directory and transient_db for the SQLite database
6645            (Session.temp_directory): New. Create a temporary directory if not
6646            yet done and return its name. Use AutoRemoveDir to have it
6647            automatically deleted
6648            (Session.TransientDB): Instantiate the transient database if not
6649            done yet and return it.
6650    
6651            * Thuban/Model/data.py (ShapefileStore.__init__): Use an
6652            AutoTransientTable so that data is copied to the transient DB on
6653            demand.
6654            (SimpleStore): New class that simply combines a table and a
6655            shapefile
6656    
6657            * Thuban/Model/table.py (Table, DBFTable): Rename Table into
6658            DBFTable and update its doc-string to reflect the fact that this
6659            is only the table interface to a DBF file. Table is now an alias
6660            for DBFTable for temporary backwards compatibility.
6661    
6662            * Thuban/UI/application.py (ThubanApplication.OnExit): Make sure
6663            the last reference to the session goes away so that the temporary
6664            files are removed properly.
6665    
6666            * test/test_load.py (LoadSessionTest.tearDown): Remove the
6667            reference to the session to make sure the temporary files are
6668            removed.
6669    
6670    2003-04-29  Bernhard Herzog  <[email protected]>
6671    
6672            * Thuban/Model/load.py (XMLReader.__init__, XMLReader.read): Turn
6673            the __parser instance variable into a normal local variable in
6674            read. It's only used there and read will never be called more than
6675            once. Plus it introduces a reference cycle that keeps can keep the
6676            session object alive for a long time.
6677    
6678    2003-04-29  Jonathan Coles   <[email protected]>
6679    
6680            * Thuban/Model/proj.py (Projection): Removed Set*() methods to make
6681            Projection an immutable item. Fixes RTbug #1825.
6682            (Projection.__init__): Initialize instance variables here.
6683            (ProjFile.Replace): New. Replace the given projection object with
6684            the new projection object. This solves the problem of needing the
6685            mutator Projection.SetProjection() in the ProjFrame class and
6686            allows a projection to change parameters without changing its
6687            location in the file.
6688    
6689            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs): Dialog should
6690            be of type wxSAVE and should verify overwriting a file.
6691    
6692            * Thuban/UI/projdialog.py (ProjFrame._OnSave): Use the new
6693            ProjFile.Replace() method instead of the mutator
6694            Projection.SetProjection(). Also requires that we reassign the
6695            client data to the new projection.
6696    
6697            * test/test_proj.py (TestProjection.test): Test GetName() and
6698            GetAllParameters()
6699            (TestProjFile.test): Remove tests for Set*() methods. Add tests
6700            for Replace().
6701    
6702    2003-04-25  Jonathan Coles   <[email protected]>
6703    
6704            * Thuban/Model/save.py (SessionSaver.write_projection): Make sure
6705            to save the name of the projection.
6706    
6707            * test/test_save.py (SaveSessionTest.testLayerProjection): New
6708            test to verify layer projections are saved correctly.
6709    
6710    2003-04-25  Jonathan Coles   <[email protected]>
6711    
6712            * Thuban/Model/proj.py (Projection.SetName): Set the name
6713            to "Unknown" if name is None.
6714            (Projection.SetAllParameters): New. Set the projection's
6715            parameter list to the one supplied.
6716            (Projection.SetProjection): New. Set the projection's
6717            properties to those of the supplied Projection.
6718    
6719            * Thuban/UI/mainwindow.py (MainWindow.MapProjection): Set
6720            the dialog title to include the map's title.
6721            (MainWindow.LayerProjection): Set the dialog title to include
6722            the layer's title.
6723    
6724            * Thuban/UI/projdialog.py (ProjFrame.__ShowError): Consolidate
6725            error dialogs into a single method call.
6726            (ProjFrame.__VerifyButtons): Add more states to check.
6727            (ProjFrame.__GetProjection): Return the current state of an
6728            edited projection or None.
6729            (ProjFrame.__FillAvailList): Remove checks for states that
6730            shouldn't exist.
6731            (ProjFrame._OnNew): Clear all selected items and supply
6732            a projection panel if necessary.
6733    
6734            * test/test_proj.py (TestProjFile.test): Add tests for
6735            ProjFile.SetAllParameters, ProjFile.SetProjection,
6736            ProjFile.SetName.
6737    
6738    2003-04-25  Jonathan Coles   <[email protected]>
6739    
6740            * Thuban/UI/projdialog.py (ProjFrame.__FillAvailList): Now
6741            takes an optional argument to select the current projection.
6742            This does not guarantee that the item is visible due to
6743            limited wxWindows functionality. Fixes RTBug #1821.
6744    
6745    2003-04-25  Jonathan Coles   <[email protected]>
6746    
6747            * Thuban/Model/load.py (SessionLoader.start_projection): Remember
6748            the projection name and use it when constructing the Projection
6749            object.
6750    
6751            * Thuban/Model/proj.py (Projection.__init__): Change the default
6752            value for 'name' to None and then test if name is equal to None
6753            in the body of the constructor. This way the caller doesn't have to
6754            know what the default value should be. Namely, useful in load.py
6755            where we have to pick a default value if the 'name' parameter
6756            doesn't exist in the XML file.
6757    
6758            * test/test_load.py (LoadSessionTest.testLayerProjection): New.
6759            Tests a file where a layer has a projection.
6760    
6761    2003-04-25  Jonathan Coles   <[email protected]>
6762    
6763            * Thuban/Model/layer.py (Layer.TreeInfo): Add an item to the
6764            tree for projection information.
6765    
6766            * Thuban/Model/load.py (XMLReader.GetFilename): Renamed from
6767            XMLReader.GetFileName.
6768            (SessionLoader): Added support for loading projection tags that
6769            appear inside a layer.
6770    
6771            * Thuban/Model/proj.py (ProjFile): Document the class. Move
6772            back to using a list because the order of the projections in
6773            the file is important to maintain. Fixes RTbug #1817.
6774    
6775            * Thuban/Model/resource.py: Rename calls to ProjFile.GetFileName
6776            to ProjFile.GetFilename.
6777    
6778            * Thuban/Model/save.py (SessionSaver.write_layer): Save projection
6779            information.
6780    
6781            * Thuban/UI/projdialog.py (ProjFrame._OnAddToList): Renamed from
6782            ProjFrame._OnSaveAs. Removed old dead code from previous
6783            implementation.
6784            (ProjFrame._OnExport): Add support for exporting more than one
6785            projection to a single file.
6786            (ProjFrame.__FillAvailList): use string formatting (% operator)
6787            to build strings that are (partly) translated. Fixes RTbug #1818.
6788    
6789            * test/test_proj.py (TestProjFile.test): New. Tests the base ProjFile
6790            class.
6791    
6792    2003-04-24  Bernhard Herzog  <[email protected]>
6793    
6794            * po/es.po: Updated Spanish translation by Daniel Calvelo Aros
6795    
6796            * po/fr.po: New. French translation by Daniel Calvelo Aros
6797    
6798            * Thuban/UI/projdialog.py (ProjFrame._OnSaveAs): Don't translate
6799            empty strings.
6800    
6801    2003-04-24  Jonathan Coles   <[email protected]>
6802    
6803            * Thuban/Model/layer.py (Layer.GetProjection): New. Needed to
6804            implement the interface that the ProjFrame dialog expects.
6805    
6806            * Thuban/Model/proj.py (Projection.SetName): New. Allows the
6807            name of the projection to be changed.
6808            (ProjFile): Use a dictionary instead of a list so that removing
6809            projections is easier and we are sure about uniqueness.
6810            (ProjFile.Remove): Remove the given projection object.
6811    
6812            * Thuban/Model/resource.py (GetSystemProjFiles, GetUserProjFiles):
6813            Return a list with only one projection file instead of searching for
6814            any projection file. This simplifies many things if the user can
6815            only have one system file and one user file.
6816    
6817            * Thuban/UI/classgen.py: Change all references to
6818            genCombo to genChoice.
6819    
6820            * Thuban/UI/mainwindow.py: Add a Projection option under the
6821            layer menu.
6822            (MainWindow.LayerProjection): New. Open up a projection window
6823            for a layer.
6824    
6825            * Thuban/UI/projdialog.py: Large changes to how the dialog is
6826            laid out. Use three panels instead of one. One for the list of
6827            projections, one for the edit controls, and one for the buttons.
6828            Fixed resizing problems so that the dialog resizes correctly
6829            when the projection panel changes. Added import/export, save, and
6830            new buttons/functionality.
6831    
6832    2003-04-24  Bernhard Herzog  <[email protected]>
6833    
6834            First step towards table management. Introduce a simple data
6835            abstraction so that we replace the data a layer uses more easily
6836            in the next step.
6837    
6838            * Thuban/Model/data.py: New file with a simple data abstraction
6839            that bundles shapefile and dbffile into one object.
6840    
6841            * Thuban/Model/session.py (Session.OpenShapefile): New method to
6842            open shapefiles and return a shape store object
6843    
6844            * Thuban/Model/layer.py (Layer.__init__): Pass the data as a store
6845            object instead of a shapefile filename. This introduces a new
6846            instance variable store holding the datastore. For intermediate
6847            backwards compatibility keep the old instance variables.
6848            (open_shapefile): Removed. No longer needed with the shape store.
6849            (Layer.SetShapeStore, Layer.ShapeStore): New methods to set and
6850            get the shape store used by a layer.
6851            (Layer.Destroy): No need to explicitly destroy the shapefile or
6852            table anymore.
6853    
6854            * Thuban/UI/mainwindow.py (MainWindow.AddLayer)
6855            (MainWindow.AddLayer): Use the session's OpenShapefile method to
6856            open shapefiles
6857    
6858            * Thuban/Model/load.py (ProcessSession.start_layer): Use the
6859            session's OpenShapefile method to open shapefiles
6860    
6861            * test/test_classification.py
6862            (TestClassification.test_classification): Use the session's
6863            OpenShapefile method to open shapefiles and build the filename in
6864            a more platform independed way
6865    
6866            * test/test_layer.py (TestLayer.setUp, TestLayer.tearDown):
6867            Implement to have a session to use in the tests
6868            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
6869            (TestLayer.test_point_layer, TestLayer.test_empty_layer): Use the
6870            session's OpenShapefile method to open shapefiles
6871            (TestLayerLegend.setUp): Instantiate a session so that we can use
6872            it to open shapefiles.
6873            (TestLayerLegend.tearDown): Make sure that all references to
6874            layers and session are removed otherwise we may get a resource
6875            leak
6876    
6877            * test/test_map.py (TestMapAddLayer.test_add_layer)
6878            (TestMapWithContents.setUp): Instantiate a session so that we can
6879            use it to open shapefiles.
6880            (TestMapWithContents.tearDown): Make sure that all references to
6881            layers, maps and sessions are removed otherwise we may get a
6882            resource leak
6883            ("__main__"): use support.run_tests() so that more info about
6884            uncollected garbage is printed
6885    
6886            * test/test_save.py (SaveSessionTest.testSingleLayer): Use the
6887            session's OpenShapefile method to open shapefiles
6888            ("__main__"): use support.run_tests() so that more info about
6889            uncollected garbage is printed
6890    
6891            * test/test_selection.py (TestSelection.tearDown): Make sure that
6892            all references to the session and the selection are removed
6893            otherwise we may get a resource leak
6894            (TestSelection.get_layer): Instantiate a session so that we can
6895            use it to open shapefiles.
6896            ("__main__"): use support.run_tests() so that more info about
6897            uncollected garbage is printed
6898    
6899            * test/test_session.py (TestSessionBase.tearDown)
6900            (TestSessionWithContent.tearDown): Make sure that all references
6901            to the session and layers are removed otherwise we may get a
6902            resource leak
6903            (TestSessionWithContent.setUp): Use the session's OpenShapefile
6904            method to open shapefiles
6905    
6906    2003-04-24  Jonathan Coles   <[email protected]>
6907    
6908            * Thuban/Model/load.py (XMLReader.read): Should have been checking
6909            if the file_or_filename object had the 'read' attribute.
6910    
6911    2003-04-23  Jonathan Coles   <[email protected]>
6912    
6913            * Thuban/Model/resource.py: Fixes RTbug #1813.
6914            (ReadProjFile): Add documentation about which exceptions are raised.
6915            Always pass the exceptions up to the caller.
6916            (GetProjFiles): If the directory can't be read return an empty list.
6917            If any of the proj files can't be read skip that file and go
6918            on to the next one.
6919    
6920            * test/test_proj.py: Added test cases to handle nonexistent files,
6921            unreadable files, and files that don't parse correctly.
6922    
6923    2003-04-23  Jonathan Coles   <[email protected]>
6924    
6925            Projection dialog. Allows the user to select from a list
6926            of projection templates and optionally edit them and save new ones.
6927    
6928            * Thuban/UI/projdialog.py (ProjFrame): New. Main dialog.
6929            (ProjPanel): Base class for projection specific panels.
6930            (TMPanel): Projection panel for Transverse Mercartor.
6931            (UTMPanel): Projection panel for Universal Transverse Mercartor.
6932            (LCCPanel): Projection panel for Lambert Conic Conformal.
6933            (GeoPanel): Projetion panel for Geographic Projection.
6934    
6935    2003-04-23  Jonathan Coles   <[email protected]>
6936    
6937            * Thuban/Model/load.py (XMLReader): Renamed from XMLProcessor to
6938            promote symmetry. There now exists XMLReader and XMLWriter.
6939            (XMLReader.read): New. Call to read the given file descriptor or
6940            filename.
6941            (XMLReader.close): New. Make sure the file is closed.
6942            (XMLReader.GetFileName): New. Return just the file name that is being
6943            read from.
6944            (XMLReader.GetDirectory): New. Return just the directory of the file
6945            that is being read.
6946            (XMLReader.AddDispatchers): New. Take a dictionary which contains
6947            the names of functions to call as the XML tree is parsed.
6948            (XMLReader.startElementNS): Updated to use new dispatcher dictionary.
6949            (XMLReader.endElementNS): Updated to use new dispatcher dictionary.
6950            (SessionLoader): Removed class variables start_dispatcher and
6951            end_dispatcher since this functionality is now part of a class
6952            instance. Fixes RTbug #1808.
6953            (SessionLoader.__init__): Add dispatcher functions.
6954            (load_xmlfile): Code was moved into the XMLReader.read().
6955            (load_session): Use modified SessionLoader.
6956    
6957            * Thuban/Model/map.py (Map.GetProjection): New. Returns the
6958            map's projection.
6959    
6960            * Thuban/Model/proj.py (Projection.GetParameters): Renamed to
6961            GetAllParameters.
6962            (Projection.GetParameter): Returns the value for the given parameter.
6963    
6964            * Thuban/Model/resource.py: Use XMLReader and XMLWriter.
6965            (GetProjFiles): Renamed from GetProjections. Now returns a list
6966            of ProjFile objects.
6967            (GetSystemProjFiles): Renamed from GetSuppliedProjections. Returns
6968            a list of ProjFile objects whose files are not user defined.
6969            (GetUserProjFiles): Renamed from GetUserProjections. Returns a
6970            list of ProjFile objects whose files are user defined.
6971            (ProjFileReader): Extend new XMLReader.
6972    
6973            * Thuban/Model/save.py (XMLWriter): Renamed from XMLSaver to
6974            promote symmetry.
6975    
6976            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Use a wxChoice
6977            control instead of a wxComboBox. wxChoice controls do not generate
6978            events as the uses highlights possible choices which fixes problems
6979            with resizing the dialog when the use selects an option.
6980    
6981            * Thuban/UI/classifier.py (Classifier.__init__): Use a wxChoice
6982            control instead of a wxComboBox.
6983    
6984            * Thuban/UI/mainwindow.py (MainWindow.Projection): Use new projection
6985            dialog.
6986    
6987            * test/test_proj.py (TestProjection.test): New tests for GetParameter
6988            method.
6989    
6990    2003-04-22  Bernhard Herzog  <[email protected]>
6991    
6992            * Thuban/UI/mainwindow.py: Remove some unused imports and global
6993            constants
6994    
6995            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape)
6996            (IdentifyGridCtrl.selected_shape): Use table, not shapetable.
6997    
6998    2003-04-17  Bernhard Herzog  <[email protected]>
6999    
7000            * Thuban/Model/layer.py: Don't import LAYER_LEGEND_CHANGED.
7001            (Layer): Update doc-string since LAYER_LEGEND_CHANGED is not used
7002            anymore.
7003            (Layer.BoundingBox, Layer.GetFieldType, Layer.NumShapes)
7004            (Layer.ShapeType, Layer.Shape): No need to call
7005            self.open_shapefile since it's always called in __init__
7006    
7007            * Thuban/UI/application.py (ThubanApplication.MainLoop): Removed.
7008            In wxPython 2.4 there's no need to extend MainLoop anymore since
7009            wxPython itself makes sure OnExit is called.
7010    
7011    2003-04-16  Jonathan Coles   <[email protected]>
7012    
7013            Initial putback of projection management code. Includes new
7014            classes to read and write projection files. The current load
7015            and save classes were abstracted a bit so they could be reused.
7016            The Projection class was extended to provide new methods and
7017            have a name.
7018    
7019            * Thuban/Model/load.py (XMLProcessor): New. Contains all the
7020            general XML reading methods that were part of ProcessSession.
7021    
7022            * Thuban/Model/proj.py (Projection.__init__): Accepts an optional
7023            name.
7024            (ProjFile): New. Represents a file that contains projection
7025            information.
7026    
7027            * Thuban/Model/resource.py: New. Contains general utilities
7028            for read and writing projection files.
7029    
7030            * Thuban/Model/save.py (XMLSaver): New. Contains all the
7031            general XML writing methods that were part of SessionSaver.
7032            (SessionSaver): Renamed from Saver.
7033    
7034            * test/test_proj.py: New test cases for the projection
7035            file read and write functions.
7036    
7037    2003-04-16  Jonathan Coles   <[email protected]>
7038    
7039            * Thuban/Model/classification.py: Use repr() around values
7040            in the ClassGroup*.__repr__() methods so it is clearer when
7041            a value is a string and when it is a number.
7042    
7043            * test/test_load.py: Rework the classification test to test
7044            that we can load old files.
7045            (testLabels): Test a file where the groups have labels.
7046    
7047    2003-04-16  Bernhard Herzog  <[email protected]>
7048    
7049            Safer implementation of the performance enhancements of the
7050            low-level renderer:
7051            
7052            * extensions/thuban/wxproj.cpp (extract_projection)
7053            (extract_pointer): Rename extract_projection to extract_pointer
7054            and redefine its purpose to return the pointer stored in a CObject
7055            returned by the object's cobject method. Update all callers.
7056            (s_draw_info, free_draw_info, draw_polygon_init): Implement the
7057            handling of these low-level parameters so that each s_draw_info
7058            instance is handled as a CObject at python level that also
7059            contains real references to the actual python objects which
7060            contain the values in the struct. Add free_draw_info as the
7061            destructor.
7062            (draw_polygon_shape): Add the py_draw_info parameter which must a
7063            cobject containing an s_draw_info pointer.
7064    
7065            * Thuban/UI/renderer.py (MapRenderer.polygon_render_param): New
7066            method to instantiat the low-level render parameter
7067            (MapRenderer.draw_shape_layer): Use the new method. Remove some
7068            commented out code.
7069            (MapRenderer.draw_polygon_shape): Make the first parameter not the
7070            layer but the low-level render parameter
7071            (ScreenRenderer.draw_shape_layer): Use the low-level render
7072            parameter.
7073    
7074    2003-04-15  Jonathan Coles   <[email protected]>
7075    
7076            * Thuban/Model/classification.py: Implemented __repr__ for
7077            the ClassGroup* classes to make debugging a bit easier.
7078            (ClassGroup.SetLabel): Check that the string is an instance
7079            of StringTypes not StringType. Accounts for Unicode strings.
7080    
7081            * Thuban/Model/color.py: Implemented __repr__ to make
7082            debugging a bit easier.
7083    
7084            * Thuban/Model/save.py (Saver.write_classification): Need to
7085            save the group label.
7086    
7087            * test/test_load.py (testClassification): New. Loads the
7088            iceland_sample_test.thuban file and checks if it was loaded
7089            correctly.
7090    
7091    2003-04-15  Jonathan Coles   <[email protected]>
7092    
7093            * extensions/thuban/wxproj.cpp (draw_polygon_init): New. Used
7094            to improve rendering performance by initializing the variables
7095            that are not change each time draw_polygon_shape() is called.
7096            The values are stored in a global struct draw_info.
7097            (draw_polygon_shape): Removed initialization code that is
7098            now in draw_polygon_init().
7099    
7100            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Make
7101            drawing initialization call to draw_polygon_init()
7102            (MapRenderer.draw_polygon_shape): Use new signature of
7103            draw_polygon_shape.
7104    
7105            * Thuban/UI/classgen.py (GenUniformPanel): Fix spin control
7106            weirdness by setting the range to (1, maxint).
7107    
7108            * Thuban/Model/classification.py (ClassGroupProperties): Make
7109            instance variables private and optimize comparison operator
7110            by first checking if the color references are the same.
7111            (ClassGroupSingleton): Make instance variables private.
7112            (ClassGroupRange): Make instance variables private.
7113    
7114            * HOWTO-Release: Filled in missing steps for releasing packages.
7115    
7116    2003-04-15  Bernhard Herzog  <[email protected]>
7117    
7118            First stab at internationalized messages:
7119    
7120            * Thuban/__init__.py (_): Implement the translation function for
7121            real using the python gettext module.
7122    
7123            * Thuban/UI/classifier.py (ClassTable.GetRowLabelValue): Don't
7124            translate empty strings.
7125    
7126            * Thuban/UI/application.py (ThubanApplication.read_startup_files):
7127            Add a missing space to a warning message
7128    
7129            * po/README: New. Notes about the management of the translation
7130            files.
7131    
7132            * po/Makefile: New. Makefile to help manage the translation files.
7133    
7134            * po/es.po: New. Spanish translation by Daniel Calvelo Aros
7135    
7136            * MANIFEST.in: Include the *.mo files in Resources/Locale and the
7137            translations and support files in po/
7138    
7139            * setup.py (data_files): Add the *.mo files to the data_files too
7140    
7141            * README: Add note about the translations when building from CVS
7142    
7143    2003-04-14  Jonathan Coles   <[email protected]>
7144    
7145            * Thuban/UI/dock.py: Fixes some window resizing problems most
7146            noticable under windows. Always assume the button bitmaps will
7147            be there. Code clean up.
7148            (DockabelWindow.Dock, DockableWindow.UnDock): Force all the
7149            images for the dock/undock button to the same images.
7150            Work around for RTbug #1801.
7151    
7152            * Thuban/UI/legend.py (LegendPanel.__init__): The toolbar should
7153            be allowed to grow within the sizer. Fixes a bug under Windows
7154            where the toolbar wasn't being drawn.
7155    
7156    2003-04-14  Frank Koormann   <[email protected]>
7157    
7158            * Resources/Bitmaps/dock_12.xpm, Resources/Bitmaps/undock_12.xpm:
7159            Updated design to try to make the button functionality more
7160            transparent.
7161    
7162    2003-04-14  Jonathan Coles   <[email protected]>
7163    
7164            * Thuban/UI/legend.py (LegendPanel.__init__): Call Create() to
7165            finalize the intialization of the panel.
7166    
7167            * Thuban/UI/dock.py (DockPanel.Create): New. Finalizes the
7168            creation of the panel. Should be the last thing called in the
7169            initializer of a subclass.
7170    
7171            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Actively
7172            set the current selections in the combo boxes. This is needed
7173            under Windows.
7174    
7175            * Thuban/UI/classifier.py (Classifier.__init__): Add a top
7176            level panel to the dialog so that the background colors are
7177            consistent under Windows.
7178    
7179    2003-04-11  Jonathan Coles   <[email protected]>
7180    
7181            * Thuban/UI/classgen.py: Change color ramps to start at white
7182            not black.
7183    
7184            * Thuban/UI/legend.py: Enable/disable the legend buttons when
7185            the legend changes. Fixes RTbug #1793.
7186    
7187            * test/test_classification.py: Added test for copying of
7188            classifications.
7189    
7190    2003-04-11  Jonathan Coles   <[email protected]>
7191    
7192            * Thuban/UI/resource.py: New. Centralize the loading of resources
7193            such as bitmaps.
7194    
7195            * Thuban/UI/classgen.py (GenUniquePanel.__init__): Reordered buttons,
7196            added images to the move buttons, added 'reverse' button.
7197            (CustomRampPanel.__init__): Added images to the move buttons.
7198            (GreyRamp): New. Generates a ramp from white to black.
7199            (HotToColdRamp): New. Generates a ramp from cold to hot colors.
7200    
7201            * Thuban/UI/classifier.py: Refactored ID's from ID_CLASSIFY_* to
7202            ID_PROPERTY_*.
7203            (Classifier.__init__): Minor changes to the layout.
7204            (Classifier._OnTitleChanged): Listen for when the user edits the
7205            title and update the dialog's title and the layer's title.
7206    
7207            * Thuban/UI/dock.py: Use new bitmaps for the control buttons.
7208    
7209            * Thuban/UI/legend.py: Use new bitmaps for the control buttons.
7210            (LegendTree._OnMsgLayerTitleChanged): Change the displayed title
7211            if the layer's title changes.
7212    
7213            * Thuban/UI/mainwindow.py: Added new menu item and associated code
7214            to open a dialog to rename the map.
7215            (MainWindow): Use new resource class to import bitmaps.
7216    
7217    2003-04-11  Jonathan Coles   <[email protected]>
7218    
7219            * Resources/Bitmaps/close_12.xpm, Resources/Bitmaps/dock_12.xpm,
7220            Resources/Bitmaps/group_use.xpm, Resources/Bitmaps/group_use_all.xpm,
7221            Resources/Bitmaps/group_use_none.xpm,
7222            Resources/Bitmaps/group_use_not.xpm,
7223            Resources/Bitmaps/hide_layer.xpm,
7224            Resources/Bitmaps/layer_properties.xpm,
7225            Resources/Bitmaps/lower_layer.xpm, Resources/Bitmaps/raise_layer.xpm,
7226            Resources/Bitmaps/show_layer.xpm, Resources/Bitmaps/undock_12.xpm:
7227            New.
7228    
7229    2003-04-10  Jonathan Coles   <[email protected]>
7230    
7231            * Thuban/Model/classification.py: (ClassGroupRange.__init__):
7232            Should pass group to ClassGroup constructor.
7233    
7234    2003-04-10  Jonathan Coles   <[email protected]>
7235    
7236            * Thuban/Model/classification.py: (ClassGroup): Move all the common
7237            methods of the derived classes ([Set|Get]Properties(), __eq__, __ne__)
7238            here. Implement SetVisible(), IsVisible().
7239            (ClassGroup.__init__): Add group parameter which acts as a copy
7240            constructor.
7241    
7242            * Thuban/UI/classifier.py (ClassTable): Add a new column for the
7243            "Visible" check boxes.
7244            (Classifier): Rename the buttons and refactor the code to match
7245            the new labels.
7246    
7247            * Thuban/UI/legend.py: Classify button is now called "Properties".
7248            Refactored the code to change variable names.
7249            (LegendTree.__FillTreeLayer): Only list a group if it is visible.
7250    
7251            * Thuban/UI/mainwindow.py: MainWindow.OpenClassifier renamed to
7252            MainWindow.OpenLayerProperties. MainWindow.LayerEditProperties
7253            renamed to MainWindow.LayerEditProperties.
7254            (MainWindow.ToggleLegend): Don't include map name in legend title.
7255            (MainWindow.SetMap): Added the map name to the window title.
7256            (MainWindow.LayerFillColor, MainWindow.LayerTransparentFill,
7257            MainWindow.LayerOutlineColor, MainWindow.LayerNoOutline): Removed.
7258            Functionality is found in the layer properties dialog.
7259    
7260            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
7261            draw visible groups.
7262    
7263    2003-04-09  Jonathan Coles   <[email protected]>
7264    
7265            * Thuban/UI/classgen.py: Modifications to allow simple
7266            addition and selection of new color schemes.
7267            (MonochromaticRamp): New. Generates a ramp between two colors.
7268            (RedRamp): New. Generates a ramp of all red.
7269            (GreenRamp): New. Generates a ramp of all green.
7270            (BlueRamp): New. Generates a ramp of all blue.
7271    
7272    2003-04-09  Jonathan Coles   <[email protected]>
7273    
7274            * Thuban/Model/classification.py (Classification.__deepcopy__):
7275            Need to copy over field and fieldType attributes.
7276    
7277            * Thuban/Model/table.py (Table.field_range): New. Retrive the
7278            maximum and minimum values over the entire table for a given
7279            field.
7280            (Table.GetUniqueValues): New. Retrieve all the unique values
7281            in the table for a given field.
7282    
7283            * Thuban/UI/classgen.py: Renamed GenRangePanel to GenUniformPanel.
7284            (GenUniquePanel): New. Controls to allow the user to select
7285            which unique field values they would like in the classification.
7286            (CustomRampPanel): Code that was in ClassGenDialog that allows
7287            the user to select the properties for a custom ramp.
7288            (ClassGenerator.GenUniformDistribution): Was called GenerateRanges.
7289    
7290            * Thuban/UI/classifier.py: Removed a lot of debugging code.
7291            (Classifier._SetClassification): Callback method so that the
7292            class generator can set the classification in the grid.
7293            (ClassGroupPropertiesCtrl): New. Encapsulates the drawing and
7294            editing of a group properties class into a wxWindows control.
7295    
7296            * Thuban/UI/dock.py: It was decided that if the user closes
7297            a dockable window the window should simply hide itself. That
7298            way if the user wants to show the dock again it appears in the
7299            same place as it was when it was closed.
7300            (DockableWindow.Destroy): Call renamed method OnDockDestroy().
7301            (DockableWindow._OnButtonClose): Hide the window instead of
7302            destroying it.
7303            (DockableWindow._OnClose): Hide the window instead of
7304            destroying it.
7305    
7306            * Thuban/UI/legend.py (LegendTree): Use a private method to
7307            consistently set the font and style of the text. Fixes RTbug #1786.
7308    
7309            * Thuban/UI/mainwindow.py: Import just the Classifier class.
7310    
7311    2003-04-07  Bernhard Herzog  <[email protected]>
7312    
7313            * Thuban/UI/mainwindow.py (main_menu): Move the toggle_legend item
7314            to the map module
7315    
7316    2003-04-07  Bernhard Herzog  <[email protected]>
7317    
7318            * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree): Removed in
7319            favor of ToggleSessionTree
7320            (MainWindow.ToggleSessionTree): New method to toggle visibility of
7321            the session tree.
7322            (MainWindow.SessionTreeShown): New method to return whether the
7323            session tree is currently shown.
7324            (MainWindow.ToggleLegend): New method to toggle visibility of the
7325            legend
7326            (MainWindow.ShowLegend): Implement in terms of ToggleLegend and
7327            LegendShown
7328            (MainWindow.LegendShown): New method to return whether the legend
7329            is currently shown.
7330            (_method_command): Add checked parameter so we can define check
7331            menu items
7332            (_has_tree_window_shown, _has_legend_shown): Use the appropriate
7333            mainwindow methods.
7334            (show_session_tree, show_legend commands): Removed.
7335            (toggle_session_tree, toggle_legend commands): New commands to
7336            toggle the visibility of the dialogs
7337    
7338    2003-04-07  Jonathan Coles   <[email protected]>
7339    
7340            * Thuban/UI/classgen.py: Fix Windows problem.
7341    
7342            * Thuban/UI/dock.py: Fix Windows problem.
7343    
7344            * Thuban/UI/mainwindow.py: Use False instead of false.
7345            (MainWindow.ShowLegend): Remove unnecessary switch parameter.
7346    
7347    2003-04-07  Jonathan Coles   <[email protected]>
7348    
7349            Since we now say that the order of the groups in a classification
7350            matters, it makes sense to be able to manipulate that order. Most
7351            of the changes to Thuban/Model/classification.py are to that end.
7352    
7353            * Thuban/Model/classification.py (Classification.AppendGroup,
7354            Classification.InsertGroup, Classification.ReplaceGroup,
7355            Classification.RemoveGroup, Classification.GetGroup): Do as the
7356            names imply.
7357            (Classification.FindGroup): This was called GetGroup, but GetGroup
7358            takes an index, while FindGroup takes a value.
7359            (Classification.__deepcopy__): Copy all the groups, BUT NOT THE LAYER
7360            REFERENCE. Currently there is a cyclic reference between the layer
7361            and its classification. If the classification doesn't need to know
7362            its owning layer we can change this, since it may make sense to be
7363            able to use the same classification with different layers.
7364    
7365            * Thuban/Model/load.py: Use Classification.AppendGroup(), not AddGroup()
7366    
7367            * Thuban/UI/classgen.py: Use Classification.AppendGroup(),
7368            not AddGroup()
7369    
7370            * Thuban/UI/classifier.py: Now that we can depend on the order in
7371            a Classification and have methods to manipulate that order we don't
7372            need to use our own data structures in the grid. We can simply make
7373            the grid/table access the information they need from a copy of
7374            the classification object.
7375            (Classifier._OnCloseBtn): Event handler for when the user clicks
7376            'Close'. This is needed so if the user applies changes and then
7377            continues to change the table the user has the option of discarding
7378            the most recent changes and keeping what they applied.
7379    
7380            * Thuban/UI/mainwindow.py: Put "Show Legend" and "Show Session Tree"
7381            into the same group.
7382    
7383            * extensions/thuban/wxproj.cpp (check_version): If Thuban is compiled
7384            with a really old version of proj, PJ_VERSION won't even be defined.
7385            If it isn't defined then just compile so that the function always
7386            returns Py_False.
7387    
7388            * test/test_classification.py: Fix tests to use the renamed methods.
7389            Still need to write tests for the new methods.
7390    
7391    2003-04-04  Jonathan Coles   <[email protected]>
7392    
7393            * Thuban/UI/classifier.py (Classifier.__SelectField): Move the
7394            call to SetSelection out of the method and before the call
7395            to __SelectField in __init__. This prevents a recursion of events
7396            when _OnFieldSelect is triggered by the user.
7397    
7398    2003-04-04  Jonathan Coles   <[email protected]>
7399    
7400            * Thuban/Model/classification.py: Rename Color.None to
7401            Color.Transparent.
7402            (ClassGroupProperties.SetLineColori, ClassGroupProperties.SetFill):
7403            Don't bother copying the color, since Colors are immutable.
7404    
7405            * Thuban/Model/color.py, Thuban/Model/layer.py, Thuban/Model/load.py,
7406            Thuban/UI/classifier.py, Thuban/UI/mainwindow.py,
7407            Thuban/UI/renderer.py, Thuban/UI/view.py:
7408            Rename Color.None to Color.Transparent.
7409        
7410            * test/test_classification.py, test/test_load.py: Rename Color.None
7411            to Color.Transparent.
7412    
7413    2003-04-04  Jonathan Coles   <[email protected]>
7414    
7415            * Thuban/Model/classification.py: Fix assert calls.
7416            (ClassGroupProperties.SetLineColor, ClassGroupProperties.SetFill):
7417            Copy the color parameter rather than hold onto a reference.
7418    
7419            * Thuban/Model/color.py (Color.__copy__, Color.__deepcopy): Copy
7420            the color object.
7421            (NoColor.__copy__, NoColor.__deepcopy): Return 'self' so that we
7422            are sure there exists only one refernce to Color.None in the system.
7423            This allows us to use 'is' rather than the comparision functions.
7424            
7425            * Thuban/Model/save.py: Fix assert calls.
7426            
7427            * Thuban/UI/classifier.py: Fix assert calls.
7428            (ClassGrid._OnCellDClick): Call up to the classifier to open the
7429            dialog to edit the groups properties.
7430            (ClassGrid._OnCellResize): Make sure that the scollbars are drawn
7431            correctly if a cell is resized.
7432            (ClassTable.SetClassification): New. Changes the classification
7433            that is in the table.
7434            (ClassTable.__SetRow): Allow groups to be prepended.
7435            (Classifier): New code for opening the EditProperties and
7436            GenerateRanges dialogs.
7437            (SelectPropertiesDialog.__GetColor): Only set the color in the
7438            color dialog if the current color is not None.
7439            
7440            * Thuban/UI/dock.py: Fix assert calls.
7441            
7442            * Thuban/UI/legend.py: Fix assert calls.
7443            
7444            * Thuban/UI/renderer.py: Fix assert calls.
7445            
7446            * Thuban/UI/classgen.py (ClassGenDialog): Dialog for generating
7447            classifications.
7448            (GenRangePanel): Panel specific to range generation.
7449            (GenSingletonPanel): Panel specific to singleton generation.
7450            (ClassGenerator): Class responsible for actually generating
7451            the classification from the data gathered in the dialog box.
7452            (PropertyRamp): Generates properties whose values range from
7453            a starting property to an ending property.
7454    
7455    2003-04-03  Bernhard Herzog  <[email protected]>
7456    
7457            * test/support.py (print_garbage_information): New function that
7458            prints information about still connected messages and memory
7459            leaks.
7460            (run_suite): Removed.
7461            (run_tests): New function for use as a replacement of
7462            unittest.main in the test_* files. This one calls
7463            print_garbage_information at the end.
7464    
7465            * test/runtests.py (main): Use support.print_garbage_information
7466    
7467            * test/test_layer.py: Use support.run_tests instead of
7468            unittest.main so we get memory leak information
7469            (TestLayer.test_arc_layer, TestLayer.test_polygon_layer)
7470            (TestLayer.test_point_layer, TestLayer.test_empty_layer)
7471            (TestLayerLegend.test_visibility): Call the layer's Destroy method
7472            to fix a memory leak.
7473    
7474            * test/test_classification.py: Use support.run_tests instead of
7475            unittest.main so we get memory leak information
7476            (TestClassification.test_classification): Call the layer's Destroy
7477            method to fix a memory leak.
7478    
7479    2003-04-02  Bernhard Herzog  <[email protected]>
7480    
7481            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
7482            Handle the reference counts of the return value and errors in
7483            PyArg_ParseTuple correctly.
7484    
7485            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
7486            sure the filename is absolute to avoid problems when saving the
7487            session again
7488    
7489            * Thuban/Model/table.py: Remove unnecessary import. Fix a typo.
7490    
7491    2003-04-01  Jonathan Coles   <[email protected]>
7492    
7493            *  Thuban/UI/renderer.py (MapRenderer.draw_point_shape): Check
7494            that there actually are points in the returned list of points
7495            before trying to index into the list. The list may be empty if
7496            the shape is a Null Shape.
7497    
7498    2003-04-01  Bernhard Herzog  <[email protected]>
7499    
7500            * test/test_map.py: Don't use from <module> import *
7501    
7502    2003-04-01  Jonathan Coles   <[email protected]>
7503    
7504            * Thuban/Model/session.py: Use LAYER_CHANGED instead of
7505            LAYER_LEGEND_CHANGED
7506    
7507            * Thuban/UI/dock.py (DockableWindow._OnButtonClose): Call
7508            self.Destroy() to close the window after yesterday's changes.
7509    
7510            * test/test_map.py, test/test_session.py: Fix messages that
7511            are sent from maps and layers.
7512    
7513    2003-03-31  Jonathan Coles   <[email protected]>
7514    
7515            * Thuban/UI/classifier.py: Commented out some debugging statements.
7516            (ClassDataPreviewer.Draw): Draw rectangles for polygon layers per
7517            RTbug #1769.
7518    
7519            * Thuban/UI/dock.py (DockableWindow.UnDock): Restore size and
7520            position (although position doesn't work yet under GTK).
7521            (DockableWindow.Destroy): New. Called when the window must be
7522            closed. Namely needed when the DockFrame closes and must close
7523            its children.
7524            (DockFrame): Listen for EVT_CLOSE and destroy all children.
7525    
7526            * Thuban/UI/legend.py (LegendPanel.Destroy): New. Cleans up
7527            when then window is told to close.
7528            (LegendTree._OnMsgLayerChanged): Fixes a seg fault bug. See
7529            comment in source for more info.
7530    
7531            * Thuban/UI/main.py: Show the legend by default when Thuban starts.
7532    
7533            * Thuban/UI/mainwindow.py: Renamed OnClose to _OnClose for
7534            symmetry with other such methods.
7535            (MainWindow.ShowLegend): Show the legend docked by default.
7536    
7537    2003-03-28  Jonathan Coles   <[email protected]>
7538    
7539            * Thuban/UI/classifier.py: Support for highlighting a specific
7540            group within the grid when the classification dialog is opened.
7541            Also contains a lot of debugging printouts which will later
7542            be removed.
7543    
7544            * Thuban/UI/dock.py: Complete rework on the dock code so that
7545            that it is fairly removed from the rest of the Thuban application.
7546            It is easy to add new docks which the rest of the program having
7547            to be aware of them.
7548    
7549            * Thuban/UI/legend.py: Modifications to support selecting a
7550            specific group in the classification dialog. Changed how layers
7551            are drawn when the layer is visible/invisible.
7552    
7553            * Thuban/UI/mainwindow.py: Removed legend specific code and
7554            replaced it with calls to the new dock code.
7555    
7556            * Thuban/UI/renderer.py (MapRenderer.__init__): Added assert
7557            to check if scale > 0. Trying to track down a divide by zero.
7558    
7559    2003-03-26  Jonathan Coles   <[email protected]>
7560    
7561            * Thuban/UI/legend.py: Removed unnecessary LegendDialog class.
7562            (LegendPanel): Removed _OnDock()/_OnUnDock() methods which are
7563            now part of DockableWindow.
7564            (LegendPanel.DoOnSelChanged): Select the current layer in the
7565            map.
7566            (LegendTree._OnSelChanged): Call LegendPanel.DoOnSelChanged()
7567            with the selected layer and/or group.
7568    
7569    2003-03-26  Jonathan Coles   <[email protected]>
7570    
7571            This putback contains the code for dockable windows. There is
7572            no support in wxWindows as of this date for windows that can
7573            attach themselves to other windows.
7574    
7575            The current model contains a DockableWindow which has a parent
7576            window for when it is detached and a dock window that it puts
7577            its contents in when it is docked. The contents of a DockableWindow
7578            must be a DockPanel. DockPanel itself derives from wxPanel.
7579    
7580            * Thuban/Model/layer.py (Layer.ClassChanged): Send a LAYER_CHANGED
7581            message, not a LAYER_LEGEND_CHANGED message.
7582    
7583            * Thuban/Model/map.py (Map): Forward LAYER_CHANGED messages.
7584    
7585            * Thuban/UI/classifier.py (Classifier.__init__): Use wxADJUST_MINSIZE
7586            as one of the style properties for the fieldTypeText item to
7587            be sure that its size is correct when the text changes.
7588    
7589            * Thuban/UI/dock.py: New. Classes for the DockPanel and
7590            DockableWindow.
7591    
7592            * Thuban/UI/legend.py: Added some more buttons and made the
7593            LegendPanel a DockPanel.
7594    
7595            * Thuban/UI/mainwindow.py: Added sash windows to the main window
7596            and supporting functions for manipulating the sashes.
7597            (MainWindow.ShowLegend): Create a DockableWindow with the
7598            LegendPanel as the contents.
7599    
7600            * Thuban/UI/messages.py: Added DOCKABLE_* messages
7601    
7602            * Thuban/UI/view.py (MapCanves.SetMap): Listen for LAYER_CHANGED,
7603            not LAYER_LEGEND_CHANGED, messages.
7604    
7605    2003-03-25  Jonathan Coles   <[email protected]>
7606    
7607            * setup.py: Added custom script bdist_rpm_build_script so that
7608            when the rpm is built the path to wx-config is correct.
7609    
7610            * setup.cfg: Added line saying to use the custom build script
7611    
7612    2003-03-20  Jonathan Coles   <[email protected]>
7613    
7614            Initial implementation of the Legend.
7615    
7616            * Thuban/UI/legend.py: New. Creates a window that shows the map's
7617            Legend information and allows the user to add/modify classifications
7618            and how the layers are drawn on the map.
7619    
7620            * setup.py: New command 'build_docs' which currently uses
7621            happydoc to generate html documentation for Thuban.
7622    
7623            * Thuban/Model/classification.py (ClassGroup.GetDisplayText): New.
7624            Returns a string which is appropriately describes the group.
7625    
7626            * Thuban/Model/layer.py (Layer.SetClassification): Generate a
7627            LAYER_CHANGED event instead of a LAYER_LEGEND_CHANGED event.
7628    
7629            * Thuban/Model/map.py (Map): Rename messages and use new, more
7630            specific, messages.
7631    
7632            * Thuban/Model/messages.py: New message to indicate that a layer's
7633            data has changed (LAYER_CHANGED). New map messages to indicate
7634            when layers have been added/removed/changed or if the stacking order
7635            of the layers has changed.
7636    
7637            * Thuban/Model/session.py: Rename and use new messages.
7638    
7639            * Thuban/UI/classifier.py: Remember if any changes have actually
7640            been applied so that if the dialog is cancelled without an application
7641            of changes we don't have to set a new classification.
7642            (ClassDataPreviewer): Pulled out the window specific code and put it
7643            ClassDataPreviewWindow. ClassDataPreviewer can then be used to draw
7644            symbols on any DC.
7645            
7646            * Thuban/UI/mainwindow.py: New code to open the legend.
7647    
7648            * Thuban/UI/view.py: Use new message names.
7649    
7650    2003-03-19  Jonathan Coles   <[email protected]>
7651    
7652            * Thuban/UI/main.py (verify_versions): New. Checks the versions
7653            of Python, wxPython, and some other libraries.
7654    
7655            * extensions/thuban/wxproj.cpp (check_version): Checks the given
7656            version against what wxproj was compiled with.
7657            (check_version_gtk): If wxproj was compiled with gtk then check
7658            the given version against the version of the gtk library
7659            currently being used.
7660    
7661    2003-03-14  Bernhard Herzog  <[email protected]>
7662    
7663            * test/test_command.py: Run the tests when the module is run as a
7664            script
7665    
7666    2003-03-14  Bernhard Herzog  <[email protected]>
7667    
7668            Implement selection of multiple selected shapes in the same layer:
7669    
7670            - Introduce a new class to hold the selection. This basically
7671              replaces the interactor which was nothing more than the
7672              selection anyway. A major difference is of course that the new
7673              selection class supports multiple selected shapes in one layer
7674            
7675            - Move the object that represents the selection from the
7676              application to the canvas. The canvas is a better place than the
7677              application because the selection represents which shapes and
7678              layer of the map displayed by the canvas are selected and
7679              affects how the map is drawn.
7680    
7681            - Make the selection and its messages publicly available through
7682              the mainwindow.
7683    
7684            - The non-modal dialogs do not get a reference to the interactor
7685              anymore as they can simply refer to their parent, the
7686              mainwindow, for the what the interactor had to offer.
7687    
7688            * Thuban/UI/selection.py: New module with a class to represent the
7689            selection.
7690    
7691            * Thuban/UI/messages.py (SELECTED_TABLE, SELECTED_MAP): Remove
7692            these unused messages
7693    
7694            * Thuban/UI/application.py (ThubanApplication.OnInit)
7695            (ThubanApplication.OnExit, ThubanApplication.SetSession): The
7696            interactor is gone now.
7697            (ThubanApplication.CreateMainWindow): There is no interactor
7698            anymore so we pass None as the interactor argument for now for
7699            compatibility.
7700    
7701            * Thuban/UI/view.py (MapCanvas.delegated_messages)
7702            (MapCanvas.Subscribe, MapCanvas.Unsubscribe): In Subscribe and
7703            Unsubscribe, delegate messages according to the delegated_messages
7704            class variable.
7705            (MapCanvas.__getattr__, MapCanvas.delegated_methods): Get some
7706            attributes from instance variables as described with the
7707            delegated_methods class variable.
7708            (MapCanvas.__init__): New instance variable selection holding the
7709            current selection
7710            (MapCanvas.do_redraw): Deal with multiple selected shapes. Simply
7711            pass them on to the renderer
7712            (MapCanvas.SetMap): Clear the selection when a different map is
7713            selected.
7714            (MapCanvas.shape_selected): Simple force a complete redraw. The
7715            selection class now takes care of only issueing SHAPES_SELECTED
7716            messages when the set of selected shapes actually does change.
7717            (MapCanvas.SelectShapeAt): The selection is now managed in
7718            self.selection
7719    
7720            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages)
7721            (MainWindow.Subscribe, MainWindow.Unsubscribe): In Subscribe and
7722            Unsubscribe, delegate messages according to the delegated_messages
7723            class variable.
7724            (MainWindow.delegated_methods, MainWindow.__getattr__): Get some
7725            attributes from instance variables as described with the
7726            delegated_methods class variable.
7727            (MainWindow.__init__): The interactor as ivar is gone. The
7728            parameter is still there for compatibility. The selection messages
7729            now come from the canvas.
7730            (MainWindow.current_layer, MainWindow.has_selected_layer):
7731            Delegate to the the canvas.
7732            (MainWindow.LayerShowTable, MainWindow.Classify)
7733            (MainWindow.identify_view_on_demand): The dialogs don't need the
7734            interactor parameter anymore.
7735    
7736            * Thuban/UI/tableview.py (TableFrame.__init__)
7737            (LayerTableFrame.__init__, LayerTableFrame.OnClose)
7738            (LayerTableFrame.row_selected): The interactor is gone. It's job
7739            from the dialog's point of view is now done by the mainwindow,
7740            i.e. the parent. Subscribe to SHAPES_SELECTED instead
7741            of SELECTED_SHAPE
7742            
7743            * Thuban/UI/dialogs.py (NonModalDialog.__init__): The interactor
7744            is gone. It's job from the dialog's point of view is now done by
7745            the mainwindow, i.e. the parent.
7746            
7747            * Thuban/UI/classifier.py (Classifier.__init__): The interactor is
7748            gone. It's job from the dialog's point of view is now done by the
7749            mainwindow, i.e. the parent.
7750    
7751            * Thuban/UI/tree.py (SessionTreeView.__init__): The interactor is
7752            gone. It's job from the dialog's point of view is now done by the
7753            mainwindow, i.e. the parent.
7754            (SessionTreeCtrl.__init__): New parameter mainwindow which is
7755            stored as self.mainwindow. The mainwindow is need so that the tree
7756            can still subscribe to the selection messages.
7757            (SessionTreeCtrl.__init__, SessionTreeCtrl.unsubscribe_all)
7758            (SessionTreeCtrl.update_tree, SessionTreeCtrl.OnSelChanged): The
7759            selection is now accessible through the mainwindow. Subscribe to
7760            SHAPES_SELECTED instead of SELECTED_SHAPE
7761    
7762            * Thuban/UI/identifyview.py (IdentifyView.__init__): Use the
7763            SHAPES_SELECTED message now.
7764            (IdentifyView.selected_shape): Now subscribed to SHAPES_SELECTED,
7765            so deal with multiple shapes
7766            (IdentifyView.__init__, IdentifyView.OnClose): The interactor is
7767            gone. It's job from the dialog's point of view is now done by the
7768            mainwindow, i.e. the parent.
7769    
7770            * Thuban/UI/controls.py (RecordListCtrl.fill_list): The second
7771            parameter is now a list of shape ids.
7772            (RecordTable.SetTable): The second parameter is now a list of
7773            indices.
7774    
7775            * Thuban/UI/renderer.py (ScreenRenderer.RenderMap): Rename the
7776            selected_shape parameter and ivar to selected_shapes. It's now a
7777            list of shape ids.
7778            (MapRenderer.draw_label_layer): Deal with multiple selected
7779            shapes. Rearrange the code a bit so that the setup and shape type
7780            distinctions are only executed once.
7781    
7782            * test/test_selection.py: Test cases for the selection class
7783    
7784    2003-03-11  Jonathan Coles   <[email protected]>
7785    
7786            * Thuban/Model/load.py: Temporary fix so that the xml reader
7787            doesn't cause Thuban to crash.
7788    
7789            * Thuban/Model/layer.py: Handle the cyclic references between
7790            a layer and its classification better, and be sure to disconnect
7791            the classification from the layer when the layer is destroyed
7792            so that we don't maintain a cyclic reference that may not be
7793            garbage collected.
7794    
7795            * Thuban/Model/classification.py: See comment for layer.py.
7796    
7797    2003-03-12  Jan-Oliver Wagner <[email protected]>
7798    
7799            * HOWTO-Release: New. Information on the steps for releasing
7800            a new version of Thuban.
7801    
7802    2003-03-11  Jonathan Coles   <[email protected]>
7803    
7804            * Thuban/UI/classifier.py: Add normal border to SelectPropertiesDialog.
7805            Use True instead of true.
7806            (Classifier): Should have a single panel in which all the controls lie.
7807    
7808            * Thuban/UI/proj4dialog.py: Add normal border.
7809    
7810            * Thuban/UI/tree.py: Fixed problem with bad item images under Windows.
7811    
7812            * Thuban/UI/mainwindow.py: Use True instead of true.
7813    
7814            * setup.py: Update some definitions to use wxWindows2.4 files
7815    
7816            * Data/iceland_sample_class.thuban: Fixed file so that the
7817            field_type information is present.
7818    
7819    2003-03-10  Jonathan Coles   <[email protected]>
7820    
7821            * Thuban/UI/classifier.py (Classifier.__init__): Make the
7822            field type label grow so that when the text changes the
7823            size is updated correctly. This may be a wxWindows bug.
7824    
7825    2003-03-10  Jonathan Coles   <[email protected]>
7826    
7827            * Thuban/UI/application.py: Changed SESSION_CHANGED to
7828            SESSION_REPLACED.
7829    
7830            * Thuban/UI/classifier.py: Wrap text with _().
7831            (ClassGrid.CreateTable): Set dimensions and size hints here,
7832            instead of in Reset, so we only set the size once.
7833    
7834            * Thuban/UI/dialogs.py: Don't need Shutdown(); just use Close()!
7835    
7836            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
7837            Call Close() instead of Shutdown().
7838    
7839            * Thuban/UI/messages.py: Changed SESSION_CHANGED to SESSION_REPLACED.
7840    
7841            * Thuban/UI/tree.py: Changed SESSION_CHANGED to SESSION_REPLACED.
7842            Go back to using OnClose() instead of Shutdown().
7843    
7844    2003-03-10  Jonathan Coles   <[email protected]>
7845    
7846            * Thuban/UI/classifier.py (Classifier): SelectField() needed
7847            to know the old field index as well as the new one.
7848    
7849    2003-03-10  Jonathan Coles   <[email protected]>
7850    
7851            * Thuban/UI/classifier.py (Classifier): Use __SelectField()
7852            to correctly set the table information and call this from
7853            __init__ and from _OnFieldSelect so that all the information
7854            is up to date when the dialog opens and when a field is changed.
7855    
7856    2003-03-10  Jonathan Coles   <[email protected]>
7857    
7858            * Thuban/Model/classification.py (Classification): Don't use
7859            layer's message function directly, use the ClassChanged() method
7860            when then classification changes. SetField/SetFieldType/SetLayer
7861            must keep the information about field name and field type in
7862            sync when an owning layer is set or removed.
7863    
7864            * Thuban/Model/layer.py: Added ClassChanged() so that the
7865            classification can tell the layer when its data has changed.
7866            (Layer.SetClassification): Accepts None as an arguement to
7867            remove the current classification and correctly handles
7868            adding a new classification.
7869    
7870            * Thuban/Model/load.py: Comment out print statement
7871    
7872            * test/test_classification.py, test/test_save.py: New and
7873            improved tests.
7874    
7875    2003-03-07  Jonathan Coles   <[email protected]>
7876    
7877            * Thuban/Model/classification.py: Implemented __copy__ and
7878            __deepcopy__ for ClassGroup* and ClassGroupProperites so
7879            they can easily be copied by the classifier dialog.
7880            (ClassGroupProperites.__init__): The default line color should
7881            have been Color.Black.
7882    
7883            * Thuban/UI/classifier.py: Setting and Getting table values now
7884            uses a consistent set of functions.
7885            (Classifier): Now non-modal. Has field type label which changes
7886            as the field changes. Keep track of buttons in a list so that
7887            we can enable/disable the buttons when the None field is selected.
7888            (SelectPropertiesDialog): Add buttons to make the colors transparent.
7889    
7890            * Thuban/UI/dialogs.py (NonModalDialog.Shutdown): New method which
7891            does what OnClose did, but can be called by the application to
7892            close a window. Needed when a session changes, and we have to
7893            close the classifier windows.
7894    
7895            * Thuban/UI/mainwindow.py (MainWindow.prepare_new_session):
7896            Shuts down open dialogs. Used when a new session is created
7897            or a session is opened.
7898            (MainWindow.SaveSession): Should only call application.SaveSession()
7899            if we don't call SaveSessionAs first.
7900            (MainWindow.Classify): Allow different classifier dialogs for
7901            different layers.
7902    
7903            * Thuban/UI/tree.py (SessionTreeView): Remove OnClose and let
7904            the parent class handle it. Add Shutdown() to unsubscibe from
7905            event notification and call the parent Shutdown(). This was
7906            necessary so the application can close the tree window.
7907    
7908    2003-03-06  Jonathan Coles   <[email protected]>
7909    
7910            * Thuban/Model/classification.py: Minor documentation changes,
7911            Addition of __eq__ and __ne__ methods.
7912            (Classification.SetLayer): prevent recursion between this method
7913            and Layer.SetClassification().
7914    
7915            * Thuban/Model/color.py: Addition of __eq__ and __ne__ methods.
7916    
7917            * Thuban/Model/layer.py (SetClassification): prevent recursion
7918            between this method and Classification.SetLayer().
7919    
7920            * test/test_classification.py, test/test_load.py,
7921            test/test_session.py: Fixed and added tests for the classification
7922            classes.
7923    
7924    2003-03-06  Bernhard Herzog  <[email protected]>
7925    
7926            * Thuban/UI/classifier.py (ClassGrid.__init__)
7927            (ClassGrid.CreateTable): Move the SetSelectionMode call to
7928            CreateTable because otherwise it triggers an assertion in
7929            wxPython/wxGTK 2.4.
7930    
7931    2003-03-05  Jonathan Coles   <[email protected]>
7932    
7933            * Thuban/common.py: Move FIELDTYPE constants back to table.py.
7934    
7935            * Thuban/Model/load.py: import FIELDTYPE constants from table.
7936    
7937            * Thuban/UI/classifier.py: import FIELDTYPE constants from table.
7938    
7939            * Thuban/Model/table.py: Put FIELDTYPE constants back.
7940    
7941    2003-03-05  Jonathan Coles   <[email protected]>
7942    
7943            * Thuban/UI/classifier.py: Added class documentation.
7944            Fixed RTbug #1713, #1714. Added Move[Up|Down] buttons.
7945            Store just the groups in the table and generate the other
7946            column information when it is requested. Add "None" field
7947            to pull-down to select no classification.
7948    
7949            * Thuban/common.py: Moved FIELDTYPE constants from table.py
7950            (Str2Num): Only catch ValueError exceptions.
7951    
7952            * Thuban/Model/classification.py: Class documentation. Renaming
7953            of methods with Stroke to Line. Groups are stored in a single
7954            list with the default as the first element. Groups are searched
7955            in the order they appear in the list.
7956    
7957            * Thuban/Model/color.py: Documentation.
7958    
7959            * Thuban/Model/layer.py (Layer): Add GetFieldType to retreive
7960            the kind of data represented by a field.
7961    
7962            * Thuban/Model/load.py (ProcessSession): Use proper string
7963            conversion function; fixes RTbug #1713.
7964    
7965            * Thuban/Model/save.py (Saver): Store field type information.
7966    
7967            * Thuban/Model/table.py: Put FIELDTYPE constants in common.py.
7968            (Table): Add field_info_by_name() to retrieve field information
7969            by specifying the field name, not the number.
7970    
7971            * Thuban/UI/mainwindow.py: Function name changes.
7972    
7973            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Only
7974            get the layer classification once. Don't try to classify
7975            values when the field is None: just use the default properties.
7976    
7977            * Thuban/UI/view.py: Function name changes.
7978    
7979            * Doc/thuban.dtd: Add field_type attribute to a classification.
7980    
7981    2003-03-04  Bernhard Herzog  <[email protected]>
7982    
7983            * Doc/thuban.dtd: Use correct syntax for optional attributes. Make
7984            the fill and stroke layer attributes optional with suitable
7985            default values. Add the stroke_width layer attribute. Use correct
7986            syntax for empty elements. Make the attribute list for labels
7987            refer to the label element.
7988    
7989    2003-03-04  Bernhard Herzog  <[email protected]>
7990    
7991            * setup.py (thuban_build_py.build): Add a comment about distutils in
7992            Python 2.3 containing some of the functionality we implement in
7993            setup.py ourselves.
7994    
7995            * Thuban/UI/classifier.py (ClassGrid.__init__): Set the table
7996            before the selection mode. Doing it the other way round triggers
7997            an assertion in wxWindows.
7998    
7999            * Thuban/Model/save.py (escape): Fix typo in doc-string
8000    
8001            * Thuban/Model/classification.py: Remove unnecessary wxPython
8002            import
8003    
8004    2003-03-04  Jonathan Coles   <[email protected]>
8005    
8006            * Thuban/Model/classification.py (ClassGroupRange.GetProperties):
8007            Parameter 'value' should default to None.
8008    
8009            * Thuban/UI/mainwindow.py: Use Layer.GetClassification() since
8010            the class attribute __classification is now private.
8011    
8012            * Thuban/UI/classifier.py (ClassGrid): Moved OnCellDClick() from
8013            Classifier to ClassGrid. Added support for removing selected rows,
8014            which including code for keeping track of when cells are selected,
8015            and deselected.
8016            (ClassTable): Support for added/removing rows. Fixed a problem
8017            with __ParseInput whereby it would not allow strings (only numbers)
8018            to be entered.
8019            (Classifier): Added button and supporting code for removing
8020            selected rows.
8021    
8022    2003-02-27  Jonathan Coles   <[email protected]>
8023    
8024            * Thuban/common.py: Moved color conversion functions into
8025            Thuban/UI/common.py.
8026            (Str2Num): Now converts the float (not the string) to a long/int
8027            so that an exception isn't thrown.
8028    
8029            * Thuban/UI/common.py: Common functions used in several UI modules
8030    
8031            * Thuban/Model/classification.py: Changed the class hierarchy
8032            so that a Classification consists of Groups which return
8033            Properties when a value matches a Group.
8034    
8035            * Thuban/Model/layer.py: Fixed name resolution problem.
8036    
8037            * Thuban/Model/load.py: Use new Classification and Group functions.
8038    
8039            * Thuban/Model/save.py (Saver.write_attribs): Fixes a test case
8040            failure.
8041            (Saver.write_classification): Use new Classification and Group
8042            functions.
8043    
8044            * Thuban/UI/classifier.py: Changes to use new Classification and Group
8045            functions. Fix to create a tuple with a single value instead of
8046            simply returning the value.
8047    
8048            * Thuban/UI/renderer.py: Use new Classification and Group functions.
8049            Use common.py functions.
8050    
8051            * Thuban/UI/tree.py: Use common.py functions.
8052            
8053            * test/test_classification.py: Use new Classification and Group
8054            classes.
8055    
8056    2003-02-24  Jonathan Coles   <[email protected]>
8057    
8058            * Thuban/common.py (Color2wxColour, wxColour2Color): Conversion
8059            functions from Thuban color objects to wxWindow colour objects.
8060    
8061            * Thuban/Model/classification.py (Classification): Renamed
8062            GetProperties() to GetClassData(). Used the new iterator
8063            in TreeInfo().
8064            (ClassIterator): Iterator implementation to iterate over the
8065            ClassData objects in a classification object.
8066    
8067            * Thuban/Model/save.py (Saver.write_classificaton): Uses
8068            the new iterator to save the classification information.
8069    
8070            * Thuban/UI/classifier.py (SelectPropertiesDialog): Support
8071            for changing the stroke and fill colors and previewing the
8072            changes.
8073    
8074            * Thuban/UI/mainwindow.py (MainWindow.OpenSession,
8075            MainWindow.SaveSessionAs): Text string changes so the dialogs
8076            have more meaningful titles.
8077    
8078            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Change
8079            Classification method name from GetProperties to GetClassData.
8080    
8081            * Thuban/UI/view.py (MapCanvas.find_shape_at): Use method calls
8082            instead of accessing now non-existent class variables.
8083    
8084    2003-02-24  Bernhard Herzog  <[email protected]>
8085    
8086            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Remove
8087            unneeded Shape() call. Rendering is substantially faster without
8088            it and it avoids some problems with broken shape files.
8089    
8090    2003-02-20  Frank Koormann   <[email protected]>
8091    
8092            Force minimal size of identify and label dialogs. The autosizing
8093            looked too ugly.
8094    
8095            * Thuban/UI/controls.py (RecordListCtrl): Set minimal width for columns.
8096            * Thuban/UI/labeldialog.py (LabelDialog.dialog_layout):
8097            Set size of listctrl.
8098            * Thuban/UI/identifyview.py (IdentifyView.__init__):
8099            Set size of dialog.
8100    
8101    2003-02-19  Jonathan Coles   <[email protected]>
8102    
8103            * test/test_classification.py, test/test_layer.py,
8104            test/test_load.py, test/test_map.py, test/test_session.py:
8105            Updated the tests to use the new functions that are in the
8106            respective classes.
8107    
8108            * Thuban/Model/classification.py (Classification):
8109            Uses the new ClassData* classes. Modification messages are
8110            passed up to the parent layer (if it exists).
8111            (ClassData): New class to encapsulate the common data in each
8112            classification property.
8113            (ClassDataDefault): Represents the Default class. data.
8114            (ClassDataPoint): Represents a single class. data point
8115            (ClassDataRange): Represents a class. range
8116            (ClassDataMap): Represents a class. map (unused).
8117    
8118            * Thuban/Model/color.py: Added Color.None to represent something
8119            with no color. Color.Black represents the color black.
8120            (NoColor): Helper class derived from Color to represent something
8121            with no color.
8122    
8123            * Thuban/Model/layer.py (Layer): Removed references to fill, stroke,
8124            stroke_width attributes. Made the 'classification' attribute private.
8125            New methods for setting/getting the classification.
8126    
8127            * Thuban/Model/load.py (ProcessSession): Use new methods on Layer
8128            to get the classifcation and use the new ClassData* classes to
8129            hold the classification data. Use Str2Num to convert numbers
8130            properly.
8131    
8132            * Thuban/Model/save.py (Saver): Use new Color and Classification
8133            methods
8134    
8135            * Thuban/UI/classifier.py (ClassGrid): New class to represent a
8136            custom grid.
8137            (ClassTable): Support for editing Values and Labels and for
8138            changing what type (point or range) of data is stored in each
8139            property based on how the user enters the data.
8140            (Classifier): Support for saving the new classifications and
8141            launching the dialog to edit a property.
8142            (SelectPropertiesDialog): New class for editing the visual
8143            properties of a classification (stroke color, width, and fill color)
8144            (ClassPreviewer): Took the Draw method from ClassRenderer and
8145            made most of it into this new class. Intend to use this class in
8146            the SelectPropertiesDialog for previewing changes.
8147    
8148            * Thuban/UI/renderer.py: Use new Color and Classification methods.
8149    
8150            * Thuban/UI/tree.py: Formatting changes.
8151    
8152            * Doc/thuban.dtd: Add 'label' element
8153    
8154            * Thuban/common.py: New. Contains common routines used throughout
8155            the code.
8156            (Str2Num): Takes a string and converts it to the "best" type of
8157            number.
8158    
8159    2003-02-14  Bernhard Herzog  <[email protected]>
8160    
8161            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Make sure that the
8162            dragging flag is always set to 0 even when the tool implementation
8163            raises an exception
8164    
8165    2003-02-11  Bernhard Herzog  <[email protected]>
8166    
8167            * Thuban/UI/application.py (ThubanApplication.splash_screen): New
8168            method to create a splash screen.
8169            (ThubanApplication.ShowMainWindow): New. Show the main window.
8170            Needed so the splash screen can display the mainwindow
8171            (ThubanApplication.OnInit): Call the
8172            new splash_screen method to determine whether the application
8173            should display a splash screen. If it displays a splash screen do
8174            not immediately show the main window.
8175    
8176    2003-02-11  Jonathan Coles  <[email protected]>
8177    
8178            * Thuban/Model/classification.py: Added import line to fix
8179            feature conflicts between running on python2.2 and python2.1.
8180    
8181            * Thuban/UI/classifier.py (ClassTable): Didn't need to hang
8182            onto the clinfo parameter, so removed the deepcopy().
8183    
8184    2003-02-10  Jonathan Coles  <[email protected]>
8185    
8186            * Thuban/Model/save.py (Saver.open_element, Saver.close_element):
8187            Added element_open variable to track opening and closing of tags
8188            so that tags that don't span more than one line are closed with
8189            /> instead of </tag_name>. Use the GetDefault*() methods of
8190            the Classification class.
8191    
8192            * Thuban/Model/classification.py (Classificaton): Added set and
8193            get methods for the default data. The class also takes a layer
8194            reference so that modification messages can be sent. Fixed the
8195            methods to use the new ClassData class.
8196            (ClassData): New class to encapsulate the classification data
8197    
8198            * Thuban/Model/layer.py (Layer): Remove the
8199            Set[Fill|Stroke|StrokeWidth]() methods. Code should call the
8200            SetDefault*() methods on the layer's classification object.
8201            (Layer.__init__): Use the new SetDefault*() methods in the
8202            Classification class.
8203    
8204            * Thuban/Model/load.py (ProcessSession): Use the new ClassData
8205            object instead of a dictionary.
8206    
8207            * Thuban/UI/classifier.py (ClassRenderer): New class to
8208            draw the classifications in the dialog box's table.
8209            (Classifier): Modified to use the ClassRenderer class.
8210    
8211            * Thuban/UI/mainwindow.py (MainWindow): Use the SetDefault*()
8212            methods of the Classification class.
8213    
8214            * Thuban/UI/renderer.py (MapRenderer): Use the Get*() methods
8215            of the ClassData class.
8216    
8217            * test/test_classification.py, test/test_layer.py,
8218            test/test_map.py, test/test_session.py: Fix the tests to work
8219            with the above code changes.
8220    
8221    2003-02-03  Jonathan Coles  <[email protected]>
8222    
8223            * Thuban/Model/classification.py (Classification): Added getNull()
8224            to return the NullData reference
8225    
8226            * Thuban/Model/layer.py (Layer.SetFill, Layer.SetStroke,
8227            Layer.SetStrokeWidth): Modified these functions to change the
8228            null data in the classification rather than keep these values
8229            directly in the Layer class. Menu options to change these values
8230            work again.
8231    
8232    2003-01-28  Jonathan Coles  <[email protected]>
8233    
8234            * Thuban/UI/classifier.py (Classifier): Resolved merging conflicts.
8235            Fixed crashing problem on some systems. Dialog box shows
8236            classification data.
8237    
8238            * Thuban/UI/tree.py (SessionTreeCtrl.add_items): Handle drawing
8239            Colors in the tree view.
8240    
8241            * Thuban/Model/layer.py (Layer.TreeInfo): Added a call to build
8242            the tree info for classifications. Commented out unnecessary lines.
8243    
8244            * Thuban/Model/classification.py (Classification.TreeInfo): New
8245            function to add information about the classification into the
8246            tree view.
8247    
8248    2003-01-27  Jan-Oliver Wagner <[email protected]>
8249    
8250            * Thuban/__init__.py (_): New.
8251    
8252            * Thuban/Model/classification.py, Thuban/Model/extension.py,
8253            Thuban/Model/layer.py, Thuban/Model/load.py, Thuban/Model/map.py,
8254            Thuban/Model/session.py, Thuban/UI/application.py,
8255            Thuban/UI/classifier.py, Thuban/UI/context.py, Thuban/UI/controls.py,
8256            Thuban/UI/identifyview.py, Thuban/UI/labeldialog.py,
8257            Thuban/UI/mainwindow.py, Thuban/UI/menu.py, Thuban/UI/proj4dialog.py,
8258            Thuban/UI/renderer.py, Thuban/UI/tree.py, Thuban/Lib/connector.py,
8259            Thuban/Lib/fileutil.py: Replace user string by _() for i18n.
8260    
8261    2003-01-27  Jonathan Coles  <[email protected]>
8262    
8263            * Thuban/Model/layer.py: Classification initialization calls.
8264    
8265            * Thuban/Model/classification.py: Created class to encapsulate
8266            a layer classification. Supports specific data points and
8267            ranges.
8268    
8269            * Thuban/Model/load.py: Added support for loading classification
8270            information.
8271    
8272            * Thuban/Model/save.py: Added support for saving classification
8273            information.
8274    
8275            * Thuban/UI/classifier.py: Initial class for a dialog box for
8276            specifying classification information.
8277    
8278            * Thuban/UI/mainwindows.py: Support for opening the classifier
8279            dialog.
8280    
8281            * Thuban/UI/renderer.py: Support for drawing a layer with the
8282            classification information.
8283    
8284            * Data/iceland_sample_class.thuban: iceland_sample with
8285            classification data.
8286    
8287            * test/test_classification: Tests for the Classification class.
8288    
8289    2002-12-09  Bernhard Herzog  <[email protected]>
8290    
8291            * test/test_command.py: New. Tests for the command classes.
8292    
8293            * Thuban/UI/command.py (ToolCommand): New class for tool commands.
8294            (Command.IsTool): New method to distinguish between command
8295            switching tools and other commands.
8296    
8297            * Thuban/UI/view.py (MapCanvas.SelectTool): New method to select
8298            the tool to avoid direct assignments to instance variables
8299            (MapCanvas.ZoomInTool, MapCanvas.ZoomOutTool, MapCanvas.PanTool)
8300            (MapCanvas.IdentifyTool, MapCanvas.LabelTool): Use SelectTool to
8301            change the tool
8302    
8303            * Thuban/UI/mainwindow.py (MainWindow.update_command_ui): If an
8304            active tool's command turns insensitive, disable the tool.
8305            (_tool_command): Use the new ToolCommand class
8306    
8307            * Examples/simple_extensions/simple_tool.py (simple_tool): Use the
8308            SelectTool method to change the tool
8309            (iconfile): Use the ToolCommand class
8310    
8311    2002-12-03  Bernhard Herzog  <[email protected]>
8312    
8313            * Thuban/UI/tree.py (SessionTreeCtrl.normalize_selection): Handle
8314            the case of selected items that are not children of Layers or Maps
8315            properly. Previously this bug would trigger an assertion in
8316            wxWindows.
8317    
8318    2002-11-06  Frank Koormann  <[email protected]>
8319    
8320            * Thuban/UI/mainwindow.py: Altered the order of tools in the
8321            toolbar: First now are all navigation tools (Zoom In/Out, Pan,
8322            Full Extent).
8323    
8324    2002-10-23  Bernhard Herzog  <[email protected]>
8325    
8326            * setup.py (setup call): version now 0.1.3
8327    
8328            * MANIFEST.in: Add the files in test/
8329    
8330            * test/README: Add note about tests requiring the iceland data
8331    
8332            * Thuban/UI/mainwindow.py (MainWindow.About): Add 2002 to
8333            copyright notice.
8334    
8335    2002-10-18  Bernhard Herzog  <[email protected]>
8336    
8337            * test/test_map.py
8338            (TestMapWithContents.test_projected_bounding_box): Use an explicit
8339            epsilon.
8340    
8341            * test/support.py (FloatComparisonMixin.assertFloatEqual)
8342            (FloatComparisonMixin.assertFloatSeqEqual): give a more useful
8343            message if the assertion fails and don't return the return value
8344            of self.assert_. In assertFloatSeqEqual the return meant that not
8345            all items of the sequence were compared.
8346    
8347    2002-09-20  Bernhard Herzog  <[email protected]>
8348    
8349            * test/test_fileutil.py: New. Test cases for Thuban.Lib.fileutil
8350    
8351            * Thuban/Lib/fileutil.py: Fixup some whitespace and typos
8352    
8353            * test/test_map.py (TestMapWithContents.test_tree_info): Create
8354            the string with the bounding box on the fly because of platform
8355            differences in the way %g is handled.
8356    
8357            * test/test_layer.py (TestLayer.test_empty_layer): Create an empty
8358            DBFfile too because Thuban layers can't yet cope missing DBF
8359            files.
8360    
8361    2002-09-20  Bernhard Herzog  <[email protected]>
8362    
8363            * test/test_menu.py: Use initthuban instead of
8364            add_thuban_dir_to_path to initialize Thuban.
8365    
8366            * test/support.py (FloatComparisonMixin.assertFloatEqual): New.
8367            Mixin class for float comparisons
8368            (SubscriberMixin): New. Mixin class to test messages sent through
8369            the Connector class
8370    
8371            * test/README: Fix a typo and add the -v flag to the command for
8372            individual tests
8373    
8374            * test/test_session.py: New. Test cases for Thuban.Model.session
8375    
8376            * test/test_proj.py: New. Test cases for Thuban.Model.proj
8377    
8378            * test/test_map.py: New. Test cases for Thuban.Model.map
8379    
8380            * test/test_layer.py: New. Test cases for Thuban.Model.layer
8381    
8382            * test/test_label.py: New. Test cases for Thuban.Model.label
8383    
8384            * test/test_connector.py: New. Test cases for Thuban.Lib.connector
8385    
8386            * test/test_color.py: New. Test cases for Thuban.Model.color
8387    
8388            * test/test_base.py: New. Test cases for Thuban.Model.base
8389    
8390    2002-09-13  Bernhard Herzog  <[email protected]>
8391    
8392            * Thuban/Model/session.py (Session.forwarded_channels): Forward
8393            the CHANGED channel too.
8394    
8395            * Thuban/Model/map.py (Map.forwarded_channels): Forward the
8396            CHANGED channel too.
8397            (Map.__init__): Call the Modifiable constructor as well.
8398    
8399            * Thuban/Model/base.py (Modifiable.UnsetModified): Issue a CHANGED
8400            event if the modified flag changes.
8401            (Modifiable.changed): Tweak the doc-string.
8402    
8403            * Thuban/UI/mainwindow.py (MainWindow.view_position_changed)
8404            (MainWindow.set_position_text): Put the code that puts the text
8405            with the mouse position into the status bar into the new method
8406            set_position_text so that it can overwritten in derived classes.
8407    
8408    2002-09-12  Bernhard Herzog  <[email protected]>
8409    
8410            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Center the
8411            message box on the main window.
8412    
8413    2002-09-11  Bernhard Herzog  <[email protected]>
8414    
8415            * Thuban/UI/mainwindow.py: Underline the 'x' in "Exit" instead of
8416            the 'E' because it's less likely to interfere with other menu
8417            entries.
8418            (MainWindow.build_menu): remove an incorrect comment.
8419    
8420    2002-09-10  Bernhard Herzog  <[email protected]>
8421    
8422            * Thuban/UI/mainwindow.py (MainWindow.Map): New.
8423            (_tool_command): Add sensitive parameter
8424            (_has_visible_map): Sensitivity callback to tools and other
8425            commands that require a visible map. Use it in map_zoom_in_tool,
8426            map_zoom_out_tool, map_pan_tool, map_identify_tool, map_label_tool
8427            and map_full_extent
8428    
8429    2002-09-06  Bernhard Herzog  <[email protected]>
8430    
8431            * Thuban/UI/mainwindow.py (MainWindow.OnClose): Unsubscribe
8432            VIEW_POSITION
8433    
8434    2002-09-04  Frank Koormann  <[email protected]>
8435    
8436            * Resources/Bitmaps/fullextent.xpm: Updated Icon (removed "potatoe")
8437    
8438    2002-09-02  Bernhard Herzog  <[email protected]>
8439    
8440            * Thuban/UI/view.py: Get rid of the idle redraw. This is done by
8441            wxWindows already and our implementation doesn't work correctly
8442            with wxGTK 2.3:
8443            (MapCanvas.__init__): Remove the instance variable
8444            (MapCanvas.OnPaint): Always call do_redraw when there's a map to
8445            be drawin
8446            (MapCanvas.OnIdle): Removed.
8447    
8448            * Thuban/UI/view.py (MapCanvas.unprojected_rect_around_point): Add
8449            a parameter to determine the size of the rectangle.
8450            (MapCanvas.find_shape_at): Create the box around the point on a
8451            layer by layer basis and make the size depend on the shape type.
8452            This solves a problem with the selection of point shapes at the
8453            border of the layer's bounding box
8454    
8455    2002-08-30  Bernhard Herzog  <[email protected]>
8456    
8457            * Thuban/UI/mainwindow.py (MainWindow.CanRemoveLayer): New method
8458            for the sensitivity  of remove layer.
8459            (_can_remove_layer): New. Sensitivity callback for remove layer
8460            (Command layer_remove): Use _can_remove_layer
8461    
8462            * Thuban/Model/map.py (Map.CanRemoveLayer): New method to
8463            determine whether a given layer can be deleted.
8464    
8465            * Thuban/UI/view.py (MapCanvas.__init__, MapCanvas.OnPaint)
8466            (MapCanvas.do_redraw): Get rid of the unused update_region
8467            instance variable
8468    
8469            * Thuban/UI/view.py: Add/update some doc-strings.
8470    
8471            * test/: new subdirectory with a bunch of unit tests.
8472    
8473            * test/README, test/test_table.py, test/test_save.py,
8474            test/test_menu.py, test/test_load.py: Initial set of tests and
8475            brief instructions on how to run them
8476    
8477    2002-08-29  Bernhard Herzog  <[email protected]>
8478    
8479            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Handle
8480            arcs with multiple parts.
8481    
8482            * Thuban/UI/view.py (ZoomInTool.MouseUp, ZoomOutTool.MouseUp):
8483            Handle degenrate rectangles.
8484    
8485            * Thuban/Model/table.py: Make writing records work correctly:
8486            (Table.__init__): Keep track of whether the DBF is open for
8487            writing
8488            (Table.write_record): Open the DBF file for writing when necessary
8489    
8490    2002-08-27  Bernhard Herzog  <[email protected]>
8491    
8492            * Thuban/Model/table.py (Table.write_record, Table.__init__): Open
8493            dbf files only for reading by default. Use a new writable dbf
8494            object for writing.
8495    
8496    2002-08-26  Bernhard Herzog  <[email protected]>
8497    
8498            * Thuban/UI/mainwindow.py: Refactor the context creation:
8499            (MainWindow.Context): New method to return a context
8500            (MainWindow.invoke_command, MainWindow.update_command_ui): Use the
8501            new method
8502    
8503            * Thuban/UI/tableview.py (TableGrid, LayerTableGrid): Split the
8504            layer table specific code from TableGrid into LayerTableGrid
8505            (TableFrame, LayerTableFrame): Split the layer table specific code
8506            from TableFrame into LayerTableFrame
8507            (LayerTableGrid.select_shape): Remove a debug print
8508    
8509            * Thuban/UI/mainwindow.py (MainWindow.LayerShowTable): Use the
8510            LayerTableFrame
8511    
8512    2002-08-23  Bernhard Herzog  <[email protected]>
8513    
8514            * Thuban/Model/layer.py (Layer.__init__): Make sure we have an
8515            absolute filename.
8516    
8517    2002-08-22  Bernhard Herzog  <[email protected]>
8518    
8519            * Thuban/Model/table.py (Table.write_record): New method to write
8520            records.
8521            (Table.__init__): Open the DBF file for writing too.
8522    
8523            * Thuban/UI/controls.py (RecordTable.SetValue): Write the value
8524            into the underlying table.
8525    
8526            * extensions/shapelib/shapefil.h (DBFCommit),
8527            extensions/shapelib/dbfopen.c (DBFCommit): New API function to
8528            commit any changes made to the DBF file.
8529    
8530            * Thuban/UI/mainwindow.py (make_check_current_tool)
8531            (_tool_command): Put the code that generates the "checked"
8532            callback into a separate function so that we can reuse it
8533            elsewhere
8534    
8535            * Thuban/Model/save.py (Saver): New class to handle serializing a
8536            session into an XML file. The main reason to introduce a class is
8537            that applications built on Thuban can derive from it so that they
8538            can save additional information in a session file.
8539            (save_session): Delegate almost all the work to the Saver class.
8540            Rename the filename argument to file because it may be a file like
8541            object now.
8542    
8543            * Thuban/Model/load.py: Get rid of the Python 1.5.2 compatibility
8544            code. Remove the little test code which would be executed when the
8545            module is run as a script which didn't work anymore since it can't
8546            import the other Thuban modules.
8547            (ProcessSession, load_session): Refactor the ProcessSession to
8548            have one method for each element start and end tag so that derived
8549            classes can easily override the processing of individual tags.
8550            Also, always parse with namespaces enabled because applications
8551            built on top of Thuban will likely use namespaces if they extend
8552            the session file format.
8553    
8554    2002-08-21  Bernhard Herzog  <[email protected]>
8555    
8556            * setup.py (ThubanInstall.run): Don't repr install_lib_orig
8557            because thubaninit_contents will do it for us.
8558    
8559    2002-08-16  Jan-Oliver Wagner <[email protected]>
8560    
8561            * Thuban/UI/mainwindow.py: menu item 'show session tree' now disable if
8562            tree window already open
8563    
8564    2002-08-15  Bernhard Herzog  <[email protected]>
8565    
8566            * Thuban/Model/layer.py (Layer.Destroy): Call the unboundd method
8567            with self.
8568    
8569            * Thuban/UI/view.py (MapCanvas.OnLeftUp): Only release the mouse
8570            when we have actually captured it.
8571    
8572            * Thuban/Model/layer.py (Layer.Destroy): New. Explicitly close the
8573            shapefile and destroy the table.
8574    
8575            * Thuban/Model/table.py (Table.Destroy): New. Close the DBF file.
8576    
8577    2002-08-14  Bernhard Herzog  <[email protected]>
8578    
8579            * Thuban/UI/controls.py (RecordTable.__init__): Remove the unused
8580            instance variable columns
8581            (RecordTable.GetTypeName): row and col may be negative in some
8582            cases.
8583    
8584            * setup.py (InstallLocal.initialize_options)
8585            (InstallLocal.finalize_options, InstallLocal.user_options): New
8586            option create-init-file to build a thubaninit.py when running
8587            install_local
8588            (InstallLocal.run): Create the thubaninit.py module when requested
8589            (thubaninit_contents): Split the template into several parts and
8590            create a new function thubaninit_contents that creates the
8591            contents of a thubaninit module.
8592            (ThubanInstall.run): Use the new function to create the thubaninit
8593            module.
8594    
8595    2002-07-30  Bernhard Herzog  <[email protected]>
8596    
8597            * Thuban/UI/application.py (ThubanApplication.OnExit): Do some
8598            cleanup.
8599            (ThubanApplication.MainLoop): Extend to automatically call OnExit.
8600    
8601            * Thuban/Model/session.py (Session.Destroy): Don't bypass the
8602            direct base class' Destroy method.
8603    
8604            * Thuban/Model/map.py (Map.ClearLayers): New method to delete all
8605            layers.
8606            (Map.Destroy): Destroy the label_layer as well and call the
8607            inherited Desatroymethod first so that no more messages are
8608            issued.
8609            (Map.RaiseLayer, Map.LowerLayer): Only issue LAYERS_CHANGED
8610            message if the stacking order actually has changed. Add
8611            doc-strings.
8612            (Map.BoundingBox): Correct the doc-string.
8613            (Map.AddLayer, Map.RemoveLayer, Map.Layers, Map.HasLayers)
8614            (Map.ProjectedBoundingBox, Map.SetProjection): Add doc-strings.
8615    
8616            * Thuban/Model/label.py (LabelLayer.ClearLabels): New to delete
8617            all labels.
8618    
8619    2002-07-29  Bernhard Herzog  <[email protected]>
8620    
8621            * Thuban/Model/map.py (Map.subscribe_layer_channels)
8622            (Map.unsubscribe_layer_channels): Put the code that (un)subscribes
8623            to a layer's channels into separate methods.
8624            (Map.RemoveLayer, Map.AddLayer): Call the new methods
8625            (Map.Destroy): Unsubscribe from a layer's channels before
8626            destroying it.
8627    
8628            * Thuban/UI/view.py (MapCanvas.find_shape_at): Change the
8629            selected_layer parameter to searched_layer which is the layer to
8630            search in.
8631            (MapCanvas.SelectShapeAt): New parameter layer to restrict the
8632            search to that layer. Return the selected layer and shape.
8633    
8634            * Examples/simple_extensions/simple_tool.py (simple_tool): Fix a
8635            typo
8636    
8637    2002-07-24  Bernhard Herzog  <[email protected]>
8638    
8639            * Thuban/UI/application.py (ThubanApplication.create_session):
8640            Extend the doc string.
8641            (ThubanApplication.subscribe_session)
8642            (ThubanApplication.unsubscribe_session): New methods to
8643            subscribe/unsubscribe to/from session channels.
8644            (ThubanApplication.SetSession): Call the new methods here.
8645            (ThubanApplication.maps_changed, ThubanApplication.set_map):
8646            Renamed set_map to maps_changed. Its now a subscriber for
8647            MAPS_CHANGED.
8648    
8649            * Thuban/UI/view.py (ZoomOutTool.MouseUp): Use the correct
8650            x-coordinate in case of simple clicks
8651    
8652            * Thuban/Model/base.py (Modifiable.changed): Apply the args tuple,
8653            don't pass it as a parameter
8654    
8655            * Thuban/Model/session.py (Session.RemoveMap): New
8656    
8657            * Thuban/UI/mainwindow.py (MainWindow.__init__): Turn the initial
8658            window size into a parameter.
8659    
8660    2002-07-23  Bernhard Herzog  <[email protected]>
8661    
8662            * Thuban/UI/menu.py (Menu.item_index): Also search for menus not
8663            just commands.
8664    
8665            * Thuban/UI/mainwindow.py (MainWindow.__init__): Change the
8666            parameter list a bit to allow setting the window title and the
8667            initial message in the status bar. Update the callers.
8668    
8669            * Thuban/UI/application.py (ThubanApplication.OnInit)
8670            (ThubanApplication.CreateMainWindow): Put the mainwindow
8671            instantiation into a separate method so that it can be overridden
8672            by a subclass.
8673    
8674    2002-07-19  Bernhard Herzog  <[email protected]>
8675    
8676            * Thuban/Model/session.py: Issue a CHANGED message every time
8677            another changed message is issued to make it easier to get
8678            notified of changes.
8679            (Session): Update the doc string
8680            (Session.forward): Issue changed-events as CHANGED as well.
8681            (Session.changed): Overwrite the inherited version to issue
8682            CHANGED events as well.
8683    
8684            * Thuban/UI/tree.py: We can now simply subscribe to the session's
8685            CHANGED channel to be informed of changes.
8686            (SessionTreeCtrl.session_channels): Not needed any longer.
8687            (SessionTreeCtrl.unsubscribe_all, SessionTreeCtrl.session_changed):
8688            Only have to (un)subscribe CHANGED
8689    
8690            * Thuban/Model/map.py (Map.TreeInfo): Deal better with empty maps.
8691    
8692            * Thuban/UI/main.py, Thuban/UI/__init__.py: Move the work-around
8693            for the wxPython locale bug to __init__.py so that it's
8694            automatically executed by anybody using UI code from Thuban.
8695    
8696    2002-07-18  Bernhard Herzog  <[email protected]>
8697    
8698            * Thuban/UI/main.py (main): app no longer needs to be global
8699    
8700            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add application
8701            as parameter and store it in an instance variable
8702            (MainWindow.invoke_command, MainWindow.update_command_ui)
8703            (MainWindow.save_modified_session, MainWindow.NewSession)
8704            (MainWindow.OpenSession, MainWindow.SaveSession)
8705            (MainWindow.SaveSessionAs, MainWindow.ShowSessionTree): Use self's
8706            application object.
8707    
8708            * Thuban/UI/application.py (ThubanApplication.OnInit): Instantiate
8709            the main window with self.
8710    
8711            * Thuban/UI/context.py: New module with the context class
8712    
8713            * Thuban/UI/command.py (Command): Update doc string.
8714    
8715            * Thuban/UI/mainwindow.py (MainWindow.invoke_command,
8716            MainWindow.update_command_ui): Pass an instance of the context
8717            class to the command's methods
8718            (check_current_tool, call_method): Handle the new context
8719            implementation
8720    
8721            * Examples/simple_extensions/simple_tool.py (simple_tool,
8722            check_simple_tool): Handle the new context implementation
8723    
8724            * Examples/simple_extensions/simple_command.py (simple_command):
8725            Handle the new context implementation. Update the comments about
8726            the context.
8727    
8728            * Thuban/UI/application.py (ThubanApplication.SetSession): Add
8729            doc-string
8730            (ThubanApplication.Session): New method to return the session
8731            object
8732    
8733            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): The
8734            interactor's selected_layer may not be a layer of the current
8735            session when the tree is updated while a new session is being set.
8736    
8737    2002-07-17  Bernhard Herzog  <[email protected]>
8738    
8739            * Thuban/UI/tree.py (color_string): Removed. No longer used.
8740            (SessionTreeCtrl.update_tree, SessionTreeCtrl.add_items): Split
8741            update_tree into update_tree and add_items. The tree now uses a
8742            more generic way to display the contents of the tree.
8743            (SessionTreeCtrl): Add a doc string explaining the TreeInfo method
8744    
8745            * Thuban/Model/layer.py (Layer.TreeInfo),
8746            Thuban/Model/extension.py (Extension.TreeInfo),
8747            Thuban/Model/map.py (Map.TreeInfo),
8748            Thuban/Model/session.py (Session.TreeInfo):
8749            Add TreeInfo methods to implement the new tree view update scheme
8750    
8751    2002-07-16  Bernhard Herzog  <[email protected]>
8752    
8753            * Thuban/UI/application.py: Don't use "import from" for the
8754            MainWindow. It can't always be resolved.
8755            (ThubanApplication.OnInit): change reference to MainWindow
8756            accordingly.
8757    
8758            * Thuban/UI/menu.py (Menu.SetItems): New method to replace a menu
8759            completely
8760    
8761    2002-07-10  Bernhard Herzog  <[email protected]>
8762    
8763            * setup.py (create_init_module): New configurable variable whose
8764            default depends on the platform we're running on.
8765            (ThubanInstall.initialize_options): Initialize
8766            self.create_init_module from the global create_init_module
8767            (ThubanInstall.user_options): indictate that the options
8768            create-init-module and init-module-dir have arguments.
8769    
8770            * setup.py: In the setup call change the version number to include
8771            cvs.
8772    
8773            * MANIFEST.in: Add the files in Examples
8774    
8775    2002-07-09  Bernhard Herzog  <[email protected]>
8776    
8777            * setup.py: In the setup call, use the thuban homepage as the
8778            value of the url parameter.
8779    
8780            * Examples: New subdirectory for examples.
8781    
8782            * Examples/simple_extensions/simple_tool.xpm,
8783            Examples/simple_extensions/simple_tool.py,
8784            Examples/simple_extensions/simple_command.py,
8785            Examples/simple_extensions/README: Simple examples showing how to
8786            add new commands and tools.
8787    
8788            * setup.cfg (bdist_rpm): Add the default value for prefix and tell
8789            bdist_rpm that we also have an install script.
8790            (bdist_inno): Add 2002 to the copyright notice.
8791    
8792            * setup.py: Create a file in python's site-packages directory to
8793            make installation of Thuban as a library easier.
8794            (ThubanInstall.user_options): Add two new options,
8795            create-init-module and init-module-dir
8796            (ThubanInstall.expand_with_pure_python_dirs): New method to expand
8797            filenames for installation in the default directories.
8798            (ThubanInstall.select_scheme, ThubanInstall.convert_paths): Extend
8799            the inherited methods to capture some filenames before they're
8800            transformed too much by distutils.
8801            (ThubanInstall.run): Create the init module if requested.
8802            (ThubanInstall.thuban_init_filename): New method to return the
8803            full name of the init module.
8804            (ThubanInstall.get_outputs): Append the filename of the init
8805            module.
8806    
8807    2002-07-08  Bernhard Herzog  <[email protected]>
8808    
8809            * setup.py (thuban_bdist_rpm): Extend this version of bdist_rpm to
8810            handle the prefix properly which means that the default for the
8811            installation prefix should be /usr for RPMs and /usr/local when
8812            doing a normal source install.
8813            (bdist_rpm_install_script): Script to override the default install
8814            commands in the specfile generated by the bdist_rpm command.
8815            (thuban_bdist_rpm.user_options): Add a prefix option
8816            (thuban_bdist_rpm.initialize_options): Init the prefix option.
8817            Create the script files for the spec files as empty files here
8818            (thuban_bdist_rpm._make_spec_file): Override the inherited method
8819            to fill the script files with content.
8820    
8821            * Thuban/Model/save.py (relative_filename): Wrapper around
8822            Thuban.Lib.fileutil.relative_filename that accepts an empty dir
8823            argument. save_session now automatically uses this version,
8824            solving a problem when saving to a relative filename.
8825    
8826            * setup.py: In the setup call, make sure that the library
8827            directories are under $prefix/lib not directly under $prefix.
8828    
8829    2002-06-20  Jan-Oliver Wagner <[email protected]>
8830    
8831            * Thuban/Model/extension.py: new module to handle extension objects.
8832            * Thuban/Model/messages.py: new messages for extensions.
8833            * Thuban/Model/session.py (Session.Extensions, Session.HasExtensions,
8834            Session.AddExtension): new for handling extensions.
8835            Also some other minor changes to round up extension handling.
8836            * Thuban/UI/tree.py (SessionTreeCrtl:update_tree): Added visualization
8837            of Extension titles and title and names of its objects.
8838    
8839    2002-05-29  Bernhard Herzog  <[email protected]>
8840    
8841            * Thuban/UI/mainwindow.py (MainWindow.bind_command_events): Bind
8842            the events for a command.
8843            (MainWindow.add_toolbar_command, MainWindow.add_menu_command):
8844            Call bind_command_events to bind the events. add_toolbar_command
8845            can now bind events too so that it's possible to have commands
8846            that are only available through the toolbar.
8847            (MainWindow.init_ids): New instance variable events_bound to keep
8848            track of for which commands events have been bound.
8849    
8850    2002-05-28  Bernhard Herzog  <[email protected]>
8851    
8852            * Thuban/UI/menu.py: New module to build and manage menus.
8853    
8854            * Thuban/UI/mainwindow.py: Remove some unused imports.
8855            (MainWindow.__init__, main_menu): move the definition of the main
8856            menu from __init__ to the Menu instance main_menu.
8857            (MainWindow.build_menu_bar, MainWindow.build_menu): New methods to
8858            build the menu bar and sub-menus from a menu description.
8859    
8860            * Thuban/UI/application.py (ThubanApplication.OnInit): Read the
8861            startup file
8862            (ThubanApplication.read_startup_files): New method to run
8863            ~/.thuban/thubanstart.py
8864    
8865            * Thuban/UI/mainwindow.py (MainWindow.__init__, main_toolbar):
8866            Move the toolbar definition to the Menu instance main_toolbar.
8867            (MainWindow.build_toolbar): New method to build the toolbar
8868            similar to the build_menu methods
8869    
8870    2002-05-23  Bernhard Herzog  <[email protected]>
8871    
8872            * Thuban/UI/mainwindow.py (MainWindow.__init__): Fix spelling of
8873            layer_outline_color. Fix it in the definition of the command too.
8874    
8875            * Thuban/UI/command.py (Command): Fix typo in doc string
8876    
8877    2002-05-22  Bernhard Herzog  <[email protected]>
8878    
8879            * Thuban/UI/mainwindow.py (MainWindow.RunMessageBox): Fix a typo
8880            in the docstring
8881    
8882    2002-05-15  Bernhard Herzog  <[email protected]>
8883    
8884            * Thuban/Model/layer.py (Layer.open_shapefile): Set bbox to None
8885            when the shapefile is empty.
8886            (Layer.BoundingBox, Layer.LatLongBoundingBox): Both methods may
8887            now return None for empty shapefiles. Update doc-strings.
8888    
8889            * Thuban/Model/map.py (Map.BoundingBox): Add doc-string. Deal with
8890            the layer's bbox being None.
8891    
8892            * Thuban/UI/tree.py (SessionTreeCtrl.update_tree): Deal with the
8893            layer's bbox being None.
8894    
8895            * Thuban/UI/view.py (MapCanvas.shape_selected): Only redraw when
8896            necessary.
8897            (MapCanvas.__init__): New instance variables, last_selected_layer
8898            and last_selected_shape to determine how the selection has
8899            changed.
8900    
8901            * Thuban/UI/tableview.py (TableGrid.__init__): Do not call
8902            AutoSizeColumns because it will cause a traversal of the entire
8903            table which for large .dbf files will take a very long time.
8904    
8905    2002-05-14  Bernhard Herzog  <[email protected]>
8906    
8907            * Thuban/Model/layer.py (Layer.open_shapefile): Choose a better
8908            maximum depth for the tree than shapelib does by default.
8909    
8910    2002-05-10  Bernhard Herzog  <[email protected]>
8911    
8912            * setup.py (py_modules): The shptree modules doesn't have a
8913            wrapper, so don't include it in the py_modules
8914    
8915    2002-05-08  Bernhard Herzog  <[email protected]>
8916    
8917            * extensions/shapelib/shptree.c (compare_ints): Make arguments
8918            const void * as in the qsort prototype
8919            (SHPTreeFindLikelyShapes): Remove some unused variables.
8920    
8921            * Thuban/UI/view.py (PanTool.MouseMove): Use the bitmap the view
8922            maintains to redraw the window during a drag.
8923            (MapCanvas.unprojected_rect_around_point): New method to determine
8924            a small region around a point for hit-testing.
8925            (MapCanvas.find_shape_at): Only test the shapes in a small region
8926            around the point.
8927    
8928            * setup.py: Increment the version to 0.1.2
8929    
8930            * Thuban/UI/tree.py (SessionTreeCtrl.unsubscribe_all): Remove a
8931            debug print and set session to None after unsubscribing
8932    
8933    2002-05-07  Bernhard Herzog  <[email protected]>
8934    
8935            * Data/iceland_sample.session, Data/iceland_sample.thuban: Rename
8936            the file to have a .thuban extension.
8937    
8938            * Thuban/UI/tree.py (session_channels): New class constant with
8939            all the session channels to subscribe to to update the tree
8940            (SessionTreeCtrl.session_changed): Remember the session so that we
8941            can unsubscribe properly. Use the new class constant to
8942            unsubscribe from the old session and subscribe to the new one.
8943            (SessionTreeCtrl.unsubscribe_all): New method to unsubscribe all
8944            subscriptions of the SessionTreeCtrl.
8945            (SessionTreeView.OnClose): Call the tree's unsubscribe_all method.
8946    
8947            * Thuban/UI/mainwindow.py (MainWindow.__init__): Add the "Show
8948            Session Tree" command to the file menu.
8949    
8950            * Thuban/UI/view.py (MapCanvas.do_redraw): Pass the entire bitmap
8951            as update_region to the renderer.
8952    
8953            * Thuban/UI/renderer.py
8954            (ScreenRenderer.layer_ids, ScreenRenderer.draw_shape_layer): The
8955            update box is now directly a tuple, not a wxRect anymore.
8956    
8957            * Thuban/Model/layer.py (Layer.ShapesInRegion): Remove some debug
8958            prints.
8959    
8960    2002-05-07  Bernhard Herzog  <[email protected]>
8961    
8962            * setup.py: Add the shptree extension module. See
8963            extensions/pyshapelib/ChangeLog for more details.
8964    
8965            * extensions/shapelib/shpopen.c, extensions/shapelib/shapefil.h,
8966            extensions/shapelib/dbfopen.c: Really update to the versions of
8967            shapelib 1.2.9. For some reason it wasn't really done on
8968            2002-04-11.
8969    
8970            * extensions/shapelib/shptree.c: Modified version of shptree.c of
8971            shapelib 1.2.9. The only real difference is the use of qsort
8972            instead of a bubble sort implementation
8973    
8974            * Thuban/Model/layer.py (Layer.__init__): New instance variable
8975            shapetree to hold the shapelib quadtree for the shapefile
8976            (Layer.open_shapefile): Create the quad tree.
8977            (Layer.ShapesInRegion): New method to return the ids of shapes in
8978            a given region using the quad tree.
8979    
8980            * extensions/thuban/wxproj.cpp (project_points): Fix some typos in
8981            comment
8982            (draw_polygon_shape): Accept both arcs and polygons.
8983            (initwxproj): Use the new PYSHAPELIB_IMPORT_API macro to import
8984            the api.
8985    
8986            * Thuban/UI/renderer.py (MapRenderer.layer_ids): New method to
8987            return the shape ids to be rendered in a given layer.
8988            (MapRenderer.draw_shape_layer): Call layer_ids to get the list of
8989            ids. Use draw_polygon_shape to draw arc shapes as well.
8990            (ScreenRenderer.RenderMap): New parameter for the rectangle that
8991            has to be updated
8992            (ScreenRenderer.layer_ids): Make use of the layer's quadtree by
8993            calling it's ShapesInRegion method.
8994    
8995            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
8996            update_region for the update region.
8997            (MapCanvas.OnPaint): Maintain the update region
8998            (MapCanvas.do_redraw): Pass the bounding box of the update_region
8999            to the renderer when drawing the bitmap. Reset the update_region.
9000    
9001    2002-05-03  Bernhard Herzog  <[email protected]>
9002    
9003            * Thuban/UI/mainwindow.py (MainWindow.SaveSessionAs,
9004            MainWindow.OpenSession): Change the file extension of the session
9005            files to .thuban
9006    
9007            * Thuban/Model/session.py (Session.AddMap, forwarded_channels):
9008            Move the map channels to be forwarded by the session into the
9009            class constant with forwarded_channels. Also add
9010            LAYER_PROJECTION_CHANGED and LAYER_VISIBILITY_CHANGED to
9011            forwarded_channels
9012    
9013            * Thuban/Model/base.py (Modifiable.changed): Fix doc-string (a
9014            typo and some rewording).
9015    
9016    2002-05-02  Bernhard Herzog  <[email protected]>
9017    
9018            * Thuban/UI/view.py: Keep the temporary bitmap used during drawing
9019            around to speed up most redraws:
9020            (MapCanvas.__init__): New instance variable bitmap which holds the
9021            bitmap
9022            (MapCanvas.do_redraw): Redraw self.bitmap if necessary. Use
9023            self.bitmap to draw.
9024            (MapCanvas.full_redraw): New method to force a full redraw
9025            including the bitmap
9026            (MapCanvas.SetMap): Subscribe full_redraw instead of redraw to
9027            make sure the bitmap is redrawn.
9028            (MapCanvas.projection_changed, MapCanvas.set_view_transform,
9029            MapCanvas.shape_selected): Call full_redraw instead of readraw to
9030            make sure the bitmap is redrawn.
9031            (MapCanvas.OnSize): New method to handle size events so that the
9032            bitmap can be redrawn.
9033    
9034    2002-04-29  Bernhard Herzog  <[email protected]>
9035    
9036            * Thuban/UI/mainwindow.py (MainWindow.__init__): Subscribe to the
9037            canvas' VIEW_POSITION event
9038            (MainWindow.view_position_changed): Handler for VIEW_POSITION.
9039            Update the text in the status-bar accordingly.
9040    
9041            * Thuban/UI/view.py (MapCanvas): Derive from Publisher as well
9042            (MapCanvas.__del__): Implement because Publisher.__del__ has to be
9043            called.
9044            (MapCanvas.__init__): Bind EVT_LEAVE_WINDOW too. Initialize
9045            current_position
9046            (MapCanvas.set_current_position): New method to set
9047            current_position. Issue a VIEW_POSITION event
9048            (MapCanvas.CurrentPosition): New public method to return the value
9049            of current_position. Should be called when the VIEW_POSITION event
9050            is processed.
9051            (MapCanvas.OnLeftDown, MapCanvas.OnLeftUp, MapCanvas.OnMotion):
9052            Update the position.
9053            (MapCanvas.OnLeaveWindow): Set the position to None.
9054    
9055            * Thuban/UI/messages.py (VIEW_POSITION): New message for the
9056            position in the statusbar
9057    
9058    2002-04-26  Frank Koormann <[email protected]>
9059    
9060            * Thuban/UI/mainwindow.py: AddLayer, Dialog title s/session/data
9061    
9062    2002-04-24  Frank Koormann <[email protected]>
9063    
9064            * Resources/Bitmaps/identify.xpm: shadow added
9065    
9066            * Resources/Bitmaps/fullextent.xpm: new
9067    
9068    2002-04-22  Jan-Oliver Wagner <[email protected]>
9069    
9070            * Thuban/UI/tree.py (update_tree): added test for None on map bounding
9071            box
9072    
9073    2002-04-21  Jan-Oliver Wagner <[email protected]>
9074    
9075            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog): new
9076    
9077            * Thuban/UI/tree.py (update_tree): added added map extent
9078    
9079            * Thuban/UI/mainwindow.py (_method_command): extended by parameter
9080            icon; added map_full_extend as tool
9081    
9082    2002-04-19  Jan-Oliver Wagner <[email protected]>
9083    
9084            * Thuban/UI/mainwindow.py (SaveSession): launch save as dialog for
9085            saving _new_ sessions
9086    
9087            * Thuban/Model/session.py (create_empty_session): new session
9088            don't have a filename (set to None)
9089    
9090            * Thuban/UI/tree.py (update_tree): added filename and modified flag
9091    
9092            * Thuban/Model/load.py (ProcessSession): convert projection
9093            parameters from unicode to regular string
9094    
9095            * Data/iceland_sample.session: Added UTM Zone 26 projection.
9096    
9097    2002-04-11  Bernhard Herzog  <[email protected]>
9098    
9099            * extensions/shapelib/shapefil.h, extensions/shapelib/shpopen.c,
9100            extensions/shapelib/dbfopen.c: Update to the versions of shapelib
9101            1.2.9
9102    
9103            * setup.py (Lib.wxproj extension): Don't link shpopen.c and put
9104            the pyshapelib directoy into the list of include dirs, so that
9105            pyshapelib_api.h can be found.
9106    
9107            * extensions/thuban/wxproj.cpp (pyshapelib_api): New variable that
9108            holds the pyshapelib C-API
9109            (draw_polygon_shape, point_in_polygon_shape, shape_centroid): Use
9110            pyshapelib_api to access the shapelib functions.
9111            (initwxproj): Import the c_api from the shapelib module and
9112            initialize pyshapelib_api.
9113    
9114    2002-04-04  Bernhard Herzog  <[email protected]>
9115    
9116            * setup.py (thuban_bdist_rpm.initialize_options): Use
9117            initialize_options to create the scripts for the rpm.
9118    
9119            * extensions/pyprojection/setup.py (PROJ4_PREFIX): Just use /
9120    
9121    2002-04-03  Bernhard Herzog  <[email protected]>
9122    
9123            * setup.py: Increment version to 0.1.1
9124    
9125            * Thuban/UI/mainwindow.py (MainWindow.__init__): Move the "Add
9126            Layer" and "Remove Layer" commands from the layer menu to the map
9127            menu
9128    
9129    2002-02-15  Bernhard Herzog  <[email protected]>
9130    
9131            * Thuban/Model/layer.py (Layer.Shape): list append only takes one
9132            argument (python <= 1.5.2 erroneously accepted multiuple
9133            arguments)
9134    
9135    2002-02-04  Bernhard Herzog  <[email protected]>
9136    
9137            * Thuban/UI/identifyview.py (IdentifyGridCtrl): New class to use a
9138            RecordGrid in the identifyview.
9139            (IdentifyView.__init__): Use IdentifyGridCtrl instead of
9140            IdentifyListCtrl. The grid allows editing of the values.
9141    
9142            * Thuban/UI/controls.py (RecordTable, RecordGridCtrl): New classes
9143            implementing a grid for a single row of a thuban table.
9144    
9145            * Thuban/UI/view.py (MapCanvas.SelectShapeAt): Search through all
9146            layers by default. Easier to use than the previous default of only
9147            searching through the select layer which meant that if no layer
9148            was selected, you couldn't select a shape.
9149    
9150            * Thuban/UI/tableview.py (TableGrid.__init__): Fix typo
9151    
9152            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Honour the
9153            stroke_width attribute
9154    
9155            * Thuban/Model/save.py (save_session): Write the new stroke_width
9156            attribute
9157    
9158            * Thuban/Model/load.py (ProcessSession.startElement): Read the
9159            stroke_width attribute
9160    
9161            * Thuban/Model/layer.py (Layer.__init__): New parameter and
9162            instance variable stroke_width
9163            (Layer.SetStrokeWidth): Set the stroke_width.
9164    
9165    2002-02-01  Bernhard Herzog  <[email protected]>
9166    
9167            * extensions/thuban/wxproj.cpp (project_points): Fix two
9168            off-by-one errors in the last loop that joins the various parts
9169            together.
9170    
9171    2002-01-14  Bernhard Herzog  <[email protected]>
9172    
9173            * setup.py (data_dist.make_distribution): Fix some typos
9174    
9175    2001-09-18  Bernhard Herzog  <[email protected]>
9176    
9177            * README: Slight tweaking in preparation for the 0.1 release
9178    
9179            * setup.cfg: Add section for sdist to create both tgz and zip
9180            archives
9181    
9182            * setup.py: increase version number to 0.1
9183            (data_dist): New command class for data distribution
9184    
9185    2001-09-14  Bernhard Herzog  <[email protected]>
9186    
9187            * Thuban/UI/identifyview.py (IdentifyListCtrl.selected_shape):
9188            Handle the case of no layer (i.e. layer is None) properly.
9189    
9190            * Thuban/UI/proj4dialog.py (UTMDialog.__init__, Proj4Dialog.__init__):
9191            Set the initial selection of the combo boxes to reflect the
9192            projection we're starting with in a way that works on windows,
9193            too.
9194    
9195            * Thuban/Lib/connector.py (Connector.print_connections): Print the
9196            puiblisher's ids in hex to make it easier to compare them to the
9197            standard repr of python methods
9198    
9199            * Thuban/Model/map.py (Map.Destroy): Unsubscribe the label_layer
9200            messages
9201    
9202  2001-09-13  Bernhard Herzog  <[email protected]>  2001-09-13  Bernhard Herzog  <[email protected]>
9203    
9204            * Thuban/UI/tree.py (SessionTreeCtrl.OnSelChanged): Make sure to
9205            deselect the layer if no layer is selected
9206    
9207          * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to          * Thuban/UI/view.py (MapCanvas.OnPaint): Only delay drawing to
9208          idle time when there actually is something to draw. If there's          idle time when there actually is something to draw. If there's
9209          nothing to draw simply clear the window          nothing to draw simply clear the window
# Line 10  Line 9214 
9214          specify the point to move into the center of the window          specify the point to move into the center of the window
9215          (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't          (ZoomOutTool.MouseUp, ZoomInTool.MouseUp): If the mouse wasn't
9216          dragged, zoon in/out by a factor of 2          dragged, zoon in/out by a factor of 2
9217            (MapCanvas.find_shape_at): Iterate backwards (i.e. with decreasing
9218            index, i.e. reversed drawing order) so that objects appearing to
9219            be in from of others are selected first. This is probably mostly
9220            relevant for point shapes where the symbols used may overlap
9221    
9222          * Thuban/Model/session.py (create_empty_session): Unset the          * Thuban/Model/session.py (create_empty_session): Unset the
9223          modified bit before returning it          modified bit before returning it
# Line 89  Line 9297 
9297          (MainWindow.identify_view_on_demand): Store the interactor in an          (MainWindow.identify_view_on_demand): Store the interactor in an
9298          instvar and use that reference instead of going through main.app          instvar and use that reference instead of going through main.app
9299    
9300          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):          * Thuban/UI/mainwindow.py (MainWindow.ShowSessionTree):
9301          * Thuban/UI/application.py (ThubanApplication.OnInit):          * Thuban/UI/application.py (ThubanApplication.OnInit):
9302          * Thuban/UI/main.py (main): Create the session tree view in main          * Thuban/UI/main.py (main): Create the session tree view in main
9303          with the new mainwindow method ShowSessionTree and not directly          with the new mainwindow method ShowSessionTree and not directly
9304          the application's OnInit method          the application's OnInit method
# Line 106  Line 9314 
9314          layer to the tableview dialog.          layer to the tableview dialog.
9315    
9316          * Thuban/UI/tableview.py: Add some doc-strings          * Thuban/UI/tableview.py: Add some doc-strings
9317          (TableGrid):          (TableGrid):
9318          (TableGrid.OnRangeSelect):          (TableGrid.OnRangeSelect):
9319          (TableGrid.OnSelectCell):          (TableGrid.OnSelectCell):
9320          (TableFrame.__init__):          (TableFrame.__init__):
# Line 173  Line 9381 
9381  2001-09-05  Bernhard Herzog  <[email protected]>  2001-09-05  Bernhard Herzog  <[email protected]>
9382    
9383          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.          * Thuban/UI/view.py (MapCanvas.__init__): New argument, interactor.
9384            
9385          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument          * Thuban/UI/mainwindow.py (MainWindow.__init__): New argument
9386          interactor to pass through to the MapCanvas          interactor to pass through to the MapCanvas
9387            
9388          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new          * Thuban/UI/application.py (ThubanApplication.OnInit): Use the new
9389          argument to the MainWindow constructor to get rid of the ugly hack          argument to the MainWindow constructor to get rid of the ugly hack
9390          that made main.app available early just so that the mapcanvas          that made main.app available early just so that the mapcanvas
# Line 223  Line 9431 
9431          (ThubanInstall.run): Remove the leading install root from the          (ThubanInstall.run): Remove the leading install root from the
9432          script filename if an install root was specified and use the new          script filename if an install root was specified and use the new
9433          link_file method          link_file method
9434            
9435          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to          * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Fit the map to
9436          the window when the first layer is added to the map.          the window when the first layer is added to the map.
9437    
# Line 260  Line 9468 
9468          (InnoIconItem): Helper class for bdist_inno          (InnoIconItem): Helper class for bdist_inno
9469          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added          (thuban_bdist_inno): Thuban specific version of bdist_inno. Added
9470          this together with the appropriate parameters, to the setup call.          this together with the appropriate parameters, to the setup call.
9471            
9472          * setup.cfg (bdist_inno): added new section for the inno setup          * setup.cfg (bdist_inno): added new section for the inno setup
9473          installer          installer
9474    

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26