/[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 1582 by bh, Tue Aug 12 15:08:40 2003 UTC revision 1651 by bh, Mon Aug 25 15:05:56 2003 UTC
# Line 1  Line 1 
1    2003-08-25  Bernhard Herzog  <[email protected]>
2    
3            * Thuban/UI/application.py (ThubanApplication.OpenSession): Catch
4            LoadCancelled exceptions and handle them by returning immediately.
5    
6    2003-08-25  Bernhard Herzog  <[email protected]>
7    
8            GUI part of loading sessions with postgis connections which may
9            require user interaction to get passwords or updated parameters
10    
11            * Thuban/UI/dbdialog.py (DBDialog): Reimplement to make it look a
12            bit nucer and be more generic.
13            (DBFrame.OnAdd): Adapt to new DBDialog interface
14    
15            * Thuban/UI/application.py (ThubanApplication.OpenSession): New
16            optional parameter db_connection_callback which is passed to
17            load_session.
18    
19            * Thuban/UI/mainwindow.py (MainWindow.run_db_param_dialog): New.
20            Suitable as a db_connection_callback
21            (MainWindow.OpenSession): Use self.run_db_param_dialog as the
22            db_connection_callback of the application's OpenSession method
23    
24    
25    2003-08-25  Bernhard Herzog  <[email protected]>
26    
27            Basic loading of sessions containing postgis connections:
28    
29            * Thuban/Model/load.py (LoadError): Add doc-string
30            (LoadCancelled): New exception class to indicate a cancelled load
31            (SessionLoader.__init__): Add the db_connection_callback parameter
32            which will be used by the loader to get updated parameters and a
33            password for a database connection
34            (SessionLoader.__init__): Add the new XML elements to the
35            dispatchers dictionary
36            (SessionLoader.check_attrs): Two new conversions, ascii to convert
37            to a byte-string object and idref as a generic id reference
38            (SessionLoader.start_dbconnection)
39            (SessionLoader.start_dbshapesource): New. Handlers for the new XML
40            elements
41            (load_session): Add the db_connection_callback to pass through the
42            SessionLoader
43    
44            * test/test_load.py (TestPostGISLayer, TestPostGISLayerPassword):
45            New classes to test loading of sessions with postgis database
46            connections.
47    
48    2003-08-25  Bernhard Herzog  <[email protected]>
49    
50            * Thuban/UI/mainwindow.py (__ThubanVersion__): Remove this and
51            replace it and the comment with __BuildDate__ by the Source: and
52            Id: cvs keywords as used in the other files.
53    
54    2003-08-25  Bernhard Herzog  <[email protected]>
55    
56            * Thuban/Model/load.py (SessionLoader.check_attrs): Raise a
57            LoadError when a required attribute is missing. The code used to
58            be commented out for some reason, but probably should have been
59            active.
60    
61            * test/test_load.py (TestLoadError.test): Test the message in the
62            LoadError too to make sure it really is about the missing
63            attribute
64    
65    2003-08-22  Bernhard Herzog  <[email protected]>
66    
67            * test/test_save.py (SaveSessionTest.test_dbf_table)
68            (SaveSessionTest.test_joined_table): Add XML validation tests.
69    
70    2003-08-22  Bernhard Herzog  <[email protected]>
71    
72            Implement saving a session with a postgis connection
73    
74            * Resources/XML/thuban-0.9.dtd (dbconnection, dbshapesource) New
75            elements for database connections and shapestores using db
76            connections
77            (session): Add the dbconnections to the content model
78    
79            * Thuban/Model/save.py (SessionSaver.write_db_connections): New.
80            Write the db connections
81            (SessionSaver.write_session): Call write_db_connections to write
82            the connection before the data sources
83            (SessionSaver.write_data_containers): Handle postgis shapestores
84    
85            * test/test_save.py (SaveSessionTest.thubanids)
86            (SaveSessionTest.thubanidrefs): Update for new DTD
87            (SaveSessionTest.test_save_postgis): New. Test saving a session
88            with postgis connections
89    
90            * Thuban/Model/postgisdb.py (PostGISTable.DBConnection)
91            (PostGISTable.TableName): New accessor methods for the connection
92            and table name
93    
94            * test/test_postgis_db.py (TestPostGISTable.test_dbconn)
95            (TestPostGISTable.test_dbname): New methods to test the new
96            PostGISConnection methods
97    
98    2003-08-22  Bernhard Herzog  <[email protected]>
99    
100            * Thuban/Model/postgisdb.py (ConnectionError): New exception class
101            for exceptions occurring when establishing a Database connection
102            (PostGISConnection.connect): Catch psycopg.OperationalError during
103            connects and raise ConnectionError.
104    
105            * test/test_postgis_db.py (TestPostgisDBExceptions): New class for
106            tests for database exceptions
107    
108    2003-08-22  Bernhard Herzog  <[email protected]>
109    
110            Prepare the test suite for tests with required authentication
111    
112            * test/postgissupport.py (PostgreSQLServer.__init__): Add instance
113            variables with two predefined users/passwords, one for the admin
114            and one for a non-privileged user.
115            (PostgreSQLServer.createdb): Pass the admin name to initdb and add
116            the non-privileged user to the database and set the admin password
117            (PostgreSQLServer.wait_for_postmaster): Use the admin user name.
118            Better error reporting
119            (PostgreSQLServer.connection_params)
120            (PostgreSQLServer.connection_string): New methods to return
121            information about how to connect to the server
122            (PostgreSQLServer.execute_sql): New. Convenience method to execute
123            SQL statements
124            (PostgreSQLServer.require_authentication): Toggle whether the
125            server requires authentication
126            (PostgreSQLServer.create_user, PostgreSQLServer.alter_user): New.
127            Add or alter users
128            (PostGISDatabase.initdb): Pass the admin name one the
129            subprocesses' command lines. Grant select rights on
130            geometry_columns to everybody.
131            (upload_shapefile): Use the admin name and password when
132            connecting. Grant select rights on the new table to everybody.
133    
134            * test/test_viewport.py (TestViewportWithPostGIS.setUp): Use the
135            server's new methods to get the connection parameters.
136    
137            * test/test_postgis_session.py (TestSessionWithPostGIS.setUp)
138            (TestSessionWithPostGIS.test_remove_dbconn_exception): Use the
139            server's new methods to get the connection parameters.
140    
141            * test/test_postgis_db.py
142            (TestPostGISConnection.test_gis_tables_empty)
143            (TestPostGISConnection.test_gis_tables_non_empty)
144            (PostGISStaticTests.setUp): Use the server's new methods to get
145            the connection parameters.
146    
147    2003-08-22  Bernhard Herzog  <[email protected]>
148    
149            * Thuban/UI/about.py (About.__init__): Add the psycopg version.
150    
151            * Thuban/version.py: Add psycopg version
152    
153            * Thuban/Model/postgisdb.py (psycopg_version): New. Return the
154            version of the psycopg module
155    
156    2003-08-22  Bernhard Herzog  <[email protected]>
157    
158            * Thuban/UI/dbdialog.py (DBPwdDlg): Removed because it's not used.
159            (DBFrame.OnEdit): Removed because it's not used and wouldn't work
160            at the moment. The functionality should probably be implemented
161            some time, though.
162            (DBFrame.OnRemove): Display a message if the connection can't be
163            removed because it's still in use.
164    
165    2003-08-22  Jan-Oliver Wagner <[email protected]>
166    
167            * Thuban/UI/about.py (About.__init__): split up the huge about
168            text into elements/lists for easier translation. This fixes bug
169            https://intevation.de/rt/webrt?serial_num=2058
170            Also, made some forgotten string available for the i18n.
171    
172    2003-08-21  Bernhard Herzog  <[email protected]>
173    
174            Make postgis support really optional including insensitive menu
175            items.
176    
177            * Thuban/Model/postgisdb.py (has_postgis_support): New. Return
178            whether the postgis is supported.
179    
180            * Thuban/UI/dbdialog.py: Put the psycopg import into try..except
181            to make postgis support optional
182    
183            * Thuban/UI/mainwindow.py (_has_postgis_support): New. Context
184            version of Thuban.Model.postgisdb.has_postgis_support
185            (database_management command): Make it only sensitive if postgis
186            is supported.
187    
188    2003-08-21  Jan-Oliver Wagner <[email protected]>
189    
190            * Doc/manual/thuban-manual.xml: Added CVS revision for rev-history.
191            (section Adding and Removing Layers): Added text and described
192            multi-selection.
193            (chapter Extensions): New.
194    
195    2003-08-21  Jan-Oliver Wagner <[email protected]>
196    
197            * Thuban/UI/mainwindow.py (MainWindow.AddLayer): Changed dialog
198            settings to allow multiple files to load into the map.
199            Also reduced selection to *.shp as a default.
200    
201    2003-08-20  Bernhard Herzog  <[email protected]>
202    
203            Add dialogs and commands to open database connections and add
204            database layers.
205    
206            * Thuban/UI/mainwindow.py (MainWindow.DatabaseManagement): New
207            method to open the database connection management dialog
208            (MainWindow.AddDBLayer): New method to add a layer from a database
209            (_has_dbconnections): New helper function to use for sensitivity
210            (database_management command, layer_add_db command): New commands
211            that call the above new methods.
212            (main_menu): Add the new commands to the menu.
213    
214            * Thuban/Model/postgisdb.py (PostGISConnection.__init__)
215            (PostGISConnection.connect): Establish the actual connection in a
216            separate method and call it in __init__. This makes it easier to
217            override the behavior in test cases
218            (PostGISConnection.BriefDescription): New method to return a brief
219            description for use in dialogs.
220    
221            * test/test_postgis_db.py (NonConnection): DB connection that
222            doesn't actually connect
223            (TestBriefDescription): New class with tests for the new
224            BriefDescription method
225    
226    2003-08-19  Jan-Oliver Wagner <[email protected]>
227    
228            Moved anything from extensions to libraries.
229    
230            * libraries: New.
231    
232            * libraries/ pyprojection, pyshapelib, shapelib, thuban: New.
233    
234            * libraries/pyprojection/ LICENSE, MANIFEST.in, Projection.i,
235            Projection.py, Projection_wrap.c, setup.py, swighelp.txt: These files have
236            been moved here from thuban/extensions/pyprojection/
237            See there in the Attic for the older history.
238    
239            * libraries/pyshapelib/ COPYING, ChangeLog, NEWS, README, dbflib.i,
240            dbflib.py, dbflib_wrap.c, pyshapelib_api.h, pytest.py, setup.py,
241            shapelib.i, shapelib.py, shapelib_wrap.c, shptreemodule.c: These files
242            have been moved here from thuban/extensions/pyshapelib/
243            See there in the Attic for the older history.
244    
245            * libraries/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c: These
246            files have been moved here from thuban/extensions/shapelib/
247            See there in the Attic for the older history.
248    
249            * libraries/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
250            gdalwarp.cpp, wxproj.cpp: These files have been moved here from
251            thuban/extensions/thuban/
252            See there in the Attic for the older history.
253    
254            * MANIFEST.in, setup.cfg, setup.py: renamed extensions to libraries.
255    
256            * extensions/thuban/ bmpdataset.cpp, cpl_mfile.cpp, cpl_mfile.h,
257            gdalwarp.cpp, wxproj.cpp: Moved to libraries/thuban.
258    
259            * extensions/shapelib/ dbfopen.c, shapefil.h, shpopen.c, shptree.c:
260            Moved to libraries/shapelib.
261    
262            * extensions/pyshapelib/ COPYING, NEWS, dbflib.py, pytest.py,
263            shapelib.py, README, dbflib_wrap.c, setup.py, shapelib_wrap.c,
264            ChangeLog, dbflib.i, pyshapelib_api.h, shapelib.i, shptreemodule.c:
265            Moved to libraries/pyshapelib.
266    
267            * extensions/pyprojection/ MANIFEST.in, Projection.py, setup.py,
268            LICENSE, Projection.i, Projection_wrap.c, swighelp.txt:
269            Moved to libraries/pyprojection.
270    
271            * extensions/ pyprojection, pyshapelib, shapelib, thuban: Removed.
272    
273            * extensions: Removed.
274    
275    2003-08-19  Bernhard Herzog  <[email protected]>
276    
277            * test/test_viewport.py (ViewPortTest): We don't use the
278            facilities of FileTestMixin so don't derive from it.
279            (TestViewportWithPostGIS): New class with tests for using a
280            viewport on a map with postgis layers.
281    
282    2003-08-19  Bernhard Herzog  <[email protected]>
283    
284            Add the db connection management to the session.
285    
286            * Thuban/Model/session.py (Session.__init__): New instance
287            variable db_connections
288            (Session.AddDBConnection, Session.DBConnections)
289            (Session.HasDBConnections, Session.CanRemoveDBConnection)
290            (Session.RemoveDBConnection): New methods to manage and query the
291            db connections managed by the session
292            (Session.OpenDBShapeStore): New method to open a shapestore from a
293            db connection
294    
295            * Thuban/Model/messages.py (DBCONN_REMOVED, DBCONN_ADDED): New
296            messages for the db connection handling in the session
297    
298            * test/test_postgis_session.py: New. test cases for the session's
299            db connection handling with postgis connections
300    
301    2003-08-19  Bernhard Herzog  <[email protected]>
302    
303            Add very basic postgis database support and the corresponding test
304            cases. The test cases require a PostgreSQL + postgis installation
305            but no existing database. The database will be created
306            automatically by the test cases
307    
308            * test/README: Add note about skipped tests and the requirements
309            of the postgis tests.
310    
311            * Thuban/Model/postgisdb.py: New. Basic postgis database support.
312    
313            * test/test_postgis_db.py: New. Test cases for the postgis
314            support.
315    
316            * Thuban/Model/wellknowntext.py: New. Parser for well-known-text
317            format
318    
319            * test/test_wellknowntext.py: New. Test cases for the
320            wellknowntext parser
321    
322            * test/postgissupport.py: New. Support module for tests involving
323            a postgis database.
324    
325            * test/support.py (execute_as_testsuite): Shut down the postmaster
326            if it's still running after the tests
327    
328            * Thuban/Model/data.py (RAW_WKT): New constant for raw data in
329            well known text format
330    
331    2003-08-19  Jan-Oliver Wagner <[email protected]>
332    
333            * Examples/simple_extensions/hello_world.py: New. Raises a Hello World
334            message dialog.
335    
336    2003-08-18  Bernhard Herzog  <[email protected]>
337    
338            * test/support.py (ThubanTestResult.printErrors): Indent the
339            reason for the skips in the output to make it a bit more readable.
340            (execute_as_testsuite): New helper function to run a test suite
341            and print some more information.
342            (run_tests): Use execute_as_testsuite to run the tests
343    
344            * test/runtests.py (main): Use execute_as_testsuite to run the
345            tests
346    
347    2003-08-18  Bernhard Herzog  <[email protected]>
348    
349            Fix some bugs in Thuban and the test suite that were uncovered by
350            changes introduced in Python 2.3:
351    
352            * Thuban/Model/table.py (DBFTable.__init__): Make sure the
353            filename is an absolute name
354    
355            * Thuban/Model/layer.py (RasterLayer.__init__): Make sure the
356            filename is an absolute name
357    
358            * test/test_save.py (SaveSessionTest.testRasterLayer): Use a
359            unique filename to save to and use the correct relative filename
360            in the expected output.
361            (SaveSessionTest.test_dbf_table): Use the correct relative
362            filename in the expected output.
363    
364            * test/test_layer.py (TestLayer.test_raster_layer): Update the
365            test to check whether the filename is absolute.
366    
367    2003-08-18  Jan-Oliver Wagner <[email protected]>
368    
369            * Thuban/UI/about.py (About.__init__): Added Silke Reimer.
370    
371    2003-08-15  Bernhard Herzog  <[email protected]>
372    
373            Change the way shapes are returned by a shape store. The
374            ShapesInRegion method returns an iterator over actual shape
375            objects instead of a list of shape ids.
376    
377            * Thuban/Model/data.py (ShapefileShape.ShapeID): New. Return shape
378            id.
379            (ShapefileStore.ShapesInRegion): Return an iterator over the
380            shapes which yields shape objects instead of returning a list of
381            shape ids
382            (ShapefileStore.AllShapes): New. Return an iterator over all
383            shapes in the shape store
384            (DerivedShapeStore.AllShapes): New. Like in ShapefileStore
385    
386            * Thuban/Model/layer.py (Layer.ShapesInRegion): Update
387            doc-string.
388    
389            * Thuban/UI/baserenderer.py
390            (BaseRenderer.layer_ids, BaseRenderer.layer_shapes): Rename to
391            layer_shapes and make it return an iterator containg shapes
392            instead of a list of ids.
393            (BaseRenderer.draw_shape_layer): Update doc-string; Adapt to
394            layer_shapes() change
395    
396            * Thuban/UI/renderer.py (ScreenRenderer.layer_ids)
397            (ScreenRenderer.layer_shapes): Rename as in BaseRenderer
398    
399            * Thuban/UI/viewport.py (ViewPort._find_shape_in_layer): Adapt to
400            changes in the ShapesInRegion return value.
401            (ViewPort._get_hit_tester): Remove commented out code
402    
403            * test/mockgeo.py (SimpleShapeStore.ShapesInRegion): Adapt to the
404            new return value.
405            (SimpleShapeStore.AllShapes): New. Implement this method too.
406    
407            * test/test_layer.py (TestLayer.test_arc_layer)
408            (TestLayer.test_polygon_layer, TestLayer.test_point_layer)
409            (TestLayer.test_point_layer_with_projection)
410            (TestLayer.test_derived_store): Adapt to changes in the
411            ShapesInRegion return value.
412    
413            * test/test_shapefilestore.py
414            (TestShapefileStoreArc.test_shapes_in_region)
415            (TestShapefileStorePolygon.test_shapes_in_region)
416            (TestShapefileStorePoint.test_shapes_in_region): Adapt to changes
417            in the ShapesInRegion return value.
418            (TestShapefileStorePoint.test_all_shapes)
419            (TestShapefileStoreArc.test_shape_shapeid): New tests for the new
420            methods
421    
422            * test/test_derivedshapestore.py
423            (TestDerivedShapeStore.test_shapes_in_region): Adapt to changes in
424            the ShapesInRegion return value.
425            (TestDerivedShapeStore.test_all_shapes)
426            (TestDerivedShapeStore.test_shape_shapeid): New tests for the new
427            methods
428    
429    2003-08-15  Bernhard Herzog  <[email protected]>
430    
431            Make the renderers deal correctly with raw vs. python level
432            representation of shape geometries
433    
434            * Thuban/UI/baserenderer.py (BaseRenderer.low_level_renderer):
435            Return a flag useraw in addition to the callable and the parameter
436            to indicate whether the callable can deal with the raw shape data
437            or uses the higher level python lists of coordinates. The callable
438            now should accept either the raw data or the return value of the
439            shape's Points() method.
440            (BaseRenderer.draw_shape_layer): Adapt to the low_level_renderer
441            change
442            (BaseRenderer.projected_points): Instead of the shape id use the
443            points list as parameter.
444            (BaseRenderer.draw_polygon_shape, BaseRenderer.draw_arc_shape)
445            (BaseRenderer.draw_point_shape): Adapt to projected_points()
446            change and accept the points list as parameter instead of the
447            shape id.
448    
449            * Thuban/UI/renderer.py (MapRenderer.low_level_renderer): Return
450            the useraw flag as required by the BaseRenderer
451            (ScreenRenderer.draw_shape_layer): Adapt to low-level renderer
452            changes.
453    
454            * test/test_baserenderer.py
455            (TestBaseRenderer.test_point_with_classification): New test for
456            rendering a map with classifications.
457    
458    2003-08-15  Bernhard Herzog  <[email protected]>
459    
460            * Thuban/UI/viewport.py (ViewPort.find_shape_at)
461            (ViewPort._find_shape_in_layer, ViewPort._find_shape_in_layer)
462            (ViewPort._get_hit_tester, ViewPort.projected_points)
463            (ViewPort._hit_point, ViewPort._hit_arc, ViewPort._hit_polygon)
464            (ViewPort._find_label_at): Split the find_shape_at method into
465            several new methods and use the functions in the hit-test module.
466    
467            * Thuban/UI/hittest.py: New module with Python-level hit-testing
468            functions
469    
470            * test/test_hittest.py: New. Test for the new hittest module
471    
472    2003-08-15  Bernhard Herzog  <[email protected]>
473    
474            * Thuban/Model/layer.py (Layer.ShapesInRegion): Apply the layer
475            projection to all corners of the bounding box to get a better
476            approximation of the projected bounding box
477    
478            * test/test_layer.py (TestLayer.test_point_layer_with_projection):
479            New. Test coordinate handling of a layer with a projection.
480            Catches the bug fixed in Layer.ShapesInRegion
481    
482    2003-08-15  Bernhard Herzog  <[email protected]>
483    
484            Move some of the mock objects in test_baserenderer into their own
485            module so they can easily be used from other tests
486    
487            * test/mockgeo.py: New test helper module with some mock objects
488            for geometry related things like shapes, shapestores and
489            projections.
490    
491            * test/test_mockgeo.py: New. Tests for the new helper module
492    
493            * test/test_baserenderer.py: Some of the mock-objects are in
494            mockgeo now.
495    
496    2003-08-12  Jan-Oliver Wagner <[email protected]>
497    
498            * Thuban/UI/about.py (About.__init__): Added Bj�rn Broscheit.
499    
500  2003-08-12  Bernhard Herzog  <[email protected]>  2003-08-12  Bernhard Herzog  <[email protected]>
501    
502          * po/de.po: New. German translations by Bjoern Broscheit          * po/de.po: New. German translations by Bjoern Broscheit

Legend:
Removed from v.1582  
changed lines
  Added in v.1651

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26