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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26