/[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 1272 by jonathan, Fri Jun 20 16:43:13 2003 UTC revision 1651 by bh, Mon Aug 25 15:05:56 2003 UTC
# Line 1  Line 1 
1    2003-08-25  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
4            LoadCancelled exceptions and handle them by returning immediately.
5    
6    2003-08-25  Bernhard Herzog  <[email protected]>
7    
8            GUI part of loading sessions with postgis connections which may
9            require user interaction to get passwords or updated parameters
10    
11            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
12            bit nucer and be more generic.
13            (DBFrame.OnAdd): Adapt to new DBDialog interface
14    
15            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
16            optional parameter db_connection_callback which is passed to
17            load_session.
18    
19            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
20            Suitable as a db_connection_callback
21            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
22            db_connection_callback of the application's OpenSession method
23    
24    
25    2003-08-25  Bernhard Herzog  <[email protected]>
26    
27            Basic loading of sessions containing postgis connections:
28    
29            * Thuban/Model/load.py (LoadError): Add doc-string
30            (LoadCancelled): New exception class to indicate a cancelled load
31            (SessionLoader.__init__): Add the db_connection_callback parameter
32            which will be used by the loader to get updated parameters and a
33            password for a database connection
34            (SessionLoader.__init__): Add the new XML elements to the
35            dispatchers dictionary
36            (SessionLoader.check_attrs): Two new conversions, ascii to convert
37            to a byte-string object and idref as a generic id reference
38            (SessionLoader.start_dbconnection)
39            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
40            elements
41            (load_session): Add the db_connection_callback to pass through the
42            SessionLoader
43    
44            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
45            New classes to test loading of sessions with postgis database
46            connections.
47    
48    2003-08-25  Bernhard Herzog  <[email protected]>
49    
50            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
51            replace it and the comment with __BuildDate__ by the Source: and
52            Id: cvs keywords as used in the other files.
53    
54    2003-08-25  Bernhard Herzog  <[email protected]>
55    
56            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
57            LoadError when a required attribute is missing. The code used to
58            be commented out for some reason, but probably should have been
59            active.
60    
61            * test/test_load.py (TestLoadError.test): Test the message in the
62            LoadError too to make sure it really is about the missing
63            attribute
64    
65    2003-08-22  Bernhard Herzog  <[email protected]>
66    
67            * test/test_save.py (SaveSessionTest.test_dbf_table)
68            (SaveSessionTest.test_joined_table): Add XML validation tests.
69    
70    2003-08-22  Bernhard Herzog  <[email protected]>
71    
72            Implement saving a session with a postgis connection
73    
74            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
75            elements for database connections and shapestores using db
76            connections
77            (session): Add the dbconnections to the content model
78    
79            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
80            Write the db connections
81            (SessionSaver.write_session): Call write_db_connections to write
82            the connection before the data sources
83            (SessionSaver.write_data_containers): Handle postgis shapestores
84    
85            * test/test_save.py (SaveSessionTest.thubanids)
86            (SaveSessionTest.thubanidrefs): Update for new DTD
87            (SaveSessionTest.test_save_postgis): New. Test saving a session
88            with postgis connections
89    
90            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
91            (PostGISTable.TableName): New accessor methods for the connection
92            and table name
93    
94            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
95            (TestPostGISTable.test_dbname): New methods to test the new
96            PostGISConnection methods
97    
98    2003-08-22  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
101            for exceptions occurring when establishing a Database connection
102            (PostGISConnection.connect): Catch psycopg.OperationalError during
103            connects and raise ConnectionError.
104    
105            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
106            tests for database exceptions
107    
108    2003-08-22  Bernhard Herzog  <[email protected]>
109    
110            Prepare the test suite for tests with required authentication
111    
112            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
113            variables with two predefined users/passwords, one for the admin
114            and one for a non-privileged user.
115            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
116            the non-privileged user to the database and set the admin password
117            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
118            Better error reporting
119            (PostgreSQLServer.connection_params)
120            (PostgreSQLServer.connection_string): New methods to return
121            information about how to connect to the server
122            (PostgreSQLServer.execute_sql): New. Convenience method to execute
123            SQL statements
124            (PostgreSQLServer.require_authentication): Toggle whether the
125            server requires authentication
126            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
127            Add or alter users
128            (PostGISDatabase.initdb): Pass the admin name one the
129            subprocesses' command lines. Grant select rights on
130            geometry_columns to everybody.
131            (upload_shapefile): Use the admin name and password when
132            connecting. Grant select rights on the new table to everybody.
133    
134            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
135            server's new methods to get the connection parameters.
136    
137            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
138            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
139            server's new methods to get the connection parameters.
140    
141            * test/test_postgis_db.py
142            (TestPostGISConnection.test_gis_tables_empty)
143            (TestPostGISConnection.test_gis_tables_non_empty)
144            (PostGISStaticTests.setUp): Use the server's new methods to get
145            the connection parameters.
146    
147    2003-08-22  Bernhard Herzog  <[email protected]>
148    
149            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
150    
151            * Thuban/version.py: Add psycopg version
152    
153            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
154            version of the psycopg module
155    
156    2003-08-22  Bernhard Herzog  <[email protected]>
157    
158            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
159            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
160            at the moment. The functionality should probably be implemented
161            some time, though.
162            (DBFrame.OnRemove): Display a message if the connection can't be
163            removed because it's still in use.
164    
165    2003-08-22  Jan-Oliver Wagner <[email protected]>
166    
167            * Thuban/UI/about.py (About.__init__): split up the huge about
168            text into elements/lists for easier translation. This fixes bug
169            https://intevation.de/rt/webrt?serial_num=2058
170            Also, made some forgotten string available for the i18n.
171    
172    2003-08-21  Bernhard Herzog  <[email protected]>
173    
174            Make postgis support really optional including insensitive menu
175            items.
176    
177            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
178            whether the postgis is supported.
179    
180            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
181            to make postgis support optional
182    
183            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
184            version of Thuban.Model.postgisdb.has_postgis_support
185            (database_management command): Make it only sensitive if postgis
186            is supported.
187    
188    2003-08-21  Jan-Oliver Wagner <[email protected]>
189    
190            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
191            (section Adding and Removing Layers): Added text and described
192            multi-selection.
193            (chapter Extensions): New.
194    
195    2003-08-21  Jan-Oliver Wagner <[email protected]>
196    
197            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
198            settings to allow multiple files to load into the map.
199            Also reduced selection to *.shp as a default.
200    
201    2003-08-20  Bernhard Herzog  <[email protected]>
202    
203            Add dialogs and commands to open database connections and add
204            database layers.
205    
206            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
207            method to open the database connection management dialog
208            (MainWindow.AddDBLayer): New method to add a layer from a database
209            (_has_dbconnections): New helper function to use for sensitivity
210            (database_management command, layer_add_db command): New commands
211            that call the above new methods.
212            (main_menu): Add the new commands to the menu.
213    
214            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
215            (PostGISConnection.connect): Establish the actual connection in a
216            separate method and call it in __init__. This makes it easier to
217            override the behavior in test cases
218            (PostGISConnection.BriefDescription): New method to return a brief
219            description for use in dialogs.
220    
221            * test/test_postgis_db.py (NonConnection): DB connection that
222            doesn't actually connect
223            (TestBriefDescription): New class with tests for the new
224            BriefDescription method
225    
226    2003-08-19  Jan-Oliver Wagner <[email protected]>
227    
228            Moved anything from extensions to libraries.
229    
230            * libraries: New.
231    
232            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
233    
234            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
235            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
236            been moved here from thuban/extensions/pyprojection/
237            See there in the Attic for the older history.
238    
239            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
240            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
241            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
242            have been moved here from thuban/extensions/pyshapelib/
243            See there in the Attic for the older history.
244    
245            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
246            files have been moved here from thuban/extensions/shapelib/
247            See there in the Attic for the older history.
248    
249            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
250            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
251            thuban/extensions/thuban/
252            See there in the Attic for the older history.
253    
254            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
255    
256            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
257            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
258    
259            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
260            Moved to libraries/shapelib.
261    
262            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
263            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
264            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
265            Moved to libraries/pyshapelib.
266    
267            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
268            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
269            Moved to libraries/pyprojection.
270    
271            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
272    
273            * extensions: Removed.
274    
275    2003-08-19  Bernhard Herzog  <[email protected]>
276    
277            * test/test_viewport.py (ViewPortTest): We don't use the
278            facilities of FileTestMixin so don't derive from it.
279            (TestViewportWithPostGIS): New class with tests for using a
280            viewport on a map with postgis layers.
281    
282    2003-08-19  Bernhard Herzog  <[email protected]>
283    
284            Add the db connection management to the session.
285    
286            * Thuban/Model/session.py (Session.__init__): New instance
287            variable db_connections
288            (Session.AddDBConnection, Session.DBConnections)
289            (Session.HasDBConnections, Session.CanRemoveDBConnection)
290            (Session.RemoveDBConnection): New methods to manage and query the
291            db connections managed by the session
292            (Session.OpenDBShapeStore): New method to open a shapestore from a
293            db connection
294    
295            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
296            messages for the db connection handling in the session
297    
298            * test/test_postgis_session.py: New. test cases for the session's
299            db connection handling with postgis connections
300    
301    2003-08-19  Bernhard Herzog  <[email protected]>
302    
303            Add very basic postgis database support and the corresponding test
304            cases. The test cases require a PostgreSQL + postgis installation
305            but no existing database. The database will be created
306            automatically by the test cases
307    
308            * test/README: Add note about skipped tests and the requirements
309            of the postgis tests.
310    
311            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
312    
313            * test/test_postgis_db.py: New. Test cases for the postgis
314            support.
315    
316            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
317            format
318    
319            * test/test_wellknowntext.py: New. Test cases for the
320            wellknowntext parser
321    
322            * test/postgissupport.py: New. Support module for tests involving
323            a postgis database.
324    
325            * test/support.py (execute_as_testsuite): Shut down the postmaster
326            if it's still running after the tests
327    
328            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
329            well known text format
330    
331    2003-08-19  Jan-Oliver Wagner <[email protected]>
332    
333            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
334            message dialog.
335    
336    2003-08-18  Bernhard Herzog  <[email protected]>
337    
338            * test/support.py (ThubanTestResult.printErrors): Indent the
339            reason for the skips in the output to make it a bit more readable.
340            (execute_as_testsuite): New helper function to run a test suite
341            and print some more information.
342            (run_tests): Use execute_as_testsuite to run the tests
343    
344            * test/runtests.py (main): Use execute_as_testsuite to run the
345            tests
346    
347    2003-08-18  Bernhard Herzog  <[email protected]>
348    
349            Fix some bugs in Thuban and the test suite that were uncovered by
350            changes introduced in Python 2.3:
351    
352            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
353            filename is an absolute name
354    
355            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
356            filename is an absolute name
357    
358            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
359            unique filename to save to and use the correct relative filename
360            in the expected output.
361            (SaveSessionTest.test_dbf_table): Use the correct relative
362            filename in the expected output.
363    
364            * test/test_layer.py (TestLayer.test_raster_layer): Update the
365            test to check whether the filename is absolute.
366    
367    2003-08-18  Jan-Oliver Wagner <[email protected]>
368    
369            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
370    
371    2003-08-15  Bernhard Herzog  <[email protected]>
372    
373            Change the way shapes are returned by a shape store. The
374            ShapesInRegion method returns an iterator over actual shape
375            objects instead of a list of shape ids.
376    
377            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
378            id.
379            (ShapefileStore.ShapesInRegion): Return an iterator over the
380            shapes which yields shape objects instead of returning a list of
381            shape ids
382            (ShapefileStore.AllShapes): New. Return an iterator over all
383            shapes in the shape store
384            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
385    
386            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
387            doc-string.
388    
389            * Thuban/UI/baserenderer.py
390            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
391            layer_shapes and make it return an iterator containg shapes
392            instead of a list of ids.
393            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
394            layer_shapes() change
395    
396            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
397            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
398    
399            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
400            changes in the ShapesInRegion return value.
401            (ViewPort._get_hit_tester): Remove commented out code
402    
403            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
404            new return value.
405            (SimpleShapeStore.AllShapes): New. Implement this method too.
406    
407            * test/test_layer.py (TestLayer.test_arc_layer)
408            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
409            (TestLayer.test_point_layer_with_projection)
410            (TestLayer.test_derived_store): Adapt to changes in the
411            ShapesInRegion return value.
412    
413            * test/test_shapefilestore.py
414            (TestShapefileStoreArc.test_shapes_in_region)
415            (TestShapefileStorePolygon.test_shapes_in_region)
416            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
417            in the ShapesInRegion return value.
418            (TestShapefileStorePoint.test_all_shapes)
419            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
420            methods
421    
422            * test/test_derivedshapestore.py
423            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
424            the ShapesInRegion return value.
425            (TestDerivedShapeStore.test_all_shapes)
426            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
427            methods
428    
429    2003-08-15  Bernhard Herzog  <[email protected]>
430    
431            Make the renderers deal correctly with raw vs. python level
432            representation of shape geometries
433    
434            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
435            Return a flag useraw in addition to the callable and the parameter
436            to indicate whether the callable can deal with the raw shape data
437            or uses the higher level python lists of coordinates. The callable
438            now should accept either the raw data or the return value of the
439            shape's Points() method.
440            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
441            change
442            (BaseRenderer.projected_points): Instead of the shape id use the
443            points list as parameter.
444            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
445            (BaseRenderer.draw_point_shape): Adapt to projected_points()
446            change and accept the points list as parameter instead of the
447            shape id.
448    
449            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
450            the useraw flag as required by the BaseRenderer
451            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
452            changes.
453    
454            * test/test_baserenderer.py
455            (TestBaseRenderer.test_point_with_classification): New test for
456            rendering a map with classifications.
457    
458    2003-08-15  Bernhard Herzog  <[email protected]>
459    
460            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
461            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
462            (ViewPort._get_hit_tester, ViewPort.projected_points)
463            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
464            (ViewPort._find_label_at): Split the find_shape_at method into
465            several new methods and use the functions in the hit-test module.
466    
467            * Thuban/UI/hittest.py: New module with Python-level hit-testing
468            functions
469    
470            * test/test_hittest.py: New. Test for the new hittest module
471    
472    2003-08-15  Bernhard Herzog  <[email protected]>
473    
474            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
475            projection to all corners of the bounding box to get a better
476            approximation of the projected bounding box
477    
478            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
479            New. Test coordinate handling of a layer with a projection.
480            Catches the bug fixed in Layer.ShapesInRegion
481    
482    2003-08-15  Bernhard Herzog  <[email protected]>
483    
484            Move some of the mock objects in test_baserenderer into their own
485            module so they can easily be used from other tests
486    
487            * test/mockgeo.py: New test helper module with some mock objects
488            for geometry related things like shapes, shapestores and
489            projections.
490    
491            * test/test_mockgeo.py: New. Tests for the new helper module
492    
493            * test/test_baserenderer.py: Some of the mock-objects are in
494            mockgeo now.
495    
496    2003-08-12  Jan-Oliver Wagner <[email protected]>
497    
498            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
499    
500    2003-08-12  Bernhard Herzog  <[email protected]>
501    
502            * po/de.po: New. German translations by Bjoern Broscheit
503    
504    2003-08-12  Bernhard Herzog  <[email protected]>
505    
506            * Thuban/UI/projdialog.py (UnknownProjPanel._DoLayout): Translated
507            strings have to be one string literal.
508    
509    2003-08-11  Bernhard Herzog  <[email protected]>
510    
511            * test/support.py (FloatComparisonMixin.assertPointListEquals):
512            New. This method was used in various derived classes, but it's
513            better to have it here.
514    
515            * test/test_shapefilestore.py
516            (ShapefileStoreTests.assertPointListEquals): Removed. It's now in
517            FloatComparisonMixin
518    
519            * test/test_layer.py (TestLayer.assertPointListEquals): Removed.
520            It's now in FloatComparisonMixin
521    
522            * test/test_derivedshapestore.py
523            (TestDerivedShapeStore.assertPointListEquals): Removed. It's now
524            in FloatComparisonMixin
525    
526    2003-08-11  Bernhard Herzog  <[email protected]>
527    
528            * Thuban/UI/join.py (JoinDialog.OnJoin): Add missing space to
529            error message
530    
531    2003-08-08  Jan-Oliver Wagner <[email protected]>
532    
533            * Doc/manual/thuban-manual.xml: Now use authorgroup. Added revhistory
534            with version number.
535            Changed title to reflect version number of Thuban.
536    
537    2003-08-08  Jan-Oliver Wagner <[email protected]>
538    
539            * Thuban/UI/about.py (About.__init__): Reworked the hall of fame. Now
540            the list corresponds to the "About" web page.
541    
542    2003-08-08  Bernhard Herzog  <[email protected]>
543    
544            * Thuban/UI/projdialog.py (UTMProposeZoneDialog.dialogLayout):
545            Make sure translated strings are recognized as one string literal.
546    
547            * Thuban/UI/proj4dialog.py (UTMProposeZoneDialog.dialogLayout):
548            Make sure translated strings are recognized as one string literal.
549    
550            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Make sure
551            translated strings are recognized as one string literal.
552    
553            * Thuban/UI/application.py (ThubanApplication.OpenSession): Make
554            sure translated strings are recognized as one string literal.
555    
556    2003-08-07  Bernhard Herzog  <[email protected]>
557    
558            * Thuban/Model/data.py (DerivedShapeStore.RawShapeFormat): New.
559            Simply delegates to the original shapestore.
560    
561            * test/test_derivedshapestore.py
562            (TestDerivedShapeStore.test_raw_format): New. Test case for
563            DerivedShapeStore.RawShapeFormat
564    
565    2003-08-07  Bernhard Herzog  <[email protected]>
566    
567            Add raw data interface to shape objects.
568    
569            * Thuban/Model/data.py (ShapefileShape, Shape): Rname the shape
570            class to ShapefileShape which now holds shapefile specific
571            information.
572            (ShapefileShape.compute_bbox): Simplified to not cache any
573            information. The way this method is used that shouldn't matter
574            performance wise.
575            (ShapefileShape.RawData): New. Return the shapeid which is the raw
576            data format for shapes from shapefiles.
577            (ShapefileStore.RawShapeFormat): New. Return the raw datatype used
578            in the shape objects returned by a shapestore. For a
579            ShapefileStore this is always RAW_SHAPEFILE.
580            (RAW_PYTHON, RAW_SHAPEFILE): Constants for the RawShapeFormat
581            method.
582    
583            * test/test_shapefilestore.py
584            (TestShapefileStore.test_raw_format): New test to test the raw
585            format feature of shapes.
586    
587            * Thuban/Model/layer.py: Remove the unused import of Shape from
588            data. It was only there for interface compatibility but it's not
589            used inside of Thuban and the generic Shape class has gone away.
590    
591            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Check
592            the raw data format and only use an optimized version of its a
593            shapefile.
594    
595    2003-08-07  Bernhard Herzog  <[email protected]>
596    
597            * test/test_baserenderer.py (SimpleShape): Shape class for the
598            tests.
599            (SimpleShapeStore.Shape): Use SimpleShape instead of
600            Thuban.Model.data.Shape to make the tests independed of the coming
601            changes.
602    
603    2003-08-07  Bernhard Herzog  <[email protected]>
604    
605            * test/support.py (SkipTest, ThubanTestResult, ThubanTestRunner)
606            (ThubanTestProgram): New classes that extend the respective
607            classes from unittest. These new version support skipping tests
608            under certain expected conditions. In the Thuban test suite we
609            uses this for tests that require the optional gdal support.
610            (run_tests): Use ThubanTestProgram instead of the unittest.main()
611    
612            * test/runtests.py (main): Use the new ThubanTestRunner instead of
613            the normal one from unittest
614    
615            * test/test_layer.py (TestLayer.test_raster_layer): If this test
616            is not run because gdal support isn't available report this to the
617            runner.
618    
619            * test/test_baserenderer.py
620            (TestBaseRenderer.test_raster_no_projection): Do not run this test
621            if gdal support isn't available and report this to the runner.
622    
623    2003-08-06  Bernhard Herzog  <[email protected]>
624    
625            Rearrange the renderers a bit, partly in preparation for changes
626            required for the postgis merge, partly to make it more testable.
627            Also make the representation of coordinates in Shapes more
628            consistent.
629    
630            * Thuban/UI/renderer.py (MapRenderer): Most of the code/methods in
631            this class is now in BaseRenderer. This class is now practically
632            only a specialization of BaseRenderer for rendering to an actual
633            wx DC.
634            (ScreenRenderer.draw_shape_layer): Use self.low_level_renderer()
635            to get the shapetype specific rendering functions.
636    
637            * Thuban/UI/baserenderer.py: New file with the basic rendering
638            logic. The code in this file is completely independend of wx.
639            (BaseRenderer): Class with the basic rendering logic
640    
641            * test/test_baserenderer.py: New. Test cases for BaseRenderer
642    
643            * Thuban/UI/view.py (MapCanvas.__init__): New instance variable
644            error_on_redraw to guard agains endless loops and stack overflows
645            when there's a bug in the rendering code that raises exceptions.
646            (MapCanvas.OnIdle, MapCanvas._do_redraw): Split the actual
647            rendering into a separate method _do_redraw so that error handling
648            is a bit easier. When an exception occurs, set error_on_redraw to
649            true. When it's true on entry to OnIdle do nothing and return
650            immediately.
651    
652            * Thuban/Model/data.py (ShapefileStore.Shape): For consistency, a
653            Shape object will always have the coordinates as a list of list of
654            coordinate pairs (tuples).
655            (Shape.compute_bbox): Adapt to new representation.
656    
657            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
658            (ViewPort.LabelShapeAt): Adapt to new coordinate representation in
659            Shape objects.
660    
661            * test/test_shapefilestore.py
662            (ShapefileStoreTests.assertFloatTuplesEqual)
663            (ShapefileStoreTests.assertPointListEquals): Rename to
664            assertPointListEquals and change purpose to checking equality of
665            the lists returned by Shape.Points().
666            (TestShapefileStoreArc.test_shape)
667            (TestShapefileStorePolygon.test_shape)
668            (TestShapefileStorePoint.test_shape): Use the new
669            assertPointListEquals instead of assertFloatTuplesEqual
670    
671            * test/test_layer.py (TestLayer.assertFloatTuplesEqual)
672            (TestLayer.assertPointListEquals): Rename to assertPointListEquals
673            and change purpose to checking equality of the lists returned by
674            Shape.Points().
675            (TestLayer.test_arc_layer, TestLayer.test_arc_layer)
676            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
677            (TestLayer.test_derived_store): Use the new assertPointListEquals
678            instead of assertFloatTuplesEqual
679    
680            * test/test_derivedshapestore.py
681            (TestDerivedShapeStore.assertFloatTuplesEqual)
682            (TestDerivedShapeStore.assertPointListEquals): Rename to
683            assertPointListEquals and change purpose to checking equality of
684            the lists returned by Shape.Points().
685            (TestDerivedShapeStore.test_shape): Use the new
686            assertPointListEquals instead of assertFloatTuplesEqual
687    
688    2003-08-06  Jan-Oliver Wagner <[email protected]>
689    
690            * Thuban/UI/projdialog.py (UTMPanel._OnPropose): Added test for
691            a bounding box. A dialog is raised in case, no bounding box
692            is found. This fixes bug #2043:
693            https://intevation.de/rt/webrt?serial_num=2043
694    
695    2003-08-05  Bernhard Herzog  <[email protected]>
696    
697            * Thuban/Model/color.py (Color.__repr__): Make the repr of a color
698            object look like a Color instantiation. Formerly it looked like a
699            tuple.
700    
701            * test/test_color.py (TestColor.test_repr)
702            (TestColor.test_equality, TestColor.test_inequality): New. test
703            some more apects of the Color class
704            (TestTransparent.test_repr, TestTransparent.test_hex)
705            (TestTransparent.test_equality): New. Test cases for the
706            Transparent object.
707    
708    2003-08-04  Jan-Oliver Wagner <[email protected]>
709    
710            * Doc/manual/thuban-manual.xml: a number of small improvements.
711            The resulting file is the version submitted for GREAT-ER II.
712    
713    2003-08-01  Bernhard Herzog  <[email protected]>
714    
715            * Thuban/UI/resource.py, Thuban/UI/projdialog.py,
716            Thuban/UI/join.py, Thuban/UI/classgen.py, Thuban/UI/about.py,
717            Thuban/Model/resource.py: Insert cvs keywords and doc-strings.
718    
719            * Thuban/UI/common.py: Insert cvs keywords and doc-strings.
720            (Color2wxColour, wxColour2Color, ThubanBeginBusyCursor)
721            (ThubanEndBusyCursor): Add doc-strings
722    
723    2003-08-01  Bernhard Herzog  <[email protected]>
724    
725            First step towards PostGIS integration. More abstraction by movin
726            more code from the layer to the shapestore. More methods of the
727            layer are now simply delegated to the equivalent method of the
728            shapestore. The SHAPETYPE_* constants are now in data not in
729            layer.
730    
731            * Thuban/Model/data.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
732            (SHAPETYPE_POINT, Shape): Move these constants and classes from
733            layer.py to data.py
734            (ShapefileStore.__init__): More Initialization for the new methods
735            and functionality.
736            (ShapefileStore.ShapeType, ShapefileStore.NumShapes)
737            (ShapefileStore.BoundingBox, ShapefileStore.ShapesInRegion)
738            (ShapefileStore.Shape): New methods that were formerly implemented
739            in the layer.
740            (DerivedShapeStore.Shape, DerivedShapeStore.ShapesInRegion)
741            (DerivedShapeStore.ShapeType, DerivedShapeStore.NumShapes)
742            (DerivedShapeStore.BoundingBox): New. DerivedShapeStore
743            equivalents of the new shape methods. These versions are simply
744            delegated to the original shapstore.
745    
746            * Thuban/Model/layer.py (SHAPETYPE_POLYGON, SHAPETYPE_ARC)
747            (SHAPETYPE_POINT, Shape): Removed. They're now in data.py
748            (Layer.SetShapeStore): Removed the initializatin of instance
749            variables that were needed for the stuff that's now in
750            ShapefileStore
751            (Layer.BoundingBox, Layer.NumShapes, Layer.ShapeType)
752            (Layer.Shape, Layer.ShapesInRegion): Simply delegate to the
753            shapestore.
754    
755            * Thuban/UI/classifier.py, Thuban/UI/renderer.py,
756            Thuban/UI/viewport.py: Import the SHAPETYPE_* constants from data
757            instead of layer.
758    
759            * test/test_shapefilestore.py: New. Tests for ShapefileStore.
760    
761            * test/test_derivedshapestore.py: New. Tests for DerivedShapeStore.
762    
763            * test/test_layer.py: Import the SHAPETYPE_* constants from data
764            instead of layer.
765            (TestLayer.test_derived_store): Remove the test for the exception
766            when instantiating the DerivedShapeStore with an incompatible
767            table which is now in test_derivedshapestore.py. Add some more
768            tests of the layer methods to determine whether they work for a
769            DerivedShapeStore as well.
770    
771    2003-07-31  Jonathan Coles   <[email protected]>
772    
773            * Doc/manual/thuban-manual.xml: Fix the list of required packages
774            by just listing the name and where they can be found.
775    
776    2003-07-31  Frank Koormann   <[email protected]>
777    
778            * Doc/manual/thuban-manual.xml:
779            Changed the screenshot elements to figure.
780            Changed some variablelist elements to itemizedlist.
781            Added section on GDAL formats.
782    
783    2003-07-31  Jonathan Coles   <[email protected]>
784    
785            * Doc/manual/thuban-manual.xml: Added a few sentences about
786            the Fix Border Color option when generating classes.
787    
788    2003-07-30  Jonathan Coles   <[email protected]>
789    
790            * Thuban/Model/classgen.py: Add docstrings. Rename specific
791            Ramp instances to use lower_case_style.
792    
793            * Thuban/UI/classgen.py: Use renamed Ramp instances.
794            
795            * Thuban/UI/classifier.py: Add docstrings.
796    
797            * Thuban/UI/dock.py: Add docstrings.
798    
799            * test/test_classgen.py: Use renamed Ramp instances.
800    
801    2003-07-30  Bernhard Herzog  <[email protected]>
802    
803            * Thuban/Lib/connector.py (QueueingPublisher): Removed. This class
804            was never used in Thuban.
805    
806    2003-07-30  Bernhard Herzog  <[email protected]>
807    
808            * Thuban/UI/join.py (JoinDialog.__init__): Use the table's Title()
809            method directly instead of going through the transient_table
810            method. This faster because transient_table may force the copy of
811            a DBF file into the transient database and setting a table's title
812            doesnm't affect the title of the associated transient table, so
813            this fixes RT #2042
814    
815            * Thuban/UI/main.py (__version__): Don't import the already
816            removed show_exception_dialog.
817    
818    2003-07-29  Jonathan Coles   <[email protected]>
819    
820            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
821            Put back this method and remove the equivalent function since we
822            are setting the exception hook from within this class (OnInit).
823    
824    2003-07-29  Jonathan Coles   <[email protected]>
825    
826            * Doc/manual/images/5_2_custom_ramp.png,
827            Doc/manual/images/5_2_quantiles.png,
828            Doc/manual/images/5_2_uniform_dist.png,
829            Doc/manual/images/5_2_unique_values.png,
830            Doc/manual/images/8_int_error.png: New screen shots.
831    
832            * Doc/manual/thuban-manual.xml: Fixed typos and wording, clarified
833            some points, and added more screen shots.
834    
835    2003-07-29  Bernhard Herzog  <[email protected]>
836    
837            * Thuban/Model/data.py: Remove the now unused import of warnings
838    
839    2003-07-29  Bernhard Herzog  <[email protected]>
840    
841            * Thuban/Model/data.py (SimpleStore): Removed. This class has been
842            deprecated since before the 0.8 release and isn't used in Thuban
843            itself anymore.
844    
845            * Thuban/Model/transientdb.py: Remove some unnecessary imports
846    
847    2003-07-29  Jonathan Coles   <[email protected]>
848    
849            * Thuban/UI/application.py (ThubanApplication.OnInit): set the
850            python exception hook here so that we are sure to catch any
851            Thuban exception that happen during initialization.
852    
853            * Thuban/UI/main.py (main): Don't set the exception hook here,
854            it will get set in ThubanApplication.OnInit.
855    
856    2003-07-29  Jonathan Coles   <[email protected]>
857                                                                                
858            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
859            Removed and called it show_exception_dialog() so that the exception
860            handler can be set before the class is created.
861                                                                                
862            * Thuban/UI/main.py (main): Install the exception handler before
863            a ThubanApplication is created.
864                                                                                    
865    2003-07-29  Bernhard Herzog  <[email protected]>
866    
867            * po/it.po: New. Italian translation by Maurizio Napolitano
868    
869            * po/ru.po: New. Russian translation by Alex Shevlakov
870    
871    2003-07-29  Frank Koormann   <[email protected]>
872    
873            * Doc/manual/thuban-manual.xml: Extended section on supported
874            projections.
875            
876    2003-07-29  Frank Koormann   <[email protected]>
877    
878            * Doc/manual/thuban-manual.xml: gaspell-checked.
879    
880    2003-07-29  Jonathan Coles   <[email protected]>
881    
882            * Doc/manual/images/3_5_legend.png: Added border to improve look
883            on white background.
884    
885    2003-07-29  Jonathan Coles   <[email protected]>
886    
887            * Doc/manual/thuban-manual.xml: Fixed grammar and typos. Added
888            descriptions for the legend toolbar.
889    
890            * Doc/manual/images/4_2_raster_layer_properties.png: Removed
891            cursor from dialog box.
892    
893    2003-07-28  Jonathan Coles   <[email protected]>
894    
895            * Doc/manual/thuban-manual.xml: More screenshots and more chapters.
896    
897            * Doc/manual/images/2_4_session_tree.png,
898            Doc/manual/images/3_5_legend.png, Doc/manual/images/3_rename_map.png,
899            Doc/manual/images/4_2_layer_properties.png,
900            Doc/manual/images/4_2_raster_layer_properties.png,
901            Doc/manual/images/5_3_genclass.png,
902            Doc/manual/images/5_classification.png,
903            Doc/manual/images/6_projection.png,
904            Doc/manual/images/7_1_table_view.png,
905            Doc/manual/images/7_2_5_join.png: New screenshots.
906    
907    2003-07-24  Jonathan Coles   <[email protected]>
908    
909            * Doc/manual/thuban-manual.xml: Chapter on Projection Management.
910    
911    2003-07-24  Jonathan Coles   <[email protected]>
912    
913            * Doc/manual/thuban-manual.xml: Added EPS images and wrote
914            chapter on Layer Management.
915    
916            * Doc/manual/Makefile: New. Makefile to generate all formats for the
917            manual and images.
918    
919    2003-07-24  Bernhard Herzog  <[email protected]>
920    
921            * Thuban/Model/range.py, Thuban/version.py: Remove the #! line as
922            it annoys lintian which warns about these files not being
923            executable. The #1 isn't necessary here since if you absolutely
924            must execute them you can always say "python <filename>".
925    
926            * Thuban/UI/renderer.py (ScreenRenderer.draw_shape_layer): Remove
927            superfluous code to set brush and pen for point shapes
928    
929            * Thuban/UI/viewport.py: Remove commented out code that wouldn't
930            belong in viewport anyway
931    
932    2003-07-24  Frank Koormann   <[email protected]>
933    
934            * Doc/manual/thuban-manual.xml: Added section on table management.
935    
936    2003-07-24  Bernhard Herzog  <[email protected]>
937    
938            * test/runtests.py (main): Recognize the long "verbose" option
939            correctly.
940    
941    2003-07-22  Jonathan Coles   <[email protected]>
942    
943            * Doc/manual/thuban-manual.xml: Continue to write first revision
944            of the manual.
945    
946            * Thuban/UI/renderer.py (MapRenderer.render_map): Wrap method
947            with Begin/EndDrawing() calls to ensure we aren't doing to
948            many updates to the dc during rendering.
949            (ScreenRenderer.draw_shape_layer): self.draw_point_shape takes
950            a pen and brush argument so they need to be passed to the function.
951    
952            * Thuban/UI/viewport.py (ViewPort.calc_min_max_scales): New.
953            Calculates the minimum and maximum scale values. Factored out
954            of set_view_transform so that it could be used to zoom all the
955            way into a single point.
956            (ViewPort.set_view_transform): Call calc_min_max_scales().
957            (ViewPort.FitSelectedToWindow): Zoom to the maximum scale
958            if only a single point is selected.
959    
960            * Doc/manual/images/1_2_legend_close.png,
961            Doc/manual/images/1_2_legend_dock.png,
962            Doc/manual/images/1_2_mainwindow.png,
963            Doc/manual/images/1_2_mainwindow.ps,
964            Doc/manual/images/1_2_mainwindow.sk,
965            Doc/manual/images/3_2_fullextent.png,
966            Doc/manual/images/3_2_fulllayerextent.png,
967            Doc/manual/images/3_2_fullshapeextent.png,
968            Doc/manual/images/3_2_pan.png,
969            Doc/manual/images/3_2_zoomin.png,
970            Doc/manual/images/3_2_zoomout.png,
971            Doc/manual/images/3_3_identify.png,
972            Doc/manual/images/3_3_label.png,
973            Doc/manual/images/3_5_invisible.png,
974            Doc/manual/images/3_5_movedown.png,
975            Doc/manual/images/3_5_moveup.png,
976            Doc/manual/images/3_5_props.png,
977            Doc/manual/images/3_5_tobottom.png,
978            Doc/manual/images/3_5_totop.png,
979            Doc/manual/images/3_5_visible.png: New. Images for the documentation.
980    
981    2003-07-18  Bernhard Herzog  <[email protected]>
982    
983            * Thuban/UI/messages.py (MAP_REPLACED): New message.
984    
985            * Thuban/UI/viewport.py (ViewPort.SetMap): Issue MAP_REPLACED
986            after the new map has been assigned
987    
988            * Thuban/UI/mainwindow.py (MainWindow.delegated_messages):
989            Delegate MAP_REPLACED to the canvas too
990            (MainWindow.prepare_new_session): Removed. Thanks to the new
991            MAP_REPLACED message it's no longer needed
992            (MainWindow.OpenSession, MainWindow.NewSession):
993            prepare_new_session has been removed.
994    
995            * Thuban/UI/classifier.py (Classifier.__init__): Subscribe to
996            MAP_REPLACED so that we can close the dialog if a new map is set.
997            (Classifier.unsubscribe_messages): Unsubscribe from MAP_REPLACED
998            (Classifier.map_replaced): Handle MAP_REPLACED by closing the
999            dialog
1000    
1001            * test/test_viewport.py (SimpleViewPortTest)
1002            (SimpleViewPortTest.test_default_size): Add doc-strings
1003            (ViewPortTest.setUp): Bind map to self.map so we can use it in
1004            tests. Subscribe to MAP_REPLACED messages too.
1005            (ViewPortTest.tearDown): No need to explicitly unsubscribe
1006            (ViewPortTest.test_set_map): New test for the SetMap method.
1007    
1008    2003-07-18  Bernhard Herzog  <[email protected]>
1009    
1010            * test/test_viewport.py (SimpleViewPortTest.test_default_size):
1011            Move this test from ViewPortTest.setUp to this new separate test
1012            case. setUp is not the place for the actual tests.
1013            (ViewPortTest.test_inital_settings, ViewPortTest.setUp): Move some
1014            more of the test from setUp to the new test test_inital_settings.
1015            (ViewPortTest.test_win_to_proj, ViewPortTest.test_proj_to_win)
1016            (ViewPortTest.test_proj_conv): Split test_proj_conv into
1017            test_win_to_proj and test_proj_to_win and make the tests easier to
1018            understand
1019            (ViewPortTest.testFitRectToWindow, ViewPortTest.testZoomFactor)
1020            (ViewPortTest.testZoomOutToRect, ViewPortTest.testTranslate)
1021            (ViewPortTest.test_unprojected_rect_around_point)
1022            (ViewPortTest.test_find_shape_at, ViewPortTest.testTools):
1023            Reformat to increase readability.
1024    
1025    2003-07-18  Bernhard Herzog  <[email protected]>
1026    
1027            * Thuban/UI/view.py (MapCanvas.OnLeftDown): Capture the mouse.
1028    
1029    2003-07-18  Bernhard Herzog  <[email protected]>
1030    
1031            * test/runtests.py: The test suite can now be run without an X
1032            connection. To make sure this remains true, remove the DISPLAY
1033            environment variable so that an error occurs if the wxGTK is
1034            imported accidentally
1035    
1036    2003-07-18  Bernhard Herzog  <[email protected]>
1037    
1038            * Thuban/UI/viewport.py: Remove unused imports
1039    
1040            * Thuban/UI/view.py: Remove unused imports
1041    
1042    2003-07-18  Bernhard Herzog  <[email protected]>
1043    
1044            * test/test_export.py Remove unused imports. The OutputTransform
1045            function is now in viewport.py and is called output_transform
1046            (TestScalebar.test_output_transform)
1047            (TestScalebar.test_OutputTransform): Renamed to
1048            test_output_transform and updated to use output_transform instead
1049            of OutputTransform
1050    
1051            * Thuban/UI/view.py (OutputTransform): Moved to viewport.py and
1052            renamed.
1053            (MapCanvas.Export, MapPrintout.draw_on_dc): OutputTransform was
1054            renamed to output_transform
1055    
1056            * Thuban/UI/viewport.py (OutputTransform, output_transform):
1057            Rename to output_transform
1058    
1059    2003-07-18  Bernhard Herzog  <[email protected]>
1060    
1061            * Thuban/Model/layer.py (Layer.__init__): Rename
1062            classificationField to classificatin_column and init it here so
1063            that it can be used in SetClassificationColumn
1064            (Layer.GetClassificationColumn, Layer.GetClassificationField):
1065            Rename to GetClassificationColumn.
1066            (Layer.SetClassificationColumn, Layer.SetClassificationField):
1067            Rename to SetClassificationColumn and issue a LAYER_CHANGED
1068            message if the column changes.
1069            (Layer._classification_changed, Layer.ClassChanged): Rename to
1070            _classification_changed. Update the callers.
1071            (Layer.SetShapeStore): Further field->column renames.
1072    
1073            * Thuban/Model/load.py (SessionLoader.start_classification)
1074            (SessionLoader.start_clpoint): Updates because of
1075            field->column method name changes in the Layer class
1076    
1077            * Thuban/Model/save.py (SessionSaver.write_classification): Updates
1078            because of field->column method name changes in the Layer class
1079    
1080            * Thuban/UI/classifier.py (Classifier.__init__)
1081            (Classifier._OnTry, Classifier._OnRevert): Updates because of
1082            field->column method name changes in the Layer class
1083    
1084            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Updates
1085            because of field->column method name changes in the Layer class
1086    
1087            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Updates because
1088            of field->column method name changes in the Layer class
1089    
1090            * test/test_save.py (SaveSessionTest.testClassifiedLayer)
1091            (SaveSessionTest.testClassifiedLayer): Update because of
1092            field->column method name changes in the Layer class
1093    
1094            * test/test_layer.py (SetShapeStoreTests.setUp)
1095            (SetShapeStoreTests.test_sanity): Update because of field->column
1096            method name changes in the Layer class
1097            (TestLayerModification.setUp): Subscribe to LAYER_CHANGED as well
1098            (TestLayerModification.test_sanity)
1099            (TestLayerModification.test_initial_settings): remove unsued code
1100            and rename to test_sanity.
1101            (TestLayerModification.test_set_classification): New test for
1102            SetClassification and SetClassificationField.
1103    
1104    2003-07-18  Bernhard Herzog  <[email protected]>
1105    
1106            * test/test_classgen.py (TestFixedRamp.test): Extend test to check
1107            the non-fixed values as well. The old test would have accepted a
1108            fixed ramp that only returnes the fixed properties
1109    
1110    2003-07-17  Jonathan Coles   <[email protected]>
1111    
1112            * Doc/manual/mainwindow.png, Doc/manual/mainwindow.xcf: Screen
1113            shots for the manual. The XCF file is the source image and
1114            has additional layers to support changes.
1115    
1116            * Doc/manual/thuban-manual.xml: Wrote an initial Introduction.
1117    
1118            * Thuban/UI/classifier.py (Classifier.__BuildClassification):
1119            Return both the new class and the field name.
1120    
1121            * Thuban/UI/mainwindow.py (MainWindow.ToggleLegend): Don't
1122            fit the map to the window as this changes any zoom level that
1123            the user may have set.
1124    
1125    2003-07-16  Jonathan Coles   <[email protected]>
1126    
1127            * Thuban/Model/classgen.py (generate_singletons,
1128            generate_uniform_distribution, generate_quantiles): Remove
1129            fixes parameter, but maintain the same functionality by having
1130            the calling function pass a FixedRamp object for the ramp.
1131            (FixedRamp): New. Adapts a ramp to have fixed property values.
1132    
1133            * Thuban/Model/classification.py: Use new CLASS_CHANGED message.
1134            (Classification): Inherit from Publisher.
1135            (Classification.__init__): Remove the layer parameter.
1136            Classifications no longer need to have a parent layer.
1137            (Classification.GetField, Classification.GetFieldType,
1138            Classification.SetFieldInfo): Removed. The field name is stored
1139            in the layer, and the type can be retreived by calling
1140            Layer.GetFieldType().
1141            (Classification._set_layer, Classification.GetLayer): Removed.
1142            Classifications no longer have a parent layer.
1143    
1144            * Thuban/Model/layer.py (Layer.Destroy): Unsubscribe from the
1145            classification.
1146            (Layer.SetShapeStore): Reset the classification first while
1147            we still have the old shape store to work with.
1148            (Layer.GetClassificationField, Layer.SetClassificationField):
1149            New. Method for getting/setting the field to classify on.
1150            (Layer.SetClassification): Simplified now that the layer
1151            simply has to hold a reference to the classification and not
1152            tell the classification who owns it.
1153            Fixes RTbug #2023.
1154    
1155            * Thuban/Model/load.py (SessionLoader.start_classification):
1156            Set the field name on the layer, not the classification.
1157    
1158            * Thuban/Model/messages.py: Add CLASS_CHANGED for when a
1159            classification is modified.
1160    
1161            * Thuban/Model/save.py (SessionSaver.write_classification):
1162            Get the field name and type from the layer.
1163    
1164            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Renamed
1165            parameter records to rows and add docstring. Fixes RTbug #1997.
1166    
1167            * Thuban/UI/classgen.py (ClassGenDialog.OnOK): Use a fixed
1168            ramp when we need to fix certain values of a ramp rather than
1169            using the old fixes parameter. Fixes RTbug #2024.
1170    
1171            * Thuban/UI/classifier.py (ClassGrid.CreateTable): Add fieldType
1172            parameter.
1173            (ClassTable.Reset): Add fieldType parameter and use it, rather
1174            than asking the classification.
1175            (Classifier.__init__): Remember the original class's field
1176            and ask the layer for the field type, rather than the classification.
1177            (Classifier.__SetGridTable): Retrieve the field and field type
1178            for the table because they are not in the classification.
1179            (Classifier._OnTry, Classifier._OnRevert): Set the classification
1180            field on the layer in addition to the classification itself.
1181    
1182            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Get the
1183            classification field from layer.
1184    
1185            * Thuban/UI/viewport.py (ViewPort.find_shape_at): Get the
1186            classification field from layer. Split up tests and remove
1187            *-imports. Fixes RTbug #1992.
1188    
1189            * test/test_classgen.py (TestFixedRamp): Test for the FixedRamp class.
1190    
1191            * test/test_classification.py
1192            (TestClassification.test_classification): Remove tests for methods
1193            that no longer exist.
1194    
1195            * test/test_layer.py (SetShapeStoreTests.setUp): Classification
1196            __init__ no longer has a field parameter, use SetClassificationField.
1197            (SetShapeStoreTests.test_sanity): Use layer object to get class
1198            field info.
1199    
1200            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Use
1201            SetClassificationField on layer to set class field info.
1202    
1203            * test/test_viewport.py: Renamed from test/test_view.py.
1204    
1205    2003-07-16  Jan-Oliver Wagner <[email protected]>
1206    
1207            * Doc/manual/thuban-manual.xml: Added authors and an initial
1208            coarse structure.
1209    
1210    2003-07-15  Bernhard Herzog  <[email protected]>
1211    
1212            * test/support.py (FloatComparisonMixin): This is a mix-in class
1213            and therefore should not be derived from any other class.
1214    
1215            * test/test_range.py (RangeTest): FloatComparisonMixin is a
1216            mix-in, so derive from TestCase as well.
1217    
1218    2003-07-15  Bernhard Herzog  <[email protected]>
1219    
1220            * Thuban/UI/renderer.py (MapRenderer.draw_shape_layer): Rework the
1221            draw_func handling a bit to remove one layer of indirection. This
1222            makes the renderer about 10% faster in the non-classifying case
1223            and the code a bit cleaner
1224            (MapRenderer.draw_point_shape): Add the pen and brush parameters
1225            and set them in the dc. Now the draw_point_shape method and
1226            wxproj's draw_polygon_shape function have basically the same
1227            signature so that both can be directly used as draw_func
1228    
1229    2003-07-15  Bernhard Herzog  <[email protected]>
1230    
1231            * Thuban/Model/save.py (SessionSaver.write_classification): Encode
1232            string values (in addition to the labels) as UTF 8
1233    
1234            * Thuban/Model/load.py (SessionLoader.start_clpoint): Decode the
1235            values if the field type is string
1236    
1237            * test/test_save.py (SaveSessionTest.testClassifiedLayer): Test
1238            saving a session with non-ascii string classification values.
1239    
1240            * test/test_load.py (TestClassification.file_contents)
1241            (TestClassification.test): Check for non-ascii values in string
1242            classifications
1243    
1244    2003-07-14  Jonathan Coles   <[email protected]>
1245    
1246            * test/test_view.py: New. Tests for ViewPort.
1247    
1248    2003-07-14  Frank Koormann   <[email protected]>
1249    
1250            * Thuban/Model/load.py (SessionLoader.start_map): Encode map
1251            title to latin1.  Fixes https://intevation.de/rt/webrt?serial_num=2013
1252    
1253            * test/test_load_0_8.py (TestUnicodeStrings): New, test load of
1254            unicode strings from session file: session title, map title and
1255            projection name.
1256            
1257    2003-07-10  Jonathan Coles   <[email protected]>
1258    
1259            * Thuban/UI/viewport.py (Tool.MouseUp): Should have called
1260            drag_stop, not drag_move when the mouse is released.
1261    
1262    2003-07-10  Jonathan Coles   <[email protected]>
1263    
1264            The most important part of this is the seperation of view.py into
1265            two pieces. viewport.py now has a class called ViewPort which
1266            contains all the non-wx parts of view.py and can therefore be
1267            tested. view.py contains only the wx-specific parts and is fairly
1268            simple.
1269    
1270            * Thuban/UI/view.py: Stripped out all non-wx functionality. Fixes
1271            RTTbug #1992.
1272            * Thuban/UI/viewport.py: New. Contains non-wx view functionality.
1273            RTTbug #1992.
1274    
1275            * Thuban/Model/classgen.py (generate_singletons,
1276            generate_uniform_distribution, generate_quantiles):
1277            Added 'fixes' parameter so that property attributes can
1278            be held constant over the generated classification groups.
1279            (CustomRamp.GetProperties): Remove unused variables.
1280    
1281            * Thuban/Model/map.py (Map.SetProjection): Send the old
1282            projection as an argument to listeners of the MAP_PROJECTION_CHANGED
1283            event.
1284    
1285            * Thuban/Model/table.py (table_to_dbf, table_to_csv): Added 'records'
1286            parameter which is a list of records that restricts which
1287            records are saved. Fixes RTbug #1997.
1288    
1289            * Thuban/UI/application.py (ThubanApplication.ShowExceptionDialog):
1290            Port exception dialog from GREAT-ER. Fixes RTbug #1993.
1291    
1292            * Thuban/UI/classgen.py (ClassGenDialog.__init__): Add controls
1293            to allow the user to fix line color/width on generated groups.
1294            (ClassGenDialog.OnOK): Use new 'fixes' parameter of the generate_*
1295            functions to optionally fix group properties.
1296    
1297            * Thuban/UI/main.py (main): Set exception hook to the
1298            ShowExceptionDialog. Fixes RTbug #1993.
1299    
1300            * Thuban/UI/mainwindow.py (MainWindow.ShowTableView): Raise
1301            the table window when it is selectd to be shown.
1302    
1303            * Thuban/UI/tableview.py (QueryTableFrame.__init__): Add an
1304            Export Selection button and move the export buttons underneath
1305            the table.
1306            (QueryTableFrame.UpdateStatusText): Added event argument so
1307            that it can respond to grid selection events. The status text
1308            is now updated even when the table is not associated with a
1309            layer as was previously assumed.
1310            (QueryTableFrame.OnGridSelectRange, OnGridSelectCell): Removed.
1311            UpdateStatusText responds to these events.
1312            (QueryTableFrame.OnSaveAs): Renamed to doExport.
1313            (QueryTableFrame.doExport): Helper function that saves the
1314            entire table, or selected rows, to a file.
1315            (QueryTableFrame.OnExport, QueryTableFrame.OnExportSel): New.
1316            Respond to export button events and call doExport.
1317    
1318            * extensions/thuban/gdalwarp.cpp (ProjectRasterFile): Make sure
1319            the function doesn't return NULL without first setting a Python
1320            Error.
1321    
1322            * test/runtests.py (main): Only print "Unknown option" for
1323            unsupported options.
1324    
1325            * test/support.py (FloatComparisonMixin.assertFloatEqual): Take
1326            optional epsilon argument to specify floating point accuracy.
1327            (FloatComparisonMixin.assertFloatSeqEqual): Call assertFloatEqual
1328            for each item test.
1329    
1330            * test/test_csv_table.py (TestCSVTable.test_table_to_cvs): Add
1331            tests for saving selected records.
1332    
1333            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1334            tests for saving selected records.
1335    
1336            * test/test_map.py (TestMapWithContents.test_set_projection):
1337            MAP_PROJECTION_CHANGED events send the old projection.
1338    
1339            * test/test_session.py
1340            (TestSessionWithContent.test_forward_map_projection):
1341            MAP_PROJECTION_CHANGED events send the old projection.
1342    
1343            * test/test_table.py (TableTest): Update tests to use non-deprecated
1344            functions.
1345    
1346    2003-07-08  Bernhard Herzog  <[email protected]>
1347    
1348            * Thuban/Model/transientdb.py (TransientTableBase.Width): The type
1349            constants in the column objects are the standard ones defined in
1350            the table module.
1351    
1352            * test/test_transientdb.py
1353            (TestTransientTable.test_transienttable_to_dbf): New. Test whether
1354            exporting transient tables as DBF works. This should catch the bug
1355            just fixed in TransientTableBase.Width.
1356    
1357    2003-07-08  Bernhard Herzog  <[email protected]>
1358    
1359            * Thuban/Model/classgen.py (CustomRamp.GetProperties): Compute the
1360            interpolated colors correctly.
1361    
1362            * test/test_classgen.py (TestCustomRamp.test_color_interpolation):
1363            New. Test case for the fix in classgen.py
1364    
1365    2003-07-08  Bernhard Herzog  <[email protected]>
1366    
1367            * test/runtests.py (main): Make the default output less verbose
1368            and add a verbosity option (-v) to get the old output
1369    
1370    2003-07-08  Bernhard Herzog  <[email protected]>
1371    
1372            * Resources/XML/thuban-0.9.dtd: New. This will become the DTD for
1373            0.9.
1374    
1375            * Thuban/Model/transientdb.py (TransientJoinedTable.JoinType):
1376            New. Return the join type
1377    
1378            * Thuban/Model/save.py (SessionSaver.write_session): Use new 0.9
1379            DTD
1380            (SessionSaver.write_data_containers): Save the join type for
1381            joined tables
1382    
1383            * Thuban/Model/load.py (SessionLoader.__init__): Add the new 0.9
1384            namespace
1385            (SessionLoader.start_jointable): Handle the jointype attribute
1386    
1387            * test/test_load_0_8.py: New. Effectively a copy of test_load.py
1388            as of Thuban 0.8. These are now tests to determine whether Thuban
1389            can still read files generated by Thuban 0.8
1390    
1391            * test/test_load.py (LoadSessionTest.dtd)
1392            (TestSingleLayer.file_contents)
1393            (TestLayerVisibility.file_contents, TestLabels.file_contents)
1394            (TestLayerProjection.file_contents)
1395            (TestRasterLayer.file_contents, TestJoinedTable.file_contents)
1396            (TestJoinedTable.file_contents)
1397            (TestLoadError.file_contents): Update for new DTD
1398            (TestJoinedTable.file_contents, TestJoinedTable.setUp): Add test
1399            for new join type attribute
1400    
1401            * test/test_save.py (SaveSessionTest.dtd)
1402            (SaveSessionTest.testEmptySession)
1403            (SaveSessionTest.testSingleLayer)
1404            (SaveSessionTest.testLayerProjection)
1405            (SaveSessionTest.testRasterLayer)
1406            (SaveSessionTest.testClassifiedLayer)
1407            (SaveSessionTest.test_dbf_table)
1408            (SaveSessionTest.test_joined_table): Update for new DTD
1409            (SaveSessionTest.test_joined_table): Add test for new join type
1410            attribute
1411    
1412    2003-07-04  Bernhard Herzog  <[email protected]>
1413    
1414            * Thuban/Model/table.py (_find_dbf_column_names): New. Helper
1415            function for table_to_dbf
1416            (table_to_dbf): Deal with names longer than the 10 character limit
1417    
1418            * test/test_dbf_table.py (TestTableToDBF.test_table_to_dbf): Add
1419            doc-string
1420            (TestTableToDBF.test_table_to_dbf_long_col_names): New test for
1421            long column names
1422    
1423    2003-07-03  Bernhard Herzog  <[email protected]>
1424    
1425            * Doc/manual/thuban-manual.xml: Fix the CVS Revision Tag syntax
1426    
1427    2003-07-03  Bernhard Herzog  <[email protected]>
1428    
1429            * Doc/manual/thuban-manual.xml, Doc/manual/README: New. Skeleton
1430            for the Thuban manual and README with some basic information about
1431            the manual
1432    
1433    2003-07-03  Bernhard Herzog  <[email protected]>
1434    
1435            * Thuban/Model/transientdb.py (TransientJoinedTable.__init__):
1436            Update doc-string
1437            (TransientJoinedTable.create): Do not modify the column objects of
1438            the input tables in place and copy all columns of the input tables
1439            into the joined table after all.
1440    
1441            * test/test_transientdb.py
1442            (TestTransientTable.test_transient_joined_table_same_column_name):
1443            Update to reflect the new behavior
1444            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1445            Update to reflect the new behavior
1446            (TestTransientTable.test_transient_joined_table_name_collisions_dont_modify_in_place):
1447            New test case for a bug which modified the column objects in place
1448    
1449    2003-07-02  Jonathan Coles   <[email protected]>
1450    
1451            * Thuban/Model/classgen.py (generate_singletons,
1452            generate_uniform_distribution, generate_quantiles,
1453            GenQuantiles0): Make sure maxValue isn't less than
1454            one, otherwise we could divide by zero.
1455    
1456            * test/test_classgen.py (ClassGenTest.doClassRangeTest,
1457            ClassGenTest.doClassSingleTest): Call doBoundsTest to
1458            check the end classification groups against the
1459            proper property values.
1460            (ClassGenTest.doBoundsTest): New. Checks the first and
1461            last classification groups to make sure their properties
1462            are the correct upper and lower bounds for a color ramp.
1463    
1464    2003-07-02  Jonathan Coles   <[email protected]>
1465    
1466            * Thuban/Model/classgen.py (generate_singletons,
1467            generate_uniform_distribution, generate_quantiles,
1468            GenQuantiles0): The denominator was one to high when
1469            calculating the index for the ramp causing the index
1470            to never to reach one.
1471    
1472    2003-07-02  Jonathan Coles   <[email protected]>
1473    
1474            Changed the singature of ClassGroupRange.__init__ and
1475            ClassGroupRange.SetRange() so that the min/max values are
1476            passed as a tuple. This makes a better calling scheme for
1477            when a Range object is passed instead.
1478    
1479            * Thuban/Model/classgen.py: Fixed parameters to
1480            ClassGroupRange constructor.
1481    
1482            * Thuban/Model/classification.py (ClassGroupRange.__init__):
1483            Consolidate the min/max parameters into a single _range which
1484            can either be a tuple or a Range object.
1485            (ClassGroupRange.SetRange): Consolidate the min/max parameters
1486            into a single _range which can either be a tuple or a Range object.
1487    
1488            * Thuban/Model/load.py (SessionLoader.start_clrange): Fix
1489            call to ClassGroupRange constructor to use a tuple.
1490    
1491            * Thuban/Model/layer.py (Layer.SetClassification): Switch
1492            the classification instance variable to the new class
1493            before calling _set_layer otherwise subscribers to a
1494            LAYER_CHANGED event will not see any difference.
1495    
1496            * test/test_classification.py: Fix tests of ClassGroupRange
1497            so that they use the new signature.
1498    
1499            * test/test_load.py: Fix use of ClassGroupRange so that it
1500            uses the new signature.
1501    
1502            * test/test_load_0_2.py: Fix use of ClassGroupRange so that it
1503            uses the new signature.
1504    
1505            * test/test_save.py: Fix use of ClassGroupRange so that it
1506            uses the new signature.
1507    
1508    
1509    2003-07-01  Jonathan Coles   <[email protected]>
1510    
1511            * Thuban/Model/classgen.py: Fixes RTbug #1972, 1971.
1512            Import used objects/class from color.
1513            (generate_singletons): We don't
1514            need the numGroups parameter anymore because we are using
1515            the new ramps with GetProperties().
1516            (generate_uniform_distribution): Use new ramp method
1517            GetProperties().
1518            (generate_quantiles, GenQuantiles0): Use new ramp method
1519            GetProperties().
1520            (CustomRamp.SetNumGroups): Removed. The ramps now map
1521            a value from 0 to 1 to class properties so the number
1522            of groups is not needed ahead of time.
1523            (CustomRamp.next): Removed. CustomRamp does not support
1524            interation anymore.
1525            (CustomRamp.GetProperties): Returns a ClassGroupProperties
1526            object based on the index value from 0 to 1 that is
1527            passed to it.
1528            (GreyRamp, RedRamp, GreenRamp, BlueRamp, GreenToRedRamp):
1529            Made into instances of Monochromatic class instread of
1530            deriving from it.
1531            (HotToCold.SetNumGroups): Removed. See CustomRamp.
1532            (HotToCold.next): Removed. See CustomRamp.
1533    
1534            * Thuban/Model/classification.py: Fixes RTbug #1973, 1971.
1535            (Classification.SetField, Classification.SetFieldType):
1536            Replaced with SetFieldInfo.
1537            (Classification.SetFieldInfo): New. Does a better job of
1538            what SetField and SetFieldType used to do by combining
1539            their function since they should really always be done
1540            at the same time.
1541            (Classification.SetLayer): Renamed to _set_layer.
1542            (Classification._set_layer): Should only be called from
1543            Layer's SetClassification. This does not cause a recursive
1544            call as SetLayer did because we know that Layer knows about
1545            the classification.
1546    
1547            * Thuban/Model/color.py: Fixes RTbug #1971.
1548            (_Transparent): Renamed from Transparent so it doesn't
1549            conflict with the module variable.
1550            (Transparent, Black): Renamed from Color.Transparent,
1551            Color.Black so they are not class variables.
1552    
1553            * Thuban/Model/layer.py: Fixes RTbug #1971, 1973.
1554            (Layer.Destroy): We don't need to call SetClassification
1555            anymore to clear out the back reference in the classifcation
1556            to the layer. It's better to set it to None using _set_layer,
1557            and we won't be creating another clas object too.
1558            (Layer.SetClassification): Classification._set_layer is not
1559            recursive so remove all the locking variables. Also clean
1560            up the code so that it remains unchanged if something fails.
1561    
1562            * Thuban/Model/load.py: Fixes RTbug #1971.
1563            (SessionLoader.start_classification): Call
1564            Classification.SetFieldInfo().
1565    
1566            * Thuban/Model/save.py: Removed import of Color which wasn't
1567            being used.
1568    
1569            * Thuban/UI/classgen.py: Fixes RTbug #1972.
1570            (ClassGenDialog.__init__): Color ramps are now instances
1571            already so we don't need to create any new objects.
1572            (ClassGenDialog.OnOK): Check for numGroups is no longer
1573            necessary because we never use it.
1574    
1575            * Thuban/UI/classifier.py: Fixes RTbug #1971.
1576            (Classifier.__BuildClassification, Classifier.__SetGridTable):
1577            Call Classification.SetFieldInfo() instead of SetFieldType.
1578    
1579            * Thuban/UI/renderer.py: Fixes RTbug #1971.
1580    
1581            * Thuban/UI/view.py: Fixes RTbug #1974, 1971.
1582            (MapCanvas.__init__): Subscribe to the idle time event. Set
1583            background color to white.
1584            (MapCanvas.OnPaint): Set a flag indicating that we should
1585            render the map during idle time. If we already have a bitmap
1586            just draw it now.
1587            (MapCanvas.OnIdle): New. Render the map only during idle time.
1588            This also fixes a problem with the busy cursor under gtk.
1589    
1590            * test/test_classgen.py (ClassGenTest.test_generate_singletons):
1591            Fix calls to generate_singletons because the signature changed.
1592    
1593            * test/test_classification.py: Fix color references and
1594            change calls to Classification.[SetField|SetFieldType] to
1595            SetFieldInfo.
1596    
1597            * test/test_load.py: Fix color references.
1598    
1599            * test/test_load_0_2.py: Fix color references.
1600    
1601            * test/test_save.py (SaveSessionTest.testClassifiedLayer):
1602            Change calls to Classification.[SetField|SetFieldType] to
1603            SetFieldInfo.
1604    
1605    2003-07-01  Frank Koormann   <[email protected]>
1606    
1607            MERGE from the greater-ms3 branch.
1608    
1609            * test/test_transientdb.py
1610            (TestTransientTable.test_transient_joined_table_with_equal_column_names):
1611            New. Test join of two tables with partly equal column names.
1612    
1613            * Thuban/Model/transientdb.py (TransientJoinedTable.create):
1614            If duplicates in left and right tables column names are found,
1615            append '_' (underscores) to the name until it is unique.
1616            Create always new internal names for the resulting table and reference
1617            columns in the join statement with <table>.<column>
1618    
1619    2003-07-01  Bernhard Herzog  <[email protected]>
1620    
1621            * test/test_transientdb.py
1622            (TestTransientTable.test_transient_joined_table_same_column_name):
1623            New. Test whether joining on columns with the same names in both
1624            tables works.
1625            
1626            * Thuban/Model/transientdb.py (TransientJoinedTable.create): Make
1627            sure to use the right internal names even when joining on field
1628            with the same names in both tables. Also, detect duplicate names
1629            in the joined table correctly.
1630    
1631    2003-07-01  Frank Koormann   <[email protected]>
1632    
1633            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1634            Reverse List of layers to render in same order as in desktop legend.
1635    
1636    2003-06-30  Jonathan Coles   <[email protected]>
1637    
1638            * Thuban/version.py (make_tuple): Takes a version string
1639            and splits it into a tuple of at most three integers.
1640            Used make_tuple() to make tuple versions of the version
1641            numbers.
1642    
1643            * Thuban/UI/about.py: Add Thuban email addresses.
1644    
1645    2003-06-30  Jonathan Coles   <[email protected]>
1646    
1647            * Thuban/version.py: SQLite/PySQLite version dependencies
1648            were too high.
1649    
1650    2003-06-30  Jonathan Coles   <[email protected]>
1651    
1652            * Thuban/version.py: Update version to 0.8.1
1653            
1654            * MANIFEST.in: Added Projections so that default.proj is
1655            included.
1656    
1657    2003-06-26  Jonathan Coles   <[email protected]>
1658    
1659            New About box with lots more information including library
1660            versions and credits. More/better version checking before
1661            Thuban starts.
1662    
1663            * Thuban/UI/about.py: New. New About box that displays
1664            library version information and credits.
1665    
1666            * Thuban/version.py: Added new 'versions' dictionary which
1667            contains the verions of various libraries which are checked
1668            when the module loads.
1669            (verify_versions): Check all version numbers and returns
1670            a list of errors.
1671    
1672            * Thuban/UI/classifier.py (Classifier.__EnableButtons):
1673            Reset the status of the buttons as the situation warrants,
1674            but in a better more reliable way by not relying on the
1675            current status to determine what needs to change.
1676    
1677            * Thuban/UI/main.py (wxCHECK_VERSION): Removed. Not needed.
1678            (verify_versions): Remove most of the code since it is
1679            now in Thuban.version.verify_versions.o
1680    
1681            * Thuban/UI/mainwindow.py (MainWindow.About): Call new
1682            About box in Thuban.UI.about.
1683    
1684            * extensions/thuban/gdalwarp.cpp (get_gdal_version): New.
1685            Returns the version of gdal library being used as a string.
1686    
1687            * extensions/thuban/wxproj.cpp (check_version, check_version_gtk):
1688            Removed.
1689            (get_proj_version): Return the version of PROJ that the file
1690            was compiled with.
1691            (get_gtk_version): Return th version of GTK that the file
1692            was compiled with.
1693    
1694    2003-06-25  Jonathan Coles   <[email protected]>
1695    
1696            * Thuban/UI/classifier.py (Classifier.EditSymbol): The parent
1697            of the SelectPropertiesDialog should be self so the window
1698            appears on top.
1699            (ClassGroupPropertiesCtrl.DoEdit): The parent
1700            of the SelectPropertiesDialog should be self so the window
1701            appears on top.
1702    
1703            * Thuban/UI/resource.py: Cleaned up how we determine file
1704            extensions.
1705            (GetImageResource): Return an wxImage from our Resources.
1706    
1707    2003-06-24  Jonathan Coles   <[email protected]>
1708    
1709            * Thuban/UI/renderer.py (ExportRenderer.render_legend):
1710            Check that a layer has a classification before trying
1711            to get it. Raster layers don't have classifications.
1712    
1713    2003-06-23  Jonathan Coles   <[email protected]>
1714            
1715            * setup.py: Add Resources/XML to resource list.
1716        
1717    2003-06-23  Jonathan Coles   <[email protected]>
1718    
1719            * setup.cfg: Fix copyright dates
1720        
1721    2003-06-23  Jonathan Coles   <[email protected]>
1722    
1723            * MANIFEST.in: Update with Resources/XML
1724    
1725            * setup.py: Don't include Locale resources yet as we don't
1726            have any and it causes problems building the distribution
1727            for Windows. Update version to 0.8.0.
1728    
1729            * Doc/thuban.dtd: Removed since it is now in Resources/XML.
1730    
1731            * Thuban/UI/mainwindow.py: Add blank line at the end because
1732            file was not being read correctly building the Windows
1733            distribution.
1734    
1735    2003-06-23  Jonathan Coles   <[email protected]>
1736    
1737            * Thuban/UI/mainwindow.py (MainWindow.About): Fix text.
1738    
1739            * Thuban/version.py: Temporarily update longversion for
1740            the 0.8 release so that it doesn't have the cvs revision.
1741    
1742    2003-06-23  Jonathan Coles   <[email protected]>
1743    
1744            * Thuban/UI/common.py (ThubanBeginBusyCursor): Call wxSafeYield
1745            to make sure that we don't create reentrant possibilities with
1746            wxYield.
1747    
1748            * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxBeginBusyCursor()
1749            directly to avoid the wxSafeYield() call which generates an
1750            OnPaint event causing infinite recursion. Don't try to catch
1751            exception anymore. This was for before there were limits on map
1752            scaling.
1753    
1754    2003-06-23  Bernhard Herzog  <[email protected]>
1755    
1756            Bug fix for RT #1961:
1757    
1758            * Thuban/Model/load.py (SessionLoader.start_derivedshapesource):
1759            Register DerivedShapestores with the session
1760    
1761            * Thuban/Model/session.py (Session.Tables): Make sure each table
1762            is only listed once.
1763    
1764            * test/test_load.py (TestJoinedTable.test): Add check_format call.
1765            Update file contents to match the one written out.
1766    
1767    2003-06-20  Bernhard Herzog  <[email protected]>
1768    
1769            * test/xmlsupport.py (SaxEventLister.startElementNS)
1770            (SaxEventLister.endElementNS): Do not include the qname. Python
1771            2.2.1 and 2.2.2 and 2.2.3 differ in this regard. In 2.2.1 qname it
1772            is (presumably incorrectly) None, whereas it's a string with the
1773            element name in the later versions.
1774    
1775            * test/test_xmlsupport.py (TestEventList.test_even_list_simple)
1776            (TestEventList.test_even_list_namespace): Update tests to reflect
1777            the new behaviour
1778            (TestEventList.test_even_list_id_normalization): Fix doc-string
1779    
1780    2003-06-20  Jonathan Coles   <[email protected]>
1781    
1782            * Thuban/Model/layer.py (BaseLayer.HasShapes): New. Overridden
1783            by deriving classes to determine if that layer supports shapes.
1784            (Layer): Override HasShapes and return true.
1785    
1786            * Thuban/UI/classgen.py: Use Thuban[Begin|End]BusyCursor()
1787            instead of a direct call to wx[Begin|End]CusyCursor().
1788            (GenUniquePanel._OnRetrieve): Set busy cursor while retrieving
1789            table data.
1790    
1791            * Thuban/UI/common.py (ThubanBeginBusyCursor, ThubanEndBusyCursor):
1792            New. Wrappers around the wxWindows functions that allow us to
1793            make additional calls such as wxYield which gives the native
1794            system a chance to update the cursor correctly.
1795    
1796            * Thuban/UI/tableview.py: Use Thuban[Begin|End]BusyCursor()
1797            instead of a direct call to wx[Begin|End]CusyCursor().
1798    
1799            * Thuban/UI/view.py: Use Thuban[Begin|End]BusyCursor()
1800            instead of a direct call to wx[Begin|End]CusyCursor().
1801            (MapCanvas.find_shape_at): Check if the current search layer
1802            support shapes, otherwise go on to the next layer.
1803    
1804            * test/test_layer.py: Add tests in each type of layer for
1805            HasClassification() and HasShapes()
1806    
1807  2003-06-20  Jonathan Coles   <[email protected]>  2003-06-20  Jonathan Coles   <[email protected]>
1808    
1809          * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after          * Thuban/UI/view.py (MapCanvas.OnPaint): Call wxYield after

Legend:
Removed from v.1272  
changed lines
  Added in v.1651

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26