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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26