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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26