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

Legend:
Removed from v.1237  
changed lines
  Added in v.1657

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26