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

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26