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

Legend:
Removed from v.1208  
changed lines
  Added in v.1645

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26