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

Legend:
Removed from v.1349  
changed lines
  Added in v.1663

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26