/[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 1516 by bh, Tue Jul 29 14:59:21 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]>  2003-07-29  Bernhard Herzog  <[email protected]>
882    
883          * Thuban/Model/data.py: Remove the now unused import of warnings          * Thuban/Model/data.py: Remove the now unused import of warnings

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26