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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26